How to Prevent or Stop main.py Execution
If your main.py script enters an infinite loop, or you wish to prevent it from executing at startup, you have two options:
- Software Method: Use the command
Sys_disableMainto disable automatic execution ofmain.pyat startup. - Hardware Method: on the PYCO development board, short the
Savepin before powering on. This will preventmain.pyfrom executing at startup.
These methods help you regain control when the program is stuck or when you want to upload new code to the board.