gpio

package
v0.0.0-...-99a6a5b Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForButton

func WaitForButton(pinID int, toggleCallback func())

WaitForButton wait infinetly long for button rise

Types

type Led

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

func NewLed

func NewLed(pinID int) *Led
func (led *Led) Blink(cancel <-chan bool)

func (*Led) Off

func (led *Led) Off()

func (*Led) On

func (led *Led) On()

Jump to

Keyboard shortcuts

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