Configuring Mu Editor to Work with PyCubed
Configuring Mu to work with PyCubed
Mu is an editor for embedded projects. Mu will work as a serial terminal to the PyCubed, but we first need to add our board to the list of accepted CircuitPython projects.
On Mac
- Close Mu (if it's open) and navigate to the Mu installation directory (might look something like this:
/Applications/mu-editor.app/Contents/Resources/app/mu/modes
)
- Open the
/adafruit.py
file in a text editor and add(0x04D8, None),
to the thevalid_boards
list (somewhere around line 54) and save. The file should now contain something like:... (0x1B4F, 0x8D22), # SparkFun SAMD21 Mini Breakout (0x1B4F, 0x8D23), # SparkFun SAMD21 Dev Breakout (0x04D8, None), # All PyCubed Boards ]
- After saving the adafruit.py file, open Mu again and it should now talk with the PyCubed board as expected.
On PC
- Follow the same steps as for the mac, except the adafruit.py (it might also be called circuitpython.py) file will be located in a directory similar to...
C:\Users\USERNAME\AppData\Local\Mu\pkgs\mu\modes
(make sure to change 'USERNAME').
Can't find the
circuitpython.py
file?If you're on PC, try looking for the install location:
MU-INSTALL-PATH\pkgs\mu\modes