Permit touch params override w/ Robin nano (#19196)

This commit is contained in:
Martin 2020-09-01 01:56:58 +02:00 committed by Scott Lahteine
parent df7e35ccd7
commit 7967590682

View File

@ -194,10 +194,18 @@
// LVGL Configs // LVGL Configs
#if ENABLED(TFT_LVGL_UI_FSMC) #if ENABLED(TFT_LVGL_UI_FSMC)
#define XPT2046_X_CALIBRATION 17880 #ifndef XPT2046_X_CALIBRATION
#define XPT2046_Y_CALIBRATION -12234 #define XPT2046_X_CALIBRATION 17880
#define XPT2046_X_OFFSET -45 #endif
#define XPT2046_Y_OFFSET 349 #ifndef XPT2046_Y_CALIBRATION
#define XPT2046_Y_CALIBRATION -12234
#endif
#ifndef XPT2046_X_OFFSET
#define XPT2046_X_OFFSET -45
#endif
#ifndef XPT2046_Y_OFFSET
#define XPT2046_Y_OFFSET 349
#endif
// Emulated DOGM Configs // Emulated DOGM Configs
#elif ENABLED(FSMC_GRAPHICAL_TFT) #elif ENABLED(FSMC_GRAPHICAL_TFT)
@ -244,10 +252,18 @@
#define FSMC_DMA_DEV DMA2 #define FSMC_DMA_DEV DMA2
#define FSMC_DMA_CHANNEL DMA_CH5 #define FSMC_DMA_CHANNEL DMA_CH5
#define XPT2046_X_CALIBRATION -12246 #ifndef XPT2046_X_CALIBRATION
#define XPT2046_Y_CALIBRATION 9453 #define XPT2046_X_CALIBRATION -12246
#define XPT2046_X_OFFSET 360 #endif
#define XPT2046_Y_OFFSET -22 #ifndef XPT2046_Y_CALIBRATION
#define XPT2046_Y_CALIBRATION 9453
#endif
#ifndef XPT2046_X_OFFSET
#define XPT2046_X_OFFSET 360
#endif
#ifndef XPT2046_Y_OFFSET
#define XPT2046_Y_OFFSET -22
#endif
#define TOUCH_CS_PIN PA7 // SPI2_NSS #define TOUCH_CS_PIN PA7 // SPI2_NSS
#define TOUCH_SCK_PIN PB13 // SPI2_SCK #define TOUCH_SCK_PIN PB13 // SPI2_SCK
@ -265,10 +281,18 @@
#define ILI9341_COLOR_RGB #define ILI9341_COLOR_RGB
#elif ENABLED(TFT_480x320) #elif ENABLED(TFT_480x320)
#define XPT2046_X_CALIBRATION 17880 #ifndef XPT2046_X_CALIBRATION
#define XPT2046_Y_CALIBRATION -12234 #define XPT2046_X_CALIBRATION 17880
#define XPT2046_X_OFFSET -45 #endif
#define XPT2046_Y_OFFSET 349 #ifndef XPT2046_Y_CALIBRATION
#define XPT2046_Y_CALIBRATION -12234
#endif
#ifndef XPT2046_X_OFFSET
#define XPT2046_X_OFFSET -45
#endif
#ifndef XPT2046_Y_OFFSET
#define XPT2046_Y_OFFSET 349
#endif
#define TFT_DRIVER ILI9488 #define TFT_DRIVER ILI9488
#define TFT_BUFFER_SIZE 14400 #define TFT_BUFFER_SIZE 14400