Support for BIQU B1-SE-Plus strain gauge probe (#23101)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
BigTreeTech 2021-11-10 23:56:10 +08:00 committed by Scott Lahteine
parent a2349fc411
commit 6e284f8823
7 changed files with 39 additions and 3 deletions

View File

@ -1220,6 +1220,15 @@
#endif #endif
#endif #endif
/**
* Probe Enable / Disable
* The probe only provides a triggered signal when enabled.
*/
//#define PROBE_ENABLE_DISABLE
#if ENABLED(PROBE_ENABLE_DISABLE)
//#define PROBE_ENABLE_PIN -1 // Override the default pin here
#endif
/** /**
* Multiple Probing * Multiple Probing
* *

View File

@ -392,6 +392,9 @@ void Endstops::not_homing() {
#if HAS_BED_PROBE #if HAS_BED_PROBE
void Endstops::enable_z_probe(const bool onoff) { void Endstops::enable_z_probe(const bool onoff) {
z_probe_enabled = onoff; z_probe_enabled = onoff;
#if PIN_EXISTS(PROBE_ENABLE)
WRITE(PROBE_ENABLE_PIN, onoff);
#endif
resync(); resync();
} }
#endif #endif

View File

@ -1439,6 +1439,15 @@
#if PIN_EXISTS(Z_MIN_PROBE) #if PIN_EXISTS(Z_MIN_PROBE)
REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN) REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
#endif #endif
#if PIN_EXISTS(PROBE_ACTIVATION_SWITCH)
REPORT_NAME_DIGITAL(__LINE__, PROBE_ACTIVATION_SWITCH_PIN)
#endif
#if PIN_EXISTS(PROBE_ENABLE)
REPORT_NAME_DIGITAL(__LINE__, PROBE_ENABLE_PIN)
#endif
#if PIN_EXISTS(PROBE_TARE)
REPORT_NAME_DIGITAL(__LINE__, PROBE_TARE_PIN)
#endif
#if PIN_EXISTS(I_ATT) #if PIN_EXISTS(I_ATT)
REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN) REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
#endif #endif

View File

@ -71,7 +71,9 @@
// Probe // Probe
// //
#define PROBE_TARE_PIN PA1 #define PROBE_TARE_PIN PA1
#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PC2 // Optoswitch to Enable Z Probe #define PROBE_ACTIVATION_SWITCH_PIN PC2 // Optoswitch to Enable Z Probe
#endif
// //
// Steppers // Steppers

View File

@ -34,6 +34,9 @@
#define HEATER_0_PIN PA1 // HEATER1 #define HEATER_0_PIN PA1 // HEATER1
#define HEATER_BED_PIN PA2 // HOT BED #define HEATER_BED_PIN PA2 // HOT BED
#define FAN_PIN PA0 // FAN #define FAN_PIN PA0 // FAN
#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PC6 // Optoswitch to Enable Z Probe #define PROBE_ACTIVATION_SWITCH_PIN PC6 // Optoswitch to Enable Z Probe
#endif
#include "pins_CREALITY_V45x.h" #include "pins_CREALITY_V45x.h"

View File

@ -34,6 +34,9 @@
#define HEATER_0_PIN PB14 // HEATER1 #define HEATER_0_PIN PB14 // HEATER1
#define HEATER_BED_PIN PB13 // HOT BED #define HEATER_BED_PIN PB13 // HOT BED
#define FAN_PIN PB15 // FAN #define FAN_PIN PB15 // FAN
#if ENABLED(PROBE_ACTIVATION_SWITCH)
#define PROBE_ACTIVATION_SWITCH_PIN PB2 // Optoswitch to Enable Z Probe #define PROBE_ACTIVATION_SWITCH_PIN PB2 // Optoswitch to Enable Z Probe
#endif
#include "pins_CREALITY_V45x.h" #include "pins_CREALITY_V45x.h"

View File

@ -132,6 +132,13 @@
#define Z_MIN_PROBE_PIN PE4 #define Z_MIN_PROBE_PIN PE4
#endif #endif
//
// Probe enable
//
#if ENABLED(PROBE_ENABLE_DISABLE)
#define PROBE_ENABLE_PIN SERVO0_PIN
#endif
// //
// Filament Runout Sensor // Filament Runout Sensor
// //