targets: add support for GameBoy Advance

Only tested in an emulator (mGBA). Almost nothing is supported, but
drawing to the screen works.
This commit is contained in:
Ayke van Laethem
2019-08-01 15:25:09 +02:00
committed by Ron Evans
parent 9878f7ebc4
commit 9846c062b3
7 changed files with 301 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package main
// Draw a red square on the GameBoy Advance screen.
import (
"image/color"
"machine"
)
var display = machine.Display
func main() {
display.Configure()
for x := int16(30); x < 50; x++ {
for y := int16(80); y < 100; y++ {
display.SetPixel(x, y, color.RGBA{255, 0, 0, 255})
}
}
display.Display()
}