Skip to main content
Contents
Dark Mode Prev Up Next
\(\newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Section 7.5 Common Mishaps
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.
Make sure youβre using Mu in the right Mode (CircuitPython)
Make sure main.py or code.py is on the CIRCUITPY drive and not somewhere on your computer.
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?
Do you have boot.py on there when you donβt need it?
Are you editing using Thonny or Spyder? Youβre supposed to use Mu.
Are you editing a file on your computer? Make sure you are writing to the CIRCUITPY drive.