Documentation
¶
Overview ¶
Simple Go package to send DMX messages. Copyright (c) 2013 AKUALAB INC. All Rights Reserved. www.akualab.com - @akualab - info@akualab.com
CREDITS: Ported from pySimpleDMX (https://github.com/c0z3n/pySimpleDMX) Written by Michael Dvorkin
GNU General Public License v3. http://www.gnu.org/licenses/
Index ¶
- Constants
- type DMX
- func (dmx *DMX) ChannelMap(brightness, red, green, blue int)
- func (dmx *DMX) ClearAll()
- func (dmx *DMX) ClearChannel(channel int) error
- func (dmx *DMX) Close() error
- func (dmx *DMX) Render() error
- func (dmx *DMX) SendRGB(brightness, red, green, blue byte) (e error)
- func (dmx *DMX) SetChannel(channel int, val byte) error
Constants ¶
View Source
const ( START_VAL = 0x7E END_VAL = 0xE7 BAUD = 57600 TIMEOUT = 1 DEV = "/dev/ttyUSB0" FRAME_SIZE = 511 FRAME_SIZE_LOW = byte(FRAME_SIZE & 0xFF) FRAME_SIZE_HIGH = byte(FRAME_SIZE >> 8 & 0xFF) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DMX ¶
type DMX struct {
// contains filtered or unexported fields
}
A serial DMX connection.
func NewDMXConnection ¶
Creates a new DMX connection using a serial device.
func (*DMX) ChannelMap ¶
Convenience method to map colors and brightness to channels.
func (*DMX) ClearChannel ¶
Turn off a specific channel.
Click to show internal directories.
Click to hide internal directories.