Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up i2c on Raspberry Pi for C?

I'm setting up i2c for an Application written in C, but I've not been able to find any how-to's for it. I'm running a model-b Raspberry Pi on Debian 6 with LXDE. Can anybody show me how to set up i2c so I can use it in a C Application?

Thanks for any help in advance

like image 667
sharksfan98 Avatar asked Nov 04 '22 04:11

sharksfan98


1 Answers

I've been looking for similar information and I found a couple of i2c tutorials, one in adafruit tutorials and the other in Guy Carpenter's Gaugette blog. I'm not yet at the stage of actually using it so I can't vouch for their completeness but they seem to be a good start.

  • Configuring Your Pi for I2C
  • Analog Gauges Using I²C on the Raspberry Pi
  • I2C Installation for Raspberry Pi. I think this is only necessary if not using AdaFruit's Occidentalis release which has it included.
like image 102
TheDuke Avatar answered Nov 15 '22 05:11

TheDuke