Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
📌 Overridable probe-related pins (MarlinFirmware#23107)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb authored and 0xk1f0 committed Dec 26, 2021
1 parent 210f26f commit c07810d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
9 changes: 7 additions & 2 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_CR6.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,14 @@
//
// Probe
//
#define PROBE_TARE_PIN PA1
#ifndef PROBE_TARE_PIN
#define PROBE_TARE_PIN PA1
#endif

#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PC2 // Optoswitch to Enable Z Probe
#ifndef PROBE_ACTIVATION_SWITCH_PIN
#define PROBE_ACTIVATION_SWITCH_PIN PC2 // Optoswitch to Enable Z Probe
#endif
#endif

//
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/stm32f1/pins_CREALITY_V452.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#define FAN_PIN PA0 // FAN

#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PC6 // Optoswitch to Enable Z Probe
#ifndef PROBE_ACTIVATION_SWITCH_PIN
#define PROBE_ACTIVATION_SWITCH_PIN PC6 // Optoswitch to Enable Z Probe
#endif
#endif

#include "pins_CREALITY_V45x.h"
4 changes: 3 additions & 1 deletion Marlin/src/pins/stm32f1/pins_CREALITY_V453.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#define FAN_PIN PB15 // FAN

#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PB2 // Optoswitch to Enable Z Probe
#ifndef PROBE_ACTIVATION_SWITCH_PIN
#define PROBE_ACTIVATION_SWITCH_PIN PB2 // Optoswitch to Enable Z Probe
#endif
#endif

#include "pins_CREALITY_V45x.h"
4 changes: 3 additions & 1 deletion Marlin/src/pins/stm32f1/pins_CREALITY_V45x.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
//
// Probe
//
#define PROBE_TARE_PIN PA5
#ifndef PROBE_TARE_PIN
#define PROBE_TARE_PIN PA5
#endif

//
// Steppers
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@
// Probe enable
//
#if ENABLED(PROBE_ENABLE_DISABLE)
#define PROBE_ENABLE_PIN SERVO0_PIN
#ifndef PROBE_ENABLE_PIN
#define PROBE_ENABLE_PIN SERVO0_PIN
#endif
#endif

//
Expand Down

0 comments on commit c07810d

Please sign in to comment.