From 26940925892f819494e8ee6770b7e09cdf71139d Mon Sep 17 00:00:00 2001 From: Nilson Santos Date: Wed, 10 Jan 2024 19:10:08 -0300 Subject: [PATCH] Rotate the screen so the USB connector is on the right if the board is T-Embed --- src/drivers/displays/tDisplayDriver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/displays/tDisplayDriver.cpp b/src/drivers/displays/tDisplayDriver.cpp index c13d966..e78d00d 100644 --- a/src/drivers/displays/tDisplayDriver.cpp +++ b/src/drivers/displays/tDisplayDriver.cpp @@ -20,7 +20,11 @@ TFT_eSprite background = TFT_eSprite(&tft); // Invoke library sprite void tDisplay_Init(void) { tft.init(); + #ifdef LILYGO_S3_T_EMBED + tft.setRotation(3); + #else tft.setRotation(1); + #endif tft.setSwapBytes(true); // Swap the colour byte order when rendering background.createSprite(WIDTH, HEIGHT); // Background Sprite background.setSwapBytes(true);