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

MicroPython • Re: pico don't start after power-up

$
0
0
Perhaps add a 'print(data)' after the 'data = uart.read()' so you can see that it is receiving and see what it is receiving. If what is received doesn't match with the subsequent 'if' comparisons then it won't appear to be doing anything.

The code in your two Thonny tabs, certainly the second - "manual.py", needs to be saved on the Pico file system in order for the first - "main.py" to call it. If the latest in the tab isn't as saved to the Pico then what gets executed won't necessarily be what you see in its tab

Issues with saving programs to the right place, keeping the host and local file system updated and the same, ending up with different versions on each, is why I gave up with Thonny for multi-module development.

Statistics: Posted by hippy — Fri Mar 01, 2024 6:30 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles