diff --git a/CO2_Gadget_TFT.h b/CO2_Gadget_TFT.h index 1c1efd2d..0d373f36 100644 --- a/CO2_Gadget_TFT.h +++ b/CO2_Gadget_TFT.h @@ -265,6 +265,7 @@ void displaySplashScreen() { void initBacklight() { #if defined(TTGO_TDISPLAY) || defined(ST7789_240x320) pinMode(TFT_BACKLIGHT, OUTPUT); + digitalWrite(TFT_BACKLIGHT, TFT_BACKLIGHT_ON); setDisplayBrightness(DisplayBrightness); #endif #ifdef ARDUINO_LILYGO_T_DISPLAY_S3 diff --git a/platformio.ini b/platformio.ini index 6f428a22..6d5e6fbe 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="\"000"\" + -D CO2_GADGET_REV="\"001"\" -D CORE_DEBUG_LEVEL=0 -DCACHE_DIR=".pio/build" -DBUZZER_PIN=2 ; ESP32 pin GPIO13 connected to piezo buzzer