LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
LevelMeter.h@10:97389d774ae1, 2015-06-03 (annotated)
- Committer:
- ovidiup13
- Date:
- Wed Jun 03 17:42:47 2015 +0000
- Revision:
- 10:97389d774ae1
- Parent:
- 8:81ed1135ba02
working version, comment out thermo in main;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ovidiup13 | 3:688b62ff6474 | 1 | #include "Item.h" |
ovidiup13 | 8:81ed1135ba02 | 2 | #include "mbed.h" |
ovidiup13 | 3:688b62ff6474 | 3 | |
ovidiup13 | 3:688b62ff6474 | 4 | //define coordinates |
ovidiup13 | 3:688b62ff6474 | 5 | #define X0 63 //center |
ovidiup13 | 6:49a007861c76 | 6 | #define Y0 31 //center |
ovidiup13 | 3:688b62ff6474 | 7 | #define POINTER_LENGTH 10 |
ovidiup13 | 6:49a007861c76 | 8 | #define RADIUS_lvl 3 |
ovidiup13 | 3:688b62ff6474 | 9 | |
ovidiup13 | 3:688b62ff6474 | 10 | class LevelMeter: public Item { |
ovidiup13 | 3:688b62ff6474 | 11 | public: |
ovidiup13 | 3:688b62ff6474 | 12 | //constructors |
ovidiup13 | 8:81ed1135ba02 | 13 | LevelMeter(ST7565 *lcd, Item * back, DigitalOut *gyro, DigitalOut *thermo); |
ovidiup13 | 3:688b62ff6474 | 14 | |
ovidiup13 | 3:688b62ff6474 | 15 | //inherited functions |
ovidiup13 | 3:688b62ff6474 | 16 | virtual void display(void); |
ovidiup13 | 3:688b62ff6474 | 17 | virtual void update(char c); |
ovidiup13 | 3:688b62ff6474 | 18 | |
ovidiup13 | 3:688b62ff6474 | 19 | private: |
ovidiup13 | 5:5b1a8ad6c187 | 20 | Thread *lt; |
ovidiup13 | 5:5b1a8ad6c187 | 21 | |
ovidiup13 | 8:81ed1135ba02 | 22 | DigitalOut *gyro, *thermo; |
ovidiup13 | 5:5b1a8ad6c187 | 23 | void draw_elements(double rx, double ry); |
ovidiup13 | 5:5b1a8ad6c187 | 24 | static void lt_start(void const *args); |
ovidiup13 | 5:5b1a8ad6c187 | 25 | void update_cross(void); |
ovidiup13 | 3:688b62ff6474 | 26 | |
ovidiup13 | 3:688b62ff6474 | 27 | }; |