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 the automatic execution ofmain.pyat startup. - Hardware Method: On the PYCO development board, short the
Savepin before powering on. This will preventmain.pyfrom being executed at startup.
These methods can help you regain control if a program gets stuck or when you want to upload new code to the development board.