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

InterfaceHardware SupportedTinyGo Support
GPIOYESYES
UARTYESNot yet
SPIRequires softwareNot yet
I2CRequires softwareNot yet
ADCYESNot yet
PWM?Not yet

Machine Package Docs

Documentation for the machine package for the Digispark

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.