device

package
v1.0.5 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 (
	Press   Action = "press"
	Release Action = "release"
)

type Button

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

func NewButton

func NewButton(chip *gpiod.Chip, dataPint int, logger *logrus.Entry) *Button

func (*Button) Run

func (t *Button) 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