]> ToastFreeware Gitweb - toast/airingbutler.git/blobdiff - airingbutler.ino
warn during warmup
[toast/airingbutler.git] / airingbutler.ino
index 075db34f29970b1bca75080305623b21f4dd0c32..a44685562c49845d0980f24d672a6381a7f0ee69 100644 (file)
@@ -18,6 +18,7 @@ MHZ19 mhz19 = MHZ19(rx_pin,tx_pin);
 LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
 
 unsigned long time;
 LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
 
 unsigned long time;
+unsigned long warmuptime = 60000; // 1 min.
 int co2 = 0;
 int temp = 0;
 int lastppm = 0;
 int co2 = 0;
 int temp = 0;
 int lastppm = 0;
@@ -96,6 +97,9 @@ void loop()
        lcd.setCursor(0, 0);
        lcd.print("CO2: ");
        lcd.print(co2);
        lcd.setCursor(0, 0);
        lcd.print("CO2: ");
        lcd.print(co2);
+       if (time < warmuptime && (co2 == -1 || co2 == 410)) {
+               lcd.print (" (W)");
+       }
        lcd.print(" ppm    ");
        lcd.setCursor(0, 1);
        lcd.print("Temp: ");
        lcd.print(" ppm    ");
        lcd.setCursor(0, 1);
        lcd.print("Temp: ");