Hello everyone,
in one of my project i have to implement button functionalities. using single button, I have to put device into OFF mode and also wake up from OFF mode. i need to perform this two operations with button long press for 5 seconds.
that means, If I press the button for 5 sec then device should turn OFF and same way if I press the button for 5 seconds the device should turn ON.
I have implemented logic for device turn OFF and its working fine as if press button for 5 seconds the device is turning OFF.
but I am not sure how to implement button long press to turn ON the Device.
kindly any one help me to resolve this issue.
Thank you
Srinivasa M