Created
July 3, 2020 16:13
-
-
Save titimoby/b3eb8666430ebd66c3f2092f2879d1dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solution provided in https://gist.github.com/conejoninja/a4acf6f637f8022b91c821f4ef0e7044