[RFC] Reduce CPU usage when idle

Hi @embeddedt,

Have you implemented the touch interrupt in the littlevgl library ?

I have not added support for touch interrupts, as while this would be useful, it’s not a high priority for my projects at the moment. I also unfortunately have less time now to spend on new LVGL features.

The feature is wonderful.
My project needs it,now I do this by stopping the lvgl task handler task when mcu goes to sleep and change input to interrupt mode,when wakeup,restart the task .
If lvgl api can support this officially that would be great.

1 Like

Has this been implemented yet

See here: Sleep management — LVGL documentation

Besides lv_timer_handler returns the the time to the next timer run. So your are safe to sleep then number of milliseconds.

Hi,

Has the touch interrupt already been implemented in the littlevgl library ?

Thank’s.

Some suggestion ???

Hmm your question is out of LVGL because indev callbacks is out of LVGL. You can do it as you need. For example in irq mark flag and get touch only if else simple return from callback.

1 Like