07-02-2023, 08:38 PM
(07-02-2023, 07:15 AM)WhiteHexagon Wrote: I assume there is an event thread running for LVGL somewhere
Actually there isn't an Event Thread for LVGL :-)
If you remember our WebAssembly Article, our LVGL App calls LVGL periodically to execute Background Tasks (lv_timer_handler).
For PinePhone, lv_timer_handler is called by the Main Function of lvgldemo:
https://github.com/apache/nuttx-apps/blo...#L240-L249
lv_timer_handler will trigger a callback to read a Touch Sample:
https://lupyuen.codeberg.page/articles/t...our-driver
So no worries about clashing threads! LVGL looks really simplistic because it's meant to run on Bare Metal Hardware without threading. Which makes things easier for us :-)