|
@@ -19,6 +19,7 @@
|
19
|
19
|
#pragma once
|
20
|
20
|
|
21
|
21
|
#include "../../inc/MarlinConfigPre.h"
|
|
22
|
+#include "tft_io.h"
|
22
|
23
|
|
23
|
24
|
#ifndef TOUCH_SCREEN_CALIBRATION_PRECISION
|
24
|
25
|
#define TOUCH_SCREEN_CALIBRATION_PRECISION 80
|
|
@@ -28,14 +29,6 @@
|
28
|
29
|
#define TOUCH_SCREEN_HOLD_TO_CALIBRATE_MS 2500
|
29
|
30
|
#endif
|
30
|
31
|
|
31
|
|
-#define TOUCH_ORIENTATION_NONE 0
|
32
|
|
-#define TOUCH_LANDSCAPE 1
|
33
|
|
-#define TOUCH_PORTRAIT 2
|
34
|
|
-
|
35
|
|
-#ifndef TOUCH_ORIENTATION
|
36
|
|
- #define TOUCH_ORIENTATION TOUCH_LANDSCAPE
|
37
|
|
-#endif
|
38
|
|
-
|
39
|
32
|
typedef struct __attribute__((__packed__)) {
|
40
|
33
|
int32_t x, y;
|
41
|
34
|
int16_t offset_x, offset_y;
|