This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
menuInit.ino
133 lines (111 loc) · 3.66 KB
/
menuInit.ino
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
void menuInit() {
//menu text display
unsigned int i = 0;
menu[i].code = 0;
menu[i++].text = "EXIT MENU";
menu[i].code = 1;
menu[i++].text = "SET CURRENT TIME";
menu[i].code = 11;
menu[i++].text = "CURRENT TIME:";
menu[i].code = 2;
menu[i++].text = "SET OPERATING MODE";
menu[i].code = 20;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 21;
menu[i++].text = "CONTINUOUS MODE";
menu[i].code = 211;
menu[i++].text = "ACTIVATE";
menu[i].code = 22;
menu[i++].text = "DAILY MODE";
menu[i].code = 220;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 221;
menu[i++].text = "ACTIVATE";
menu[i].code = 222;
menu[i++].text = "TARGET VOLUME (L)";
menu[i].code = 2221;
menu[i++].text = "SET LITRES PER DAY:";
menu[i].code = 223;
menu[i++].text = "SCHEDULE TIME";
menu[i].code = 2231;
menu[i++].text = "START DAILY WATER CHANGE AT:";
menu[i].code = 23;
menu[i++].text = "TOP-OFF ONLY MODE";
menu[i].code = 230;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 231;
menu[i++].text = "ACTIVATE";
menu[i].code = 24;
menu[i++].text = "DAILY TIMER MODE";
menu[i].code = 240;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 241;
menu[i++].text = "ACTIVATE";
menu[i].code = 242;
menu[i++].text = "DRAIN DURATION";
menu[i].code = 2421;
menu[i++].text = "DRAIN FOR THIS MANY MINUTES:";
menu[i].code = 243;
menu[i++].text = "SCHEDULE TIME";
menu[i].code = 2431;
menu[i++].text = "START DAILY WATER CHANGE AT:";
menu[i].code = 3;
menu[i++].text = "FLOW METER";
menu[i].code = 30;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 31;
menu[i++].text = "CALIBRATION FACTOR";
menu[i].code = 4;
menu[i++].text = "LOW PRESSURE SWITCH";
menu[i].code = 40;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 41;
menu[i++].text = "ENABLE/DISABLE LOW PRESSURE SWITCH";
menu[i].code = 411;
menu[i++].text = "DELAY FILLING IF PRESSURE IS LOW?";
menu[i].code = 42;
menu[i++].text = "DELAY DURATION";
menu[i].code = 421;
menu[i++].text = "DELAY DURATION IN MINUTES:";
menu[i].code = 5;
menu[i++].text = "DRAIN PUMP/VALVE";
menu[i].code = 50;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 51;
menu[i++].text = "DRAIN PUMP SPEED";
menu[i].code = 511;
menu[i++].text = "SET DRAIN PUMP POWER (DEFAULT 255):";
menu[i].code = 6;
menu[i++].text = "EMERGENCY SHUTDOWN";
menu[i].code = 60;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 61;
menu[i++].text = "DRAIN DURATION";
menu[i].code = 611;
menu[i++].text = "EMERGENCY DRAIN DURATION (MINUTES):";
menu[i].code = 62;
menu[i++].text = "ALLOW AUTO RESET";
menu[i].code = 621;
menu[i++].text = "ENABLE AUTO RESET?";
menu[i].code = 63;
menu[i++].text = "AUTO RESET DELAY";
menu[i].code = 631;
menu[i++].text = "SET AUTO RESET DELAY (HOURS):";
menu[i].code = 64;
menu[i++].text = "MAX # AUTO RESETS";
menu[i].code = 641;
menu[i++].text = "MAX # OF AUTO RESETS ALLOWED:";
menu[i].code = 7;
menu[i++].text = "RESET ERRORS";
menu[i].code = 71;
menu[i++].text = "RESET ALL ERRORS?";
menu[i].code = 8;
menu[i++].text = "MAINTENANCE";
menu[i].code = 80;
menu[i++].text = "PREVIOUS MENU";
menu[i].code = 81;
menu[i++].text = "HOLD TO OPEN DRAIN";
menu[i].code = 82;
menu[i++].text = "HOLD TO OPEN INLET";
maxMenuItems = i + 1;
}