LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Header.h@4:024e6a9c2ebf, 2015-05-25 (annotated)
- Committer:
- ovidiup13
- Date:
- Mon May 25 14:46:39 2015 +0000
- Revision:
- 4:024e6a9c2ebf
- Parent:
- 3:688b62ff6474
- Child:
- 7:11675c1dce4f
updated compass with threading
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ovidiup13 | 0:1e597b0f8b3b | 1 | #ifndef _HEADER_H_ |
ovidiup13 | 0:1e597b0f8b3b | 2 | #define _HEADER_H_ |
ovidiup13 | 0:1e597b0f8b3b | 3 | |
ovidiup13 | 3:688b62ff6474 | 4 | #include <stdio.h> |
ovidiup13 | 0:1e597b0f8b3b | 5 | #include <stdlib.h> |
ovidiup13 | 0:1e597b0f8b3b | 6 | #include "st7565LCD.h" |
ovidiup13 | 0:1e597b0f8b3b | 7 | |
ovidiup13 | 0:1e597b0f8b3b | 8 | #define LEFT_MARGIN 5 |
ovidiup13 | 0:1e597b0f8b3b | 9 | |
ovidiup13 | 0:1e597b0f8b3b | 10 | using namespace std; |
ovidiup13 | 0:1e597b0f8b3b | 11 | |
ovidiup13 | 0:1e597b0f8b3b | 12 | class Header{ |
ovidiup13 | 0:1e597b0f8b3b | 13 | public: |
ovidiup13 | 0:1e597b0f8b3b | 14 | //functions |
ovidiup13 | 0:1e597b0f8b3b | 15 | void setBatteryLevel(float d); |
ovidiup13 | 0:1e597b0f8b3b | 16 | void display(void); |
ovidiup13 | 4:024e6a9c2ebf | 17 | void setTitle(char *t); |
ovidiup13 | 4:024e6a9c2ebf | 18 | Header(float lvl, char * t, ST7565 * lcd); |
ovidiup13 | 2:fcde41900fa5 | 19 | |
ovidiup13 | 4:024e6a9c2ebf | 20 | private: |
ovidiup13 | 4:024e6a9c2ebf | 21 | //variables |
ovidiup13 | 4:024e6a9c2ebf | 22 | uint8_t battery_level; |
ovidiup13 | 4:024e6a9c2ebf | 23 | char * title; |
ovidiup13 | 4:024e6a9c2ebf | 24 | ST7565 * st7565; |
ovidiup13 | 0:1e597b0f8b3b | 25 | }; |
ovidiup13 | 0:1e597b0f8b3b | 26 | |
ovidiup13 | 0:1e597b0f8b3b | 27 | #endif |