Browse Source

Refactor display scaling definitions for HELTEC_VISION_MASTER_T190

pull/1512/head
Max Litruv Boonzaayer 4 months ago
parent
commit
dd2a9044f3
  1. 9
      src/helpers/ui/ST7789Display.cpp

9
src/helpers/ui/ST7789Display.cpp

@ -10,8 +10,13 @@
#define Y_OFFSET 1 // Vertical offset to prevent top row cutoff #define Y_OFFSET 1 // Vertical offset to prevent top row cutoff
#endif #endif
#define SCALE_X 1.875f // 240 / 128 #ifdef HELTEC_VISION_MASTER_T190
#define SCALE_Y 2.109375f // 135 / 64 #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() { bool ST7789Display::begin() {
if(!_isOn) { if(!_isOn) {

Loading…
Cancel
Save