Enable external 5V power on TDisplayS3
This commit is contained in:
parent
559861bda3
commit
f174d623e9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user