why does my code only run when I’m connected to uPyCraft? when I exit the IDE, the blink code runs again.
1 Answers
Hi Junior.
That probably means that you haven’t uploaded the code to your board. You probably had selected the option to run the code, instead of uploading.
Also, note that the files must be named boot.py or main.py. If you upload files with different names, they won’t run.
If you use Thonny IDE to upload code, you can give the files any name you want as long as you upload them as main.py or as boot.py (there’s an option on its tools).
I hope this helps.
Regards,
Sara