Documentation ¶
Index ¶
Constants ¶
View Source
const ( ButtonProgram EventButtonType = 0b0010 ButtonPreview = 0b0001 ButtonAutoTakeDSK = 0b0011 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdLight ¶
type CmdLight struct { Type EventButtonType Value uint8 State Light }
type Connection ¶
func Open ¶
func Open(name string) (*Connection, error)
func (*Connection) InitBlynk ¶
func (conn *Connection) InitBlynk()
does fancy blinky blinky sequence
func (*Connection) ReadCh ¶
func (c *Connection) ReadCh() <-chan Event
func (*Connection) WriteCmd ¶
func (c *Connection) WriteCmd(cmd [2]byte) (err error)
first nibble of first byte is ignored
type EventButton ¶
type EventButton struct { Type EventButtonType Direction Direction Value uint8 }
type EventButtonType ¶
type EventButtonType uint8
type EventSlider ¶
type EventSlider struct { Type EventSliderType Value uint8 }
type EventSliderType ¶
type EventSliderType uint8
const ( SliderTbar EventSliderType = iota RotA RotB RotC )
Click to show internal directories.
Click to hide internal directories.