Documentation ¶
Overview ¶
Package ws2812 implements a driver for WS2812 and SK6812 RGB LED strips.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
Device wraps a pin object for an easy driver interface.
func New ¶
deprecated, use NewWS2812 or NewSK6812 depending on which device you want. calls NewWS2812() to avoid breaking everyone's existing code.
func NewSK6812 ¶
New returns a new SK6812(RGBA) driver. It does not touch the pin object: you have to configure it as an output pin before calling New.
func NewWS2812 ¶
New returns a new WS2812(RGB) driver. It does not touch the pin object: you have to configure it as an output pin before calling New.
Click to show internal directories.
Click to hide internal directories.