How can I start my micro python program at reset

  • Hello,
    I wont to write a simple python code thats at startup (reset) my screen cleared and print a message.
    The program has only 3 lines of code, but in which file I should put in these lines so that it starts automatically.
    I use VS code to program it.
    Thanks for any help.

  • Code that you wish to run on boot should either be in or and there should be a reference in the to tell it which python script to load

  • I placed my stuff into the /apps folder, e.g. /apps/ On startup you can then press the button in the middle to enter the app list, choose your app demo and from there on it will be started automatically when you reboot.