Registry / other / d2r2-go-i2c

d2r2-go-i2c

JSON →
library0.0.0-20191123181816-73a8a799d6bcgogounverified

A Go library for communicating with I2C devices on Linux.

go get github.com/d2r2/go-i2c
INSTALL
IMPORT
SIG · D2R2-GO-I2C
D
d2r2-go-i2c
othergov0.0.0-20191123181816-73a8a799d6bc
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.

i2c
✓ github.com/d2r2/go-i2c

Open an I2C bus and connect to a device at address 0x48.

package main import ( "fmt" "github.com/d2r2/go-i2c" ) func main() { bus, err := i2c.NewI2C(0x48, 1) if err != nil { panic(err) } defer bus.Close() fmt.Println("I2C bus opened") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20191123181816-73a8a799d6bclatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Meta
1
Resources
d2r2-go-i2c — go get d2r2-go-i2c · libregistry