QUERY · ISSUE
ESP32-C3 wakeup from deepsleep not happening through GPIO1
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 · PULL REQUEST
ports/esp32: Fix ESP32-C3 deep/light sleep wake on GPIOs support.
port-esp32
Fixed the issue that machine wake up on GPIOs when deep/light sleep failed on esp32c3
after compiling firmware with ESP-IDF v4.4 and higher versions.
Tested with this code passed:
>>> import esp32
>>> import machine
>>> esp32.wake_on_pins([machine.Pin(4)], esp32.WAKEUP_ALL_LOW)
>>> machine.deepsleep()
# Let the GPIO4 low.
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x5 (DSLEEP),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xe3c
load:0x403ce000,len:0x6f4
load:0x403d0000,len:0x28d8
entry 0x403ce000
MicroPython 963e599ec-dirty on 2022-07-31; ESP32C3 module with ESP32C3
Type "help()" for more information.
>>>