LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Header.h@7:11675c1dce4f, 2015-06-03 (annotated)
- Committer:
- ovidiup13
- Date:
- Wed Jun 03 12:22:46 2015 +0000
- Revision:
- 7:11675c1dce4f
- Parent:
- 4:024e6a9c2ebf
updated header, cleaned up menu, fixed controls for device
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 | 7:11675c1dce4f | 15 | //void setBatteryLevel(float d); |
ovidiup13 | 0:1e597b0f8b3b | 16 | void display(void); |
ovidiup13 | 4:024e6a9c2ebf | 17 | void setTitle(char *t); |
ovidiup13 | 7:11675c1dce4f | 18 | Header(char * t, ST7565 * lcd); |
ovidiup13 | 2:fcde41900fa5 | 19 | |
ovidiup13 | 4:024e6a9c2ebf | 20 | private: |
ovidiup13 | 4:024e6a9c2ebf | 21 | //variables |
ovidiup13 | 7:11675c1dce4f | 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 |