tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.46k stars 912 forks source link

Full support for Digispark (ATTiny85) #1700

Open erazemk opened 3 years ago

erazemk commented 3 years ago

I'm opening this issue because I want to work on adding full support for the Digispark board. From the website I can see that only the GPIO pins are currently supported, so I want to help add support for everything else.

Since I have relatively little experience with programming microcontrollers I'd appreciate any help with where to start, but I was thinking of checking out the code that Digispark have released for the Arduino IDE and try to port that to TinyGo.

aykevl commented 3 years ago

That would be great! Is there something you would like to work on? (Asking because some APIs might soon change, such as PWM).

erazemk commented 3 years ago

Is there something you would like to work on?

Nothing specific, but I can start with UART.

erazemk commented 3 years ago

The Digispark boards.txt file says the default frequency for the Digispark board is 16.5mhz (which is also confirmed if checked in the Arduino IDE), but TinyGo's board_digispark.go says it's 16mhz. Is there a specific reason for this?