Library for the ADS1015 and ADS1115 ADCS
Fork of ADS1015 by
Diff: Adafruit_ADS1015.cpp
- Revision:
- 8:bf2e64504294
- Parent:
- 6:e6fecdc96fb1
- Child:
- 9:fc08929a1093
- Child:
- 10:da5d0da65437
diff -r 932fb8fb15b3 -r bf2e64504294 Adafruit_ADS1015.cpp --- a/Adafruit_ADS1015.cpp Mon Jun 12 08:42:41 2017 +0000 +++ b/Adafruit_ADS1015.cpp Mon Jun 12 09:50:50 2017 +0000 @@ -148,11 +148,12 @@ writeRegister(m_i2cAddress, ADS1015_REG_POINTER_CONFIG, config); // Wait for the conversion to complete - wait_us(m_conversionDelay); + //wait_us(m_conversionDelay); // Read the conversion results // Shift 12-bit results right 4 bits for the ADS1015 - return readRegister(m_i2cAddress, ADS1015_REG_POINTER_CONVERT) >> m_bitShift; + //return readRegister(m_i2cAddress, ADS1015_REG_POINTER_CONVERT) >> m_bitShift; + return 1; } /**************************************************************************/