Adafruit Circiuit Playground Express¶
Basics¶
- Circuit Playground Express
- Adafruit Makecode IDE
- Makecode Primer
- Makecode and Sensors
- Makecode and Neopixels
- Infrared Support
- CircuitPython Setup
- CircuitPython Examples
VS Code Plugin¶
- Adafruit and Microsoft Garage interns team up to create Device Simulator Express
- Device Simulator Express, a Microsoft Garage project
Projects¶
UF2 Bootloader Details¶
To install a new bootloader, double click reset button and drag and drop the appropriate .uf2 bootloader file.
Makecode¶
Setup¶
Download latest MakeCode bootloader from here After flashing the MakeCode bootloader, the Circuit Playground will appear as a drive named CPLAYBOOT
CircuitPlayground¶
Setup¶
Download latest CircuitPython bootloader from here After flashing the CircuitPython bootloader, the Circuit Playground will appear as a drive named CIRCUITPY.
Download the latest CircuitPython 2.0.0 libraries from here.
Expand the .zip file and copy the lib
folder to the CIRCUITPY drive.
To test the CircuitPython bootloader, create a file named code.py
on
the Circuit Playground drive with these statements:
import digitalio
import board
import time
led = digitalio.DigitalInOut(board.D13)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = not led.value
time.sleep(0.5)
REPL¶
To connect to the REPL, use:
screen /dev/tty.usbmodem1451 115200
Note: /dev/tty.usbmodem1451 might not be correct. To determine the correct
tty name, use: ls /dev/*usbmodem*
.
You might have to hit Ctrl-C to get the >>>
prompt.
Type help()
to get version information.
To exit the REPL type Ctrl-a k y and then type reset
to fix the terminal.
Ampy Utility¶
The ampy utility
simplifies running and debugging python code on the Circuit Playground. One big advantage is it
allows you to see the stdout from python print
statements. In order to use it, remove
the code.py
file from the Circuit Playground.
Python Packages¶
The CircuitPython Neopixel driver is here.
Code examples are here.