diff --git a/platformio.ini b/platformio.ini index d52a377..e4c44fd 100644 --- a/platformio.ini +++ b/platformio.ini @@ -241,6 +241,7 @@ build_flags = -DRADIOLIB_EXCLUDE_SX1231=true -DRADIOLIB_EXCLUDE_SX127X=true -DRADIOLIB_EXCLUDE_SX128X=true + -DROTATION=1 # 1 = default; 3 = inverted lib_deps = SPI Wire diff --git a/tft_src/main.cpp b/tft_src/main.cpp index 9acc953..340f88d 100644 --- a/tft_src/main.cpp +++ b/tft_src/main.cpp @@ -852,7 +852,7 @@ void setup() /// st7789->setSPISpeed(3000000); /// default ~ 1000000 Serial.printf("Ready!\r\n"); - st7789->setRotation(1); + st7789->setRotation(ROTATION); st7789->fillScreen(ST7789_BLACK); drawText(0, 0, "init >>> ", ST7789_WHITE);