Compass Working

Dependencies:   mbed

Revision:
1:ef74b3428716
Parent:
0:1acd78600f46
Child:
2:ef6778c2438e
--- a/main.cpp	Wed Jan 13 21:31:15 2016 +0000
+++ b/main.cpp	Wed Jan 13 22:31:54 2016 +0000
@@ -1,13 +1,18 @@
 #include "Compass.h"
+#include "Temperature.h"
 #include "mbed.h"
 
 Serial pc(USBTX,USBRX);
 double direction;
+float temp2;
+char tap;
 
 int main() 
 {
     while(1){
         direction =    Compass();
-        pc.printf("%1.2f degrees \n\r" , direction);
+        temp2 = Temperature();
+        tap = Tap();
+        pc.printf("%1.2f degrees\t %1.2f temperature %1.2f tap \n\r" , direction, temp2,tap);
     }
-}
\ No newline at end of file
+}