Unofficial Nextion/TJC User Forum

Dimming the display automatically

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)


This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).