thisiskeithb преди 5 години
родител
ревизия
cd302f9464
променени са 3 файла, в които са добавени 284 реда и са изтрити 0 реда
  1. 1
    0
      Marlin/src/core/boards.h
  2. 2
    0
      Marlin/src/pins/pins.h
  3. 281
    0
      Marlin/src/pins/pins_MKS_SGEN_L.h

+ 1
- 0
Marlin/src/core/boards.h Целия файл

@@ -198,6 +198,7 @@
198 198
 #define BOARD_BIGTREE_SKR_V1_3        1761  // BIGTREE SKR_V1.3 (Power outputs: Hotend0, Hotend1, Fan, Bed)
199 199
 #define BOARD_AZTEEG_X5_MINI          1762  // Azteeg X5 Mini (Power outputs: Hotend0, Bed, Fan)
200 200
 #define BOARD_MKS_SGEN                1763  // MKS-SGen (Power outputs: Hotend0, Hotend1, Bed, Fan)
201
+#define BOARD_MKS_SGEN_L              1764  // MKS-SGen-L (Power outputs: Hotend0, Hotend1, Bed, Fan)
201 202
 
202 203
 //
203 204
 // SAM3X8E ARM Cortex M3

+ 2
- 0
Marlin/src/pins/pins.h Целия файл

@@ -324,6 +324,8 @@
324 324
   #include "pins_MKS_SBASE.h"           // LPC1768                                    env:LPC1768
325 325
 #elif MB(MKS_SGEN)
326 326
   #include "pins_MKS_SGEN.h"            // LPC1769                                    env:LPC1769
327
+#elif MB(MKS_SGEN_L)
328
+  #include "pins_MKS_SGEN_L.h"          // LPC1768                                    env:LPC1768
327 329
 #elif MB(AZSMZ_MINI)
328 330
   #include "pins_AZSMZ_MINI.h"          // LPC1768                                    env:LPC1768
329 331
 #elif MB(AZTEEG_X5_GT)

+ 281
- 0
Marlin/src/pins/pins_MKS_SGEN_L.h Целия файл

