You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Hi @dpgeorge,
Thanx for implementing lightsleep() support in rp2. Would you agree to provide additional hints to enable wake up from dormant mode using GPIO trigger ? I am referring to your comment:
"Calling lightsleep without a specified period, in which case it uses xosc dormant mode. There's currently no way to wake it up from this state, unless you write to raw registers to enable a GPIO wake up source.".
I have a good experience of register manipulation (did that for PIO and DMA in another application), but the dormant mode manipulation seems much more complex to me...
Thanx in advance,
Xavier.
Activity
dpgeorge commentedon Jun 17, 2022
Yes, power saving sleep is not yet implemented on rp2. This is a good starting point to getting it working: https://ghubcoder.github.io/posts/deep-sleeping-the-pico-micropython/
dpgeorge commentedon Jun 30, 2022
Low power implemented in b004e7e
xavier-draye commentedon Aug 2, 2023
Hi @dpgeorge,
Thanx for implementing lightsleep() support in rp2. Would you agree to provide additional hints to enable wake up from dormant mode using GPIO trigger ? I am referring to your comment:
"Calling lightsleep without a specified period, in which case it uses xosc dormant mode. There's currently no way to wake it up from this state, unless you write to raw registers to enable a GPIO wake up source.".
I have a good experience of register manipulation (did that for PIO and DMA in another application), but the dormant mode manipulation seems much more complex to me...
Thanx in advance,
Xavier.
rp2/modmachine: Implement lightsleep() with optional sleep period.
rp2/modmachine: Implement lightsleep() with optional sleep period.