firmware wip - add display stuff

This commit is contained in:
Marcus 2024-05-01 03:33:08 +02:00
parent ffae349878
commit 4d5d347885

View file

@ -1063,12 +1063,15 @@ void displayScreens() {
display.print("Humidity: "); display.print("Humidity: ");
display.print(valHumidity); display.print(valHumidity);
display.println(" %"); display.println(" %");
display.println("");
display.print("Temperature: "); display.print("Temperature: ");
display.print(valTemperature); display.print(valTemperature);
display.println(" C"); display.println(" C");
display.println("");
display.print("Moisture: "); display.print("Moisture: ");
display.print(valSoilmoisture); display.print(valSoilmoisture);
display.println(" %"); display.println(" %");
display.println("");
if(UsePump == true) { if(UsePump == true) {
display.print("Pump Waterlvl: "); display.print("Pump Waterlvl: ");
switch(valWaterlevel) { switch(valWaterlevel) {
@ -1084,6 +1087,7 @@ void displayScreens() {
} }
} }
break; break;
case 1: case 1:
display.print("LED: "); display.print("LED: ");
display.print(PinLEDPWM * 100 / 255); display.print(PinLEDPWM * 100 / 255);
@ -1100,6 +1104,7 @@ void displayScreens() {
display.print("Pump state: "); display.print("Pump state: ");
display.println(digitalRead(PinPUMP)); display.println(digitalRead(PinPUMP));
break; break;
case 2: case 2:
// display Logo // display Logo
display.drawBitmap(0, 0, bmpCanGrow_Logo, 128, 32, WHITE); display.drawBitmap(0, 0, bmpCanGrow_Logo, 128, 32, WHITE);