Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.54 KB

File metadata and controls

72 lines (50 loc) · 2.54 KB
title Adafruit Circuit Playground Express
weight 3

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.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES YES
SPI YES YES
I2C YES YES
ADC YES YES
PWM YES YES

Pins

Pin Hardware pin PWM
A0 PA02
A1 PA05 TCC0
A2 PA06 TCC1
A3 PA07 TCC1
A4 PB03
A5 PB02
A6 PB09
A7 PB08
D13, LED PA17 TCC2, TCC0

Machine Package Docs

Documentation for the machine package for the Circuit Playground Express

Flashing

UF2

The Circuit Playground Express comes with the UF2 bootloader already installed.

CLI Flashing

  • Plug your Circuit Playground Express into your computer's USB port.

  • Flash your TinyGo program to the board using this command:

    tinygo flash -target=circuitplay-express [PATH TO YOUR PROGRAM]
  • The Circuit Playground Express board should restart and then begin running your program.

Troubleshooting

If you have troubles getting your Circuit Playground Express board to receive code, try this:

  • Press the "RESET" button on the board two times to get the Circuit Playground Express board ready to receive code.

  • The Circuit Playground Express board will appear to your computer like a USB drive.

  • Now try running the command:

    tinygo flash -target=circuitplay-express [PATH TO YOUR PROGRAM]

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.

Notes

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/release/examples