Lines Matching refs:timer
3 LVGL has a built-in timer system. You can register a function to have it be called periodically. Th…
4 See [Porting](/porting/timer-handler) for more information.
6 …-preemptive, which means a timer cannot interrupt another timer. Therefore, you can call any LVGL …
9 ## Create a timer
10 …timer, use `lv_timer_create(timer_cb, period_ms, user_data)`. It will create an `lv_timer_t *` var…
11 `lv_timer_create_basic()` can also be used. This allows you to create a new timer without specifyin…
13 A timer callback should have a `void (*lv_timer_cb_t)(lv_timer_t *);` prototype.
17 void my_timer(lv_timer_t * timer)
20 uint32_t * user_data = timer->user_data;
33 lv_timer_t * timer = lv_timer_create(my_timer, 500, &user_data);
39 `lv_timer_ready(timer)` makes a timer run on the next call of `lv_timer_handler()`.
41 `lv_timer_reset(timer)` resets the period of a timer. It will be called again after the defined per…
45 You can modify some timer parameters later:
46 - `lv_timer_set_cb(timer, new_cb)`
47 - `lv_timer_set_period(timer, new_period)`
51 You can make a timer repeat only a given number of times with `lv_timer_set_repeat_count(timer, cou…
57 It can be misleading if you use an operating system and call `lv_timer_handler` in a timer, as it w…