tx

package
v0.0.0-...-be5c388 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TX_CMD_TURN_OFF     byte = 0
	TX_CMD_DIM_DOWN     byte = 1
	TX_CMD_TURN_ON      byte = 2
	TX_CMD_DIM_UP       byte = 3
	TX_CMD_TURN_CHANGE  byte = 4
	TX_CMD_DIM_CHANGE   byte = 5
	TX_CMD_DIM_SET      byte = 6
	TX_CMD_SCENE_RUN    byte = 7
	TX_CMD_SCENE_SAVE   byte = 8
	TX_CMD_CLEAR_ADDR   byte = 9
	TX_CMD_DIM_STOP     byte = 10
	TX_CMD_WANT_BIND    byte = 15
	TX_CMD_RAINBOW      byte = 16
	TX_CMD_CHANGE_COLOR byte = 17
	TX_CMD_WORK_MODE    byte = 18
	TX_CMD_WORK_SPEED   byte = 19
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Type    byte
	Channel byte
	// contains filtered or unexported fields
}

func (Command) Data

func (this Command) Data(buf []byte) (data []byte)

func (*Command) SetDimLevel

func (this *Command) SetDimLevel(level byte)

func (*Command) SetRGB

func (this *Command) SetRGB(r, g, b byte)

type TxEngine

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

func NewTxEngine

func NewTxEngine() (*TxEngine, error)

func (*TxEngine) Close

func (this *TxEngine) Close()

func (*TxEngine) Exit

func (this *TxEngine) Exit()

func (*TxEngine) Open

func (this *TxEngine) Open() error

func (*TxEngine) Write

func (this *TxEngine) Write(c Command) error

Jump to

Keyboard shortcuts

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