Configuring i2c on a Raspberry Pi for C?

I am configuring i2c for an application written in C, but I could not find any instructions for it. I am running Raspberry Pi model-b on Debian 6 with LXDE. Can someone show me how to configure i2c so that I can use it in C application?

Thanks for any help in advance.

+5
source share
2 answers

I was looking for similar information, and I found a couple of i2c tutorials , one in the adafruit tutorials and the other in the Guy Carpenter Gaugette Blog . I am not yet at the fact that I actually use it, so I can not vouch for their completeness, but they seem to be a good start.

+2

:

C GPIO Pi

API GPIO , I2C. , (STCN75 RPi rev.B).

- . Git.

0

All Articles