Page 1 of 1

Simple button deep sleep on/off functionality

Posted: Wed Dec 05, 2018 6:42 pm
by Deouss
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

Re: Simple button deep sleep on/off functionality

Posted: Thu Dec 06, 2018 2:09 am
by ESP_Sprite
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.