← index #4142Issue #7607
Related · high · value 0.840
QUERY · 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!

CANDIDATE · ISSUE

ESP32 RTC_VALID_EXT_PINS not valid for ESP32 S2/S3

closedby stephanelsmithopened 2021-08-02updated 2022-04-14
port-esp32

modesp32.h defines the valid RTC_VALID_EXT_PINS suitable for Pico D4. S2 has a different pinout.

For example, pin 10 is not valid on Pico D4 (Flash memory), but is a valid RTC pin on S2. If I'm not mistaken, I believe this should work on S2, but getting 'invalid pin' error.

o = Pin(10, Pin.IN, pull=Pin.PULL_UP)
esp32.wake_on_ext0(pin = o, level = esp32.WAKEUP_ALL_LOW) #single pin

Thank you!

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