Can you run a python script without a USB connection (just power)?

  • Hi,
    To run a python script on my WiPy whenever it is powered on, what do I need to do exactly? Sync the directory with a and file? I want to use it for a wearable application, so that whenever it receives power (from the Vin pin), it automatically runs a script that I have written, without any USB connection. How do i do this?

    Thank you!

  • @panos29 Both and are executed at power on and reset, and give you the starting point. So you can put your code into, or in a different file, which you import from (which is what I prefer), or, or, or....

Pycom on Twitter