pio

package
v0.0.0-...-75720aa Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO interface {
	Get(pin Pin) State
	Set(pin Pin, state State)
}

func NewIO

func NewIO() (IO, error)

type Pin

type Pin rpio.Pin

type State

type State rpio.State
const (
	Low     State = State(rpio.Low)
	High    State = State(rpio.High)
	Unknown State = math.MaxUint8
)

func (State) String

func (i State) String() string

Jump to

Keyboard shortcuts

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