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.
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 |
Documentation for the machine package for the Digispark
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.
tinygo flash -target=digispark