Let's say we want to put ESP32 to sleep and after some time wake it up with simple button press.
Button press - sleep - one more press - wake up
What do you think would be the easiest and elegant way to do it?
Thanks
Simple button deep sleep on/off functionality
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: Simple button deep sleep on/off functionality
Write your program to watch the button GPIO. If it detects it's pressed, go into deep sleep and configure that GPIO as a wakeup source.
Who is online
Users browsing this forum: aygh4266, Baidu [Spider], Google [Bot] and 119 guests