Ver código fonte

More overridable FIL_RUNOUT_PIN

Scott Lahteine 7 anos atrás
pai
commit
aef9e036bf

+ 3
- 1
Marlin/src/pins/pins_CHEAPTRONICv2.h Ver arquivo

@@ -109,7 +109,9 @@
109 109
 //
110 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 115
 #define Z_MIN_PROBE_PIN    36   // additional external board input labeled as E-SENS (should be used for Z-probe)
114 116
 #define LED_PIN            13
115 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 Ver arquivo

@@ -91,7 +91,9 @@
91 91
 
92 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 97
 //#define PWM_1_PIN          12
96 98
 //#define PWM_2_PIN          13
97 99
 //#define SPARE_IO           17

+ 7
- 5
Marlin/src/pins/pins_RAMPS_RE_ARM.h Ver arquivo

@@ -190,19 +190,21 @@
190 190
 #endif
191 191
 
192 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 194
 #endif
195 195
 
196 196
 //
197 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 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 209
 #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
208 210
   #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // try to use servo connector

Carregando…
Cancelar
Salvar