Documentation ¶
Index ¶
- Constants
- func DiscoMode() []byte
- func DiscoModeFaster() []byte
- func DiscoModeSlower() []byte
- func Send(addr string, values ...[]byte) error
- func SetBrightness(brightness float64) []byte
- func SetColorRGB(r, g, b int) []byte
- func SetColorRGBFloat(r, g, b float64) []byte
- func SetColorRGBHex(rgb string) []byte
- func SetNight(zone int) []byte
- func SetWhite(zone int) []byte
- func TurnOff(zone int) []byte
- func TurnOn(zone int) []byte
Constants ¶
const ( ZoneAll int = iota Zone1 Zone2 Zone3 Zone4 )
Zone constants are used to declare the target zone
Variables ¶
This section is empty.
Functions ¶
func DiscoMode ¶
func DiscoMode() []byte
DiscoMode turns on disco mode for lights in the currently selected zone. Running this more than once will cycle to the next disco mode, of which there are many (built into the bulbs, apparently).
func DiscoModeFaster ¶
func DiscoModeFaster() []byte
DiscoModeFaster makes disco mode run faster on lights in the currently selected zone.
func DiscoModeSlower ¶
func DiscoModeSlower() []byte
DiscoModeSlower makes disco mode run slower on lights in the currently selected zone.
func SetBrightness ¶
SetBrightness sets the brightness for the lights in the currently selected zone
func SetColorRGB ¶
SetColorRGB sets the color using int 0-255 as the RGB values for lights in the currently selected zone
func SetColorRGBFloat ¶
SetColorRGBFloat sets the color using float64 0..1 as the RGB values for lights in the currently selected zone
func SetColorRGBHex ¶
SetColorRGBHex sets the color using #000000 as the RGB values for lights in the currently selected zone
func SetNight ¶
SetNight sets the lights in the selected zone to night mode and selects this zone for future actions
func SetWhite ¶
SetWhite sets the lights in the selected zone to full white and selects this zone for future actions
Types ¶
This section is empty.