LCD implementation of our project.
Dependencies: mbed mbed-rtos MLX90614
Header.h@0:1e597b0f8b3b, 2015-03-20 (annotated)
- Committer:
- ovidiup13
- Date:
- Fri Mar 20 23:22:41 2015 +0000
- Revision:
- 0:1e597b0f8b3b
- Child:
- 2:fcde41900fa5
initial menu mock-up st7565
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 | 0:1e597b0f8b3b | 16 | float degrees; |
ovidiup13 | 0:1e597b0f8b3b | 17 | char scale; //celsius |
ovidiup13 | 0:1e597b0f8b3b | 18 | ST7565 * st7565; |
ovidiup13 | 0:1e597b0f8b3b | 19 | |
ovidiup13 | 0:1e597b0f8b3b | 20 | //functions |
ovidiup13 | 0:1e597b0f8b3b | 21 | void setScale(char c); |
ovidiup13 | 0:1e597b0f8b3b | 22 | void setTemperature(float t); |
ovidiup13 | 0:1e597b0f8b3b | 23 | void setBatteryLevel(float d); |
ovidiup13 | 0:1e597b0f8b3b | 24 | void display(void); |
ovidiup13 | 0:1e597b0f8b3b | 25 | Header(float dg, float lvl, char s, ST7565 * lcd); |
ovidiup13 | 0:1e597b0f8b3b | 26 | }; |
ovidiup13 | 0:1e597b0f8b3b | 27 | |
ovidiup13 | 0:1e597b0f8b3b | 28 | #endif |