No, main.py is run by the camera after power up. When the camera is powered up it checks if the main.py file exists, If so the camera runs it, if not the camera just waits for commands or for the IDE.
When the IDE is connected, you can write a script and click execute to run this script. The IDE uploads the script to the cam and tells it to run the script . While the script is running, the IDE keeps reading and displaying the frame buffer .
→ Note you can Not see the frame buffer when the camera is running main.py, because when the IDE is connected it interrupts the running code.
So basically the work flow is:
- Write a script in the IDE.
- Click execute/run button.
- The script runs and you see the frame buffer updated.
- When you’re satisfied with your script, rename the script to main.py and overwrite the default main.py.
- Now on the next power up, the cam will run your code instead of the default.