Accessing I2C Devices from User-Space Applications |
One of our customers sent us the following email describing his experiences with accessing I2C devices from user-space Linux applications: Turns out it is easier than I expected to add I2C support to a user space app. All you need to do is download the i2c-tools-3.1.0.tar.bz2, and grab the i2c-dev.h and put it in your user space apps directory. Without doing error checking and such, it is as simple as this: #include "i2c-dev.h" I have my sensors app working this way now in an image, and I can confirm this works.
|