Documentation ¶
Index ¶
- type Dioder
- func (d *Dioder) GetCurrentColor() color.RGBA
- func (d *Dioder) Release() error
- func (d *Dioder) SetAll(colorSet color.RGBA)
- func (d *Dioder) SetChannelInteger(value uint8, channel int) error
- func (d *Dioder) SetColor(channel int, value float64) error
- func (d *Dioder) SetPins(pinConfiguration Pins)
- func (d *Dioder) TurnOff()
- func (d *Dioder) TurnOn()
- type Pins
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dioder ¶
type Dioder struct { sync.Mutex PinConfiguration Pins ColorConfiguration color.RGBA PiBlaster string }
Dioder the main structure
func (*Dioder) GetCurrentColor ¶
GetCurrentColor returns the current color
func (*Dioder) Release ¶
Release releases all used pins, so that they can be used in other applications
func (*Dioder) SetChannelInteger ¶
SetChannelInteger check if the value is in the correct range and convert it to float64
Click to show internal directories.
Click to hide internal directories.