Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller represents the top-level entrypoint to an Adalight based LED Strip
func New ¶
func New(port string, baud int, ledCount int) *Controller
New creates and returns a new Strip to use
func (*Controller) Strip ¶
func (c *Controller) Strip() *Strip
Strip returns the LED Strip model owned by this controller
type Effect ¶
Effect is the interface for generic lighting effects.
Init performs Effect initialization, passing the underlying Strip object to the Effect, as well as the approximate number of frames per second the Effect will be run at. The Effect should return its name for logging/debugging purposes
Frame commands the Effect to update the Strip before it is written out to the hardware device. A frame count is provided.
type Strip ¶
type Strip struct {
// contains filtered or unexported fields
}
Strip represents an LED strip, and contains methods for interacting with the LEDs on the strip