Skip to content

Commit

Permalink
Fix backlight initialization for TTGO T-Display
Browse files Browse the repository at this point in the history
  • Loading branch information
melkati committed Feb 25, 2024
1 parent a477b50 commit c7fc327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CO2_Gadget_TFT.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
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="\"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
Expand Down

0 comments on commit c7fc327

Please sign in to comment.