Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4060

MicroPython • Re: Trouble with lightsleep() and deepsleep() in MicroPython

$
0
0
For me, your program only runs once if I have a USB connection open. If I run it as main.py, it keeps looping, as one might expect.

I can't say for sure yet, but it seems that deepsleep() makes the Pico reset? I'm seeing reset behaviour on a Pico W. I have a few things to do today before I can confirm, but it's an odd behaviour

Statistics: Posted by scruss — Sat May 11, 2024 5:59 pm



Viewing all articles
Browse latest Browse all 4060

Trending Articles