|
@@ -0,0 +1,85 @@
|
|
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 <https://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.1 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.1"
|
|
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
|
+#ifndef Y_CS_PIN
|
|
49
|
+ #define Y_CS_PIN 64
|
|
50
|
+#endif
|
|
51
|
+#ifndef Z_CS_PIN
|
|
52
|
+ #define Z_CS_PIN 65
|
|
53
|
+#endif
|
|
54
|
+#ifndef E0_CS_PIN
|
|
55
|
+ #define E0_CS_PIN 66
|
|
56
|
+#endif
|
|
57
|
+#ifndef E1_CS_PIN
|
|
58
|
+ #define E1_CS_PIN 12
|
|
59
|
+#endif
|
|
60
|
+
|
|
61
|
+// TMC2130 Diag Pins (currently just for reference)
|
|
62
|
+#define X_DIAG_PIN 3
|
|
63
|
+#define Y_DIAG_PIN 14
|
|
64
|
+#define Z_DIAG_PIN 18
|
|
65
|
+#define E0_DIAG_PIN 2
|
|
66
|
+#define E1_DIAG_PIN 15
|
|
67
|
+
|
|
68
|
+#ifndef SERVO1_PIN
|
|
69
|
+ #define SERVO1_PIN 21
|
|
70
|
+#endif
|
|
71
|
+#ifndef SERVO2_PIN
|
|
72
|
+ #define SERVO2_PIN 39
|
|
73
|
+#endif
|
|
74
|
+#ifndef SERVO3_PIN
|
|
75
|
+ #define SERVO3_PIN 32
|
|
76
|
+#endif
|
|
77
|
+
|
|
78
|
+#ifndef E1_SERIAL_TX_PIN
|
|
79
|
+ #define E1_SERIAL_TX_PIN 20
|
|
80
|
+#endif
|
|
81
|
+#ifndef E1_SERIAL_RX_PIN
|
|
82
|
+ #define E1_SERIAL_RX_PIN 12
|
|
83
|
+#endif
|
|
84
|
+
|
|
85
|
+#include "pins_RAMPS.h"
|