From d9af677f69b5a17d51fef625744e4c6dda742a3f Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 12 May 2024 22:57:45 -0400 Subject: [PATCH] tft rotation fix --- src/display.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/display.cpp b/src/display.cpp index 590f4c01..be523189 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -41,7 +41,11 @@ void setup_display() { #ifdef HAS_TFT tft.init(); tft.begin(); - tft.setRotation(1); + if (Config.display.turn180) { + tft.setRotation(3); + } else { + tft.setRotation(1); + } tft.setTextFont(0); tft.fillScreen(TFT_BLACK); #else