소스 검색

More support for 4th extruder or heater

Scott Lahteine 8 년 전
부모
커밋
49d77720d5
1개의 변경된 파일19개의 추가작업 그리고 2개의 파일을 삭제
  1. 19
    2
      Marlin/pins.h

+ 19
- 2
Marlin/pins.h 파일 보기

@@ -230,6 +230,9 @@
230 230
 #ifndef HEATER_3_PIN
231 231
   #define HEATER_3_PIN -1
232 232
 #endif
233
+#ifndef HEATER_4_PIN
234
+  #define HEATER_4_PIN -1
235
+#endif
233 236
 #ifndef HEATER_BED_PIN
234 237
   #define HEATER_BED_PIN -1
235 238
 #endif
@@ -280,6 +283,7 @@
280 283
 #define _E1_PINS
281 284
 #define _E2_PINS
282 285
 #define _E3_PINS
286
+#define _E4_PINS
283 287
 
284 288
 #if EXTRUDERS > 1
285 289
   #undef _E1_PINS
@@ -290,6 +294,10 @@
290 294
     #if EXTRUDERS > 3
291 295
       #undef _E3_PINS
292 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 301
     #endif
294 302
   #endif
295 303
 #endif
@@ -298,6 +306,7 @@
298 306
 #define _H1_PINS
299 307
 #define _H2_PINS
300 308
 #define _H3_PINS
309
+#define _H4_PINS
301 310
 
302 311
 #if HOTENDS > 1
303 312
   #undef _H1_PINS
@@ -308,6 +317,10 @@
308 317
     #if HOTENDS > 3
309 318
       #undef _H3_PINS
310 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 324
     #endif
312 325
   #endif
313 326
 #elif ENABLED(MIXING_EXTRUDER)
@@ -319,6 +332,10 @@
319 332
     #if MIXING_STEPPERS > 3
320 333
       #undef _E3_PINS
321 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 339
     #endif
323 340
   #endif
324 341
 #endif
@@ -451,8 +468,8 @@
451 468
     Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, \
452 469
     Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_MIN_PROBE_PIN, \
453 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 473
     _X2_PINS _Y2_PINS _Z2_PINS \
457 474
     X_MS1_PIN, X_MS2_PIN, Y_MS1_PIN, Y_MS2_PIN, Z_MS1_PIN, Z_MS2_PIN \
458 475
   }

Loading…
취소
저장