Commit 747716b
fix(t-deck): restore CALIBRATE_TOUCH so the touch panel is calibrated
The T-Deck touch panel has been uncalibrated on the MUI build since #7142.
device-ui carries calibration parameters for this board and applies them in
LGFXDriver.h, but the whole block is behind `#ifdef CALIBRATE_TOUCH`. That flag
was active for t-deck-tft until 8ae05f6 ("MUI: defcon tft display size
definitions", #7142) commented it out while adding LGFX_SCREEN_WIDTH and
LGFX_SCREEN_HEIGHT. Neither that PR's description nor its discussion mentions
touch, so the change looks unintended.
Without the flag no calibration is applied at all and the panel runs on raw
LovyanGFX values: a touch lands off by the 320/240 ratio, stretched by about
1.33 on X and compressed by about 0.8 on Y, accurate only near the bottom-left
corner and worse with distance from it. Restoring the line makes touch accurate
across the screen.
CALIBRATE_TOUCH=0 applies the stored parameters; 1 would run interactive
calibration, which does not persist yet.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 6de6c3d commit 747716b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments