LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Header.h@2:fcde41900fa5, 2015-04-04 (annotated)
- Committer:
- ovidiup13
- Date:
- Sat Apr 04 18:24:21 2015 +0000
- Revision:
- 2:fcde41900fa5
- Parent:
- 0:1e597b0f8b3b
- Child:
- 3:688b62ff6474
Cleaned up interface, added buttons.
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 | 0:1e597b0f8b3b | 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 | //variables |
ovidiup13 | 0:1e597b0f8b3b | 15 | uint8_t battery_level; |
ovidiup13 | 2:fcde41900fa5 | 16 | char * title; |
ovidiup13 | 0:1e597b0f8b3b | 17 | ST7565 * st7565; |
ovidiup13 | 0:1e597b0f8b3b | 18 | |
ovidiup13 | 0:1e597b0f8b3b | 19 | //functions |
ovidiup13 | 0:1e597b0f8b3b | 20 | void setBatteryLevel(float d); |
ovidiup13 | 0:1e597b0f8b3b | 21 | void display(void); |
ovidiup13 | 2:fcde41900fa5 | 22 | |
ovidiup13 | 2:fcde41900fa5 | 23 | void setTitle(char * t){ |
ovidiup13 | 2:fcde41900fa5 | 24 | title = t; |
ovidiup13 | 2:fcde41900fa5 | 25 | } |
ovidiup13 | 2:fcde41900fa5 | 26 | Header(float lvl, char * t, ST7565 * lcd); |
ovidiup13 | 0:1e597b0f8b3b | 27 | }; |
ovidiup13 | 0:1e597b0f8b3b | 28 | |
ovidiup13 | 0:1e597b0f8b3b | 29 | #endif |