Documentation
¶
Index ¶
- Variables
- type Client
- type Device
- func (d *Device) Blink(times int) error
- func (d *Device) GetName(name string) (string, error)
- func (d *Device) Reset(delayMs int) error
- func (d *Device) SendDeltaDmx(data []byte) error
- func (d *Device) SendDmx(data []byte) error
- func (d *Device) SendFx(effect *core.Effect) error
- func (d *Device) SendRgbPixels(offset uint16, colors []color.RGBA) error
- func (d *Device) SendRgbRaw(data []byte) error
- func (d *Device) SetConfig(param string, value byte) error
- func (d *Device) SetMode(mode *core.Mode) error
- func (d *Device) SetName(name string) error
- type DeviceMeta
- type DeviceSelection
- type Devices
- type Hardware
- type Performer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PixelLength = []byte{0, 4} ConfigParams = map[string][]byte{ "pixel_length": PixelLength, } )
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Meta *DeviceMeta
// contains filtered or unexported fields
}
func (*Device) SendDeltaDmx ¶
func (*Device) SendRgbPixels ¶
func (*Device) SendRgbRaw ¶
type DeviceMeta ¶
type DeviceMeta struct {
MAC string `json:"mac"`
Name string `json:"name"`
IP string `json:"ip"`
Hardware Hardware `json:"hardware"`
Mode int `json:"mode"`
ExternalMode int `json:"external_mode"`
LastBeat time.Time `json:"last_beat"`
Version int `json:"version"`
Config map[string]int `json:"config"`
}
type DeviceSelection ¶
type DeviceSelection []*Device
func (DeviceSelection) Perform ¶
func (s DeviceSelection) Perform(performer Performer)
Click to show internal directories.
Click to hide internal directories.