Skip to content

Commit

Permalink
Rotate the screen so the USB connector is on the right if the board i…
Browse files Browse the repository at this point in the history
…s T-Embed
  • Loading branch information
Nilson Santos committed Jan 10, 2024
1 parent 8f0e4ff commit 2694092
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/drivers/displays/tDisplayDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2694092

Please sign in to comment.