Deep Sleep Wakeup and Interrupt

jvanderstelt
Posts: 1
Joined: Mon May 21, 2018 6:13 pm

Deep Sleep Wakeup and Interrupt

Postby jvanderstelt » Mon May 21, 2018 6:35 pm

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?

Who is online

Users browsing this forum: Baidu [Spider] and 120 guests