From 3c7363ae7a0a3c47a3d01049ce11fc4b9dff820a Mon Sep 17 00:00:00 2001 From: Mario Mariete <11509521+melkati@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:22:50 +0100 Subject: [PATCH] Update TFT backlight control --- CO2_Gadget_TFT.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CO2_Gadget_TFT.h b/CO2_Gadget_TFT.h index 0d373f36..7b024f89 100644 --- a/CO2_Gadget_TFT.h +++ b/CO2_Gadget_TFT.h @@ -265,7 +265,7 @@ void displaySplashScreen() { void initBacklight() { #if defined(TTGO_TDISPLAY) || defined(ST7789_240x320) pinMode(TFT_BACKLIGHT, OUTPUT); - digitalWrite(TFT_BACKLIGHT, TFT_BACKLIGHT_ON); + digitalWrite(TFT_BACKLIGHT, 1); setDisplayBrightness(DisplayBrightness); #endif #ifdef ARDUINO_LILYGO_T_DISPLAY_S3