device

package
v0.0.0-...-bc541b1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action string
const (
	CW  Action = "clockwise"
	CCW Action = "counterClockwise"
)

type RotaryEncoder

type RotaryEncoder struct {
	// contains filtered or unexported fields
}

func NewRotaryEncoder

func NewRotaryEncoder(aPin gpio.PinIO, bPin gpio.PinIO) *RotaryEncoder

func NewRotaryEncoderWithCustomTimeout

func NewRotaryEncoderWithCustomTimeout(aPin gpio.PinIO, bPin gpio.PinIO, timeout time.Duration) *RotaryEncoder

func (*RotaryEncoder) Read

func (t *RotaryEncoder) Read() Action

Jump to

Keyboard shortcuts

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