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

General • Re: Need idea for a discreet usb connection on face plate to update program on Pico

$
0
0
I have actually managed quite successfully to get as far as sending a file over UART and storing it as "temp.py" on the Pico. What I have failed to achieve is getting that to run on reset. I have tried

Code:

os.rename("temp.py","main.py")
. Whatever I try os.rename seems to create a blank file, even though temp.py contains all my code. I have tried it in a boot.py too. This is the biggest struggle I have at the moment is swapping out the old main.py for new.

Statistics: Posted by jimseng — Sun Jun 01, 2025 5:04 am



Viewing all articles
Browse latest Browse all 8082

Trending Articles