Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtNetController ¶
type ArtNetController struct {
// contains filtered or unexported fields
}
ArtNetController holds the networking data for ArtNet communication.
func NewArtNetController ¶
func NewArtNetController(srcIP string, dstIP string) (*ArtNetController, error)
NewArtNetController registers all ArtNet communication on this device to control the given ArtNet target node.
type Device ¶
type Device struct { // R holds the red channel. R uint16 `json:"Red"` // G holds the green channel. G uint16 `json:"Green"` // B holds the blue channel. B uint16 `json:"Blue"` // RValue holds the red value. RValue uint8 // RValue holds the green value. GValue uint8 // RValue holds the blue value. BValue uint8 // Statics holds the static DMX data for this device Statics map[uint16]uint8 }
Device holds the DMX data of an rgb device.
func (*Device) UpdateFrame ¶
UpdateFrame updates the given DMX frame with the current channel values.
type Universe ¶
type Universe struct { // Devices holds the devices of this universe. Devices []*Device // Net holds the ArtNet net, a group of 16 consecutive sub-nets or 256 consecutive universes. Net uint8 // SubNet holds the ArtNet sub-net, a group of 16 consecutive universes. SubNet uint8 }
Universe holds a DMX universe.
func (*Universe) SendColorUpdate ¶
func (u *Universe) SendColorUpdate(controller *ArtNetController) error
SendColorUpdate sends a color update from the universe devices over the given controller.
Click to show internal directories.
Click to hide internal directories.