← index #12102PR #7122
Related · high · value 2.846
QUERY · ISSUE

Deep sleep support for RP2 port

openby aallanopened 2023-07-27updated 2025-09-22
enhancementport-rp2

This entry in the documentation suggests that there is support for deep sleep in the current MicroPython release. However, as far as I can see there isn't? At least, there doesn't seem to be a machine.DEEPSLEEP_RESET present in the current build.

Looking at https://ghubcoder.github.io/posts/deep-sleeping-the-pico-micropython/ it looks like adding this capability to the rp2 port is fairly easy, and there is an out of date — and looks to be unmaintained — fork at https://github.com/ghubcoder/micropython-pico-deepsleep.

Any plans to add support for DEEP SLEEP to the RP2 machine class?

CANDIDATE · PULL REQUEST

Implement alarm and deep sleep for RP2040 AKA Pico

closedby mperinoopened 2021-04-15updated 2021-04-15

As per #4409 requesting that alarm and deep sleep move up on the priority list for RP2040 CircuitPython.
Deep sleep particularly:
https://circuitpython.readthedocs.io/en/latest/shared-bindings/alarm/index.html
Is currently only implemented for the ESP32-S2, but we need it for a project on Pi Pico.
Currently in CP 6.2, on Pico there is no alarm library.

We would like to use it as a part of our entry for the FIRST Innovation Challenge, and deep sleep should yield significant benefits for our use case. Sample, Upload, Sleep a long time, repeat..

Happy to alpha, or beta test.
Thank you from Team 4160:
https://www.team4160.com/

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied