Linux C script to read sensor data from I2C bus
This project was successfully completed by happycrab for $15 USD in a day.Get free quotes for a project like this
Project Budget$10-$30 USD
Completed In1 day
I need a simple C script to read sensor data from a INA219 chip via I2C ( [url removed, login to view] ).
Everything is already written and documented for the 3.x kernel module ( [url removed, login to view] )
I use 2.6.32-5-486 Kernel and dont need a kernel module, simple c code that uses the #include and reads the data is enough.
I am currently stuck because all examples and kernel modules i found use i2c_read functions but due to kernel and smbus in i2c-dev.h I have to use i2c_smbus_read_i2c functions.
I am not a C programmer - I can already read registers but it seems that I mismatch datatypes, bits and bytes.
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online