Browse Source

Consolidate MKS Robin / SKR Mini E3 pins (#18354)

thisiskeithb 5 years ago
parent
commit
8225d66b55
No account linked to committer's email address

+ 1
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h View File

@@ -187,7 +187,7 @@
187 187
 
188 188
   #elif ENABLED(ZONESTAR_LCD)                     // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
189 189
 
190
-    #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
190
+    #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
191 191
 
192 192
     #define LCD_PINS_RS                     PB9
193 193
     #define LCD_PINS_ENABLE                 PB6

+ 1
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "pins_BTT_SKR_MINI_E3.h"
24
+#include "pins_BTT_SKR_MINI_E3_common.h"
25 25
 
26 26
 #define BOARD_INFO_NAME "BTT SKR Mini E3 V1.0"
27 27
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h View File

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "pins_BTT_SKR_MINI_E3.h"
24
+#include "pins_BTT_SKR_MINI_E3_common.h"
25 25
 
26 26
 #define BOARD_INFO_NAME "BTT SKR Mini E3 V1.2"
27 27
 

+ 1
- 1
Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h View File

@@ -30,7 +30,7 @@
30 30
   #undef NO_EEPROM_SELECTED
31 31
 #endif
32 32
 
33
-#include "pins_BTT_SKR_MINI_E3.h"
33
+#include "pins_BTT_SKR_MINI_E3_common.h"
34 34
 
35 35
 #define BOARD_INFO_NAME "BTT SKR Mini E3 V2.0"
36 36
 

Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3.h → Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h View File

@@ -145,7 +145,7 @@
145 145
 
146 146
   #elif ENABLED(ZONESTAR_LCD)                     // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
147 147
 
148
-    #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
148
+    #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
149 149
 
150 150
     #define LCD_PINS_RS                     PB9
151 151
     #define LCD_PINS_ENABLE               EXP1_9
@@ -177,7 +177,7 @@
177 177
 
178 178
 #if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
179 179
 
180
-  #error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
180
+  #error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_SKR_MINI_E3_common.h' for details. Comment out this line to continue."
181 181
 
182 182
   /** FYSETC TFT TFT81050 display pinout
183 183
    *

+ 4
- 161
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3.h View File

@@ -22,172 +22,15 @@
22 22
 #pragma once
23 23
 
24 24
 /**
25
- * MKS Robin E3D (STM32F103RCT6) board pin assignments
25
+ * MKS Robin E3 (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#ifndef __STM32F1__
29
-  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
30
-#elif HOTENDS > 1 || E_STEPPERS > 1
31
-  #error "MKS Robin E3D supports up to 1 hotends / E-steppers. Comment out this line to continue."
28
+#if HOTENDS > 1 || E_STEPPERS > 1
29
+  #error "MKS Robin E3 supports up to 1 hotends / E-steppers. Comment out this line to continue."
32 30
 #endif
33 31
 
34 32
 #ifndef BOARD_INFO_NAME
35 33
   #define BOARD_INFO_NAME "MKS Robin E3"
36 34
 #endif
37
-#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
38 35
 
39
-//#define DISABLE_DEBUG
40
-#define DISABLE_JTAG
41
-#define ENABLE_SPI2
42
-
43
-//
44
-// EEPROM
45
-//
46
-#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
47
-  #define FLASH_EEPROM_EMULATION
48
-  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
49
-  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
50
-  #define MARLIN_EEPROM_SIZE   EEPROM_PAGE_SIZE  // 2KB
51
-#endif
52
-
53
-//
54
-// Servos
55
-//
56
-#define SERVO0_PIN                          PA3
57
-
58
-//
59
-// Limit Switches
60
-//
61
-#define X_STOP_PIN                          PA12
62
-#define Y_STOP_PIN                          PA11
63
-#define Z_MIN_PIN                           PC6
64
-#define Z_MAX_PIN                           PB1
65
-
66
-//
67
-// Steppers
68
-//
69
-#define X_STEP_PIN                          PC0
70
-#define X_DIR_PIN                           PB2
71
-#define X_ENABLE_PIN                        PC13
72
-
73
-#define Y_STEP_PIN                          PC2
74
-#define Y_DIR_PIN                           PB9
75
-#define Y_ENABLE_PIN                        PB12
76
-
77
-#define Z_STEP_PIN                          PB7
78
-#define Z_DIR_PIN                           PB6
79
-#define Z_ENABLE_PIN                        PB8
80
-
81
-#define E0_STEP_PIN                         PB4
82
-#define E0_DIR_PIN                          PB3
83
-#define E0_ENABLE_PIN                       PB5
84
-
85
-#if HAS_TMC220x
86
-  /**
87
-   * TMC2208/TMC2209 stepper drivers
88
-   *
89
-   * Hardware serial communication ports.
90
-   * If undefined software serial is used according to the pins below
91
-   */
92
-  //#define X_HARDWARE_SERIAL  Serial1
93
-  //#define Y_HARDWARE_SERIAL  Serial1
94
-  //#define Z_HARDWARE_SERIAL  Serial1
95
-  //#define E0_HARDWARE_SERIAL Serial1
96
-
97
-  //
98
-  // Software serial
99
-  //
100
-  #define X_SERIAL_TX_PIN                   PC7
101
-  #define X_SERIAL_RX_PIN                   PC7
102
-
103
-  #define Y_SERIAL_TX_PIN                   PD2
104
-  #define Y_SERIAL_RX_PIN                   PD2
105
-
106
-  #define Z_SERIAL_TX_PIN                   PC12
107
-  #define Z_SERIAL_RX_PIN                   PC12
108
-
109
-  #define E0_SERIAL_TX_PIN                  PC11
110
-  #define E0_SERIAL_RX_PIN                  PC11
111
-
112
-  // Reduce baud rate to improve software serial reliability
113
-  #define TMC_BAUD_RATE 19200
114
-#endif
115
-
116
-//
117
-// Heaters 0,1 / Fans / Bed
118
-//
119
-#define HEATER_0_PIN                        PC9
120
-#define FAN_PIN                             PA8
121
-#define HEATER_BED_PIN                      PC8
122
-
123
-//
124
-// Temperature Sensors
125
-//
126
-#define TEMP_BED_PIN                        PA1   // TB
127
-#define TEMP_0_PIN                          PA0   // TH1
128
-
129
-#define FIL_RUNOUT_PIN                      PB10  // MT_DET
130
-
131
-/**
132
- *                _____                                      _____                                     _____
133
- *  (BEEPER) PC1 | 1 2 | PC3 (BTN_ENC)          (MISO) PB14 | 1 2 | PB13 (SD_SCK)                  5V | 1 2 | GND
134
- *  (LCD_EN) PA4 | 3 4 | PA5 (LCD_RS)        (BTN_EN1) PB11 | 3 4 | PA15 (SD_SS)         (LCD_EN) PA4 | 3 4 | PA5  (LCD_RS)
135
- *  (LCD_D4) PA6 | 5 6   PA7 (LCD_D5)        (BTN_EN2)  PB0 | 5 6   PB15 (SD_MOSI)       (LCD_D4) PA6 | 5 6   PB0  (BTN_EN2)
136
- *  (LCD_D6) PC4 | 7 8 | PC5 (LCD_D7)      (SD_DETECT) PC10 | 7 8 | RESET                       RESET | 7 8 | PB11 (BTN_EN1)
137
- *           GND | 9 10| 5V                             GND | 9 10| NC                  (BTN_ENC) PC3 | 9 10| PC1  (BEEPER)
138
- *                -----                                      -----                                     -----
139
- *                EXP1                                       EXP2                                      EXP3
140
- */
141
-#if HAS_SPI_LCD
142
-
143
-  #define BEEPER_PIN                        PC1
144
-  #define BTN_ENC                           PC3
145
-  #define LCD_PINS_ENABLE                   PA4
146
-  #define LCD_PINS_RS                       PA5
147
-  #define BTN_EN1                           PB11
148
-  #define BTN_EN2                           PB0
149
-
150
-  // MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
151
-  #if ENABLED(MKS_MINI_12864)
152
-
153
-    #define LCD_BACKLIGHT_PIN               -1
154
-    #define LCD_RESET_PIN                   -1
155
-    #define DOGLCD_A0                       PC4
156
-    #define DOGLCD_CS                       PA7
157
-    #define DOGLCD_SCK                      PB13
158
-    #define DOGLCD_MOSI                     PB15
159
-
160
-    #undef SHOW_BOOTSCREEN
161
-
162
-  #else
163
-
164
-    #define LCD_PINS_D4                     PA6
165
-    #if ENABLED(ULTIPANEL)
166
-      #define LCD_PINS_D5                   PA7
167
-      #define LCD_PINS_D6                   PC4
168
-      #define LCD_PINS_D7                   PC5
169
-    #endif
170
-
171
-  #endif // !MKS_MINI_12864
172
-
173
-#endif // HAS_SPI_LCD
174
-
175
-//
176
-// SD Card
177
-//
178
-#define ENABLE_SPI2
179
-#define SD_DETECT_PIN                       PC10
180
-#define SCK_PIN                             PB13
181
-#define MISO_PIN                            PB14
182
-#define MOSI_PIN                            PB15
183
-#define SS_PIN                              PA15
184
-
185
-#ifndef ST7920_DELAY_1
186
-  #define ST7920_DELAY_1           DELAY_NS(125)
187
-#endif
188
-#ifndef ST7920_DELAY_2
189
-  #define ST7920_DELAY_2           DELAY_NS(125)
190
-#endif
191
-#ifndef ST7920_DELAY_3
192
-  #define ST7920_DELAY_3           DELAY_NS(125)
193
-#endif
36
+#include "pins_MKS_ROBIN_E3_common.h"

+ 2
- 155
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3D.h View File

@@ -25,71 +25,26 @@
25 25
  * MKS Robin E3D (STM32F103RCT6) board pin assignments
26 26
  */
27 27
 
28
-#ifndef __STM32F1__
29
-  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
30
-#elif HOTENDS > 1 || E_STEPPERS > 1
28
+#if HOTENDS > 1 || E_STEPPERS > 1
31 29
   #error "MKS Robin E3D supports up to 1 hotends / E-steppers. Comment out this line to continue."
32 30
 #endif
33 31
 
34 32
 #ifndef BOARD_INFO_NAME
35 33
   #define BOARD_INFO_NAME "MKS Robin E3D"
36 34
 #endif
37
-#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
38
-
39
-//#define DISABLE_DEBUG
40
-#define DISABLE_JTAG
41
-#define ENABLE_SPI2
42
-
43
-//
44
-// EEPROM
45
-//
46
-#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
47
-  #define FLASH_EEPROM_EMULATION
48
-  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
49
-  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
50
-  #define MARLIN_EEPROM_SIZE   EEPROM_PAGE_SIZE  // 2KB
51
-#endif
52
-
53
-//
54
-// Servos
55
-//
56
-#define SERVO0_PIN                          PA3
57
-
58
-//
59
-// Limit Switches
60
-//
61
-#define X_STOP_PIN                          PA12
62
-#define Y_STOP_PIN                          PA11
63
-#define Z_MIN_PIN                           PC6
64
-#define Z_MAX_PIN                           PB1
65 35
 
66 36
 //
67 37
 // Steppers
68 38
 //
69
-#define X_STEP_PIN                          PC0
70
-#define X_DIR_PIN                           PB2
71
-#define X_ENABLE_PIN                        PC13
72 39
 #ifndef X_CS_PIN
73 40
   #define X_CS_PIN                          PC7
74 41
 #endif
75
-
76
-#define Y_STEP_PIN                          PC2
77
-#define Y_DIR_PIN                           PB9
78
-#define Y_ENABLE_PIN                        PB12
79 42
 #ifndef Y_CS_PIN
80 43
   #define Y_CS_PIN                          PD2
81 44
 #endif
82
-
83
-#define Z_STEP_PIN                          PB7
84
-#define Z_DIR_PIN                           PB6
85
-#define Z_ENABLE_PIN                        PB8
86 45
 #ifndef Z_CS_PIN
87 46
   #define Z_CS_PIN                          PC12
88 47
 #endif
89
-
90
-#define E0_STEP_PIN                         PB4
91
-#define E0_DIR_PIN                          PB3
92
-#define E0_ENABLE_PIN                       PB5
93 48
 #ifndef E0_CS_PIN
94 49
   #define E0_CS_PIN                         PC11
95 50
 #endif
@@ -109,112 +64,4 @@
109 64
   #endif
110 65
 #endif
111 66
 
112
-#if HAS_TMC220x
113
-  /**
114
-   * TMC2208/TMC2209 stepper drivers
115
-   *
116
-   * Hardware serial communication ports.
117
-   * If undefined software serial is used according to the pins below
118
-   */
119
-  //#define X_HARDWARE_SERIAL  Serial1
120
-  //#define Y_HARDWARE_SERIAL  Serial1
121
-  //#define Z_HARDWARE_SERIAL  Serial1
122
-  //#define E0_HARDWARE_SERIAL Serial1
123
-
124
-  //
125
-  // Software serial
126
-  //
127
-  #define X_SERIAL_TX_PIN                   PC7
128
-  #define X_SERIAL_RX_PIN                   PC7
129
-
130
-  #define Y_SERIAL_TX_PIN                   PD2
131
-  #define Y_SERIAL_RX_PIN                   PD2
132
-
133
-  #define Z_SERIAL_TX_PIN                   PC12
134
-  #define Z_SERIAL_RX_PIN                   PC12
135
-
136
-  #define E0_SERIAL_TX_PIN                  PC11
137
-  #define E0_SERIAL_RX_PIN                  PC11
138
-
139
-  // Reduce baud rate to improve software serial reliability
140
-  #define TMC_BAUD_RATE 19200
141
-#endif
142
-
143
-//
144
-// Heaters 0,1 / Fans / Bed
145
-//
146
-#define HEATER_0_PIN                        PC9
147
-#define FAN_PIN                             PA8
148
-#define HEATER_BED_PIN                      PC8
149
-
150
-//
151
-// Temperature Sensors
152
-//
153
-#define TEMP_BED_PIN                        PA1   //TB
154
-#define TEMP_0_PIN                          PA0   //TH1
155
-
156
-#define FIL_RUNOUT_PIN                      PB10  // MT_DET
157
-
158
-/**
159
- *                _____                                      _____                                     _____
160
- *  (BEEPER) PC1 | 1 2 | PC3 (BTN_ENC)          (MISO) PB14 | 1 2 | PB13 (SD_SCK)                  5V | 1 2 | GND
161
- *  (LCD_EN) PA4 | 3 4 | PA5 (LCD_RS)        (BTN_EN1) PB11 | 3 4 | PA15 (SD_SS)         (LCD_EN) PA4 | 3 4 | PA5  (LCD_RS)
162
- *  (LCD_D4) PA6 | 5 6   PA7 (LCD_D5)        (BTN_EN2)  PB0 | 5 6   PB15 (SD_MOSI)       (LCD_D4) PA6 | 5 6   PB0  (BTN_EN2)
163
- *  (LCD_D6) PC4 | 7 8 | PC5 (LCD_D7)      (SD_DETECT) PC10 | 7 8 | RESET                       RESET | 7 8 | PB11 (BTN_EN1)
164
- *           GND | 9 10| 5V                             GND | 9 10| NC                  (BTN_ENC) PC3 | 9 10| PC1  (BEEPER)
165
- *                -----                                      -----                                     -----
166
- *                EXP1                                       EXP2                                      EXP3
167
- */
168
-#if HAS_SPI_LCD
169
-
170
-  #define BEEPER_PIN                        PC1
171
-  #define BTN_ENC                           PC3
172
-  #define LCD_PINS_ENABLE                   PA4
173
-  #define LCD_PINS_RS                       PA5
174
-  #define BTN_EN1                           PB11
175
-  #define BTN_EN2                           PB0
176
-
177
-  // MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
178
-  #if ENABLED(MKS_MINI_12864)
179
-
180
-    #define LCD_BACKLIGHT_PIN               -1
181
-    #define LCD_RESET_PIN                   -1
182
-    #define DOGLCD_A0                       PC4
183
-    #define DOGLCD_CS                       PA7
184
-    #define DOGLCD_SCK                      PB13
185
-    #define DOGLCD_MOSI                     PB15
186
-
187
-    #undef SHOW_BOOTSCREEN
188
-
189
-  #else
190
-
191
-    #define LCD_PINS_D4                     PA6
192
-    #if ENABLED(ULTIPANEL)
193
-      #define LCD_PINS_D5                   PA7
194
-      #define LCD_PINS_D6                   PC4
195
-      #define LCD_PINS_D7                   PC5
196
-    #endif
197
-
198
-  #endif // !MKS_MINI_12864
199
-
200
-#endif // HAS_SPI_LCD
201
-
202
-//
203
-// SD Card
204
-//
205
-#define ENABLE_SPI2
206
-#define SD_DETECT_PIN                       PC10
207
-#define SCK_PIN                             PB13
208
-#define MISO_PIN                            PB14
209
-#define MOSI_PIN                            PB15
210
-#define SS_PIN                              PA15
211
-
212
-#ifndef ST7920_DELAY_1
213
-  #define ST7920_DELAY_1           DELAY_NS(125)
214
-#endif
215
-#ifndef ST7920_DELAY_2
216
-  #define ST7920_DELAY_2           DELAY_NS(125)
217
-#endif
218
-#ifndef ST7920_DELAY_3
219
-  #define ST7920_DELAY_3           DELAY_NS(125)
220
-#endif
67
+#include "pins_MKS_ROBIN_E3_common.h"

+ 188
- 0
Marlin/src/pins/stm32f1/pins_MKS_ROBIN_E3_common.h View File

@@ -0,0 +1,188 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+/**
25
+ * MKS Robin E3 & E3D (STM32F103RCT6) common board pin assignments
26
+ */
27
+
28
+#ifndef __STM32F1__
29
+  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
30
+#endif
31
+
32
+#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
33
+
34
+//#define DISABLE_DEBUG
35
+#define DISABLE_JTAG
36
+#define ENABLE_SPI2
37
+
38
+//
39
+// EEPROM
40
+//
41
+#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
42
+  #define FLASH_EEPROM_EMULATION
43
+  #define EEPROM_PAGE_SIZE     (0x800U) // 2KB
44
+  #define EEPROM_START_ADDRESS (0x8000000UL + (STM32_FLASH_SIZE) * 1024UL - (EEPROM_PAGE_SIZE) * 2UL)
45
+  #define MARLIN_EEPROM_SIZE   EEPROM_PAGE_SIZE  // 2KB
46
+#endif
47
+
48
+//
49
+// Servos
50
+//
51
+#define SERVO0_PIN                          PA3
52
+
53
+//
54
+// Limit Switches
55
+//
56
+#define X_STOP_PIN                          PA12
57
+#define Y_STOP_PIN                          PA11
58
+#define Z_MIN_PIN                           PC6
59
+#define Z_MAX_PIN                           PB1
60
+
61
+//
62
+// Steppers
63
+//
64
+#define X_STEP_PIN                          PC0
65
+#define X_DIR_PIN                           PB2
66
+#define X_ENABLE_PIN                        PC13
67
+
68
+#define Y_STEP_PIN                          PC2
69
+#define Y_DIR_PIN                           PB9
70
+#define Y_ENABLE_PIN                        PB12
71
+
72
+#define Z_STEP_PIN                          PB7
73
+#define Z_DIR_PIN                           PB6
74
+#define Z_ENABLE_PIN                        PB8
75
+
76
+#define E0_STEP_PIN                         PB4
77
+#define E0_DIR_PIN                          PB3
78
+#define E0_ENABLE_PIN                       PB5
79
+
80
+#if HAS_TMC220x
81
+  /**
82
+   * TMC2208/TMC2209 stepper drivers
83
+   *
84
+   * Hardware serial communication ports.
85
+   * If undefined software serial is used according to the pins below
86
+   */
87
+  //#define X_HARDWARE_SERIAL  Serial1
88
+  //#define Y_HARDWARE_SERIAL  Serial1
89
+  //#define Z_HARDWARE_SERIAL  Serial1
90
+  //#define E0_HARDWARE_SERIAL Serial1
91
+
92
+  //
93
+  // Software serial
94
+  //
95
+  #define X_SERIAL_TX_PIN                   PC7
96
+  #define X_SERIAL_RX_PIN                   PC7
97
+
98
+  #define Y_SERIAL_TX_PIN                   PD2
99
+  #define Y_SERIAL_RX_PIN                   PD2
100
+
101
+  #define Z_SERIAL_TX_PIN                   PC12
102
+  #define Z_SERIAL_RX_PIN                   PC12
103
+
104
+  #define E0_SERIAL_TX_PIN                  PC11
105
+  #define E0_SERIAL_RX_PIN                  PC11
106
+
107
+  // Reduce baud rate to improve software serial reliability
108
+  #define TMC_BAUD_RATE 19200
109
+#endif
110
+
111
+//
112
+// Heaters 0,1 / Fans / Bed
113
+//
114
+#define HEATER_0_PIN                        PC9
115
+#define FAN_PIN                             PA8
116
+#define HEATER_BED_PIN                      PC8
117
+
118
+//
119
+// Temperature Sensors
120
+//
121
+#define TEMP_BED_PIN                        PA1   // TB
122
+#define TEMP_0_PIN                          PA0   // TH1
123
+
124
+#define FIL_RUNOUT_PIN                      PB10  // MT_DET
125
+
126
+/**
127
+ *                _____                                      _____                                     _____
128
+ *  (BEEPER) PC1 | 1 2 | PC3 (BTN_ENC)          (MISO) PB14 | 1 2 | PB13 (SD_SCK)                  5V | 1 2 | GND
129
+ *  (LCD_EN) PA4 | 3 4 | PA5 (LCD_RS)        (BTN_EN1) PB11 | 3 4 | PA15 (SD_SS)         (LCD_EN) PA4 | 3 4 | PA5  (LCD_RS)
130
+ *  (LCD_D4) PA6 | 5 6   PA7 (LCD_D5)        (BTN_EN2)  PB0 | 5 6   PB15 (SD_MOSI)       (LCD_D4) PA6 | 5 6   PB0  (BTN_EN2)
131
+ *  (LCD_D6) PC4 | 7 8 | PC5 (LCD_D7)      (SD_DETECT) PC10 | 7 8 | RESET                       RESET | 7 8 | PB11 (BTN_EN1)
132
+ *           GND | 9 10| 5V                             GND | 9 10| NC                  (BTN_ENC) PC3 | 9 10| PC1  (BEEPER)
133
+ *                -----                                      -----                                     -----
134
+ *                EXP1                                       EXP2                                      EXP3
135
+ */
136
+#if HAS_SPI_LCD
137
+
138
+  #define BEEPER_PIN                        PC1
139
+  #define BTN_ENC                           PC3
140
+  #define LCD_PINS_ENABLE                   PA4
141
+  #define LCD_PINS_RS                       PA5
142
+  #define BTN_EN1                           PB11
143
+  #define BTN_EN2                           PB0
144
+
145
+  // MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
146
+  #if ENABLED(MKS_MINI_12864)
147
+
148
+    #define LCD_BACKLIGHT_PIN               -1
149
+    #define LCD_RESET_PIN                   -1
150
+    #define DOGLCD_A0                       PC4
151
+    #define DOGLCD_CS                       PA7
152
+    #define DOGLCD_SCK                      PB13
153
+    #define DOGLCD_MOSI                     PB15
154
+
155
+    #undef SHOW_BOOTSCREEN
156
+
157
+  #else
158
+
159
+    #define LCD_PINS_D4                     PA6
160
+    #if ENABLED(ULTIPANEL)
161
+      #define LCD_PINS_D5                   PA7
162
+      #define LCD_PINS_D6                   PC4
163
+      #define LCD_PINS_D7                   PC5
164
+    #endif
165
+
166
+  #endif // !MKS_MINI_12864
167
+
168
+#endif // HAS_SPI_LCD
169
+
170
+//
171
+// SD Card
172
+//
173
+#define ENABLE_SPI2
174
+#define SD_DETECT_PIN                       PC10
175
+#define SCK_PIN                             PB13
176
+#define MISO_PIN                            PB14
177
+#define MOSI_PIN                            PB15
178
+#define SS_PIN                              PA15
179
+
180
+#ifndef ST7920_DELAY_1
181
+  #define ST7920_DELAY_1           DELAY_NS(125)
182
+#endif
183
+#ifndef ST7920_DELAY_2
184
+  #define ST7920_DELAY_2           DELAY_NS(125)
185
+#endif
186
+#ifndef ST7920_DELAY_3
187
+  #define ST7920_DELAY_3           DELAY_NS(125)
188
+#endif

Loading…
Cancel
Save