Skip to content

Set and preserve pin state during sleep #6876

@dhalbert

Description

@dhalbert

When entering deep sleep, the user may want to set certain pins to be in a particular state. For example the I2C-power pin on a Feather ESP32-S2 might beenabled to, say, allow an external sensor to run during deep sleep, or disabled to minimize sleep power.

Discussion with @ladyada yielded the idea of passing a list of DigitalInOut's to alarm.exit_and_deep_sleep(). The state of those pins would be preserved.

Subject to refinement as implementation progresses.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions