Преглед изворни кода

BTT SKR V2 probe and chamber pins (#21717)

Keith Bennett пре 4 година
родитељ
комит
516fe131be
No account linked to committer's email address
1 измењених фајлова са 26 додато и 6 уклоњено
  1. 26
    6
      Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0.h

+ 26
- 6
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0.h Прегледај датотеку

@@ -200,15 +200,35 @@
200 200
 #define TEMP_0_PIN                          PA2   // TH0
201 201
 #define TEMP_1_PIN                          PA3   // TH1
202 202
 
203
+#if HOTENDS == 1
204
+  #if TEMP_SENSOR_PROBE
205
+    #define TEMP_PROBE_PIN           TEMP_1_PIN
206
+  #elif TEMP_SENSOR_CHAMBER
207
+    #define TEMP_CHAMBER_PIN         TEMP_1_PIN
208
+  #endif
209
+#endif
210
+
203 211
 //
204 212
 // Heaters / Fans
205 213
 //
206
-#define HEATER_0_PIN                        PB3   // Heater0
207
-#define HEATER_1_PIN                        PB4   // Heater1
208
-#define HEATER_BED_PIN                      PD7   // Hotbed
209
-#define FAN_PIN                             PB7   // Fan0
210
-#define FAN1_PIN                            PB6   // Fan1
211
-#define FAN2_PIN                            PB5   // Fan2
214
+#ifndef HEATER_0_PIN
215
+  #define HEATER_0_PIN                      PB3   // Heater0
216
+#endif
217
+#ifndef HEATER_1_PIN
218
+  #define HEATER_1_PIN                      PB4   // Heater1
219
+#endif
220
+#ifndef HEATER_BED_PIN
221
+  #define HEATER_BED_PIN                    PD7   // Hotbed
222
+#endif
223
+#ifndef FAN_PIN
224
+  #define FAN_PIN                           PB7   // Fan0
225
+#endif
226
+#ifndef FAN1_PIN
227
+  #define FAN1_PIN                          PB6   // Fan1
228
+#endif
229
+#ifndef FAN2_PIN
230
+  #define FAN2_PIN                          PB5   // Fan2
231
+#endif
212 232
 
213 233
 //
214 234
 // Software SPI pins for TMC2130 stepper drivers

Loading…
Откажи
Сачувај