DesignForAmputee hw 5 project

Dependencies:   mbed BLE_API nRF51822

Revision:
0:6a0d0bc31c4c
Child:
1:dbfe14952cdc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 03 21:55:38 2014 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalOut power(A0);
+
+AnalogIn tempPin(A1);
+float temp;
+Serial pc(USBTX, USBRX);
+
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+        power = 1;
+        temp = tempPin.read();
+        pc.printf("%f\n",temp);
+    }
+}