Loading...
Searching...
No Matches

Definition for the LVGL engine initialization. More...

Detailed Description

Definition for the LVGL engine initialization.

Author
Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr

Definition in file lvgl_riot.h.

#include "screen_dev.h"
+ Include dependency graph for lvgl_riot.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.
 

Function Documentation

◆ lvgl_init()

void lvgl_init ( screen_dev_t screen_dev)

Initialize the lvgl display engine.

Parameters
[in]screen_devPointer to the generic screen device

◆ lvgl_run()

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.

◆ lvgl_wakeup()

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.