Rather new to the whole Pico thing (despite having been coding for 30+ years)
I have a Pico W plus a Pimoroni Pico Display.
Using Thonny, I have loaded and run the bouncing balls micropython demo from the git repo.
This all works fine.
But I now want to make it “autoboot” that demo when I power on the unit.
I have read you need to rename the code “main.py” and copy it to the Pico flash drive.
I’ve tried this but the screen remains blank when the unit powers on.
So can anyone explain:
(a) how to install an auto-starting .py program?
(b) once installed, how to “un-install” it so I can use Thonny again?
How are you coping it to the Pico? Normally, you would just save it as main.py from Thonny, to the Pico.
It sounds like you may be putting your Pico in Boot mode and dragging and dropping your py file to it. That’s not how you do it. That’s how you get your uf2 file flashed to it, but after that.
In Thonny click “File”, “save as”. You should then get a popup Box with an option to save to PC or the Pico. Select Pico, name your file main.py, and save