mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-15 12:23:41 +00:00
microbitmatrix: move Size() to verion agnostic part
This commit is contained in:
committed by
Ron Evans
parent
b2fdd3c333
commit
a106fd48ce
@@ -40,3 +40,8 @@ func (d *Device) GetPixel(x int16, y int16) bool {
|
||||
}
|
||||
return d.buffer[matrixRotations[d.rotation][y][x][0]][matrixRotations[d.rotation][y][x][1]]
|
||||
}
|
||||
|
||||
// Size returns the current size of the display.
|
||||
func (d *Device) Size() (w, h int16) {
|
||||
return 5, 5
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user