Documentation ¶
Overview ¶
Package microbitmatrix implements a driver for the BBC micro:bit's LED matrix.
Schematic: https://github.com/bbcmicrobit/hardware/blob/master/SCH_BBC-Microbit_V1.3B.pdf
Index ¶
- type Config
- type Device
- func (d *Device) ClearDisplay()
- func (d *Device) Configure(cfg Config)
- func (d *Device) DisableAll()
- func (d *Device) Display() error
- func (d *Device) EnableAll()
- func (d *Device) GetPixel(x int16, y int16) bool
- func (d *Device) SetPixel(x int16, y int16, c color.RGBA)
- func (d *Device) SetRotation(rotation uint8)
- func (d *Device) Size() (w, h int16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func (*Device) ClearDisplay ¶
func (d *Device) ClearDisplay()
ClearDisplay erases the internal buffer
func (*Device) DisableAll ¶
func (d *Device) DisableAll()
DisableAll disables all the LEDs without modifying the buffer
func (*Device) EnableAll ¶
func (d *Device) EnableAll()
EnableAll enables all the LEDs without modifying the buffer
func (*Device) SetRotation ¶
SetRotation changes the rotation of the LED matrix
Click to show internal directories.
Click to hide internal directories.