Browse Source

Add MKS_GEN_L_V2 controller support (#15793)

ellensp 5 years ago
parent
commit
f088c6a850
3 changed files with 93 additions and 0 deletions
  1. 1
    0
      Marlin/src/core/boards.h
  2. 3
    0
      Marlin/src/pins/pins.h
  3. 89
    0
      Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h

+ 1
- 0
Marlin/src/core/boards.h View File

@@ -100,6 +100,7 @@
100 100
 #define BOARD_HJC2560C_REV1           1144  // ADIMLab Gantry v1
101 101
 #define BOARD_HJC2560C_REV2           1145  // ADIMLab Gantry v2
102 102
 #define BOARD_TANGO                   1146  // BIQU Tango V1
103
+#define BOARD_MKS_GEN_L_V2            1147  // MKS GEN L V2
103 104
 
104 105
 //
105 106
 // RAMBo and derivatives

+ 3
- 0
Marlin/src/pins/pins.h View File

@@ -182,6 +182,9 @@
182 182
   #include "ramps/pins_TT_OSCAR.h"              // ATmega2560                             env:megaatmega2560
183 183
 #elif MB(TANGO)
184 184
   #include "ramps/pins_TANGO.h"                 // ATmega2560                             env:megaatmega2560
185
+#elif MB(MKS_GEN_L_V2)
186
+  #include "ramps/pins_MKS_GEN_L_V2.h"          // ATmega2560                             env:megaatmega2560
187
+
185 188
 
186 189
 //
187 190
 // RAMBo and derivatives

+ 89
- 0
Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h View File

@@ -0,0 +1,89 @@
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
+#pragma once
23
+
24
+/**
25
+ * MKS GEN L V2 – Arduino Mega2560 with RAMPS v1.4 pin assignments
26
+ */
27
+
28
+#if HOTENDS > 2 || E_STEPPERS > 2
29
+  #error "MKS GEN L V2 supports up to 2 hotends / E-steppers. Comment out this line to continue."
30
+#endif
31
+
32
+#define BOARD_INFO_NAME "MKS GEN L V2"
33
+
34
+//
35
+// Heaters / Fans
36
+//
37
+// Power outputs EFBF or EFBE
38
+#define MOSFET_D_PIN           7
39
+
40
+//
41
+// CS Pins wired to avoid conflict with the LCD
42
+// See https://www.thingiverse.com/asset:66604
43
+//
44
+
45
+#ifndef X_CS_PIN
46
+  #define X_CS_PIN            63
47
+#endif
48
+
49
+#ifndef Y_CS_PIN
50
+  #define Y_CS_PIN            64
51
+#endif
52
+
53
+#ifndef Z_CS_PIN
54
+  #define Z_CS_PIN            65
55
+#endif
56
+
57
+#ifndef E0_CS_PIN
58
+  #define E0_CS_PIN           66
59
+#endif
60
+
61
+#ifndef E1_CS_PIN
62
+  #define E1_CS_PIN           21
63
+#endif
64
+
65
+// TMC2130 Diag Pins (currently just for reference)
66
+#define X_DIAG_PIN             3
67
+#define Y_DIAG_PIN            14
68
+#define Z_DIAG_PIN            18
69
+#define E0_DIAG_PIN            2
70
+#define E1_DIAG_PIN           15
71
+
72
+#ifndef SERVO1_PIN
73
+  #define SERVO1_PIN          12
74
+#endif
75
+#ifndef SERVO2_PIN
76
+  #define SERVO2_PIN          39
77
+#endif
78
+#ifndef SERVO3_PIN
79
+  #define SERVO3_PIN          32
80
+#endif
81
+
82
+#ifndef E1_SERIAL_TX_PIN
83
+  #define E1_SERIAL_TX_PIN    20
84
+#endif
85
+#ifndef E1_SERIAL_RX_PIN
86
+  #define E1_SERIAL_RX_PIN    21
87
+#endif
88
+ 
89
+#include "pins_RAMPS.h"

Loading…
Cancel
Save