mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 06:57:48 +00:00
15 lines
405 B
Go
15 lines
405 B
Go
package drivers
|
|
|
|
import (
|
|
"image/color"
|
|
)
|
|
|
|
// LEDArray is an array of RGB LEDs. It may have any shape, but in general it is
|
|
// a strip of daisy-chained LEDs.
|
|
type LEDArray interface {
|
|
// WriteColors updates all LEDs in the LED strip to the given RGB color. It
|
|
// depends on the protocol what happens when you do not provide a
|
|
// correctly-sized slice of colors.
|
|
WriteColors(buf []color.RGBA) error
|
|
}
|