Running code.py automatically

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
PalB09
 
Posts: 18
Joined: Thu Sep 05, 2019 10:57 am

Running code.py automatically

Post by PalB09 »

Hi Team,

I am using Circuit Playground Bluefruit. I am coding it with CircuitPython and using the Mu editor to run my code.py. However, now I need to run code.py automatically every time the Bluefruit is powered up. I cannot use the editor. How do I do that?
Any help will be greatly appreciated.

Thank you,
Pallabi

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Running code.py automatically

Post by dastels »

code.py stored on the CIRCUITPY drive will automatically load and execute when the board is powered up or reset. That's just how CircuitPython works. All Mu does is let you edit the code and save it in that file.

Dave

User avatar
PalB09
 
Posts: 18
Joined: Thu Sep 05, 2019 10:57 am

Re: Running code.py automatically

Post by PalB09 »

Oh! Cool! Thank you! :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”