I’ve tried creating the file “main.py” in just about every place I can think of. I’ve tried “/”, “/sd”, “/pyboard”, “/sd”, and “/sd/pyboard”. “/pyboard” is where I’ve read that it is supposed to go but that didn’t work. Since pico boards are used just about everywhere, I would think that getting one to run a program on power up would be easy. So, would anyone tell me the secret? Or point me to documentation that works?
I figured this out. It seems that the uf2 files have boot.py and/or main.py and trying to replace them was not the way to go. After I solved my problem using thonny, (imagine having two bad cables in a row! Finally a good one) I was able to put a version of micro python on the device and my own main.py file. All is good for now.
Hello,
I am facing the same problem as you (“/main.py” doesn’t run upon MicroPython startup).
In the end, I could run the “/main.py” by using zenodante’s original UF2 and downgrading the PicoCalc BIOS to v1.2, but could you tell me how you solved the issue using Thonny?
I would like to use MicroPython (and “main.py”) with the latest PicoCalc BIOS.
Hi,
I didn’t. I went a different way. I developed the program then loaded it to a stand-alone pico. They
aren’t very expensive especially the rp2040. It gave me a chance to learn how to do spi displays.
Robert
Hello,
Oh, that sounds great!
I think I’ll put a Pi Zero 2 W in PicoCalc via an adapter board and switch to CPython.
(Unfortunately, the Zero seems to be out of stock at the moment.)
Thank you.