瀏覽代碼

Predefine auto fan pins in some pins files

Scott Lahteine 8 年之前
父節點
當前提交
95275eb9b3
共有 5 個文件被更改,包括 38 次插入4 次删除
  1. 16
    0
      Marlin/pins.h
  2. 4
    4
      Marlin/pins_AZTEEG_X3_PRO.h
  3. 8
    0
      Marlin/pins_BQ_ZUM_MEGA_3D.h
  4. 5
    0
      Marlin/pins_CNCONTROLS_11.h
  5. 5
    0
      Marlin/pins_CNCONTROLS_12.h

+ 16
- 0
Marlin/pins.h 查看文件

@@ -282,6 +282,22 @@
282 282
 // Marlin needs to account for pins that equal -1
283 283
 #define marlinAnalogInputToDigitalPin(p) ((p) == -1 ? -1 : analogInputToDigitalPin(p))
284 284
 
285
+//
286
+// Assign auto fan pins if needed
287
+//
288
+#if !defined(E0_AUTO_FAN_PIN) && defined(ORIG_E0_AUTO_FAN_PIN)
289
+  #define E0_AUTO_FAN_PIN ORIG_E0_AUTO_FAN_PIN
290
+#endif
291
+#if !defined(E1_AUTO_FAN_PIN) && defined(ORIG_E1_AUTO_FAN_PIN)
292
+  #define E1_AUTO_FAN_PIN ORIG_E1_AUTO_FAN_PIN
293
+#endif
294
+#if !defined(E2_AUTO_FAN_PIN) && defined(ORIG_E2_AUTO_FAN_PIN)
295
+  #define E2_AUTO_FAN_PIN ORIG_E2_AUTO_FAN_PIN
296
+#endif
297
+#if !defined(E3_AUTO_FAN_PIN) && defined(ORIG_E3_AUTO_FAN_PIN)
298
+  #define E3_AUTO_FAN_PIN ORIG_E3_AUTO_FAN_PIN
299
+#endif
300
+
285 301
 // List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
286 302
 #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, E0_MS1_PIN, E0_MS2_PIN,
287 303
 #define _E1_PINS

+ 4
- 4
Marlin/pins_AZTEEG_X3_PRO.h 查看文件

@@ -106,10 +106,10 @@
106 106
 #define CONTROLLERFAN_PIN   4 // Pin used for the fan to cool motherboard (-1 to disable)
107 107
 
108 108
 // Fans/Water Pump to cool the hotend cool side.
109
-#define E0_AUTO_FAN_PIN     5
110
-#define E1_AUTO_FAN_PIN     5
111
-#define E2_AUTO_FAN_PIN     5
112
-#define E3_AUTO_FAN_PIN     5
109
+#define ORIG_E0_AUTO_FAN_PIN 5
110
+#define ORIG_E1_AUTO_FAN_PIN 5
111
+#define ORIG_E2_AUTO_FAN_PIN 5
112
+#define ORIG_E3_AUTO_FAN_PIN 5
113 113
 
114 114
 //
115 115
 // LCD / Controller

+ 8
- 0
Marlin/pins_BQ_ZUM_MEGA_3D.h 查看文件

@@ -38,6 +38,14 @@
38 38
 #define RAMPS_D10_PIN  9
39 39
 #define MOSFET_D_PIN   7
40 40
 
41
+//
42
+// Auto fans
43
+//
44
+#define ORIG_E0_AUTO_FAN_PIN 11
45
+#define ORIG_E1_AUTO_FAN_PIN  6
46
+#define ORIG_E2_AUTO_FAN_PIN  6 
47
+#define ORIG_E3_AUTO_FAN_PIN  6
48
+
41 49
 #include "pins_RAMPS_13.h"
42 50
 
43 51
 //

+ 5
- 0
Marlin/pins_CNCONTROLS_11.h 查看文件

@@ -69,6 +69,11 @@
69 69
 
70 70
 //#define FAN_PIN           7  // common PWM pin for all tools
71 71
 
72
+#define ORIG_E0_AUTO_FAN_PIN 7
73
+#define ORIG_E1_AUTO_FAN_PIN 7
74
+#define ORIG_E2_AUTO_FAN_PIN 7
75
+#define ORIG_E3_AUTO_FAN_PIN 7
76
+
72 77
 //
73 78
 // Misc. Functions
74 79
 //

+ 5
- 0
Marlin/pins_CNCONTROLS_12.h 查看文件

@@ -69,6 +69,11 @@
69 69
 
70 70
 #define FAN_PIN             5  // 5 is PWMtool3 -> 7 is common PWM pin for all tools
71 71
 
72
+#define ORIG_E0_AUTO_FAN_PIN 7
73
+#define ORIG_E1_AUTO_FAN_PIN 7
74
+#define ORIG_E2_AUTO_FAN_PIN 7
75
+#define ORIG_E3_AUTO_FAN_PIN 7
76
+
72 77
 //
73 78
 // Misc. Functions
74 79
 //

Loading…
取消
儲存