uPython expects to run BOOT.PY then MAIN.PY. Not sure how you are set up but utilizing these could help. Here's a good illustration https://techexplorations.com/guides/esp ... m-at-boot/...
So, what's the problem? I want the Pico to run from the same power source as the servos, so when I switch on the power, the program runs, then shuts down at the end (just like it does while running from Thonny on the PC) Problem is that when I unplug the program cable to the PC, then use the VSYS to power the Pico, it starts the program, and it runs fine, but it does not stop at the end, it loops. I don't understand why it does not loop while running from Thonny, but it does loop while running from VSYS
I presume, you've already looked at the difference between soft and hard resets https://docs.micropython.org/en/latest/ ... boot.html#.
Statistics: Posted by DS256 — Sun Jan 19, 2025 11:57 pm