|
@@ -0,0 +1,118 @@
|
|
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
|
+ * Longer3D LK1/LK4/LK5 Pro board pin assignments
|
|
26
|
+ */
|
|
27
|
+
|
|
28
|
+#if NOT_TARGET(__AVR_ATmega2560__)
|
|
29
|
+ #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
|
30
|
+#elif HOTENDS > 1 || E_STEPPERS > 1
|
|
31
|
+ #error "Longer3D LGT KIT V1.0 board only supports 1 hotend / E-stepper. Comment out this line to continue."
|
|
32
|
+#endif
|
|
33
|
+
|
|
34
|
+#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1
|
|
35
|
+ #warning "Serial 1 is originally reserved to DGUS LCD."
|
|
36
|
+#endif
|
|
37
|
+#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2
|
|
38
|
+ #warning "Serial 2 has no connector. Hardware changes may be required to use it."
|
|
39
|
+#endif
|
|
40
|
+#if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3
|
|
41
|
+ #define CHANGE_Y_LIMIT_PINS
|
|
42
|
+ #warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
|
|
43
|
+#endif
|
|
44
|
+
|
|
45
|
+// Custom flags and defines for the build
|
|
46
|
+//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
|
|
47
|
+
|
|
48
|
+#define BOARD_INFO_NAME "LGT KIT V1.0"
|
|
49
|
+
|
|
50
|
+//
|
|
51
|
+// Servos
|
|
52
|
+//
|
|
53
|
+#if !MB(LONGER3D_LK1_PRO)
|
|
54
|
+ #define SERVO0_PIN 7
|
|
55
|
+#endif
|
|
56
|
+#define SERVO1_PIN -1
|
|
57
|
+#define SERVO2_PIN -1
|
|
58
|
+#define SERVO3_PIN -1
|
|
59
|
+
|
|
60
|
+//
|
|
61
|
+// Limit Switches
|
|
62
|
+//
|
|
63
|
+#define X_STOP_PIN 3
|
|
64
|
+
|
|
65
|
+#ifdef CHANGE_Y_LIMIT_PINS
|
|
66
|
+ #define Y_STOP_PIN 37
|
|
67
|
+#else
|
|
68
|
+ #define Y_MIN_PIN 14
|
|
69
|
+ #define Y_MAX_PIN 15
|
|
70
|
+#endif
|
|
71
|
+
|
|
72
|
+#if !MB(LONGER3D_LK1_PRO)
|
|
73
|
+ #ifdef CHANGE_Y_LIMIT_PINS
|
|
74
|
+ #define Z_STOP_PIN 35
|
|
75
|
+ #else
|
|
76
|
+ #define Z_MIN_PIN 35
|
|
77
|
+ #define Z_MAX_PIN 37
|
|
78
|
+ #endif
|
|
79
|
+#else
|
|
80
|
+ #define Z_MIN_PIN 11
|
|
81
|
+ #define Z_MAX_PIN 37
|
|
82
|
+#endif
|
|
83
|
+
|
|
84
|
+//
|
|
85
|
+// Z Probe (when not Z_MIN_PIN)
|
|
86
|
+//
|
|
87
|
+#define Z_MIN_PROBE_PIN -1
|
|
88
|
+
|
|
89
|
+//
|
|
90
|
+// Misc. Functions
|
|
91
|
+//
|
|
92
|
+#define SD_DETECT_PIN 49
|
|
93
|
+#define FIL_RUNOUT_PIN 2
|
|
94
|
+
|
|
95
|
+//
|
|
96
|
+// Other RAMPS 1.3 pins
|
|
97
|
+//
|
|
98
|
+#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
|
|
99
|
+#include "pins_RAMPS_13.h"
|
|
100
|
+
|
|
101
|
+//
|
|
102
|
+// Steppers
|
|
103
|
+//
|
|
104
|
+#undef E1_STEP_PIN
|
|
105
|
+#undef E1_DIR_PIN
|
|
106
|
+#undef E1_ENABLE_PIN
|
|
107
|
+#undef E1_CS_PIN
|
|
108
|
+
|
|
109
|
+//
|
|
110
|
+// Temperature Sensors
|
|
111
|
+//
|
|
112
|
+#undef TEMP_1_PIN
|
|
113
|
+
|
|
114
|
+//
|
|
115
|
+// Průša i3 MK2 Multiplexer Support
|
|
116
|
+//
|
|
117
|
+#undef E_MUX2_PIN
|
|
118
|
+#undef CHANGE_Y_LIMIT_PINS
|