LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Revision:
4:024e6a9c2ebf
Parent:
3:688b62ff6474
Child:
5:5b1a8ad6c187
--- a/Compass.h	Sun Apr 26 16:29:53 2015 +0000
+++ b/Compass.h	Mon May 25 14:46:39 2015 +0000
@@ -2,7 +2,7 @@
 #define _COMPASS_H
 
 #include "Item.h"
-#include<stdio.h>
+#include <stdio.h>
 #define _USE_MATH_DEFINES
 #include <math.h>
 #define M_PI 3.14159265358979323846  /* pi */
@@ -13,21 +13,25 @@
 #define POINTER_LENGTH 10
 #define RADIUS 19
 
+#define START_THREAD 1
+#define PAUSE_THREAD 2
+
 class Compass: public Item {
     public:
-    
-    //inherited functions
-        Compass(ST7565 * lcd, Item * back){
-            this->title = " Compass";
-            this->st7565= lcd;
-            this->back = back;
-        }
-        
+        //inherited functions
         virtual void display(void);
         virtual void update(char c);
         
+        //constructor
+        Compass(ST7565 *lcd, Item *back);
+        
+    private:
+        Thread *ct; //compass update thread
+        
+        //helper functions
         void draw_compass(double degrees);
-        void update_compass(void);
+        static void ct_start(void const *args);
+        void compass_update(void);
 };
 
 #endif
\ No newline at end of file