Documentation ¶
Index ¶
Constants ¶
View Source
const ( UINT8_MAX = 1<<8 - 1 UINT16_MAX = 1<<16 - 1 )
View Source
const ( KINET_MAGIC = 0x4adc0104 KINET_VERSION = 0x0001 KINET_NUM_PIXELS = UINT8_MAX / 3 )
View Source
const ( KINET_SUP_REQ = 0x0001 KINET_SUP_RESP = 0x0002 KINET_SET_IP = 0x0003 KINET_SET_UNIVERSE = 0x0005 KINET_SET_NAME = 0x0006 KINET_PORT_REQ = 0x000a KINET_PORT_RESP = 0x000a KINET_SET_COLORS = 0x0101 KINET_FIXTURE_REQ = 0x0201 KINET_FIXTURE_RESP = 0x0202 KINET_CHAN_REQ = 0x0203 KINET_CHAN_RESP = 0x0204 )
kinet packet types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fixture ¶
type Fixture struct { Serial string Channel uint8 Color color.Color PS *PowerSupply `json:"-"` }
func (*Fixture) DiscoverChannel ¶
func (fixture *Fixture) DiscoverChannel()
type PowerSupply ¶
type PowerSupply struct { Name string IP string Mac string ProtocolVersion string Serial string Universe string Manufacturer string Type string FWVersion string Fixtures []*Fixture }
func Discover ¶
func Discover() []*PowerSupply
func DiscoverSupplies ¶
func DiscoverSupplies() []*PowerSupply
func (*PowerSupply) DiscoverFixtures ¶
func (ps *PowerSupply) DiscoverFixtures()
func (*PowerSupply) SendColors ¶
func (ps *PowerSupply) SendColors(c []color.Color)
Click to show internal directories.
Click to hide internal directories.