Skip to main content

Project Based Engineering Instrumentation High Level Coding and Microcontrollers

Section 7.5 Common Mishaps

  1. Your CPX is a USB stick that can hold as many CircuitPython files as 2MB will allow but it can only run or execute one CircuitPython script at a time. It will look for code.py and then main.py and that’s it.
  2. Make sure you’re using Mu in the right Mode (CircuitPython)
  3. Make sure main.py or code.py is on the CIRCUITPY drive and not somewhere on your computer.
  4. Make sure you are editing the right file in Mu. Do you have two versions of main.py or perhaps main.py and code.py?
  5. Do you have boot.py on there when you don’t need it?
  6. Are you editing using Thonny or Spyder? You’re supposed to use Mu.
  7. Are you editing a file on your computer? Make sure you are writing to the CIRCUITPY drive.