-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisplay.h
More file actions
65 lines (48 loc) · 1.59 KB
/
Display.h
File metadata and controls
65 lines (48 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//
// Created by B. Korzhak on 28.02.2019.
//
#ifndef THERMISTOR_DISPLAY_H
#define THERMISTOR_DISPLAY_H
#include "Arduino.h"
#include "Configuration.h"
class Display {
public:
Display();
// methods
void draw_main_page(float temp, bool state, int set_temp, byte process);
void draw_set_t(bool state, byte temperature);
void draw_set_light(byte state, byte _UV, byte _R, byte _G, byte _B);
void draw_set_co2(bool state, byte co2);
void update_current_position(bool update, byte max_len);
// attributes
byte cur_pos_set_t = 0;
byte max_len_t = 2;
byte max_len_light = 5;
byte max_len_co2 = 2;
byte cursor = 0;
private:
// texts for display
String current_t_text = "cur. t: ";
String degrees_by_C = " C";
String set_t_text = "set t: ";
const char *cooling_state = "cooling";
const char *heating_state = "heating";
const char *off_state = "Off";
const char *on_state = "On";
const char *rgb_state = "RGB On";
const char *uv_state = "UV On";
const char *rgb_uv_state = "Both light On";
const char *blank_text = "";
const char *uv_text = "UV:";
const char *r_text = "R:";
const char *g_text = "G:";
const char *b_text = "B:";
const char *l_arrow = "<";
const char *r_arrow = ">";
byte full_width = 128;
byte full_heigth = 64;
byte text_x = 13;
byte arrow_l_x = 3;
byte arrow_r_x = 120;
};
#endif //THERMISTOR_DISPLAY_H