Add BLTouch Support (can be enabled with #define KNUTWURST_BLTOUCH)

This commit is contained in:
Knutwurst
2020-07-14 20:09:41 +02:00
parent 5d3be2c342
commit 97d6db15cf
2 changed files with 58 additions and 7 deletions

View File

@@ -35,6 +35,8 @@
#define KNUTWURST_MEGAS_ADV
#define KNUTWURST_TMC_ADV
//#define KNUTWURST_BLTOUCH
//#define KNUTWURST_DEBUG
// @section temperature
@@ -1471,7 +1473,9 @@
*
* Warning: Does not respect endstops!
*/
//#define BABYSTEPPING
#if ENABLED(KNUTWURST_BLTOUCH)
#define BABYSTEPPING
#endif
#if ENABLED(BABYSTEPPING)
//#define INTEGRATED_BABYSTEPPING // EXPERIMENTAL integration of babystepping into the Stepper ISR
//#define BABYSTEP_WITHOUT_HOMING
@@ -1556,12 +1560,23 @@
* probe points will follow. This prevents any change from causing
* the probe to be unable to reach any points.
*/
#if ENABLED(KNUTWURST_BLTOUCH)
#if PROBE_SELECTED && !IS_KINEMATIC
#define MIN_PROBE_EDGE_LEFT 10
#define MIN_PROBE_EDGE_RIGHT 10
#define MIN_PROBE_EDGE_FRONT 10
#define MIN_PROBE_EDGE_BACK 10
#endif
#endif
#if DISABLED(KNUTWURST_BLTOUCH)
#if PROBE_SELECTED && !IS_KINEMATIC
//#define MIN_PROBE_EDGE_LEFT MIN_PROBE_EDGE
//#define MIN_PROBE_EDGE_RIGHT MIN_PROBE_EDGE
//#define MIN_PROBE_EDGE_FRONT MIN_PROBE_EDGE
//#define MIN_PROBE_EDGE_BACK MIN_PROBE_EDGE
#endif
#endif
#if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
// Override the mesh area if the automatic (max) area is too large