Documentation ¶
Index ¶
- Variables
- type EffectsController
- func (e *EffectsController) ChangeEffect()
- func (e *EffectsController) CycleColors(stopCh *chan struct{})
- func (e *EffectsController) GestureSense(stopCh *chan struct{})
- func (e *EffectsController) Glow(stopCh *chan struct{})
- func (e *EffectsController) Init(n *NeoPixelController)
- func (e *EffectsController) KnightRider(stopCh *chan struct{})
- func (e *EffectsController) ProximitySense(stopCh *chan struct{})
- func (e *EffectsController) Start()
- func (e *EffectsController) Static(stopCh *chan struct{})
- func (e *EffectsController) StopEffects()
- type NeoPixel
- type NeoPixelController
- func (n *NeoPixelController) ChangeColor()
- func (n *NeoPixelController) Clear()
- func (n *NeoPixelController) ClearPixels()
- func (n *NeoPixelController) Fill(color RGBW)
- func (n *NeoPixelController) Init(pixels int)
- func (n *NeoPixelController) SetPixel(index int, color RGBW)
- func (n *NeoPixelController) Show()
- type RGBW
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EffectsController ¶
type EffectsController struct { Effects []func(*chan struct{}) EffectIndex int ColorCh chan struct{} APDS9960 *apds9960.Device EffectRunning bool // contains filtered or unexported fields }
func (*EffectsController) ChangeEffect ¶
func (e *EffectsController) ChangeEffect()
func (*EffectsController) CycleColors ¶
func (e *EffectsController) CycleColors(stopCh *chan struct{})
func (*EffectsController) GestureSense ¶
func (e *EffectsController) GestureSense(stopCh *chan struct{})
func (*EffectsController) Glow ¶
func (e *EffectsController) Glow(stopCh *chan struct{})
func (*EffectsController) Init ¶
func (e *EffectsController) Init(n *NeoPixelController)
func (*EffectsController) KnightRider ¶
func (e *EffectsController) KnightRider(stopCh *chan struct{})
func (*EffectsController) ProximitySense ¶
func (e *EffectsController) ProximitySense(stopCh *chan struct{})
func (*EffectsController) Start ¶
func (e *EffectsController) Start()
func (*EffectsController) Static ¶
func (e *EffectsController) Static(stopCh *chan struct{})
func (*EffectsController) StopEffects ¶
func (e *EffectsController) StopEffects()
type NeoPixelController ¶
type NeoPixelController struct { Pin machine.Pin Controller ws2812.Device NeoPixels []*NeoPixel Enabled bool }
func (*NeoPixelController) ChangeColor ¶
func (n *NeoPixelController) ChangeColor()
func (*NeoPixelController) Clear ¶
func (n *NeoPixelController) Clear()
func (*NeoPixelController) ClearPixels ¶
func (n *NeoPixelController) ClearPixels()
func (*NeoPixelController) Fill ¶
func (n *NeoPixelController) Fill(color RGBW)
func (*NeoPixelController) Init ¶
func (n *NeoPixelController) Init(pixels int)
func (*NeoPixelController) SetPixel ¶
func (n *NeoPixelController) SetPixel(index int, color RGBW)
Func ShowPixel sets a Single Pixel Color
func (*NeoPixelController) Show ¶
func (n *NeoPixelController) Show()
Click to show internal directories.
Click to hide internal directories.