Page 1 of 1

Deep Sleep Wakeup and Interrupt

Posted: Mon May 21, 2018 6:35 pm
by jvanderstelt
I wanted to use deep sleep and respond to a user pressing a button and use a timer for a heartbeat. My question is:

With deep sleep I can set up the esp32 to wake up from deep sleep with the button press. When the CPU is running I can set up an interrupt to handle the button press.


If the deep sleep wakes up because of a timer, and the user presses the button before the code registers the interrupt handler, what happens?