Definition for the LVGL engine initialization. More...
Definition for the LVGL engine initialization.
Definition in file lvgl_riot.h.
#include "screen_dev.h"
Go to the source code of this file.
void | lvgl_init (screen_dev_t *screen_dev) |
Initialize the lvgl display engine. | |
void | lvgl_run (void) |
Run the lvgl task handler. | |
void | lvgl_wakeup (void) |
Wakeup lvgl when inactive. | |
void lvgl_init | ( | screen_dev_t * | screen_dev | ) |
Initialize the lvgl display engine.
[in] | screen_dev | Pointer to the generic screen device |
void lvgl_run | ( | void | ) |
Run the lvgl task handler.
In order to run the lvgl internal task handler in an endless loop, this function must be called manually either from the main thread or from a custom thread. In case of CONFIG_LVGL_INACTIVITY_PERIOD_MS ms of inactivity, the loop stops the thread running the lvgl task handler until lvgl_wakeup is called.
void lvgl_wakeup | ( | void | ) |
Wakeup lvgl when inactive.
This function unblocks the lvgl task handler thread and will indirectly trigger an activity. After calling this function, lvgl remains awake during the next LVGL_INACTIVITY_PERIOD_MS ms.