Skip to content

Commit

Permalink
Correct screen orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Aug 15, 2024
1 parent 9b0af61 commit 8ee1241
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/DeepSleep/DeepSleep.ino
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void setup()
{

tft.begin();
tft.setRotation(2);
tft.setRotation(0);
tft.pushImage(0, 0, 128, 128, (uint16_t *)image_logo);

//Disable backlight hold on
Expand Down
3 changes: 2 additions & 1 deletion examples/LVGL_Factory/LVGL_Factory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ void setup()
analogReadResolution(12);

tft.begin();
tft.setRotation(2);
tft.setRotation(0);


tft.pushImage(0, 0, 128, 128, (uint16_t *)gImage_img_t_qt_cert);
delay(2000);
Expand Down
2 changes: 1 addition & 1 deletion examples/RotationTest/RotationTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ unsigned long targetTime = 0;

void setup(void) {
tft.init();
tft.setRotation(2);
tft.setRotation(0);
tft.fillScreen(TFT_BLACK);
targetTime = millis() + 1000;
}
Expand Down

0 comments on commit 8ee1241

Please sign in to comment.