Documentation ¶ Index ¶ type Action type RotaryEncoder func NewRotaryEncoder(chip *gpiod.Chip, clockPin int, dataPin int, logger *logrus.Entry) *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 var ( Clockwise Action = "clockwise" CounterClockwise Action = "counterclockwise" Click Action = "click" ) type RotaryEncoder ¶ type RotaryEncoder struct { // contains filtered or unexported fields } func NewRotaryEncoder ¶ func NewRotaryEncoder(chip *gpiod.Chip, clockPin int, dataPin int, 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.