← index #11787Issue #8489
Related · high · value 4.754
QUERY · ISSUE

ESP32-C3 wakeup from deepsleep not happening through GPIO1

openby pbdaranopened 2023-06-15updated 2024-09-02
bugport-esp32

GPIO1 of ESP32-C3 is a RTC GPIO and should be able to wakeup the device from deepsleep mode.
But it seems, in micropython, the GPIO1 is not defined as wakeup.
I want to wake my device using GPIO1. Please help with this.

CANDIDATE · ISSUE

S2/S3 RTC_VALID_EXT_PINS definitions

closedby stephanelsmithopened 2022-04-04updated 2022-04-14
port-esp32

Coming around back to this one https://github.com/micropython/micropython/issues/7607

On S2/S3 variants, GPIO0 through GPIO21 are valid RTC pins. In this example, asserting pin 5 should wake.


import esp32
import machine
from machine import Pin
o = Pin(5, Pin.IN, pull=Pin.PULL_DOWN)
esp32.wake_on_ext1(pins = (o,), level = esp32.WAKEUP_ANY_HIGH) #multi-pin

machine.deepsleep(10000)

I have a local fix, working on a pull request...

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