Browse Source

📌 Overridable probe-related pins (#23107)

Keith Bennett 3 years ago
parent
commit
e3d777cf8f
No account linked to committer's email address

+ 7
- 2
Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h View File

@@ -70,9 +70,14 @@
70 70
 //
71 71
 // Probe
72 72
 //
73
-#define PROBE_TARE_PIN                      PA1
73
+#ifndef PROBE_TARE_PIN
74
+  #define PROBE_TARE_PIN                    PA1
75
+#endif
76
+
74 77
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
75
-  #define PROBE_ACTIVATION_SWITCH_PIN       PC2   // Optoswitch to Enable Z Probe
78
+  #ifndef PROBE_ACTIVATION_SWITCH_PIN
79
+    #define PROBE_ACTIVATION_SWITCH_PIN     PC2   // Optoswitch to Enable Z Probe
80
+  #endif
76 81
 #endif
77 82
 
78 83
 //

+ 3
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V452.h View File

@@ -36,7 +36,9 @@
36 36
 #define FAN_PIN                             PA0   // FAN
37 37
 
38 38
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
39
-  #define PROBE_ACTIVATION_SWITCH_PIN       PC6   // Optoswitch to Enable Z Probe
39
+  #ifndef PROBE_ACTIVATION_SWITCH_PIN
40
+    #define PROBE_ACTIVATION_SWITCH_PIN     PC6   // Optoswitch to Enable Z Probe
41
+  #endif
40 42
 #endif
41 43
 
42 44
 #include "pins_CREALITY_V45x.h"

+ 3
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V453.h View File

@@ -36,7 +36,9 @@
36 36
 #define FAN_PIN                             PB15  // FAN
37 37
 
38 38
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
39
-  #define PROBE_ACTIVATION_SWITCH_PIN       PB2   // Optoswitch to Enable Z Probe
39
+  #ifndef PROBE_ACTIVATION_SWITCH_PIN
40
+    #define PROBE_ACTIVATION_SWITCH_PIN     PB2   // Optoswitch to Enable Z Probe
41
+  #endif
40 42
 #endif
41 43
 
42 44
 #include "pins_CREALITY_V45x.h"

+ 3
- 1
Marlin/src/pins/stm32f1/pins_CREALITY_V45x.h View File

@@ -64,7 +64,9 @@
64 64
 //
65 65
 // Probe
66 66
 //
67
-#define PROBE_TARE_PIN                      PA5
67
+#ifndef PROBE_TARE_PIN
68
+  #define PROBE_TARE_PIN                    PA5
69
+#endif
68 70
 
69 71
 //
70 72
 // Steppers

+ 3
- 1
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h View File

@@ -136,7 +136,9 @@
136 136
 // Probe enable
137 137
 //
138 138
 #if ENABLED(PROBE_ENABLE_DISABLE)
139
-  #define PROBE_ENABLE_PIN            SERVO0_PIN
139
+  #ifndef PROBE_ENABLE_PIN
140
+    #define PROBE_ENABLE_PIN          SERVO0_PIN
141
+  #endif
140 142
 #endif
141 143
 
142 144
 //

Loading…
Cancel
Save