ADS v2

Files at this revision

API Documentation at this revision

Comitter:
jordylangereis
Date:
Thu Jul 05 10:32:11 2018 +0000
Parent:
6:168546efa050
Commit message:
wut

Changed in this revision

ADS1015.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 168546efa050 -r 01706fdce1b8 ADS1015.cpp
--- a/ADS1015.cpp	Tue Jul 03 07:22:12 2018 +0000
+++ b/ADS1015.cpp	Thu Jul 05 10:32:11 2018 +0000
@@ -8,9 +8,9 @@
     uint16_t config = ADS1015_CONFIG_DEFAULT | channel | AD1015_CONFIG_FSR_4096;
 
     startSingleShotConversion(i2c_plate, ADC_address, config);
-    //wait_ms(0.4);
-    //startSingleShotConversion(i2c_plate, ADC_address, config);
-    //wait_ms(0.3);
+    wait_ms(0.4);
+    startSingleShotConversion(i2c_plate, ADC_address, config);
+    wait_ms(0.3);
 
     return readConversionResult(i2c_plate, ADC_address, config);
 }