Browse Source
Merge pull request #1512 from litruv/dev
Refactor display scaling definitions for HELTEC_VISION_MASTER_T190
pull/1562/head
ripplebiz
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
7 additions and
2 deletions
-
src/helpers/ui/ST7789Display.cpp
|
|
|
@ -10,8 +10,13 @@ |
|
|
|
#define Y_OFFSET 1 // Vertical offset to prevent top row cutoff
|
|
|
|
#endif |
|
|
|
|
|
|
|
#define SCALE_X 1.875f // 240 / 128
|
|
|
|
#define SCALE_Y 2.109375f // 135 / 64
|
|
|
|
#ifdef HELTEC_VISION_MASTER_T190 |
|
|
|
#define SCALE_X 2.5f // 320 / 128
|
|
|
|
#define SCALE_Y 2.65625f // 170 / 64
|
|
|
|
#else |
|
|
|
#define SCALE_X 1.875f // 240 / 128
|
|
|
|
#define SCALE_Y 2.109375f // 135 / 64
|
|
|
|
#endif |
|
|
|
|
|
|
|
bool ST7789Display::begin() { |
|
|
|
if(!_isOn) { |
|
|
|
|