Compass Working

Dependencies:   mbed

Revision:
0:1acd78600f46
Child:
1:ef74b3428716
diff -r 000000000000 -r 1acd78600f46 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jan 13 21:31:15 2016 +0000
@@ -0,0 +1,13 @@
+#include "Compass.h"
+#include "mbed.h"
+
+Serial pc(USBTX,USBRX);
+double direction;
+
+int main() 
+{
+    while(1){
+        direction =    Compass();
+        pc.printf("%1.2f degrees \n\r" , direction);
+    }
+}
\ No newline at end of file