A simple differential A2D demo

Dependencies:   AnalogIn_Diff mbed

Files at this revision

API Documentation at this revision

Comitter:
JimCarver
Date:
Mon May 19 15:10:40 2014 +0000
Child:
1:d32b04ea4c77
Commit message:
test program

Changed in this revision

C12832.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C12832.lib	Mon May 19 15:10:40 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/MACRUM/code/C12832/#033a554bd03e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon May 19 15:10:40 2014 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "C12832.h"
+
+C12832 lcd(D11, D13, D12, D7, D10); // App shield LCD
+AnalogIn p1( A0);
+AnalogIn p2( A1);
+
+int main() {
+uint16_t r1, r2;
+lcd.cls();
+lcd.locate(0,1);
+lcd.printf("K64F A2D");
+
+    while (true) {
+        r1 = p1.read_u16();
+        r2 = p2.read_u16();
+        lcd.locate(0,1);
+        lcd.printf("K64F A2D\nP1= %04X\nP2= %04X", r1, r2);
+        wait(0.1);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon May 19 15:10:40 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776
\ No newline at end of file