|
@@ -236,16 +236,26 @@
|
236
|
236
|
#define Z_MIN_PIN -1
|
237
|
237
|
#endif
|
238
|
238
|
|
|
239
|
+//
|
|
240
|
+// Dual Y and Dual Z support
|
|
241
|
+// These options are mutually-exclusive
|
|
242
|
+//
|
|
243
|
+
|
|
244
|
+#define __EPIN(p,q) E##p##_##q##_PIN
|
|
245
|
+#define _EPIN(p,q) __EPIN(p,q)
|
|
246
|
+
|
|
247
|
+// The Y2 axis, if any, should be the next open extruder port
|
239
|
248
|
#ifndef Y2_STEP_PIN
|
240
|
|
- #define Y2_STEP_PIN E1_STEP_PIN
|
241
|
|
- #define Y2_DIR_PIN E1_DIR_PIN
|
242
|
|
- #define Y2_ENABLE_PIN E1_ENABLE_PIN
|
|
249
|
+ #define Y2_STEP_PIN _EPIN(EXTRUDERS, STEP)
|
|
250
|
+ #define Y2_DIR_PIN _EPIN(EXTRUDERS, DIR)
|
|
251
|
+ #define Y2_ENABLE_PIN _EPIN(EXTRUDERS, ENABLE)
|
243
|
252
|
#endif
|
244
|
253
|
|
|
254
|
+// The Z2 axis, if any, should be the next open extruder port
|
245
|
255
|
#ifndef Z2_STEP_PIN
|
246
|
|
- #define Z2_STEP_PIN E1_STEP_PIN
|
247
|
|
- #define Z2_DIR_PIN E1_DIR_PIN
|
248
|
|
- #define Z2_ENABLE_PIN E1_ENABLE_PIN
|
|
256
|
+ #define Z2_STEP_PIN _EPIN(EXTRUDERS, STEP)
|
|
257
|
+ #define Z2_DIR_PIN _EPIN(EXTRUDERS, DIR)
|
|
258
|
+ #define Z2_ENABLE_PIN _EPIN(EXTRUDERS, ENABLE)
|
249
|
259
|
#endif
|
250
|
260
|
|
251
|
261
|
#define SENSITIVE_PINS { 0, 1, \
|