device

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 3 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 (
	Push    Action = "push"
	Release Action = "release"
)

type Button

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

func NewButton

func NewButton(pin gpio.PinIO, timeout time.Duration) *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