|
@@ -27,31 +27,13 @@
|
27
|
27
|
* without adding new pin definitions to the board.
|
28
|
28
|
*/
|
29
|
29
|
|
30
|
|
-#ifdef CHEETAH_TFT_PINMAP
|
31
|
|
- #ifndef __MARLIN_FIRMWARE__
|
32
|
|
- #error "This pin mapping requires Marlin."
|
33
|
|
- #endif
|
34
|
|
-
|
35
|
|
- #define CLCD_SPI_BUS 2
|
36
|
|
-
|
37
|
|
- #define CLCD_MOD_RESET PC9
|
38
|
|
- #define CLCD_SPI_CS PB12
|
39
|
|
-
|
40
|
|
- //#define CLCD_USE_SOFT_SPI
|
41
|
|
- #if ENABLED(CLCD_USE_SOFT_SPI)
|
42
|
|
- #define CLCD_SOFT_SPI_MOSI PB15
|
43
|
|
- #define CLCD_SOFT_SPI_MISO PB14
|
44
|
|
- #define CLCD_SOFT_SPI_SCLK PB13
|
45
|
|
- #endif
|
46
|
|
-#endif
|
47
|
|
-
|
48
|
30
|
#ifdef S6_TFT_PINMAP
|
49
|
31
|
#ifndef __MARLIN_FIRMWARE__
|
50
|
32
|
#error "This pin mapping requires Marlin."
|
51
|
33
|
#endif
|
52
|
34
|
|
53
|
|
- #define CLCD_SPI_CS PC7
|
54
|
|
- #define CLCD_MOD_RESET PC6
|
|
35
|
+ #define CLCD_SPI_CS PC7
|
|
36
|
+ #define CLCD_MOD_RESET PC6
|
55
|
37
|
#endif
|
56
|
38
|
|
57
|
39
|
#ifdef CR10_TFT_PINMAP
|
|
@@ -60,13 +42,13 @@
|
60
|
42
|
#endif
|
61
|
43
|
|
62
|
44
|
#define CLCD_USE_SOFT_SPI
|
63
|
|
- #define CLCD_SOFT_SPI_SCLK LCD_PINS_D4 // PORTA1 Pin 6
|
64
|
|
- #define CLCD_SOFT_SPI_MOSI LCD_PINS_ENABLE // PORTC1 Pin 8
|
65
|
|
- #define CLCD_SPI_CS LCD_PINS_RS // PORTA3 Pin 7
|
66
|
|
- #define CLCD_SOFT_SPI_MISO 16 // PORTC0 BTN_ENC Pin 2
|
67
|
|
- #define CLCD_MOD_RESET 11 // PORTD3 BTN_EN1 Pin 3
|
68
|
|
- #define CLCD_AUX_0 10 // PORTD2 BTN_EN2 Pin 5
|
69
|
|
- #define CLCD_AUX_1 BEEPER_PIN // PORTA4 Pin 1
|
|
45
|
+ #define CLCD_SOFT_SPI_SCLK LCD_PINS_D4 // PORTA1 Pin 6
|
|
46
|
+ #define CLCD_SOFT_SPI_MOSI LCD_PINS_ENABLE // PORTC1 Pin 8
|
|
47
|
+ #define CLCD_SPI_CS LCD_PINS_RS // PORTA3 Pin 7
|
|
48
|
+ #define CLCD_SOFT_SPI_MISO 16 // PORTC0 BTN_ENC Pin 2
|
|
49
|
+ #define CLCD_MOD_RESET 11 // PORTD3 BTN_EN1 Pin 3
|
|
50
|
+ #define CLCD_AUX_0 10 // PORTD2 BTN_EN2 Pin 5
|
|
51
|
+ #define CLCD_AUX_1 BEEPER_PIN // PORTA4 Pin 1
|
70
|
52
|
#endif
|
71
|
53
|
|
72
|
54
|
/**
|
|
@@ -181,3 +163,18 @@
|
181
|
163
|
#define CLCD_MOD_RESET BTN_EN1
|
182
|
164
|
#define CLCD_SPI_CS LCD_PINS_RS
|
183
|
165
|
#endif
|
|
166
|
+
|
|
167
|
+#ifdef CHEETAH_TFT_PINMAP
|
|
168
|
+ #ifndef __MARLIN_FIRMWARE__
|
|
169
|
+ #error "This pin mapping requires Marlin."
|
|
170
|
+ #endif
|
|
171
|
+
|
|
172
|
+ #define CLCD_MOD_RESET BTN_EN2
|
|
173
|
+ #define CLCD_SPI_CS LCD_PINS_RS
|
|
174
|
+
|
|
175
|
+ #if ENABLED(CLCD_USE_SOFT_SPI)
|
|
176
|
+ #define CLCD_SOFT_SPI_MOSI LCD_PINS_ENABLE
|
|
177
|
+ #define CLCD_SOFT_SPI_MISO LCD_PINS_RS
|
|
178
|
+ #define CLCD_SOFT_SPI_SCLK LCD_PINS_D4
|
|
179
|
+ #endif
|
|
180
|
+#endif
|