Python code will not run only .UF2

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rmerlo
 
Posts: 2
Joined: Mon Feb 15, 2021 1:02 pm

Python code will not run only .UF2

Post by rmerlo »

i have loaded the Circuit Python drivers and have my lib set up correctly in just wondering why I can't save from Mu to my clue? it will only run the code.py output: Hello World!

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

Re: Python code will not run only .UF2

Post by dastels »

You need to replace code.py on the CLUE. CircuitPython looks for code.py and main.py, in that order. The first it finds gets loaded and executed.

Dave

User avatar
rmerlo
 
Posts: 2
Joined: Mon Feb 15, 2021 1:02 pm

Re: Python code will not run only .UF2

Post by rmerlo »

Can you elaborate a little more?? I tried to delete the code.py and replace it with my code. The clue just says code done running. Thank you!

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

Re: Python code will not run only .UF2

Post by dastels »

Can you post your code.py?

Dave

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

Return to “Adafruit CircuitPython”