A simple program that receives a value over analog input and displays it on a terminal.

Dependencies:   mbed

Revision:
0:c033c4dfdf94
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 18 09:27:05 2014 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+AnalogIn in(p17);
+Serial pc(USBTX, USBRX);
+
+int main() {
+    float value;
+    while(1) {
+        value = in;
+        pc.printf("\n\rValue received over analog in: %f", value);
+        wait(1);
+    }
+}
\ No newline at end of file