Skip to content

Commit

Permalink
Enable external 5V power on TDisplayS3
Browse files Browse the repository at this point in the history
  • Loading branch information
BitMaker-hub committed Jun 10, 2024
1 parent 559861b commit f174d62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/drivers/displays/tDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f174d62

Please sign in to comment.