File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 7171// #define TFT_COLOR TFT_COLOR_RGB
7272// #endif
7373
74+ #define TOUCH_ORIENTATION_NONE 0
75+ #define TOUCH_LANDSCAPE 1
76+ #define TOUCH_PORTRAIT 2
77+
78+ #ifndef TOUCH_ORIENTATION
79+ #define TOUCH_ORIENTATION TOUCH_LANDSCAPE
80+ #endif
81+
7482#define SSD1963 0x5761
7583#define ST7735 0x89F0
7684#define ST7789 0x8552
Original file line number Diff line number Diff line change 1919#pragma once
2020
2121#include " ../../inc/MarlinConfigPre.h"
22+ #include " tft_io.h"
2223
2324#ifndef TOUCH_SCREEN_CALIBRATION_PRECISION
2425 #define TOUCH_SCREEN_CALIBRATION_PRECISION 80
2829 #define TOUCH_SCREEN_HOLD_TO_CALIBRATE_MS 2500
2930#endif
3031
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-
3932typedef struct __attribute__ ((__packed__)) {
4033 int32_t x, y;
4134 int16_t offset_x, offset_y;
You can’t perform that action at this time.
0 commit comments