Permit touch calibration override
This commit is contained in:
@ -303,10 +303,18 @@
|
||||
|
||||
// Emulated DOGM have xpt calibration values independent of display resolution
|
||||
#if ENABLED(SPI_GRAPHICAL_TFT)
|
||||
#define XPT2046_X_CALIBRATION -11245
|
||||
#define XPT2046_Y_CALIBRATION 8629
|
||||
#define XPT2046_X_OFFSET 685
|
||||
#define XPT2046_Y_OFFSET -285
|
||||
#ifndef XPT2046_X_CALIBRATION
|
||||
#define XPT2046_X_CALIBRATION -11245
|
||||
#endif
|
||||
#ifdef XPT2046_Y_CALIBRATION
|
||||
#define XPT2046_Y_CALIBRATION 8629
|
||||
#endif
|
||||
#ifdef XPT2046_X_OFFSET
|
||||
#define XPT2046_X_OFFSET 685
|
||||
#endif
|
||||
#ifdef XPT2046_Y_OFFSET
|
||||
#define XPT2046_Y_OFFSET -285
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
Reference in New Issue
Block a user