Skip to content

Commit

Permalink
Beta v0.12.20 Increase delay in setDisplayBrightness function
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed Apr 5, 2024
1 parent 3835556 commit 77d21a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CO2_Gadget_TFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77d21a7

Please sign in to comment.