• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Code only runs while connected to uPyCraft IDE

Q&A Forum › Code only runs while connected to uPyCraft IDE
0 Vote Up Vote Down
Junior Godoi asked 3 years ago

why does my code only run when I’m connected to uPyCraft? when I exit the IDE, the blink code runs again.

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Firebase Web App with ESP32 and ESP8266 (version 1.2) April 25, 2022
  • [eBook Updated] MicroPython Programming with ESP32 and ESP8266 (version 1.3) February 7, 2022

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2022 · RandomNerdTutorials.com · All Rights Reserved