Skip to content
Discussion options

You must be logged in to vote

I did this on wemos s2 mini

>>> from machine import Pin, deepsleep
>>> import esp32
>>> wake = Pin(21, Pin.IN, Pin.PULL_DOWN)
>>> esp32.wake_on_ext0(pin = wake, level = esp32.WAKEUP_ANY_HIGH)
>>> deepsleep()

[tio 00:07:29] Disconnected
Touch GPIO21 to 3V3
[tio 00:10:04] Connected

According to espressif there are only two GPIOs dedicated to RTC_GPIO: RTC_GPIO0, RTC_GPIO21.

GPIO1 to GPIO20 are also used for ADC1 and ADC2, and do not seem to work for the wake pin. Therefore, GPIO21 is the only viable GPIO.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GrosMoi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
2 participants