tft rotation fix

This commit is contained in:
richonguzman 2024-05-12 22:57:36 -04:00
parent ed2c8de529
commit f457c341d8
1 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,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