|
|
@ -2062,12 +2062,22 @@ |
|
|
|
//
|
|
|
|
// ADS7843/XPT2046 ADC Touchscreen such as ILI9341 2.8
|
|
|
|
//
|
|
|
|
//#define TOUCH_BUTTONS
|
|
|
|
#define TOUCH_BUTTONS |
|
|
|
#if ENABLED(TOUCH_BUTTONS) |
|
|
|
#define XPT2046_X_CALIBRATION 12316 |
|
|
|
#define XPT2046_Y_CALIBRATION -8981 |
|
|
|
#define XPT2046_X_OFFSET -43 |
|
|
|
#define XPT2046_Y_OFFSET 257 |
|
|
|
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
|
|
|
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
|
|
|
|
|
|
|
/* MKS Robin TFT v2.0 */ |
|
|
|
#define XPT2046_X_CALIBRATION 12013 |
|
|
|
#define XPT2046_Y_CALIBRATION -8711 |
|
|
|
#define XPT2046_X_OFFSET -32 |
|
|
|
#define XPT2046_Y_OFFSET 256 |
|
|
|
|
|
|
|
/* MKS Robin TFT v1.1 */ |
|
|
|
//#define XPT2046_X_CALIBRATION -11792
|
|
|
|
//#define XPT2046_Y_CALIBRATION 8947
|
|
|
|
//#define XPT2046_X_OFFSET 342
|
|
|
|
//#define XPT2046_Y_OFFSET -19
|
|
|
|
#endif |
|
|
|
|
|
|
|
//
|
|
|
@ -2203,7 +2213,7 @@ |
|
|
|
*/ |
|
|
|
//#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
|
|
|
|
|
|
|
|
// Delay (in milliseconds) before the next move will start, to give the servo time to reach its target angle.
|
|
|
|
// (ms) Delay before the next move will start, to give the servo time to reach its target angle.
|
|
|
|
// 300ms is a good value but you can try less delay.
|
|
|
|
// If the servo can't reach the requested position, increase it.
|
|
|
|
#define SERVO_DELAY { 300 } |
|
|
|