Skip to content

Instantly share code, notes, and snippets.

@titimoby
Created July 3, 2020 16:13
Show Gist options
  • Save titimoby/b3eb8666430ebd66c3f2092f2879d1dd to your computer and use it in GitHub Desktop.
Save titimoby/b3eb8666430ebd66c3f2092f2879d1dd to your computer and use it in GitHub Desktop.
package main
import (
"image/color"
"tinygo.org/x/drivers/microbitmatrix"
)
var (
display microbitmatrix.Device
dark = color.RGBA{0, 0, 0, 0}
light = color.RGBA{255, 255, 255, 255}
)
func main() {
display = microbitmatrix.New()
display.Configure(microbitmatrix.Config{
Rotation: 0,
})
display.ClearDisplay()
for line := int16(0); line < 5; line++ {
for row := int16(0); row < 5; row++ {
display.SetPixel(line, row, light)
}
}
display.Display()
}
@titimoby
Copy link
Author

titimoby commented Jul 3, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment