The Adafruit Trinket M0 is a tiny ARM development board based on the Atmel ATSAMD21E18 family of SoC.
Interface | Hardware Supported | TinyGo Support |
---|---|---|
GPIO | YES | YES |
UART | YES | YES |
SPI | YES | YES |
I2C | YES | YES |
ADC | YES | YES |
PWM | YES | YES |
Documentation for the machine package for the Adafruit Trinket M0
The Trinket M0 comes with the UF2 bootloader already installed.
Flash your TinyGo program to the board using this command:
tinygo flash -target=trinket-m0 [PATH TO YOUR PROGRAM]
The Trinket M0 board should restart and then begin running your program.
Flash your TinyGo program to the board using this command:
tinygo flash -target=trinket-m0 [PATH TO YOUR PROGRAM]
The Trinket M0 board should restart and then begin running your program.
Flash your TinyGo program to the board using this command:
tinygo flash -target=trinket-m0 [PATH TO YOUR PROGRAM]
The Trinket M0 board should restart and then begin running your program.
If you have troubles getting your Trinket M0 board to receive code, try this:
Now try running the tinygo flash
command as above:
tinygo flash -target=Trinket-m0 [PATH TO YOUR PROGRAM]
Once you have updated your Trinket M0 board the first time, after that you should be able to flash it entirely from the command line.
You can use the USB port to the Trinket M0 as a serial port. UART0
refers to this connection.