firmware wip - Notification about Maintenance Mode on display
This commit is contained in:
parent
9e0c5056ae
commit
330b3e7649
1 changed files with 70 additions and 59 deletions
|
@ -1355,6 +1355,16 @@ void displayScreens() {
|
||||||
}
|
}
|
||||||
|
|
||||||
display.setCursor(0,0);
|
display.setCursor(0,0);
|
||||||
|
|
||||||
|
if(MaintenanceMode == true) {
|
||||||
|
display.drawBitmap(0, 0, bmpCanGrow_Logo, 128, 32, WHITE);
|
||||||
|
display.display();
|
||||||
|
display.setCursor(0,32);
|
||||||
|
display.println("Maintenance mode active");
|
||||||
|
display.print("Time left: ");
|
||||||
|
display.print(MaintenanceDuration - ((millis() - MaintenanceStarted) / 1000));
|
||||||
|
display.println("s");
|
||||||
|
} else {
|
||||||
// in this switch case the single screens gets defined
|
// in this switch case the single screens gets defined
|
||||||
switch(ScreenToDisplay) {
|
switch(ScreenToDisplay) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -1417,6 +1427,7 @@ void displayScreens() {
|
||||||
display.println(WiFi.localIP());
|
display.println(WiFi.localIP());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ScreenIterationPassed++;
|
ScreenIterationPassed++;
|
||||||
display.display();
|
display.display();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue