Browse Source

Move Y2 and Z2 pins defines to pins.h

Scott Lahteine 9 years ago
parent
commit
34e0a8d848
3 changed files with 12 additions and 20 deletions
  1. 12
    0
      Marlin/pins.h
  2. 0
    8
      Marlin/pins_LEAPFROG.h
  3. 0
    12
      Marlin/pins_RAMPS_13.h

+ 12
- 0
Marlin/pins.h View File

227
   #define Z_MIN_PIN          -1
227
   #define Z_MIN_PIN          -1
228
 #endif
228
 #endif
229
 
229
 
230
+#ifndef Y2_STEP_PIN
231
+  #define Y2_STEP_PIN      E1_STEP_PIN
232
+  #define Y2_DIR_PIN       E1_DIR_PIN
233
+  #define Y2_ENABLE_PIN    E1_ENABLE_PIN
234
+#endif
235
+
236
+#ifndef Z2_STEP_PIN
237
+  #define Z2_STEP_PIN      E1_STEP_PIN
238
+  #define Z2_DIR_PIN       E1_DIR_PIN
239
+  #define Z2_ENABLE_PIN    E1_ENABLE_PIN
240
+#endif
241
+
230
 #define SENSITIVE_PINS { 0, 1, \
242
 #define SENSITIVE_PINS { 0, 1, \
231
                         X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
243
                         X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, \
232
                         Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
244
                         Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \

+ 0
- 8
Marlin/pins_LEAPFROG.h View File

32
 #define E1_DIR_PIN          40 //40
32
 #define E1_DIR_PIN          40 //40
33
 #define E1_ENABLE_PIN       36 //36
33
 #define E1_ENABLE_PIN       36 //36
34
 
34
 
35
-#define Y2_STEP_PIN         37
36
-#define Y2_DIR_PIN          40
37
-#define Y2_ENABLE_PIN       36
38
-
39
-#define Z2_STEP_PIN         37
40
-#define Z2_DIR_PIN          40
41
-#define Z2_ENABLE_PIN       36
42
-
43
 #define SDPOWER            -1
35
 #define SDPOWER            -1
44
 #define SDSS               11
36
 #define SDSS               11
45
 #define SD_DETECT_PIN      -1 // 10 optional also used as mode pin
37
 #define SD_DETECT_PIN      -1 // 10 optional also used as mode pin

+ 0
- 12
Marlin/pins_RAMPS_13.h View File

42
 #define Z_MAX_PIN          19
42
 #define Z_MAX_PIN          19
43
 #define Z_MIN_PROBE_PIN    -1
43
 #define Z_MIN_PROBE_PIN    -1
44
 
44
 
45
-#define Y2_STEP_PIN        36
46
-#define Y2_DIR_PIN         34
47
-#define Y2_ENABLE_PIN      30
48
-
49
-#undef Z2_STEP_PIN
50
-#undef Z2_DIR_PIN
51
-#undef Z2_ENABLE_PIN
52
-
53
-#define Z2_STEP_PIN        36
54
-#define Z2_DIR_PIN         34
55
-#define Z2_ENABLE_PIN      30
56
-
57
 #define E0_STEP_PIN        26
45
 #define E0_STEP_PIN        26
58
 #define E0_DIR_PIN         28
46
 #define E0_DIR_PIN         28
59
 #define E0_ENABLE_PIN      24
47
 #define E0_ENABLE_PIN      24

Loading…
Cancel
Save