LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Diff: Compass.h
- Revision:
- 3:688b62ff6474
- Child:
- 4:024e6a9c2ebf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Compass.h Sun Apr 26 16:29:53 2015 +0000 @@ -0,0 +1,33 @@ +#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 + Compass(ST7565 * lcd, Item * back){ + this->title = " Compass"; + this->st7565= lcd; + this->back = back; + } + + virtual void display(void); + virtual void update(char c); + + void draw_compass(double degrees); + void update_compass(void); +}; + +#endif \ No newline at end of file