Linux userspace I2C module for the MCP3424 ADC. Code was originally ported from the code found here. This has been used with ABElectronics' ADC Pi and ADC Pi Plus. See main.c for an example of how to use the module.
This module depends on libi2c-dev which can be installed on debian by running sudo apt-get install libi2c-dev.
To compile main.c run:
maketo test run:
./mainEnsure that the device is correct for your adapter e.g. on Raspberry Pi Model A+ and Raspberry Pi 2 Model B the device is /dev/i2c-1.