aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_digispark.go
AgeCommit message (Collapse)Author
2022-12-19build: drop deprecated build tagsYurii Soldak
2022-02-04all: update build constraints to Go 1.17Ayke van Laethem
Do it all at once in preparation for Go 1.18 support. To make this commit, I've simply modified the `fmt-check` Makefile target to rewrite files instead of listing the differences. So this is a fully mechanical change, it should not have introduced any errors.
2020-03-25avr: clean up ATtiny definitionsAyke van Laethem
Add definitions for constants like PB0.
2020-01-11machine/digispark: add clock speed and pin mappingsRon Evans
2019-06-28machine: add generic board support on non-baremetal hardwareAyke van Laethem
Instead of trying to modify periperhals directly, external functions are called. For example, __tinygo_gpio_set sets a GPIO pin to a specified value (high or low). It is expected that binaries made this way will be linked with some extra libraries that implement support for these functions. One particularly interesting case is this experimental board simulator: https://github.com/aykevl/tinygo-play Compiling code to WebAssembly with the correct build tag for a board will enable this board to be simulated in the browser. Atmel/Microchip based SAMD boards are not currently supported, because their I2C/SPI support is somewhat uncommon and harder to support in the machine API. They may require a modification to the machine API for proper support.
2019-05-26machine: refactor pins to be of Pin typeAyke van Laethem
2018-11-20avr: add support for the digisparkAyke van Laethem
Blinking the on-board LED works. Nothing else has been tested yet.