← index #12558Issue #8770
Related · high · value 3.373
QUERY · ISSUE

docs:RP2 to mention light and deepsleep

openby davefesopened 2023-10-01updated 2024-09-01
docsport-rp2

Somehow i got the impression that lightsleep and deepsleep were not working on the RP2 devices. Fortunately ghubcoder posted about PR8832, which prompted me to try using lightsleep.

Perhaps the Quick Ref could include this information. It would also be helpful to mention that when using lightsleep one can not debug/develop using rshell or Thonny.

CANDIDATE · ISSUE

RP2: sleep modes do not save power

closedby peterhinchopened 2022-06-17updated 2023-08-02
bugport-rp2

In my testing machine.lightsleep and machine.deepsleep still don't work (with V1.19 firmware).

The Pico was powered from a bench supply with 5V on vsys. There was no connection to the USB port. main.py was as follows:

import time
time.sleep(5)
import machine
machine.lightsleep(10_000)

Current consumption was ~21mA with a tiny glitch visible after 5s but no change otherwise. The same was true with deepsleep (which seems to call lightsleep).

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