Browse Source
Merge pull request #249 from recrof/dev
lilygo t-echo, elecrow thinknode m1: correct display scalling
pull/250/head
ripplebiz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with
17 additions and
12 deletions
-
boards/heltec_t114.json
-
boards/promicro_nrf52840.json
-
boards/t-echo.json
-
boards/thinknode_m1.json
-
boards/tracker-t1000-e.json
-
src/helpers/ui/GxEPDDisplay.cpp
-
src/helpers/ui/GxEPDDisplay.h
|
|
@ -34,7 +34,8 @@ |
|
|
], |
|
|
], |
|
|
"debug": { |
|
|
"debug": { |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"svd_path": "nrf52840.svd" |
|
|
"svd_path": "nrf52840.svd", |
|
|
|
|
|
"openocd_target": "nrf52.cfg" |
|
|
}, |
|
|
}, |
|
|
"frameworks": [ |
|
|
"frameworks": [ |
|
|
"arduino" |
|
|
"arduino" |
|
|
|
|
|
@ -51,7 +51,8 @@ |
|
|
], |
|
|
], |
|
|
"debug": { |
|
|
"debug": { |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"svd_path": "nrf52840.svd" |
|
|
"svd_path": "nrf52840.svd", |
|
|
|
|
|
"openocd_target": "nrf52.cfg" |
|
|
}, |
|
|
}, |
|
|
"frameworks": [ |
|
|
"frameworks": [ |
|
|
"arduino", |
|
|
"arduino", |
|
|
|
|
|
@ -37,7 +37,8 @@ |
|
|
"onboard_tools": [ |
|
|
"onboard_tools": [ |
|
|
"jlink" |
|
|
"jlink" |
|
|
], |
|
|
], |
|
|
"svd_path": "nrf52840.svd" |
|
|
"svd_path": "nrf52840.svd", |
|
|
|
|
|
"openocd_target": "nrf52.cfg" |
|
|
}, |
|
|
}, |
|
|
"frameworks": [ |
|
|
"frameworks": [ |
|
|
"arduino" |
|
|
"arduino" |
|
|
|
|
|
@ -45,7 +45,8 @@ |
|
|
"onboard_tools": [ |
|
|
"onboard_tools": [ |
|
|
"jlink" |
|
|
"jlink" |
|
|
], |
|
|
], |
|
|
"svd_path": "nrf52840.svd" |
|
|
"svd_path": "nrf52840.svd", |
|
|
|
|
|
"openocd_target": "nrf52.cfg" |
|
|
}, |
|
|
}, |
|
|
"frameworks": [ |
|
|
"frameworks": [ |
|
|
"arduino" |
|
|
"arduino" |
|
|
|
|
|
@ -32,7 +32,8 @@ |
|
|
"connectivity": ["bluetooth"], |
|
|
"connectivity": ["bluetooth"], |
|
|
"debug": { |
|
|
"debug": { |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"jlink_device": "nRF52840_xxAA", |
|
|
"svd_path": "nrf52840.svd" |
|
|
"svd_path": "nrf52840.svd", |
|
|
|
|
|
"openocd_target": "nrf52.cfg" |
|
|
}, |
|
|
}, |
|
|
"frameworks": ["arduino"], |
|
|
"frameworks": ["arduino"], |
|
|
"name": "Seeed T1000-E", |
|
|
"name": "Seeed T1000-E", |
|
|
|
|
|
@ -7,10 +7,10 @@ |
|
|
|
|
|
|
|
|
#ifdef TECHO_ZOOM |
|
|
#ifdef TECHO_ZOOM |
|
|
#define SCALE_X (1.5625f * 1.5f) // 200 / 128 (with 1.5 scale)
|
|
|
#define SCALE_X (1.5625f * 1.5f) // 200 / 128 (with 1.5 scale)
|
|
|
#define SCALE_Y (2.9687f * 1.5f) // 190 / 64 (with 1.5 scale)
|
|
|
#define SCALE_Y (1.5625f * 1.5f) // 200 / 128 (with 1.5 scale)
|
|
|
#else |
|
|
#else |
|
|
#define SCALE_X 1.5625f // 200 / 128
|
|
|
#define SCALE_X 1.5625f // 200 / 128
|
|
|
#define SCALE_Y 2.9687f // 190 / 64
|
|
|
#define SCALE_Y 1.5625f // 200 / 128
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
bool GxEPDDisplay::begin() { |
|
|
bool GxEPDDisplay::begin() { |
|
|
|
|
|
@ -29,7 +29,7 @@ class GxEPDDisplay : public DisplayDriver { |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
// there is a margin in y...
|
|
|
// there is a margin in y...
|
|
|
GxEPDDisplay() : DisplayDriver(128, 64), display(GxEPD2_150_BN(DISP_CS, DISP_DC, DISP_RST, DISP_BUSY)) { |
|
|
GxEPDDisplay() : DisplayDriver(128, 128), display(GxEPD2_150_BN(DISP_CS, DISP_DC, DISP_RST, DISP_BUSY)) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool begin(); |
|
|
bool begin(); |
|
|
|