The Adafruit Circuit Playground Express is small ARM development board based on the Atmel SAMD21 family of processors. It has several built-in devices such as WS2812 “NeoPixel” LEDs, buttons, an accelerometer, and some other sensors.
|Interface||Hardware Supported||TinyGo Support|
The Circuit Playground Express comes with the UF2 bootloader already installed.
/media/[USERNAME]/[NAME OF THE BOARD].
.uf2format using the
tinygo build -o=/media/[USERNAME]/[NAME OF THE BOARD]/flash.uf2 -target=circuitplay-express [PATH TO YOUR PROGRAM]command.
Once you have updated your Circuit Playground Express board the first time, after that you should be able to flash it entirely from the command line using the
stty command like this:
stty -F /dev/ttyACM0 1200 hupcl; tinygo build -o=/media/[USERNAME]/[NAME OF THE BOARD]/flash.uf2 -target=circuitplay-express [PATH TO YOUR PROGRAM]
/dev/ttyACM0 in the command above with the correct USB port name for your board.
The Circuit Playground Express board should restart and then begin running your program.
You can use the USB port to the Circuit Playground Express as a serial port.
UART0 refers to this connection.
For an example that uses the built-in Neopixel LEDs, take a look at the TinyGo drivers repository located at https://github.com/tinygo-org/drivers/tree/master/examples