Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canvas ¶
type Canvas struct {
// contains filtered or unexported fields
}
Canvas is an array of LEDs, powered by colorful colors.
func (*Canvas) PixelIndex ¶
type Strip ¶
type Strip struct {
// contains filtered or unexported fields
}
Strip represents a strip of LEDs.
func (*Strip) BitBlit ¶
BitBlit transfers image data from an object implementing the Image interface to a remote LED server.
func (*Strip) Close ¶
func (s *Strip) Close()
Close turns all LEDs black and shuts down the rendering function.
func (*Strip) Index ¶
Index returns the physical position of a single LED.
The LEDs are configured in a zig-zag pattern, as drawn below. The LED server only knows a single strand, so we must perform the positional conversion here.
START......................... | .............................. | ...........................END
Click to show internal directories.
Click to hide internal directories.