From c7fc327cbcb0d20c70ac6d59b094bd25886cf699 Mon Sep 17 00:00:00 2001 From: Mario Mariete <11509521+melkati@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:16:26 +0100 Subject: [PATCH] Fix backlight initialization for TTGO T-Display --- CO2_Gadget_TFT.h | 1 + platformio.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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