after startup output a warning messages
authorgregor herrmann <gregor@toastfreeware.priv.at>
Thu, 12 Nov 2020 17:03:50 +0000 (18:03 +0100)
committergregor herrmann <gregor@toastfreeware.priv.at>
Thu, 12 Nov 2020 17:03:50 +0000 (18:03 +0100)
instead of just a hint after the incorrect values

airingbutler.ino

index ebdc5ee67a80f95141a766b2e346cef797b1e4d6..c05f5e3b804abac4e5335e87aa000c63172a139a 100644 (file)
@@ -91,17 +91,21 @@ void loop()
        digitalWrite(led_green_pin, co2 < co2_warning_thr);
 
        // LCD
-       lcd.setCursor(0, 0);
-       lcd.print("CO2: ");
-       lcd.print(co2);
        if (time < warmuptime && (co2 == -1 || co2 == 410)) {
-               lcd.print (" (W)");
+               lcd.setCursor(0, 0);
+               lcd.print("Airing Butler");
+               lcd.setCursor(0, 1);
+               lcd.print("is warming up...");
+       } else {
+               lcd.setCursor(0, 0);
+               lcd.print("CO2: ");
+               lcd.print(co2);
+               lcd.print(" ppm    ");
+               lcd.setCursor(0, 1);
+               lcd.print("Temp: ");
+               lcd.print(temp);
+               lcd.print(" C +/-  ");
        }
-       lcd.print(" ppm    ");
-       lcd.setCursor(0, 1);
-       lcd.print("Temp: ");
-       lcd.print(temp);
-       lcd.print(" C +/-  ");
 
        // buzzer
        if (co2 >= co2_alarm_thr && lastppm < co2_alarm_thr && time - lastwarntime > cooldowntime) {