Browse Source

More support for 4th extruder or heater

Scott Lahteine 8 years ago
parent
commit
49d77720d5
1 changed files with 19 additions and 2 deletions
  1. 19
    2
      Marlin/pins.h

+ 19
- 2
Marlin/pins.h View File

230
 #ifndef HEATER_3_PIN
230
 #ifndef HEATER_3_PIN
231
   #define HEATER_3_PIN -1
231
   #define HEATER_3_PIN -1
232
 #endif
232
 #endif
233
+#ifndef HEATER_4_PIN
234
+  #define HEATER_4_PIN -1
235
+#endif
233
 #ifndef HEATER_BED_PIN
236
 #ifndef HEATER_BED_PIN
234
   #define HEATER_BED_PIN -1
237
   #define HEATER_BED_PIN -1
235
 #endif
238
 #endif
280
 #define _E1_PINS
283
 #define _E1_PINS
281
 #define _E2_PINS
284
 #define _E2_PINS
282
 #define _E3_PINS
285
 #define _E3_PINS
286
+#define _E4_PINS
283
 
287
 
284
 #if EXTRUDERS > 1
288
 #if EXTRUDERS > 1
285
   #undef _E1_PINS
289
   #undef _E1_PINS
290
     #if EXTRUDERS > 3
294
     #if EXTRUDERS > 3
291
       #undef _E3_PINS
295
       #undef _E3_PINS
292
       #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN,
296
       #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN,
297
+      #if EXTRUDERS > 4
298
+        #undef _E4_PINS
299
+        #define _E4_PINS E4_STEP_PIN, E4_DIR_PIN, E4_ENABLE_PIN,
300
+      #endif
293
     #endif
301
     #endif
294
   #endif
302
   #endif
295
 #endif
303
 #endif
298
 #define _H1_PINS
306
 #define _H1_PINS
299
 #define _H2_PINS
307
 #define _H2_PINS
300
 #define _H3_PINS
308
 #define _H3_PINS
309
+#define _H4_PINS
301
 
310
 
302
 #if HOTENDS > 1
311
 #if HOTENDS > 1
303
   #undef _H1_PINS
312
   #undef _H1_PINS
308
     #if HOTENDS > 3
317
     #if HOTENDS > 3
309
       #undef _H3_PINS
318
       #undef _H3_PINS
310
       #define _H3_PINS HEATER_3_PIN, EXTRUDER_3_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_3_PIN),
319
       #define _H3_PINS HEATER_3_PIN, EXTRUDER_3_AUTO_FAN_PIN, marlinAnalogInputToDigitalPin(TEMP_3_PIN),
320
+      #if HOTENDS > 4
321
+        #undef _H4_PINS
322
+        #define _H4_PINS HEATER_4_PIN, marlinAnalogInputToDigitalPin(TEMP_4_PIN),
323
+      #endif
311
     #endif
324
     #endif
312
   #endif
325
   #endif
313
 #elif ENABLED(MIXING_EXTRUDER)
326
 #elif ENABLED(MIXING_EXTRUDER)
319
     #if MIXING_STEPPERS > 3
332
     #if MIXING_STEPPERS > 3
320
       #undef _E3_PINS
333
       #undef _E3_PINS
321
       #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN,
334
       #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN,
335
+      #if MIXING_STEPPERS > 4
336
+        #undef _E4_PINS
337
+        #define _E4_PINS E4_STEP_PIN, E4_DIR_PIN, E4_ENABLE_PIN,
338
+      #endif
322
     #endif
339
     #endif
323
   #endif
340
   #endif
324
 #endif
341
 #endif
451
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
468
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
452
     Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
469
     Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
453
     PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLERFAN_PIN, \
470
     PS_ON_PIN, HEATER_BED_PIN, FAN_PIN, FAN1_PIN, FAN2_PIN, CONTROLLERFAN_PIN, \
454
-    _E0_PINS _E1_PINS _E2_PINS _E3_PINS BED_PINS \
455
-    _H0_PINS _H1_PINS _H2_PINS _H3_PINS \
471
+    _E0_PINS _E1_PINS _E2_PINS _E3_PINS _E4_PINS BED_PINS \
472
+    _H0_PINS _H1_PINS _H2_PINS _H3_PINS _H4_PINS \
456
     _X2_PINS _Y2_PINS _Z2_PINS \
473
     _X2_PINS _Y2_PINS _Z2_PINS \
457
     X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
474
     X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
458
   }
475
   }

Loading…
Cancel
Save