-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RP2040: add Alarm module #4816
RP2040: add Alarm module #4816
Conversation
Adds light and deep sleep functionality for the TimeAlarm and PinAlarm alarm categories. Adds board deinit for all platforms.
One complication of this implementation was the RP2040's inability to wake off the RTC when in "dormant" mode, unless the RTC is supplied with an external clock input from a GPIO pin while sleeping. There are a couple options for how to approach this, and I'm not sure which is the best fit for Circuitpython:
|
On other boards the opposite is true (though not 5mA, but 1.5mA, say): PinAlarms are more expensive in terms of power than TimeAlarms. So I'm not sure this is terrible, though it is disappointing. |
Hi - some build issues due to |
@dhalbert think you could take another look at this this week? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I missed this was ready for re-review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience. Let's go with this for now, and we can think about improvements later.
This PR adds the Alarm module for the raspberrypi port, with the TimeAlarm and PinAlarm alarm types (the RP2040 does not have a touch module). Tested on the Raspberry Pi Pico.