Adafruit Trinket M0

The Adafruit Trinket M0 is a tiny ARM development board based on the Atmel ATSAMD21E18 family of SoC.

Interfaces

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

Flashing

UF2

The Trinket M0 comes with the UF2 bootloader already installed.

  • Plug your Trinket M0 into your computer’s USB port.
  • Press the “RESET” button on the board two times to get the Trinket M0 board ready to receive code.
  • The Trinket M0 board will appear to your computer like a USB drive. Determine the path to the board, for example on Linux it will be something like /media/[USERNAME]/[NAME OF THE BOARD].
  • Build your TinyGo program to the board in .uf2 format using the tinygo build -o=/media/[USERNAME]/[NAME OF THE BOARD]/flash.uf2 -target=trinket-m0 [PATH TO YOUR PROGRAM] command.
  • The Trinket M0 board should restart and then begin running your program.