ft232

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMXController

type DMXController struct {
	// contains filtered or unexported fields
}

DMXController a real world FT232 DMX Controller to handle comms

func NewDMXController

func NewDMXController(conf usbdmx.ControllerConfig) DMXController

NewDMXController helper function for creating a new ft232 controller

func (*DMXController) Connect

func (d *DMXController) Connect() error

Connect handles connection to a the ft232 DMX controller

func (*DMXController) Disconnect

func (d *DMXController) Disconnect() error

Disconnect disconnects the usb device

func (*DMXController) GetChannel

func (d *DMXController) GetChannel(index int16) (byte, error)

GetChannel returns the value of a single DMX channel

func (*DMXController) GetChannels

func (d *DMXController) GetChannels() []byte

GetChannels gets a copy of all of the channels

func (*DMXController) Render

func (d *DMXController) Render() error

Render sends channel data to fixtures

func (*DMXController) SetChannel

func (d *DMXController) SetChannel(index int16, data byte) error

SetChannel sets a single DMX channel value

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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