microbitmatrix: move Size() to verion agnostic part

This commit is contained in:
Lucas Bremgartner
2022-10-05 16:08:44 +02:00
committed by Ron Evans
parent b2fdd3c333
commit a106fd48ce
3 changed files with 5 additions and 11 deletions
+5
View File
@@ -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
}