DanNixon / NeoNextion

Arduino library for the Nextion displays
https://dannixon.github.io/NeoNextion
GNU General Public License v2.0
48 stars 34 forks source link

Added wake-up event managing #35

Open viktor1970 opened 7 years ago

viktor1970 commented 7 years ago

I added 2 methods to Nextion.h/.cpp:

ActivateWakeEvent(uint8_t page_id, uint8_t component_id); This method permits to execute a callback handler attached to component_id in page_id when the display wakes up after sleep.

DeActivateWakeEvent(); This method stops to execute callback described above (so wake-up after sleep send no event to code).