On Tue, Feb 1, 2011 at 3:20 PM, desimmon <david.e.simmons@...> wrote:
> Hello all,
> FYI - I am quite new to Gumstix, i2c, and even Linux.
> Using the gumstix wiki, I am able to use "i2c 0x0 readbyte 0x0" to get
> receive a value that makes sense. How can I use this in a c program so I
> can manipulate the received value?
You can take a look at the i2c source code. It can be found in
It uses the i2c-dev driver and mostly uses the I2C_RDWR ioctl. The
stuff in i2c-api.c is designed to be used from generic c programs. The
i2c.c program is an example of how to use the code in i2c-api.c