LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Committer:
ovidiup13
Date:
Sun Apr 26 16:29:53 2015 +0000
Revision:
3:688b62ff6474
Child:
5:5b1a8ad6c187
added screens for interacting with other components. i.e. distance, thermo, gyro, compass, etc. Need to complete settings screen and create threads for interacting with other code

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ovidiup13 3:688b62ff6474 1 #include "Item.h"
ovidiup13 3:688b62ff6474 2
ovidiup13 3:688b62ff6474 3 //define coordinates
ovidiup13 3:688b62ff6474 4 #define X0 63 //center
ovidiup13 3:688b62ff6474 5 #define Y0 35 //center
ovidiup13 3:688b62ff6474 6 #define POINTER_LENGTH 10
ovidiup13 3:688b62ff6474 7 #define RADIUS_lvl 10
ovidiup13 3:688b62ff6474 8
ovidiup13 3:688b62ff6474 9 class LevelMeter: public Item {
ovidiup13 3:688b62ff6474 10 public:
ovidiup13 3:688b62ff6474 11 //constructors
ovidiup13 3:688b62ff6474 12 LevelMeter(ST7565 *lcd, Item * back){
ovidiup13 3:688b62ff6474 13 this->st7565 = lcd;
ovidiup13 3:688b62ff6474 14 this->title = " Level meter";
ovidiup13 3:688b62ff6474 15 this->back = back;
ovidiup13 3:688b62ff6474 16 }
ovidiup13 3:688b62ff6474 17
ovidiup13 3:688b62ff6474 18 //inherited functions
ovidiup13 3:688b62ff6474 19 virtual void display(void);
ovidiup13 3:688b62ff6474 20 virtual void update(char c);
ovidiup13 3:688b62ff6474 21
ovidiup13 3:688b62ff6474 22 private:
ovidiup13 3:688b62ff6474 23 void draw_circles(double rX, double rY);
ovidiup13 3:688b62ff6474 24 void update_degrees(double degrees);
ovidiup13 3:688b62ff6474 25
ovidiup13 3:688b62ff6474 26 };