ads1x15: ads1015 module now implements IADC. Removed ads1015_iadc.

Signed-off-by: Henry Bruce <henry.bruce@intel.com>
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
This commit is contained in:
Henry Bruce
2016-01-08 16:41:38 -08:00
committed by Abhishek Malik
parent b08da722f7
commit 17fd502cb5
7 changed files with 130 additions and 220 deletions

View File

@ -24,7 +24,7 @@
#include <unistd.h>
#include <iostream>
#include "ads1015_iadc.h"
#include "ads1015.h"
#include "mraa/gpio.hpp"
#define EDISON_I2C_BUS 1
@ -42,7 +42,7 @@ upm::IADC* getADC()
{
upm::IADC* adc = NULL;
try {
adc = new upm::ADS1015_IADC(EDISON_I2C_BUS);
adc = new upm::ADS1015(EDISON_I2C_BUS);
mraa::Gpio gpio(EDISON_GPIO_SI7005_CS);
gpio.dir(mraa::DIR_OUT_HIGH);
return adc;