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
 //
70
 //
71
 // Probe
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
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
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
 #endif
81
 #endif
77
 
82
 
78
 //
83
 //

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

36
 #define FAN_PIN                             PA0   // FAN
36
 #define FAN_PIN                             PA0   // FAN
37
 
37
 
38
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
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
 #endif
42
 #endif
41
 
43
 
42
 #include "pins_CREALITY_V45x.h"
44
 #include "pins_CREALITY_V45x.h"

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

36
 #define FAN_PIN                             PB15  // FAN
36
 #define FAN_PIN                             PB15  // FAN
37
 
37
 
38
 #if ENABLED(PROBE_ACTIVATION_SWITCH)
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
 #endif
42
 #endif
41
 
43
 
42
 #include "pins_CREALITY_V45x.h"
44
 #include "pins_CREALITY_V45x.h"

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

64
 //
64
 //
65
 // Probe
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
 // Steppers
72
 // Steppers

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

136
 // Probe enable
136
 // Probe enable
137
 //
137
 //
138
 #if ENABLED(PROBE_ENABLE_DISABLE)
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
 #endif
142
 #endif
141
 
143
 
142
 //
144
 //

Loading…
Cancel
Save