Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperationExecute = byte('#') OperationQuery = byte('?') OperationMonitor = byte('~') TypeDevice = "DEVICE" GrafikEye = "GRAFIKEYE" ButtonScene1 = "70" ButtonScene2 = "71" ButtonScene3 = "76" ButtonScene4 = "77" ButtonScene5 = "83" ButtonShade1 = "38" ButtonShade2 = "39" ButtonShade3 = "40" ActionPress = "3" ActionRelease = "4" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QSCommand ¶
type QSESession ¶
func (*QSESession) NewSession ¶
func (q *QSESession) NewSession() error
func (*QSESession) PressButton ¶
func (q *QSESession) PressButton(button string) error
func (*QSESession) Send ¶
func (q *QSESession) Send(cmd QSCommand) error
func (*QSESession) StartMonitor ¶
func (q *QSESession) StartMonitor(callback func(command QSCommand)) error
StartMonitor begins reading the serial connection. When a complete QSE message is found, it calls the provided function. TODO: add cancel channel to break out of monitor loop TODO: handle closing session
Click to show internal directories.
Click to hide internal directories.