states

package
v0.0.0-...-f1f56cd Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PullUp   = PullName("up")
	PullDown = PullName("down")
	PullNone = PullName("none")
)
View Source
const (
	ActiveLow  = ActiveLevel(false)
	ActiveHigh = ActiveLevel(true)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveLevel

type ActiveLevel bool

func (ActiveLevel) Active

func (a ActiveLevel) Active() gpio.Level

func (ActiveLevel) Inactive

func (a ActiveLevel) Inactive() gpio.Level

func (ActiveLevel) IsActive

func (a ActiveLevel) IsActive(l gpio.Level) bool

func (ActiveLevel) IsInactive

func (a ActiveLevel) IsInactive(l gpio.Level) bool

type PullName

type PullName string

func (PullName) GpioPull

func (p PullName) GpioPull() (gpio.Pull, error)

Jump to

Keyboard shortcuts

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