milight

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port   int    `json:"port"`
	Bridge string `json:"bridge"`
}

func NewConfig

func NewConfig(configPath string) (Config, error)

type MilightClient

type MilightClient struct {
	Controller *limitless.LimitlessController
}

func NewClient

func NewClient(conf Config) *MilightClient

func (*MilightClient) Brightness

func (m *MilightClient) Brightness(id int, brightness uint8) error

func (*MilightClient) Color

func (m *MilightClient) Color(id int, color uint8) error

func (*MilightClient) Disco

func (m *MilightClient) Disco(id int, speed string) error

func (*MilightClient) Night

func (m *MilightClient) Night(id int) error

func (*MilightClient) Off

func (m *MilightClient) Off(id int) error

func (*MilightClient) On

func (m *MilightClient) On(id int) error

func (*MilightClient) Rgb

func (m *MilightClient) Rgb(id int, color colorful.Color) error

func (*MilightClient) White

func (m *MilightClient) White(id int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL