mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 03:54:01 +00:00
Add blinky example (which doesn't blink a LED, yet)
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "runtime"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
for {
|
||||||
|
// TODO: enable/disable actual LED
|
||||||
|
println("LED on")
|
||||||
|
runtime.Sleep(runtime.Millisecond * 250)
|
||||||
|
println("LED off")
|
||||||
|
runtime.Sleep(runtime.Millisecond * 250)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user