@@ -0,0 +1,281 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2019 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
+
23
+/**
24
+ * MKS SGEN-L pin assignments
25
+ */
26
+
27
+#ifndef TARGET_LPC1768
28
+  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
29
+#endif
30
+
31
+#define BOARD_NAME        "MKS SGEN-L"
32
+#define BOARD_WEBSITE_URL "https://github.com/makerbase-mks/MKS-SGEN_L"
33
+
34
+//
35
+// Servo pin
36
+//
37
+#define SERVO0_PIN         P1_23   // SERVO P1.23
38
+#define SERVO1_PIN         P2_00   // SERVO P2.0
39
+
40
+//
41
+// Limit Switches
42
+//
43
+#define X_MIN_PIN          P1_29
44
+#define X_MAX_PIN          P1_28
45
+#define Y_MIN_PIN          P1_27
46
+#define Y_MAX_PIN          P1_26
47
+#define Z_MIN_PIN          P1_25
48
+#define Z_MAX_PIN          P1_24
49
+
50
+//
51
+// Z Probe (when not Z_MIN_PIN)
52
+//
53
+#ifndef Z_MIN_PROBE_PIN
54
+  #define Z_MIN_PROBE_PIN  P1_24
55
+#endif
56
+
57
+//
58
+// Steppers
59
+//
60
+#define X_STEP_PIN         P2_02
61
+#define X_DIR_PIN          P2_03
62
+#define X_ENABLE_PIN       P2_01
63
+#ifndef X_CS_PIN
64
+  #define X_CS_PIN         P1_01
65
+#endif
66
+
67
+#define Y_STEP_PIN         P0_19
68
+#define Y_DIR_PIN          P0_20
69
+#define Y_ENABLE_PIN       P2_08
70
+#ifndef Y_CS_PIN
71
+  #define Y_CS_PIN         P1_08
72
+#endif
73
+
74
+#define Z_STEP_PIN         P0_22
75
+#define Z_DIR_PIN          P2_11
76
+#define Z_ENABLE_PIN       P0_21
77
+#ifndef Z_CS_PIN
78
+  #define Z_CS_PIN         P1_10
79
+#endif
80
+
81
+#define E0_STEP_PIN        P2_13
82
+#define E0_DIR_PIN         P0_11
83
+#define E0_ENABLE_PIN      P2_12
84
+#ifndef E0_CS_PIN
85
+  #define E0_CS_PIN        P1_15
86
+#endif
87
+
88
+#define E1_STEP_PIN        P0_01
89
+#define E1_DIR_PIN         P0_00
90
+#define E1_ENABLE_PIN      P0_10
91
+#ifndef E1_CS_PIN
92
+  #define E1_CS_PIN        P1_17
93
+#endif
94
+
95
+//
96
+// Software SPI pins for TMC2130 stepper drivers
97
+//
98
+#if ENABLED(TMC_USE_SW_SPI)
99
+  #define TMC_SW_MOSI      P4_28
100
+  #define TMC_SW_MISO      P0_05
101
+  #define TMC_SW_SCK       P0_04
102
+#endif
103
+
104
+#if HAS_DRIVER(TMC2208) || HAS_DRIVER(TMC2209)
105
+  /**
106
+   * TMC2208 stepper drivers
107
+   *
108
+   * Hardware serial communication ports.
109
+   * If undefined software serial is used according to the pins below
110
+   */
111
+  //#define X_HARDWARE_SERIAL  Serial
112
+  //#define X2_HARDWARE_SERIAL Serial1
113
+  //#define Y_HARDWARE_SERIAL  Serial1
114
+  //#define Y2_HARDWARE_SERIAL Serial1
115
+  //#define Z_HARDWARE_SERIAL  Serial1
116
+  //#define Z2_HARDWARE_SERIAL Serial1
117
+  //#define E0_HARDWARE_SERIAL Serial1
118
+  //#define E1_HARDWARE_SERIAL Serial1
119
+  //#define E2_HARDWARE_SERIAL Serial1
120
+  //#define E3_HARDWARE_SERIAL Serial1
121
+  //#define E4_HARDWARE_SERIAL Serial1
122
+
123
+  //
124
+  // Software serial
125
+  //
126
+
127
+  #define X_SERIAL_TX_PIN  P1_04
128
+  #define X_SERIAL_RX_PIN  P1_01
129
+
130
+  #define Y_SERIAL_TX_PIN  P1_09
131
+  #define Y_SERIAL_RX_PIN  P1_08
132
+
133
+  #define Z_SERIAL_TX_PIN  P1_14
134
+  #define Z_SERIAL_RX_PIN  P1_10
135
+
136
+  #define E0_SERIAL_TX_PIN P1_16
137
+  #define E0_SERIAL_RX_PIN P1_15
138
+
139
+  #define E1_SERIAL_TX_PIN P4_29
140
+  #define E1_SERIAL_RX_PIN P1_17
141
+
142
+  #define Z2_SERIAL_TX_PIN P4_29
143
+  #define Z2_SERIAL_RX_PIN P1_17
144
+
145
+#endif // TMC2208 || TMC2209
146
+
147
+//
148
+// Temperature Sensors
149
+// 3.3V max when defined as an analog input
150
+//
151
+#define TEMP_0_PIN         0   // Analog Input A0 (TH1)
152
+#define TEMP_BED_PIN       1   // Analog Input A1 (TB)
153
+#define TEMP_1_PIN         2   // Analog Input A2 (TH2)
154
+
155
+//
156
+// Heaters / Fans
157
+//
158
+#define HEATER_BED_PIN     P2_05
159
+#define HEATER_0_PIN       P2_07
160
+#define HEATER_1_PIN       P2_06
161
+#ifndef FAN_PIN
162
+  #define FAN_PIN          P2_04
163
+#endif
164
+
165
+//
166
+// Misc. Functions
167
+//
168
+#define LED_PIN            P1_18   // Used as a status indicator
169
+#define LED2_PIN           P1_19
170
+#define LED3_PIN           P1_20
171
+#define LED4_PIN           P1_21
172
+
173
+/**
174
+ *                _____                                            _____
175
+ * (BEEPER) 1.31 | · · | 1.30 (BTN_ENC)          (MISO)       0.8 | · · | 0.7  (SD_SCK)
176
+ * (LCD_EN) 0.18 | · · | 0.16 (LCD_RS)           (BTN_EN1)   3.25 | · · | 0.28 (SD_CS2)
177
+ * (LCD_D4) 0.15 | · · | 0.17 (LCD_D5)           (BTN_EN2)   3.26 | · · | 1.20 (SD_MOSI)
178
+ * (LCD_D6)  1.0 | · · | 1.22 (LCD_D7)           (SD_DETECT) 0.27 | · · | RST
179
+ *           GND | · · | 5V                                   GND | · · | NC
180
+ *                -----                                            -----
181
+ *                EXP1                                             EXP2
182
+ */
183
+#if ENABLED(ULTRA_LCD)
184
+  #define BEEPER_PIN       P1_31
185
+  #define BTN_ENC          P1_30
186
+
187
+  #if ENABLED(CR10_STOCKDISPLAY)
188
+    #define LCD_PINS_RS    P1_0
189
+
190
+    #define BTN_EN1        P0_18
191
+    #define BTN_EN2        P0_15
192
+
193
+    #define LCD_PINS_ENABLE P1_22
194
+    #define LCD_PINS_D4    P0_17
195
+
196
+  #else
197
+    #define LCD_PINS_RS    P0_16
198
+
199
+    #define BTN_EN1        P3_25
200
+    #define BTN_EN2        P3_26
201
+
202
+    #define LCD_PINS_ENABLE P0_18
203
+    #define LCD_PINS_D4    P0_15
204
+
205
+    #define LCD_SDSS       P0_28
206
+    #define SD_DETECT_PIN  P0_27
207
+
208
+    #if ENABLED(FYSETC_MINI_12864)
209
+      #define DOGLCD_CS    P0_18
210
+      #define DOGLCD_A0    P0_16
211
+      #define DOGLCD_SCK   P0_7
212
+      #define DOGLCD_MOSI  P1_20
213
+      #define FORCE_SOFT_SPI
214
+
215
+      #define LCD_BACKLIGHT_PIN -1
216
+
217
+      #define FORCE_SOFT_SPI      // Use this if default of hardware SPI causes display problems
218
+                                  //   results in LCD soft SPI mode 3, SD soft SPI mode 0
219
+
220
+      #define LCD_RESET_PIN P0_15   // Must be high or open for LCD to operate normally.
221
+
222
+      #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
223
+        #ifndef RGB_LED_R_PIN
224
+          #define RGB_LED_R_PIN P0_17
225
+        #endif
226
+        #ifndef RGB_LED_G_PIN
227
+          #define RGB_LED_G_PIN P1_0
228
+        #endif
229
+        #ifndef RGB_LED_B_PIN
230
+          #define RGB_LED_B_PIN P1_22
231
+        #endif
232
+      #elif ENABLED(FYSETC_MINI_12864_2_1)
233
+        #define NEOPIXEL_PIN    P0_17
234
+      #endif
235
+
236
+    #else // !FYSETC_MINI_12864
237
+
238
+      #if ENABLED(MKS_MINI_12864)
239
+        #define DOGLCD_CS  P0_17
240
+        #define DOGLCD_A0  P1_0
241
+      #endif
242
+
243
+      #if ENABLED(ULTIPANEL)
244
+        #define LCD_PINS_D5 P0_17
245
+        #define LCD_PINS_D6 P1_0
246
+        #define LCD_PINS_D7 P1_22
247
+      #endif
248
+
249
+    #endif // !FYSETC_MINI_12864
250
+
251
+  #endif
252
+
253
+#endif // ULTRA_LCD
254
+
255
+#ifndef SDCARD_CONNECTION
256
+  #define SDCARD_CONNECTION ONBOARD
257
+#endif
258
+
259
+#define ONBOARD_SD_CS_PIN  P0_06   // Chip select for "System" SD card
260
+
261
+#if SD_CONNECTION_IS(LCD)
262
+  #define SCK_PIN          P0_07
263
+  #define MISO_PIN         P0_08
264
+  #define MOSI_PIN         P0_09
265
+  #define SS_PIN           P0_28
266
+#elif SD_CONNECTION_IS(ONBOARD)
267
+  #define SD_DETECT_PIN    P0_27
268
+  #define SCK_PIN          P0_07
269
+  #define MISO_PIN         P0_08
270
+  #define MOSI_PIN         P0_09
271
+  #define SS_PIN           ONBOARD_SD_CS_PIN
272
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
273
+  #error "No custom SD drive cable defined for this board."
274
+#endif
275
+
276
+//
277
+// Other Pins
278
+//
279
+//#define PIN_P0_02          P0_02   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
280
+//#define PIN_P0_03          P0_03   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
281
+//#define PS_ON_PIN          P1_23   // SERVO P1.23

Loading…
Отказ
Запис