diff --git a/CO2_Gadget_TFT.h b/CO2_Gadget_TFT.h index 2acae8ba..85ebc574 100644 --- a/CO2_Gadget_TFT.h +++ b/CO2_Gadget_TFT.h @@ -194,7 +194,7 @@ void setDisplayBrightness(uint16_t newBrightness) { Serial.println("\n-->[TFT ] DisplayBrightness value at: " + String(DisplayBrightness)); Serial.println("-->[TFT ] actualDisplayBrightness value at: " + String(actualDisplayBrightness)); Serial.println("-->[TFT ] New display brightness value at: " + String(newBrightness)); - delay(10); + delay(20); analogWrite(TFT_BACKLIGHT, newBrightness); actualDisplayBrightness = newBrightness; } @@ -630,7 +630,7 @@ void displayShowValues(bool forceRedraw = false) { uint8_t currentDatum = tft.getTextDatum(); tft.unloadFont(); if (forceRedraw) { - Serial.println("-->[TFT ] Displaying values. Force Redraw: " + String(forceRedraw ? "true" : "false")); + // Serial.println("-->[TFT ] Displaying values. Force Redraw: " + String(forceRedraw ? "true" : "false")); tft.fillScreen(TFT_BLACK); // Remove previous remains in the screen } showCO2(co2, elementPosition.co2X, elementPosition.co2Y, elementPosition.pixelsToBaseline, forceRedraw); diff --git a/platformio.ini b/platformio.ini index 9b792f45..7078f214 100644 --- a/platformio.ini +++ b/platformio.ini @@ -42,7 +42,7 @@ build_flags = -D MQTT_BROKER_SERVER="\"192.168.1.145"\" -D CO2_GADGET_VERSION="\"0.12."\" - -D CO2_GADGET_REV="\"019"\" + -D CO2_GADGET_REV="\"020"\" -D CORE_DEBUG_LEVEL=0 -DCACHE_DIR=".pio/build" -DBUZZER_PIN=2 ; ESP32 pin GPIO13 connected to piezo buzzer