I’m looking at the stuff on sleeping in the porting section of the LVGL documentation and trying to figure out how one would apply this to Micropython. I’d like to detect that LVGL is idle and play with various sleep modes of the ESP32 (in an M5Stack Core2 in my case) as well as putting the display to sleep after a timeout. Some of this is clearly LVGL specific, some is more generic and applies to all of Micropython, some is ESP32 and some is M5Stack/ILI9341 specific.
First off, I’d appreciate any pointers as to where to put the idle detection in Micropython. Also: has anyone seen anything related to ESP32 sleep modes and Microyphon?
Eventually there is some event loop which calls lv_task_handler.
You could put the device/display to sleep between calls to lv_task_handler inside the event loop.