github.com/aykevl/tinygo@v0.5.0/src/examples/microbit-blink/microbit-blink.go (about) 1 // blink program for the BBC micro:bit that uses the entire LED matrix 2 package main 3 4 import ( 5 "machine" 6 "time" 7 ) 8 9 func main() { 10 machine.InitLEDMatrix() 11 12 for { 13 machine.ClearLEDMatrix() 14 time.Sleep(time.Millisecond * 500) 15 16 machine.SetEntireLEDMatrixOn() 17 time.Sleep(time.Millisecond * 500) 18 } 19 }