Skip to content
forked from d2r2/go-i2c

Implementation of i2c bus written in Golang. Forked from davecheney/i2c.

Notifications You must be signed in to change notification settings

idahoakl/go-i2c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-i2c

Implementation of i2c bus written in Golang.

Utility usage

i2c-test utility is available to allow for directly interacting with devices on the i2c bus.

Bus and device address values are in base 10.

Write

Usage: i2c-test <bus> <device addr> <data>

The data should be a string of hex encoded bytes. The leading '0x' should be omitted.

Example: i2c-test 1 64 f3

Output: No output on success, error message on error.

Read

Usage: i2c-test <bus> <device addr> <num bytes to read>

Read data will be output in hex format.

Example: i2c-test 1 64 3

Output: 0x6164DE

About

Implementation of i2c bus written in Golang. Forked from davecheney/i2c.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.1%
  • Shell 0.9%