Registry / other / stianeikeland-go-rpio

stianeikeland-go-rpio

JSON →
library4.2.0+incompatiblegogounverified

Package rpio provides GPIO access on the Raspberry Pi without requiring external C libraries.

go get github.com/stianeikeland/go-rpio
INSTALL
IMPORT
SIG · STIANEIKELAND-GO-R
S
stianeikeland-go-rpio
othergov4.2.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rpio
github.com/stianeikeland/go-rpio

Opens GPIO access, sets pin 18 as output, and drives it high.

package main import ( "fmt" "github.com/stianeikeland/go-rpio" ) func main() { err := rpio.Open() if err != nil { panic(err) } defer rpio.Close() pin := rpio.Pin(18) pin.Output() pin.High() fmt.Println("Pin 18 set to high") }
Debug
Known issues
gotchaThis package uses cgo and requires the Raspberry Pi's GPIO hardware to function.
fix
Ensure you are running on a Raspberry Pi with appropriate permissions.
affects: >=0.0.0
Upgrade
Version history
4.2.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
stianeikeland-go-rpio — go get stianeikeland-go-rpio · libregistry