mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 18:48:41 +00:00
Compare commits
1 Commits
v0.27.0
...
interfaces
| Author | SHA1 | Date | |
|---|---|---|---|
| 09abe484ba |
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user