← index #6981Issue #4142
Related · high · value 1.350
QUERY · ISSUE

ESP32: Expose ext1 wakeup status

openby daisylbopened 2021-03-02updated 2025-10-03
port-esp32

Hello! I'm trying to build a battery-powered button panel that has four buttons on it, and comes out of sleep and does a bunch of network IO when one button is pressed.

At the moment I'm using esp32.wake_on_ext1 to get the machine to wake when one of the buttons is pressed, and then I'm just reading from the pins the buttons are wired to. Unfortunately a brief press on the button seems to take less time than MicroPython does to wake, so the pin is no longer high at that point.

The ESP-IDF has a function esp_sleep_get_ext1_wakeup_status which returns a bit mask of all the pins that triggered an EXT1 wake, which it looks like should do the trick—can this be added to the MicroPython esp32 module?

CANDIDATE · ISSUE

ESP32: RTC no function 'wake_on_ext0'

openby linuskohleropened 2018-09-15updated 2019-05-21
port-esp32

Hello,
this question may already be answered, but I can't find any working version for me.

I'm trying to use an interrupt-Pin on my newly flashed ESP32.
I tried with multiple snippets I found online (e.g. this or this), but it always breaks down to the point that RTC doesn't have the attribute now() or wake_on_ext0.

AttributeError: 'RTC' object has no attribute 'wake_on_ext0'

Is there anything I'm doing wrong? I'm using a flashed ESP32 wroom and the latest binaries from here (esp32-20180915-v1.9.4-528-gabb536da4.bin).

Thanks for your help!

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied