device

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL