Ver código fonte

🎨 Less use of undef for RAMPS pins

Scott Lahteine 2 anos atrás
pai
commit
11ceea25ce

+ 13
- 16
Marlin/src/pins/mega/pins_MEGATRONICS_3.h Ver arquivo

@@ -67,9 +67,19 @@
67 67
 #define X_DIR_PIN                             57
68 68
 #define X_ENABLE_PIN                          59
69 69
 
70
-#define Y_STEP_PIN                             5
71
-#define Y_DIR_PIN                             17
72
-#define Y_ENABLE_PIN                           4
70
+#if ENABLED(REPRAPWORLD_KEYPAD) && EXTRUDERS <= 2
71
+  #define Y_ENABLE_PIN                        23
72
+  #define Y_STEP_PIN                          22
73
+  #define Y_DIR_PIN                           60
74
+#else
75
+  #define Y_STEP_PIN                           5
76
+  #define Y_DIR_PIN                           17
77
+  #define Y_ENABLE_PIN                         4
78
+
79
+  #define E2_STEP_PIN                         22
80
+  #define E2_DIR_PIN                          60
81
+  #define E2_ENABLE_PIN                       23
82
+#endif
73 83
 
74 84
 #define Z_STEP_PIN                            16
75 85
 #define Z_DIR_PIN                             11
@@ -83,10 +93,6 @@
83 93
 #define E1_DIR_PIN                            24
84 94
 #define E1_ENABLE_PIN                         26
85 95
 
86
-#define E2_STEP_PIN                           22
87
-#define E2_DIR_PIN                            60
88
-#define E2_ENABLE_PIN                         23
89
-
90 96
 //
91 97
 // Temperature Sensors
92 98
 //
@@ -181,15 +187,6 @@
181 187
 #elif EXTRUDERS <= 2
182 188
   // Hijack the last extruder so that we can get the PWM signal off the Y breakout
183 189
   // Move Y to the E2 plug. This makes dual Y steppers harder
184
-  #undef Y_ENABLE_PIN                             //  4
185
-  #undef Y_STEP_PIN                               //  5
186
-  #undef Y_DIR_PIN                                // 17
187
-  #undef E2_ENABLE_PIN                            // 23
188
-  #undef E2_STEP_PIN                              // 22
189
-  #undef E2_DIR_PIN                               // 60
190
-  #define Y_ENABLE_PIN                        23
191
-  #define Y_STEP_PIN                          22
192
-  #define Y_DIR_PIN                           60
193 190
   #define SPINDLE_LASER_PWM_PIN                4  // Hardware PWM
194 191
   #define SPINDLE_LASER_ENA_PIN               17  // Pullup!
195 192
   #define SPINDLE_DIR_PIN                      5

+ 69
- 66
Marlin/src/pins/ramps/pins_3DRAG.h Ver arquivo

@@ -38,6 +38,28 @@
38 38
 #endif
39 39
 
40 40
 //
41
+// Limit Switches
42
+//
43
+#define Z_STOP_PIN                            18
44
+
45
+//
46
+// Steppers
47
+//
48
+#if HAS_CUTTER
49
+  #define Z_DIR_PIN                           28
50
+  #define Z_ENABLE_PIN                        24
51
+  #define Z_STEP_PIN                          26
52
+#else
53
+  #define Z_ENABLE_PIN                        63
54
+#endif
55
+
56
+#if HAS_CUTTER && !HAS_EXTRUDERS
57
+  #define E0_DIR_PIN                          -1
58
+  #define E0_ENABLE_PIN                       -1
59
+  #define E0_STEP_PIN                         -1
60
+#endif
61
+
62
+//
41 63
 // Heaters / Fans
42 64
 //
43 65
 #define RAMPS_D8_PIN                           9
@@ -53,18 +75,54 @@
53 75
   #define CASE_LIGHT_PIN                      -1  // Hardware PWM but one is not available on expansion header
54 76
 #endif
55 77
 
56
-#include "pins_RAMPS.h"
57
-
58
-//
59
-// Limit Switches
60
-//
61
-#undef Z_MAX_PIN
78
+/**
79
+ *  M3/M4/M5 - Spindle/Laser Control
80
+ *
81
+ *  If you want to control the speed of your spindle then you'll have
82
+ *  have to sacrifce the Extruder and pull some signals off the Z stepper
83
+ *  driver socket.
84
+ *
85
+ *  The following assumes:
86
+ *   - the Z stepper driver socket is empty
87
+ *   - the extruder driver socket has a driver board plugged into it
88
+ *   - the Z stepper wires are attached the the extruder connector
89
+ *
90
+ *  If you want to keep the extruder AND don't have a LCD display then
91
+ *  you can still control the power on/off and spindle direction.
92
+ *
93
+ *  Where to get spindle signals
94
+ *
95
+ *      stepper signal           socket name       socket name
96
+ *                                          -------
97
+ *       SPINDLE_LASER_ENA_PIN    /ENABLE  O|     |O  VMOT
98
+ *                                    MS1  O|     |O  GND
99
+ *                                    MS2  O|     |O  2B
100
+ *                                    MS3  O|     |O  2A
101
+ *                                 /RESET  O|     |O  1A
102
+ *                                 /SLEEP  O|     |O  1B
103
+ *          SPINDLE_LASER_PWM_PIN    STEP  O|     |O  VDD
104
+ *                SPINDLE_DIR_PIN     DIR  O|     |O  GND
105
+ *                                          -------
106
+ *
107
+ *  Note: Socket names vary from vendor to vendor
108
+ */
109
+#if HAS_CUTTER
110
+  #if !HAS_EXTRUDERS
111
+    #define SPINDLE_LASER_PWM_PIN             46  // Hardware PWM
112
+    #define SPINDLE_LASER_ENA_PIN             62  // Pullup!
113
+    #define SPINDLE_DIR_PIN                   48
114
+  #elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL)          // Use expansion header if no LCD in use
115
+    #define SPINDLE_LASER_ENA_PIN             16  // Pullup or pulldown!
116
+    #define SPINDLE_DIR_PIN                   17
117
+    #if !NUM_SERVOS                               // Use servo connector if possible
118
+      #define SPINDLE_LASER_PWM_PIN            6  // Hardware PWM
119
+    #elif HAS_FREE_AUX2_PINS
120
+      #define SPINDLE_LASER_PWM_PIN           44  // Hardware PWM
121
+    #endif
122
+  #endif
123
+#endif
62 124
 
63
-//
64
-// Steppers
65
-//
66
-#undef Z_ENABLE_PIN
67
-#define Z_ENABLE_PIN                          63
125
+#include "pins_RAMPS.h"
68 126
 
69 127
 //
70 128
 // Heaters / Fans
@@ -113,58 +171,3 @@
113 171
   #define BOARD_ST7920_DELAY_2               188
114 172
   #define BOARD_ST7920_DELAY_3                 0
115 173
 #endif
116
-
117
-/**
118
- *  M3/M4/M5 - Spindle/Laser Control
119
- *
120
- *  If you want to control the speed of your spindle then you'll have
121
- *  have to sacrifce the Extruder and pull some signals off the Z stepper
122
- *  driver socket.
123
- *
124
- *  The following assumes:
125
- *   - the Z stepper driver socket is empty
126
- *   - the extruder driver socket has a driver board plugged into it
127
- *   - the Z stepper wires are attached the the extruder connector
128
- *
129
- *  If you want to keep the extruder AND don't have a LCD display then
130
- *  you can still control the power on/off and spindle direction.
131
- *
132
- *  Where to get spindle signals
133
- *
134
- *      stepper signal           socket name       socket name
135
- *                                          -------
136
- *       SPINDLE_LASER_ENA_PIN    /ENABLE  O|     |O  VMOT
137
- *                                    MS1  O|     |O  GND
138
- *                                    MS2  O|     |O  2B
139
- *                                    MS3  O|     |O  2A
140
- *                                 /RESET  O|     |O  1A
141
- *                                 /SLEEP  O|     |O  1B
142
- *          SPINDLE_LASER_PWM_PIN    STEP  O|     |O  VDD
143
- *                SPINDLE_DIR_PIN     DIR  O|     |O  GND
144
- *                                          -------
145
- *
146
- *  Note: Socket names vary from vendor to vendor
147
- */
148
-#undef SPINDLE_LASER_PWM_PIN                      // Definitions in pins_RAMPS.h are not good with 3DRAG
149
-#undef SPINDLE_LASER_ENA_PIN
150
-#undef SPINDLE_DIR_PIN
151
-
152
-#if HAS_CUTTER
153
-  #if !HAS_EXTRUDERS
154
-    #undef E0_DIR_PIN
155
-    #undef E0_ENABLE_PIN
156
-    #undef E0_STEP_PIN
157
-    #undef Z_DIR_PIN
158
-    #undef Z_ENABLE_PIN
159
-    #undef Z_STEP_PIN
160
-    #define Z_DIR_PIN                         28
161
-    #define Z_ENABLE_PIN                      24
162
-    #define Z_STEP_PIN                        26
163
-    #define SPINDLE_LASER_PWM_PIN             46  // Hardware PWM
164
-    #define SPINDLE_LASER_ENA_PIN             62  // Pullup!
165
-    #define SPINDLE_DIR_PIN                   48
166
-  #elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL)          // Use expansion header if no LCD in use
167
-    #define SPINDLE_LASER_ENA_PIN             16  // Pullup or pulldown!
168
-    #define SPINDLE_DIR_PIN                   17
169
-  #endif
170
-#endif

+ 45
- 51
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h Ver arquivo

@@ -31,6 +31,41 @@
31 31
 #define BOARD_INFO_NAME "ZUM Mega 3D"
32 32
 
33 33
 //
34
+// Limit Switches
35
+//
36
+#define X_MAX_PIN                             79
37
+
38
+// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
39
+// decided to ship the printer only with the probe and no additional Z-min
40
+// endstop and the instruction manual advises the user to connect the probe to
41
+// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
42
+#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
43
+  #define Z_MIN_PIN                           19  // IND_S_5V
44
+  #define Z_MAX_PIN                           18  // Z-MIN Label
45
+#endif
46
+
47
+//
48
+// Z Probe (when not Z_MIN_PIN)
49
+//
50
+#ifndef Z_MIN_PROBE_PIN
51
+  #define Z_MIN_PROBE_PIN                     19  // IND_S_5V
52
+#endif
53
+
54
+//
55
+// Steppers
56
+//
57
+#define Z_ENABLE_PIN                          77
58
+
59
+#define DIGIPOTSS_PIN                         22
60
+#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
61
+
62
+//
63
+// Temperature Sensors
64
+//
65
+#define TEMP_1_PIN                            14  // Analog Input
66
+#define TEMP_BED_PIN                          15  // Analog Input
67
+
68
+//
34 69
 // Heaters / Fans
35 70
 //
36 71
 #define RAMPS_D8_PIN                          10
@@ -62,71 +97,30 @@
62 97
 #define SPINDLE_DIR_PIN                       42
63 98
 
64 99
 //
65
-// Limit Switches
66
-//
67
-#define X_MAX_PIN                             79  // 2
68
-
69
-//
70
-// Import RAMPS 1.3 pins
71
-//
72
-#include "pins_RAMPS_13.h"
73
-
74
-//
75
-// Z Probe (when not Z_MIN_PIN)
76
-//
77
-#undef Z_MIN_PROBE_PIN
78
-#define Z_MIN_PROBE_PIN                       19  // IND_S_5V
79
-
80
-#undef Z_ENABLE_PIN
81
-#define Z_ENABLE_PIN                          77  // 62
82
-
83
-//
84
-// Steppers
85
-//
86
-#define DIGIPOTSS_PIN                         22
87
-#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
88
-
89
-//
90
-// Temperature Sensors
91
-//
92
-#undef TEMP_1_PIN
93
-#define TEMP_1_PIN                            14  // Analog Input (15)
94
-
95
-#undef TEMP_BED_PIN
96
-#define TEMP_BED_PIN                          15  // Analog Input (14)
97
-
98
-//
99 100
 // Misc. Functions
100 101
 //
101
-#undef PS_ON_PIN                                  // 12
102 102
 #define PS_ON_PIN                             81  // External Power Supply
103 103
 
104 104
 #ifndef CASE_LIGHT_PIN
105 105
   #define CASE_LIGHT_PIN                      44  // Hardware PWM
106 106
 #endif
107 107
 
108
-// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
109
-// decided to ship the printer only with the probe and no additional Z-min
110
-// endstop and the instruction manual advises the user to connect the probe to
111
-// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
112
-#ifdef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
113
-  #undef Z_MIN_PIN
114
-  #undef Z_MAX_PIN
115
-  #define Z_MIN_PIN                           19  // IND_S_5V
116
-  #define Z_MAX_PIN                           18  // Z-MIN Label
108
+// Alter timing for graphical display
109
+#if ENABLED(U8GLIB_ST7920)
110
+  #define BOARD_ST7920_DELAY_1                 0
111
+  #define BOARD_ST7920_DELAY_2                 0
112
+  #define BOARD_ST7920_DELAY_3               189
117 113
 #endif
118 114
 
119 115
 //
116
+// Import RAMPS 1.3 pins
117
+//
118
+#include "pins_RAMPS_13.h"
119
+
120
+//
120 121
 // Used by the Hephestos 2 heated bed upgrade kit
121 122
 //
122 123
 #if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
123 124
   #undef HEATER_BED_PIN
124 125
   #define HEATER_BED_PIN                       8
125 126
 #endif
126
-
127
-// Alter timing for graphical display
128
-#if ENABLED(U8GLIB_ST7920)
129
-  #define BOARD_ST7920_DELAY_1                 0
130
-  #define BOARD_ST7920_DELAY_2                 0
131
-  #define BOARD_ST7920_DELAY_3               189
132
-#endif

+ 9
- 16
Marlin/src/pins/ramps/pins_K8400.h Ver arquivo

@@ -35,7 +35,14 @@
35 35
 #define BOARD_INFO_NAME         "K8400"
36 36
 #define DEFAULT_MACHINE_NAME    "Vertex"
37 37
 
38
-#include "pins_3DRAG.h"
38
+//
39
+// Steppers
40
+//
41
+#if HAS_CUTTER
42
+  #define Z_STEP_PIN                          32
43
+#endif
44
+
45
+#define E1_STEP_PIN                           32
39 46
 
40 47
 //
41 48
 // Limit Switches
@@ -43,16 +50,7 @@
43 50
 #define X_STOP_PIN                             3
44 51
 #define Y_STOP_PIN                            14
45 52
 
46
-#undef X_MIN_PIN
47
-#undef X_MAX_PIN
48
-#undef Y_MIN_PIN
49
-#undef Y_MAX_PIN
50
-
51
-//
52
-// Steppers
53
-//
54
-#undef E1_STEP_PIN
55
-#define E1_STEP_PIN                           32
53
+#include "pins_3DRAG.h"
56 54
 
57 55
 //
58 56
 // Heaters / Fans
@@ -66,8 +64,3 @@
66 64
 #undef PS_ON_PIN
67 65
 #undef KILL_PIN
68 66
 #undef SD_DETECT_PIN
69
-
70
-#if Z_STEP_PIN == 26
71
-  #undef Z_STEP_PIN
72
-  #define Z_STEP_PIN                          32
73
-#endif

+ 5
- 6
Marlin/src/pins/ramps/pins_K8600.h Ver arquivo

@@ -41,6 +41,11 @@
41 41
 #define Z_MIN_PIN                             -1
42 42
 
43 43
 //
44
+// Steppers
45
+//
46
+#define Z_ENABLE_PIN                          63
47
+
48
+//
44 49
 // Heaters / Fans
45 50
 //
46 51
 #define FAN_PIN                                8
@@ -58,12 +63,6 @@
58 63
 #include "pins_RAMPS.h"
59 64
 
60 65
 //
61
-// Steppers
62
-//
63
-#undef Z_ENABLE_PIN
64
-#define Z_ENABLE_PIN                          63
65
-
66
-//
67 66
 // Heaters / Fans
68 67
 //
69 68
 #undef HEATER_BED_PIN

+ 19
- 18
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h Ver arquivo

@@ -82,38 +82,39 @@
82 82
   #define Z_MAX_PIN                           37
83 83
 #endif
84 84
 
85
+#undef CHANGE_Y_LIMIT_PINS
86
+
85 87
 //
86
-// Z Probe (when not Z_MIN_PIN)
88
+// Steppers - No E1 pins
87 89
 //
88
-#define Z_MIN_PROBE_PIN                       -1
90
+#define E1_STEP_PIN                           -1
91
+#define E1_DIR_PIN                            -1
92
+#define E1_ENABLE_PIN                         -1
93
+#define E1_CS_PIN                             -1
89 94
 
90 95
 //
91
-// Misc. Functions
96
+// Z Probe (when not Z_MIN_PIN)
92 97
 //
93
-#define SD_DETECT_PIN                         49
94
-#define FIL_RUNOUT_PIN                         2
98
+#define Z_MIN_PROBE_PIN                       -1
95 99
 
96 100
 //
97
-// Other RAMPS 1.3 pins
101
+// Temperature Sensors
98 102
 //
99
-#define IS_RAMPS_EFB                              // Override autodetection. Bed will be undefined.
100
-#include "pins_RAMPS_13.h"
103
+#define TEMP_1_PIN                            -1
101 104
 
102 105
 //
103
-// Steppers
106
+// Průša i3 MK2 Multiplexer Support
104 107
 //
105
-#undef E1_STEP_PIN
106
-#undef E1_DIR_PIN
107
-#undef E1_ENABLE_PIN
108
-#undef E1_CS_PIN
108
+#define E_MUX2_PIN                            -1
109 109
 
110 110
 //
111
-// Temperature Sensors
111
+// Misc. Functions
112 112
 //
113
-#undef TEMP_1_PIN
113
+#define SD_DETECT_PIN                         49
114
+#define FIL_RUNOUT_PIN                         2
114 115
 
115 116
 //
116
-// Průša i3 MK2 Multiplexer Support
117
+// Other RAMPS 1.3 pins
117 118
 //
118
-#undef E_MUX2_PIN
119
-#undef CHANGE_Y_LIMIT_PINS
119
+#define IS_RAMPS_EFB                              // Override autodetection. Bed will be undefined.
120
+#include "pins_RAMPS_13.h"

+ 7
- 17
Marlin/src/pins/ramps/pins_ORTUR_4.h Ver arquivo

@@ -45,7 +45,14 @@
45 45
 //
46 46
 // Steppers
47 47
 //
48
+#define E0_STEP_PIN                           36
49
+#define E0_DIR_PIN                            34
50
+#define E0_ENABLE_PIN                         30
48 51
 #define E0_CS_PIN                             44
52
+
53
+#define E1_STEP_PIN                           26
54
+#define E1_DIR_PIN                            28
55
+#define E1_ENABLE_PIN                         24
49 56
 #define E1_CS_PIN                             42
50 57
 
51 58
 //
@@ -71,23 +78,6 @@
71 78
 #include "pins_RAMPS.h"
72 79
 
73 80
 //
74
-// Steppers
75
-//
76
-#undef E0_STEP_PIN
77
-#undef E0_DIR_PIN
78
-#undef E0_ENABLE_PIN
79
-#define E0_STEP_PIN                           36
80
-#define E0_DIR_PIN                            34
81
-#define E0_ENABLE_PIN                         30
82
-
83
-#undef E1_STEP_PIN
84
-#undef E1_DIR_PIN
85
-#undef E1_ENABLE_PIN
86
-#define E1_STEP_PIN                           26
87
-#define E1_DIR_PIN                            28
88
-#define E1_ENABLE_PIN                         24
89
-
90
-//
91 81
 // LCD / Controller
92 82
 //
93 83
 #if IS_RRD_FG_SC

+ 27
- 11
Marlin/src/pins/ramps/pins_RAMPS.h Ver arquivo

@@ -133,22 +133,38 @@
133 133
 #ifndef Z_STEP_PIN
134 134
   #define Z_STEP_PIN                          46
135 135
 #endif
136
-#define Z_DIR_PIN                             48
137
-#define Z_ENABLE_PIN                          62
136
+#ifndef Z_DIR_PIN
137
+  #define Z_DIR_PIN                           48
138
+#endif
139
+#ifndef Z_ENABLE_PIN
140
+  #define Z_ENABLE_PIN                        62
141
+#endif
138 142
 #ifndef Z_CS_PIN
139 143
   #define Z_CS_PIN                            40
140 144
 #endif
141 145
 
142
-#define E0_STEP_PIN                           26
143
-#define E0_DIR_PIN                            28
144
-#define E0_ENABLE_PIN                         24
146
+#ifndef E0_STEP_PIN
147
+  #define E0_STEP_PIN                         26
148
+#endif
149
+#ifndef E0_DIR_PIN
150
+  #define E0_DIR_PIN                          28
151
+#endif
152
+#ifndef E0_ENABLE_PIN
153
+  #define E0_ENABLE_PIN                       24
154
+#endif
145 155
 #ifndef E0_CS_PIN
146 156
   #define E0_CS_PIN                           42
147 157
 #endif
148 158
 
149
-#define E1_STEP_PIN                           36
150
-#define E1_DIR_PIN                            34
151
-#define E1_ENABLE_PIN                         30
159
+#ifndef E1_STEP_PIN
160
+  #define E1_STEP_PIN                         36
161
+#endif
162
+#ifndef E1_DIR_PIN
163
+  #define E1_DIR_PIN                          34
164
+#endif
165
+#ifndef E1_ENABLE_PIN
166
+  #define E1_ENABLE_PIN                       30
167
+#endif
152 168
 #ifndef E1_CS_PIN
153 169
   #define E1_CS_PIN                           44
154 170
 #endif
@@ -219,10 +235,10 @@
219 235
   #define FAN1_PIN                  RAMPS_D8_PIN
220 236
 #elif DISABLED(IS_RAMPS_SF)                       // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
221 237
   #define HEATER_BED_PIN            RAMPS_D8_PIN
222
-  #if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
223
-    #define FAN1_PIN                MOSFET_D_PIN
224
-  #else
238
+  #if EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL)
225 239
     #define HEATER_1_PIN            MOSFET_D_PIN
240
+  #else
241
+    #define FAN1_PIN                MOSFET_D_PIN
226 242
   #endif
227 243
 #endif
228 244
 

+ 8
- 15
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h Ver arquivo

@@ -44,32 +44,25 @@
44 44
 #define RAMPS_D8_PIN                          10
45 45
 #define RAMPS_D10_PIN                          8
46 46
 
47
-#include "pins_RAMPS.h"
48
-
49 47
 //
50
-// Steppers - Swap E0 / E1 on 3DYMY
48
+// Steppers
51 49
 //
52
-#undef E0_STEP_PIN
53
-#undef E0_DIR_PIN
54
-#undef E0_ENABLE_PIN
55
-
56
-#undef E1_STEP_PIN
57
-#undef E1_DIR_PIN
58
-#undef E1_ENABLE_PIN
50
+#define X_CS_PIN                              -1
51
+#define Y_CS_PIN                              -1
52
+#define Z_CS_PIN                              -1
59 53
 
54
+// Swap E0 / E1 on 3DYMY
60 55
 #define E0_STEP_PIN                           36
61 56
 #define E0_DIR_PIN                            34
62 57
 #define E0_ENABLE_PIN                         30
58
+#define E0_CS_PIN                             -1
63 59
 
64 60
 #define E1_STEP_PIN                           26
65 61
 #define E1_DIR_PIN                            28
66 62
 #define E1_ENABLE_PIN                         24
63
+#define E1_CS_PIN                             -1
67 64
 
68
-#undef X_CS_PIN
69
-#undef Y_CS_PIN
70
-#undef Z_CS_PIN
71
-#undef E0_CS_PIN
72
-#undef E1_CS_PIN
65
+#include "pins_RAMPS.h"
73 66
 
74 67
 #if IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
75 68
   #if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)

+ 12
- 18
Marlin/src/pins/ramps/pins_RIGIDBOARD.h Ver arquivo

@@ -30,6 +30,18 @@
30 30
 #endif
31 31
 
32 32
 //
33
+// Steppers
34
+// RigidBot swaps E0 / E1 plugs vs RAMPS 1.3
35
+//
36
+#define E0_STEP_PIN                           36
37
+#define E0_DIR_PIN                            34
38
+#define E0_ENABLE_PIN                         30
39
+
40
+#define E1_STEP_PIN                           26
41
+#define E1_DIR_PIN                            28
42
+#define E1_ENABLE_PIN                         24
43
+
44
+//
33 45
 // Z Probe (when not Z_MIN_PIN)
34 46
 //
35 47
 #ifndef Z_MIN_PROBE_PIN
@@ -45,24 +57,6 @@
45 57
 
46 58
 #include "pins_RAMPS.h"
47 59
 
48
-//
49
-// Steppers
50
-//
51
-// RigidBot swaps E0 / E1 plugs vs RAMPS 1.3
52
-#undef E0_STEP_PIN
53
-#undef E0_DIR_PIN
54
-#undef E0_ENABLE_PIN
55
-#define E0_STEP_PIN                           36
56
-#define E0_DIR_PIN                            34
57
-#define E0_ENABLE_PIN                         30
58
-
59
-#undef E1_STEP_PIN
60
-#undef E1_DIR_PIN
61
-#undef E1_ENABLE_PIN
62
-#define E1_STEP_PIN                           26
63
-#define E1_DIR_PIN                            28
64
-#define E1_ENABLE_PIN                         24
65
-
66 60
 #define STEPPER_RESET_PIN                     41  // Stepper drivers have a reset on RigidBot
67 61
 
68 62
 //

+ 6
- 5
Marlin/src/pins/ramps/pins_TRIGORILLA_13.h Ver arquivo

@@ -29,6 +29,12 @@
29 29
 
30 30
 #define IS_RAMPS_EFB
31 31
 #define RAMPS_D9_PIN                         44
32
+
33
+#define E1_STEP_PIN                          -1
34
+#define E1_DIR_PIN                           -1
35
+#define E1_ENABLE_PIN                        -1
36
+#define E1_CS_PIN                            -1
37
+
32 38
 #define FAN2_PIN                              9
33 39
 
34 40
 #ifndef E0_AUTO_FAN_PIN
@@ -36,8 +42,3 @@
36 42
 #endif
37 43
 
38 44
 #include "pins_RAMPS_13.h"
39
-
40
-#undef E1_STEP_PIN
41
-#undef E1_DIR_PIN
42
-#undef E1_ENABLE_PIN
43
-#undef E1_CS_PIN

Carregando…
Cancelar
Salvar