Browse Source

Improved Longer3D LKx Pro board (#20372)

Co-authored-by: mrv96 <marione96@live.it>
Scott Lahteine 4 years ago
parent
commit
5fdd949115
No account linked to committer's email address

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

@@ -113,7 +113,8 @@
113 113
 #define BOARD_RAMPS_S_12_EEFB         1157  // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Fan, Bed)
114 114
 #define BOARD_RAMPS_S_12_EEEB         1158  // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Hotend2, Bed)
115 115
 #define BOARD_RAMPS_S_12_EFFB         1159  // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend, Fan0, Fan1, Bed)
116
-#define BOARD_RAMPS_LONGER3D_LK4PRO   1160  // Longer LKxxPRO/ Alfawise UxxPro (PRO version)
116
+#define BOARD_LONGER3D_LK1_PRO        1160  // Longer LK1 PRO / Alfawise U20 Pro (PRO version)
117
+#define BOARD_LONGER3D_LKx_PRO        1161  // Longer LKx PRO / Alfawise Uxx Pro (PRO version)
117 118
 
118 119
 //
119 120
 // RAMBo and derivatives

+ 6
- 2
Marlin/src/pins/pins.h View File

@@ -190,8 +190,8 @@
190 190
   #include "ramps/pins_MKS_GEN_L_V21.h"         // ATmega2560                             env:mega2560
191 191
 #elif MB(RAMPS_S_12_EEFB, RAMPS_S_12_EEEB, RAMPS_S_12_EFFB)
192 192
   #include "ramps/pins_RAMPS_S_12.h"            // ATmega2560                             env:mega2560
193
-#elif MB(RAMPS_LONGER3D_LKPRO)
194
-  #include "ramps/pins_LONGER3D_LK4PRO.h"       // ATmega2560                             env:mega2560
193
+#elif MB(LONGER3D_LK1_PRO, LONGER3D_LKx_PRO)
194
+  #include "ramps/pins_LONGER3D_LKx_PRO.h"      // ATmega2560                             env:mega2560
195 195
 
196 196
 //
197 197
 // RAMBo and derivatives
@@ -663,6 +663,7 @@
663 663
   #define BOARD_RUMBA32                 -1018
664 664
   #define BOARD_RUMBA32_AUS3D           -1019
665 665
   #define BOARD_RAMPS_DAGOMA            -1020
666
+  #define BOARD_RAMPS_LONGER3D_LK4PRO   -1021
666 667
 
667 668
   #if MB(MKS_13)
668 669
     #error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
@@ -708,6 +709,8 @@
708 709
     #error "BOARD_RUMBA32_AUS3D is now BOARD_RUMBA32_V1_0. Please update your configuration."
709 710
   #elif MB(RAMPS_DAGOMA)
710 711
     #error "BOARD_RAMPS_DAGOMA is now BOARD_DAGOMA_F5. Please update your configuration."
712
+  #elif MB(RAMPS_LONGER3D_LK4PRO)
713
+    #error "BOARD_RAMPS_LONGER3D_LK4PRO is now BOARD_LONGER3D_LKx_PRO. Please update your configuration."
711 714
   #else
712 715
     #error "Unknown MOTHERBOARD value set in Configuration.h"
713 716
   #endif
@@ -733,6 +736,7 @@
733 736
   #undef BOARD_RUMBA32
734 737
   #undef BOARD_RUMBA32_AUS3D
735 738
   #undef BOARD_RAMPS_DAGOMA
739
+  #undef BOARD_RAMPS_LONGER3D_LK4PRO
736 740
 
737 741
 #endif
738 742
 

+ 0
- 38
Marlin/src/pins/ramps/pins_LONGER3D_LK4PRO.h View File

@@ -1,38 +0,0 @@
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
-// Longer UI assumptions
25
-#if HOTENDS > 1 || E_STEPPERS > 1
26
-  #error "Longer UI supports only 1 hotend / E-stepper."
27
-#endif
28
-
29
-#define BOARD_INFO_NAME "LGT Kit 1.0"
30
-
31
-#define SD_DETECT_PIN                         49
32
-#define FIL_RUNOUT_PIN                         2
33
-#define Z_MIN_PIN                             35
34
-
35
-//
36
-// Import RAMPS 1.4 pins
37
-//
38
-#include "pins_RAMPS.h"

+ 118
- 0
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h View File

@@ -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

Loading…
Cancel
Save