Thanks to visit codestin.com
Credit goes to github.com

Skip to content

S2/S3 RTC_VALID_EXT_PINS definitions #8489

Closed
@stephanelsmith

Description

@stephanelsmith

Coming around back to this one #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...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions