浏览代码

More overridable FIL_RUNOUT_PIN

Scott Lahteine 7 年前
父节点
当前提交
aef9e036bf
共有 3 个文件被更改,包括 13 次插入7 次删除
  1. 3
    1
      Marlin/src/pins/pins_CHEAPTRONICv2.h
  2. 3
    1
      Marlin/src/pins/pins_CNCONTROLS_12.h
  3. 7
    5
      Marlin/src/pins/pins_RAMPS_RE_ARM.h

+ 3
- 1
Marlin/src/pins/pins_CHEAPTRONICv2.h 查看文件

109
 //
109
 //
110
 // Other board specific pins
110
 // Other board specific pins
111
 //
111
 //
112
-#define FIL_RUNOUT_PIN     37   // board input labeled as F-DET
112
+#ifndef FIL_RUNOUT_PIN
113
+  #define FIL_RUNOUT_PIN   37   // board input labeled as F-DET
114
+#endif
113
 #define Z_MIN_PROBE_PIN    36   // additional external board input labeled as E-SENS (should be used for Z-probe)
115
 #define Z_MIN_PROBE_PIN    36   // additional external board input labeled as E-SENS (should be used for Z-probe)
114
 #define LED_PIN            13
116
 #define LED_PIN            13
115
 #define SPINDLE_ENABLE_PIN  4   // additional PWM pin 1 at JP1 connector - should be used for laser control too
117
 #define SPINDLE_ENABLE_PIN  4   // additional PWM pin 1 at JP1 connector - should be used for laser control too

+ 3
- 1
Marlin/src/pins/pins_CNCONTROLS_12.h 查看文件

91
 
91
 
92
 // Common I/O
92
 // Common I/O
93
 
93
 
94
-#define FIL_RUNOUT_PIN     18
94
+#ifndef FIL_RUNOUT_PIN
95
+  #define FIL_RUNOUT_PIN   18
96
+#endif
95
 //#define PWM_1_PIN          12
97
 //#define PWM_1_PIN          12
96
 //#define PWM_2_PIN          13
98
 //#define PWM_2_PIN          13
97
 //#define SPARE_IO           17
99
 //#define SPARE_IO           17

+ 7
- 5
Marlin/src/pins/pins_RAMPS_RE_ARM.h 查看文件

190
 #endif
190
 #endif
191
 
191
 
192
 #ifndef FAN_PIN
192
 #ifndef FAN_PIN
193
-  #define FAN_PIN         P1_18 // (4) IO pin. Buffer needed
193
+  #define FAN_PIN         P1_18  // (4) IO pin. Buffer needed
194
 #endif
194
 #endif
195
 
195
 
196
 //
196
 //
197
 // Misc. Functions
197
 // Misc. Functions
198
 //
198
 //
199
-#define LED_PIN           P4_28 // (13)
200
-#define SDSS              P1_23 // (53)
199
+#define LED_PIN           P4_28  // (13)
200
+#define SDSS              P1_23  // (53)
201
 
201
 
202
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
202
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
203
-#define FIL_RUNOUT_PIN    P1_18  // (4)
203
+#ifndef FIL_RUNOUT_PIN
204
+  #define FIL_RUNOUT_PIN  P1_18  // (4)
205
+#endif
204
 
206
 
205
-#define PS_ON_PIN         P2_12 // (12)
207
+#define PS_ON_PIN         P2_12  // (12)
206
 
208
 
207
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
209
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
208
   #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // try to use servo connector
210
   #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // try to use servo connector

正在加载...
取消
保存