Documentation ¶
Index ¶
- type Device
- func (enc *Device) Configure()
- func (enc *Device) Range() (int, int)
- func (enc *Device) SetRange(bottom int, top int)
- func (enc *Device) SetValue(v int)
- func (enc *Device) SwitchWasClicked() bool
- func (enc *Device) Update(aHigh bool, bHigh bool)
- func (enc *Device) UpdateSW(pinState bool)
- func (enc *Device) Value() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
Device represents a rotary encoder.
func (*Device) SetRange ¶
Sets the possible value range for the encoder This won't be used until the next tick
func (*Device) SwitchWasClicked ¶
SwitchValue returns the value of the switch.
Click to show internal directories.
Click to hide internal directories.