What I've done now, to keep me going, is connected a push button to the Run pin of the Pico. When I run my main.py, close the IDE and the open it again, I get:
Code: Select all
Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- use Stop/Restart to interrupt more and enter REPL.
Code: Select all
Connection lost (device reports readiness to read but returned no data (device disconnected or multiple access on port?))
Use Stop/Restart to reconnect.
As a side question, does anyone know what exactly does Stop/Restart backend in Thonny does?