Skip to content

Commit

Permalink
fix T-Watch flip screen (meshtastic#3113)
Browse files Browse the repository at this point in the history
  • Loading branch information
mverch67 authored Jan 19, 2024
1 parent b489ee0 commit af157d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boards/t-watch-s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [["0x303A", "0x1001"]],
"hwids": [
["0x303A", "0x1001"],
["0x303A", "0x0002"]
],
"mcu": "esp32s3",
"variant": "t-watch-s3"
},
Expand Down
4 changes: 4 additions & 0 deletions src/graphics/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,11 @@ void Screen::setup()
// Standard behaviour is to FLIP the screen (needed on T-Beam). If this config item is set, unflip it, and thereby logically
// flip it. If you have a headache now, you're welcome.
if (!config.display.flip_screen) {
#if defined(ST7735_CS) || defined(ILI9341_DRIVER) || defined(ST7789_CS) || defined(RAK14014)
static_cast<TFTDisplay *>(dispdev)->flipScreenVertically();
#else
dispdev->flipScreenVertically();
#endif
}
#endif

Expand Down

0 comments on commit af157d2

Please sign in to comment.