]> ToastFreeware Gitweb - toast/airingbutler.git/blobdiff - airingbutler.ino
make warmuptime a constant
[toast/airingbutler.git] / airingbutler.ino
index 075db34f29970b1bca75080305623b21f4dd0c32..b4579e6fe78e2a46ec31fb07fdd016c51364a722 100644 (file)
@@ -14,6 +14,8 @@ const int buzzer_pin = 13;
 const int co2_warning_thr = 1000;
 const int co2_alarm_thr   = 1500;
 
 const int co2_warning_thr = 1000;
 const int co2_alarm_thr   = 1500;
 
+const unsigned long warmuptime = 60000; // 1 min.
+
 MHZ19 mhz19 = MHZ19(rx_pin,tx_pin);
 LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
 
 MHZ19 mhz19 = MHZ19(rx_pin,tx_pin);
 LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
 
@@ -96,6 +98,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: ");