Where to put main code?

I need to put main code in my cam
In Flash there is main.py
when ever i tried to paste code in it ,it got reset back to previous code

so can you please tell me where should I place my code.


Hi, please use the IDE, under tools, and click “save script to OpenMV Cam”, afterwards, click the “reset openmv cam” button also under tools. Your openmv cam should then start running the script.

Thanks a lot…