I have been using a Raspberry Pi Pico for a project and everything works, but I want my program to remain on the Pico, even after it's been unplugged and plugged back in. At the moment, once the board loses power the program is wiped and I need to re-upload the code.
I am using the C++ SDK and using VSCode as my editor. I've read that for Python code to run on boot, you have to call the program main.py
, but calling my program main.cpp
doesnt seem to have the same affect.