gopi

package module
v0.0.0-...-b4d170b Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

gopi

gopi is an arduino like library to control the GPIOs of a raspberryPi written in go. It uses the now deprecated linux kernel GPIO ABIs

Documentation

Index

Constants

View Source
const (
	ModeInput uint = iota
	ModeOutput
)
View Source
const (
	PinHigh bool = true
	PinLow  bool = false
)

Variables

This section is empty.

Functions

func DigitalRead

func DigitalRead(pin uint) (val bool, err error)

func DigitalWrite

func DigitalWrite(pin uint, val bool) (err error)

func FreePin

func FreePin(pin uint) (err error)

func PinMode

func PinMode(pin uint, mode uint) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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