LCD implementation of our project.

Dependencies:   mbed mbed-rtos MLX90614

Committer:
ovidiup13
Date:
Wed Jun 03 12:22:46 2015 +0000
Revision:
7:11675c1dce4f
Parent:
6:49a007861c76
Child:
8:81ed1135ba02
updated header, cleaned up menu, fixed controls for device

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 6:49a007861c76 5 #define Y0 31 //center
ovidiup13 3:688b62ff6474 6 #define POINTER_LENGTH 10
ovidiup13 6:49a007861c76 7 #define RADIUS_lvl 3
ovidiup13 3:688b62ff6474 8
ovidiup13 3:688b62ff6474 9 class LevelMeter: public Item {
ovidiup13 3:688b62ff6474 10 public:
ovidiup13 3:688b62ff6474 11 //constructors
ovidiup13 5:5b1a8ad6c187 12 LevelMeter(ST7565 *lcd, Item * back);
ovidiup13 3:688b62ff6474 13
ovidiup13 3:688b62ff6474 14 //inherited functions
ovidiup13 3:688b62ff6474 15 virtual void display(void);
ovidiup13 3:688b62ff6474 16 virtual void update(char c);
ovidiup13 3:688b62ff6474 17
ovidiup13 3:688b62ff6474 18 private:
ovidiup13 5:5b1a8ad6c187 19 Thread *lt;
ovidiup13 5:5b1a8ad6c187 20
ovidiup13 5:5b1a8ad6c187 21 void draw_elements(double rx, double ry);
ovidiup13 5:5b1a8ad6c187 22 static void lt_start(void const *args);
ovidiup13 5:5b1a8ad6c187 23 void update_cross(void);
ovidiup13 3:688b62ff6474 24
ovidiup13 3:688b62ff6474 25 };