A simple differential A2D demo

Dependencies:   AnalogIn_Diff mbed

Files at this revision

API Documentation at this revision

Comitter:
JimCarver
Date:
Thu May 22 17:41:17 2014 +0000
Parent:
1:d32b04ea4c77
Commit message:
Now supports Channels 0 & 1 for both ADC0 & ADC1

Changed in this revision

AnalogIn_Diff.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/AnalogIn_Diff.lib	Tue May 20 01:03:44 2014 +0000
+++ b/AnalogIn_Diff.lib	Thu May 22 17:41:17 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/JimCarver/code/AnalogIn_Diff/#0f6f4be28e21
+http://mbed.org/users/JimCarver/code/AnalogIn_Diff/#7b36e4381d83
--- a/main.cpp	Tue May 20 01:03:44 2014 +0000
+++ b/main.cpp	Thu May 22 17:41:17 2014 +0000
@@ -5,7 +5,6 @@
 
 
 
-
 int main() {
 int16_t  d1; 
 float f;
@@ -15,8 +14,8 @@
 
     while (true) {
 
-        d1 = a2d.read_16();
-        f = a2d.read();
+        d1 = a2d.read_16(1);
+        f = a2d.read(1);
         pc.printf("Result= %f, %d\r\n", f, d1);
         wait(0.2);
     }