Does anybody have another idea how to automatically dim the display on inactivity?
In my application, I would like to dim the display when tere is no activity for 1 minute.
My simplest idea: on “whatever” touch event: trigger a 1 minute timer and set light to MAX.
The timer would set the backlight to DIMMED.
Nice. Except that there is no way to detect “whatever” event.
Thence: in every event (that is in every key, every hotspot, every slider,…) I would call the set-timer instructions. I found a way to simulate a subroutine (take a hotspot, hide it behind some other control, attach an event to the hotspot and call “click hotspot” whenever needed). Still, it is a bunch of work to write the call in every control…
So, if anybody has a better idea…
(PS: I absolutely want it to be autonomously done by the Nextion, not by a “dim” instruction sent by the MCU host)