LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Compass.h
- Committer:
- ovidiup13
- Date:
- 2015-05-28
- Revision:
- 5:5b1a8ad6c187
- Parent:
- 4:024e6a9c2ebf
- Child:
- 7:11675c1dce4f
File content as of revision 5:5b1a8ad6c187:
#ifndef _COMPASS_H #define _COMPASS_H #include "Item.h" #include <stdio.h> #define _USE_MATH_DEFINES #include <math.h> #define M_PI 3.14159265358979323846 /* pi */ //define center coordinates #define X_CENTER 95 #define Y_CENTER 35 #define POINTER_LENGTH 10 #define RADIUS 19 class Compass: public Item { public: //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); static void ct_start(void const *args); void compass_update(void); }; #endif