The season of long winter nights is coming, so I got myself an AdaFruit Circuit Playground Express for some home decoration.
My plan is to program it using CircuitPython, a MicroPython derivate that is adapted to the AdaFruit hardware.
CircuitPython must be installed to the Circuit Playground first, which turned out to be difficult with Fedora Linux in a first attempt. The troublemaker was the ModemManager, which is still installed by default. It detects the serial port of the AdaFruit device, and then hogs this resource because, well, it might be a modem. 🙄
My older readers certainly still remember what a modem is. 😉 But to make a long story short, almost no one is using a serial modem nowadays, so the ModemManager does not serve any useful purpose. However, it cannot be removed, because other important packages still depend on it. The only way is to stop it permanently:
sudo systemctl stop ModemManager sudo systemctl disable ModemManager
After that, I could finally install CircuitPython to the Circuit Playground. First I downloaded the matching uf2 file. After that, I connected the Playground via USB, and changed to the bootloader mode by pressing its reset button twice (like a double-click).
The Circuit Playground is now mounted as an USB drive called
CPLAYBOOT. All there is to do now is to copy the uf2 file to this drive. The Playground automatically reboots after that. If everything went fine, it will come back as an USB drive called
The next step is to install the AdaFruit libraries to that drive. I downloaded the latest library bundle that matched my CircuitPython version, and just unpacked it to the
That's it... All there is to do now, is to open the
code.py file in an editor and change the code. It is immediately executed when it is saved.
For a start, there are a lot of code examples for the Circuit Playground Express on the AdaFruit web site.