From f174d623e93eacf91338f13e2525c1bed9e4b5f9 Mon Sep 17 00:00:00 2001 From: BitMaker Date: Mon, 10 Jun 2024 21:24:30 +0200 Subject: [PATCH] Enable external 5V power on TDisplayS3 --- src/drivers/displays/tDisplayDriver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/displays/tDisplayDriver.cpp b/src/drivers/displays/tDisplayDriver.cpp index 88c0344..3bab4a2 100644 --- a/src/drivers/displays/tDisplayDriver.cpp +++ b/src/drivers/displays/tDisplayDriver.cpp @@ -20,6 +20,12 @@ TFT_eSprite background = TFT_eSprite(&tft); // Invoke library sprite void tDisplay_Init(void) { + //Init pin 15 to eneble 5V external power (LilyGo bug) +#ifdef PIN_ENABLE5V + pinMode(PIN_ENABLE5V, OUTPUT); + digitalWrite(PIN_ENABLE5V, HIGH); +#endif + tft.init(); #ifdef LILYGO_S3_T_EMBED tft.setRotation(ROTATION_270);