X-Git-Url: https://git.toastfreeware.priv.at/toast/airingbutler.git/blobdiff_plain/ee2821ca637d9d5a79a37249275f54cf5b567d53..77ddbde90ffdf3a4a6265094f0d2c33844cd3724:/airingbutler.ino diff --git a/airingbutler.ino b/airingbutler.ino index 075db34..b4579e6 100644 --- a/airingbutler.ino +++ b/airingbutler.ino @@ -14,6 +14,8 @@ const int buzzer_pin = 13; 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); @@ -96,6 +98,9 @@ void loop() 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: ");