--- original/weatherradio.ino 2021-01-09 21:42:06.260572410 +0000 +++ new/weatherradio.ino 2021-01-09 21:48:58.829428260 +0000 @@ -142,9 +142,9 @@ JSON_OBJECT_SIZE(3) + // TSL237 sensor JSON_OBJECT_SIZE(7) + // TSL2591 sensor JSON_OBJECT_SIZE(6) + // Davis Anemometer - JSON_OBJECT_SIZE(2); // Water sensor - JSON_OBJECT_SIZE(6); // Davis Anemometer - JSON_OBJECT_SIZE(2); // Rain sensor + JSON_OBJECT_SIZE(2) + // Water sensor + JSON_OBJECT_SIZE(6) + // ? Other sensor + JSON_OBJECT_SIZE(2); // Rain sensor StaticJsonDocument < docSize > weatherDoc; unsigned long start = 0; @@ -301,6 +301,7 @@ } } +#ifdef USE_OLED void oledSingleButtonClicked() { // reset the turn off timeout oledData.lastShowDisplay = millis(); @@ -313,6 +314,7 @@ // turn on the display oledShow(true); } +#endif //USE_OLED unsigned long lastSensorRead; @@ -395,8 +397,10 @@ // initial readout all sensors updateSensorData(); +#ifdef USE_OLED // define handling of clicks displayButton.attachClick(oledSingleButtonClicked); +#endif // initially set display text updateDisplayText();