Documentation ¶ Index ¶ type Action type RotaryEncoder func NewRotaryEncoder(encoderAPin gpio.PinIO, encoderBPin gpio.PinIO, buttonPin gpio.PinIO, ...) *RotaryEncoder func (t *RotaryEncoder) Run(ctx context.Context, actions chan<- Action) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Action ¶ type Action string const ( None Action = "none" CW Action = "clockwise" CCW Action = "counterClockwise" Press Action = "press" Release Action = "release" ) type RotaryEncoder ¶ type RotaryEncoder struct { // contains filtered or unexported fields } func NewRotaryEncoder ¶ func NewRotaryEncoder(encoderAPin gpio.PinIO, encoderBPin gpio.PinIO, buttonPin gpio.PinIO, timeout time.Duration, logger *logrus.Entry) *RotaryEncoder func (*RotaryEncoder) Run ¶ func (t *RotaryEncoder) Run(ctx context.Context, actions chan<- Action) error Source Files ¶ View all Source files rotary-encoder.go Click to show internal directories. Click to hide internal directories.