Enable external 5V power on TDisplayS3

This commit is contained in:
BitMaker 2024-06-10 21:24:30 +02:00
parent 559861bda3
commit f174d623e9

View File

@ -20,6 +20,12 @@ TFT_eSprite background = TFT_eSprite(&tft); // Invoke library sprite
void tDisplay_Init(void) 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(); tft.init();
#ifdef LILYGO_S3_T_EMBED #ifdef LILYGO_S3_T_EMBED
tft.setRotation(ROTATION_270); tft.setRotation(ROTATION_270);