Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LEDArray ¶
type LEDArray struct { WS wsEngine MaxBrightness int MinBrightness int Brightness int Color colorful.Color FadeDuration int }
LEDArray is a struct for interacting with LEDs
func NewLEDArray ¶
func NewLEDArray(minBrightness int, maxBrightness, ledCount int, fadeDuration int) (*LEDArray, error)
NewLEDArray creates a new array and initializes it
func (*LEDArray) Display ¶
Display changes all of the LEDs one at a time delay: sets the time between each LED coming on brightness: sets the brightness for the entire thing
func (*LEDArray) SetMaxBrightness ¶
SetMaxBrightness fades the LED array to maximum brightness
func (*LEDArray) SetMinBrightness ¶
SetMinBrightness fades the LED array to the minimum brightness
Click to show internal directories.
Click to hide internal directories.