gpio

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_PWM = 1000 // Default PWM frequency
)

Variables

This section is empty.

Functions

func New

func New(cfg Config, ch chan<- Event) *device

Create new GPIO, with channel. Panics on error

Types

type Config

type Config struct {
	In    []Pin // Pins in input mode
	Out   []Pin // Pins in output mode
	PWM   []Pin // Output pins with PWM
	Watch []Pin // Input pins to watch
}

Jump to

Keyboard shortcuts

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