Documentation
¶
Index ¶
- Constants
- Variables
- type LEDStrip
- type LPD8806
- type PixArray
- func (pa *PixArray) GetPixel(i int) Pixel
- func (pa *PixArray) GetPixels() []Pixel
- func (pa *PixArray) MaxPerChannel() int
- func (pa *PixArray) NumColors() int
- func (pa *PixArray) NumPixels() int
- func (pa *PixArray) RPi() *rpi.RPi
- func (pa *PixArray) SetAll(p Pixel)
- func (pa *PixArray) SetAlternate(num int, div int, p1 Pixel, p2 Pixel)
- func (pa *PixArray) SetOne(i int, p Pixel)
- func (pa *PixArray) SetPerChanAlternate(num Pixel, div int, p1 Pixel, p2 Pixel)
- func (pa *PixArray) Write() error
- type Pixel
- type WS281x
Constants ¶
View Source
const ( GRB = iota BRG BGR GBR RGB RBG )
View Source
const ( SYMBOL_HIGH = 0x6 // 1 1 0 SYMBOL_LOW = 0x4 // 1 0 0 )
View Source
const (
LED_RESET_US = 55
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type LEDStrip ¶
type LEDStrip interface { RPi() *rpi.RPi MaxPerChannel() int GetPixel(i int) Pixel SetPixel(i int, p Pixel) Write() error }
func NewLPD8806 ¶
type LPD8806 ¶
type LPD8806 struct {
// contains filtered or unexported fields
}
func (*LPD8806) MaxPerChannel ¶
type PixArray ¶
type PixArray struct {
// contains filtered or unexported fields
}
func (*PixArray) MaxPerChannel ¶
func (*PixArray) SetAlternate ¶
func (*PixArray) SetPerChanAlternate ¶
type WS281x ¶
type WS281x struct {
// contains filtered or unexported fields
}
func (*WS281x) MaxPerChannel ¶
Click to show internal directories.
Click to hide internal directories.