gpio

package
v0.0.0-...-28fde1b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GPIO_TYPENAME = "periphery{gpio}"
)

Variables

This section is empty.

Functions

func Loader

func Loader(L *lua.LState) int

Types

type Direction

type Direction int
const (
	GPIO_DIR_IN Direction = iota
	GPIO_DIR_OUT
	GPIO_DIR_OUT_LOW
	GPIO_DIR_OUT_HIGH
	GPIO_DIR_PRESERVE
)

func ParseDirection

func ParseDirection(str string) (Direction, error)

type Edge

type Edge int
const (
	GPIO_EDGE_NONE Edge = iota
	GPIO_EDGE_RISING
	GPIO_EDGE_FALLING
	GPIO_EDGE_BOTH
)

type GPIOType

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

func NewGPIOType

func NewGPIOType(L *lua.LState) *GPIOType

Jump to

Keyboard shortcuts

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