|
@ -19,6 +19,7 @@ |
|
|
#pragma once |
|
|
#pragma once |
|
|
|
|
|
|
|
|
#include "../../inc/MarlinConfigPre.h" |
|
|
#include "../../inc/MarlinConfigPre.h" |
|
|
|
|
|
#include "tft_io.h" |
|
|
|
|
|
|
|
|
#ifndef TOUCH_SCREEN_CALIBRATION_PRECISION |
|
|
#ifndef TOUCH_SCREEN_CALIBRATION_PRECISION |
|
|
#define TOUCH_SCREEN_CALIBRATION_PRECISION 80 |
|
|
#define TOUCH_SCREEN_CALIBRATION_PRECISION 80 |
|
@ -28,14 +29,6 @@ |
|
|
#define TOUCH_SCREEN_HOLD_TO_CALIBRATE_MS 2500 |
|
|
#define TOUCH_SCREEN_HOLD_TO_CALIBRATE_MS 2500 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define TOUCH_ORIENTATION_NONE 0 |
|
|
|
|
|
#define TOUCH_LANDSCAPE 1 |
|
|
|
|
|
#define TOUCH_PORTRAIT 2 |
|
|
|
|
|
|
|
|
|
|
|
#ifndef TOUCH_ORIENTATION |
|
|
|
|
|
#define TOUCH_ORIENTATION TOUCH_LANDSCAPE |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
typedef struct __attribute__((__packed__)) { |
|
|
typedef struct __attribute__((__packed__)) { |
|
|
int32_t x, y; |
|
|
int32_t x, y; |
|
|
int16_t offset_x, offset_y; |
|
|
int16_t offset_x, offset_y; |
|
|