TinyGo example of wioterminal.
https://github.com/sago35/tinygo-examples/tree/master/wioterminal/goroutines
This example shows the following, received via channel.
TinyGo uses goroutine / channel to simplify the asynchronous process.
- cnt1, which increments every 77ms
- cnt2, which increments every 500ms
tinygo flash -target wioterminal -size short github.com/sago35/tinygo-examples/wioterminal/goroutines
or
tinygo build -o app.uf2 -target wioterminal -size short github.com/sago35/tinygo-examples/wioterminal/goroutines
or if you don't want to build it, use the uf2 file.
$ tinygo version
tinygo version 0.15.0 linux/amd64 (using go version go0.1.0 and LLVM version 10.0.1)
- English
- Japanese
- Wio Terminal で TinyGo プログラミングを始めよう