Turn off display ...deinit littlevgl


I’m working on a project where display and rotary encoder are used for some settings then they are no more used for weeks, so I need to completely turn off display then encoder push button is reprogrammed to wake up the display

What MCU/Processor/Board and compiler are you using?

STM32F103 / KEIL

What do you want to achieve?

deinit littlevgl or at least unregister display and input encoder then reinit drivers

What have you tried so far?

Didn’t try nothing yet

This topic might be interesting for you:

The feature @kisvegabor mentioned should allow you to do this more easily, but in the meantime, the easiest solution I can think of is to just stop calling lv_task_handler when you want to turn off the display. Be sure to reinitialize the display before running lv_task_handler again.

I’ll try this. Thank you!