button

package
v0.0.0-...-eb5837a Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Name          string
	Pin           machine.Pin
	Mode          machine.PinMode
	LastPressTime time.Time

	Action func()
	// contains filtered or unexported fields
}

func (*Button) GetState

func (b *Button) GetState() bool

type ButtonManager

type ButtonManager struct {
	Watcher chan string

	ActionRunning bool
	PrevButton    string
	// contains filtered or unexported fields
}

func (*ButtonManager) Register

func (m *ButtonManager) Register(b ...*Button)

func (*ButtonManager) Start

func (m *ButtonManager) Start()

Jump to

Keyboard shortcuts

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