Digispark

The Digispark is an ATtiny85 based microcontroller development board similar to the Arduino line, only cheaper, smaller, and a bit less powerful.

There is very limited support at the moment for this board.

Note: the AVR backend of LLVM is still experimental so you may encounter bugs.

Interfaces

Interface Hardware Supported TinyGo Support
GPIO YES YES
UART YES Not yet
SPI Requires software Not yet
I2C Requires software Not yet
ADC YES Not yet
PWM ? Not yet

Flashing

Micronucleus

Programs are loaded onto the Digispark using the micronucleus command line utility program. You must install micronucleus before you will be able to flash the Digispark board with your TinyGo code.

  • Build and flash your TinyGo program using tinygo flash -target=digispark
  • Plug your Digispark into your computer’s USB port after you start the flashing process. This is because the bootloader is only active for 5 seconds after power up. Micronucleus will show a message when to insert the device.