Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Rotary ¶
type Rotary struct { // Button is a channel that gets triggered when the button was on (true) and // when it has been released again (false) Button chan bool // Pressed is a channel that gets triggered when the user presses the rotary // switch. The duration passed is the time how long he holds it. Pressed chan time.Duration // Value is triggerd when the knob was turned. Value chan int // contains filtered or unexported fields }
Rotary reads the protocol generated by the radio-rotary driver and provides a convinient API around it.
Click to show internal directories.
Click to hide internal directories.