Merge pull request #92 from Genaker/t190-rotation

Allow screen rotation for T190
This commit is contained in:
Yegor Shytikov
2024-12-15 11:53:02 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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);