Tests the mbed Weapons and Systems Engineering Single Board Computer 12-bit ADC (MAX1270) by reading channel 0

Dependencies:   mbed mbedWSEsbc

Revision:
0:5134e66ab306
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 25 13:40:54 2014 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "mbedWSEsbc.h"
+
+DigitalOut myled(LED1);
+
+int main() {    
+    mbedWSEsbcInit(9600);   //Initialize the SBC
+    
+    while(1) {        
+        float ch0_volts = read_max1270_volts(0, 0, 0);
+        
+        pc.printf("t=%.2f  CH0=%.3fV    \r", t.read(), ch0_volts);        
+        led1 != led1;
+        wait(0.02);
+    }//while(1)
+}//main