Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LEDs ¶
type LEDs []RGBColor
LEDs describes a strip of LEDs. It is a preallocated slice of RGBColor.
func (LEDs) AsPixels ¶
AsPixels returns the LED strip as a slice of uint8 values. Each LED is represented by three values, one for each color channel.
func (LEDs) Draw ¶
Draw draws the given LEDs into the strip at the given index. It stops when either l or other is exhausted and returns the number of LEDs written.
Click to show internal directories.
Click to hide internal directories.