8000 Add ability to sleep until an alarm · Issue #2795 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
Add ability to sleep until an alarm #2795
Closed
@tannewt

Description

@tannewt

#2685 only adds light sleep during time.sleep. We should add a new mechanic for sleeping until an alarm.

An alarm can be anything a microcontroller supports during sleep such as RTC alarm, pin change interrupt and comparator. The alarms should be in separate modules so that the microcontrollers can support different ones.

Then, one sleep_until_alarm() function can take any number of alarms. It will return the object that woke it up.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0