-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path4_LCD.ino
More file actions
39 lines (36 loc) · 799 Bytes
/
4_LCD.ino
File metadata and controls
39 lines (36 loc) · 799 Bytes
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
void updateLCD() {
if (isInduon) {
lcd.backlight();
lcdPrintMenu();
} else {
if (millis() > timeLastLCD + timeOutLCD) {
lcd.noBacklight();
}
}
}
void lcdPrintMenu() {
lcd.setCursor(0,0);
lcd.print("M:SER");
}
void lcdPrintPower() {
// Power in %
lcd.setCursor(8,0);
if ( power < 100 ) { lcd.print(" "); }
if ( power < 10 ) { lcd.print(" "); }
lcd.print(power);
lcd.print("%");
}
void lcdPrintPowerLevel() {
// Derzeitige Stufe
lcd.setCursor(14,0);
lcd.print("P");
lcd.setCursor(15,0);
if ( isPower != true && power > 0) { lcd.print(CMD_CUR-1); }
else { lcd.print(CMD_CUR); }
}
void lcdPrintError() {
lcd.setCursor(0,1);
lcd.print(errorMessage);
Serial.println(errorMessage);
timeLastLCD = millis();
}