Skip to content

Commit f231347

Browse files
authored
Merge pull request #1512 from litruv/dev
Refactor display scaling definitions for HELTEC_VISION_MASTER_T190
2 parents 852c0b0 + dd2a904 commit f231347

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/helpers/ui/ST7789Display.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@
1010
#define Y_OFFSET 1 // Vertical offset to prevent top row cutoff
1111
#endif
1212

13-
#define SCALE_X 1.875f // 240 / 128
14-
#define SCALE_Y 2.109375f // 135 / 64
13+
#ifdef HELTEC_VISION_MASTER_T190
14+
#define SCALE_X 2.5f // 320 / 128
15+
#define SCALE_Y 2.65625f // 170 / 64
16+
#else
17+
#define SCALE_X 1.875f // 240 / 128
18+
#define SCALE_Y 2.109375f // 135 / 64
19+
#endif
1520

1621
bool ST7789Display::begin() {
1722
if(!_isOn) {

0 commit comments

Comments
 (0)