Using the same button for deep sleep and waking from deep sleep
Posted: Wed Jun 05, 2019 3:49 am
I am using a button to put the ESP32 into deep sleep and have also configured that button to wake the ESP32 from deep sleep.
The problem is that when powered up, unless the button press is extremely quick, the ESP32 will go into deep sleep and then immediately wake up.
What options do I have to ensure that
isn't triggered by the same button press that put the ESP32 into deep sleep?
The problem is that when powered up, unless the button press is extremely quick, the ESP32 will go into deep sleep and then immediately wake up.
What options do I have to ensure that
Code: Select all
esp_sleep_enable_ext0_wakeup(POWER_BT, LOW); // Allow Power button to wake us up from deep sleep.
isn't triggered by the same button press that put the ESP32 into deep sleep?