Add CR-10 V2 probe shortcut (#142)

This commit is contained in:
David PHAM-VAN 2020-07-05 19:14:29 -04:00 committed by GitHub
parent 5dd127dc5d
commit 020587eb9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 12 deletions

View file

@ -23,6 +23,13 @@
#define CONFIG_EXAMPLES_DIR "Creality/CR-10 V2"
/**
* Creality CD-10 V2 options
*/
// Is the BLTouch option installed?
#define CR10V2_BLTOUCH
/**
* Configuration.h
*
@ -670,11 +677,11 @@
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
#define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING ENABLED(CR10V2_BLTOUCH) // Set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe.
#define Z_MAX_ENDSTOP_INVERTING ENABLED(CR10V2_BLTOUCH) // Set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING ENABLED(CR10V2_BLTOUCH) // Set to true to invert the logic of the probe.
/**
* Stepper Drivers
@ -875,7 +882,9 @@
*/
//#define Z_MIN_PROBE_PIN 32 // Pin 32 is the RAMPS default
#define Z_STOP_PIN 19 // Source DWIN2
#if ENABLED(CR10V2_BLTOUCH)
#define Z_STOP_PIN 19 // Source DWIN2
#endif
/**
* Probe Type
@ -913,7 +922,9 @@
/**
* The BLTouch probe uses a Hall effect sensor and emulates a servo.
*/
#define BLTOUCH
#if ENABLED(CR10V2_BLTOUCH)
#define BLTOUCH
#endif
/**
* Pressure sensor with a BLTouch-like interface
@ -1043,7 +1054,9 @@
#define Z_PROBE_OFFSET_RANGE_MAX 9
// Enable the M48 repeatability test to test probe accuracy
#define Z_MIN_PROBE_REPEATABILITY_TEST
#if ENABLED(CR10V2_BLTOUCH)
#define Z_MIN_PROBE_REPEATABILITY_TEST
#endif
// Before deploy/stow pause for user confirmation
//#define PAUSE_BEFORE_DEPLOY_STOW
@ -1239,7 +1252,9 @@
*/
//#define AUTO_BED_LEVELING_3POINT
//#define AUTO_BED_LEVELING_LINEAR
#define AUTO_BED_LEVELING_BILINEAR
#if ENABLED(CR10V2_BLTOUCH)
#define AUTO_BED_LEVELING_BILINEAR
#endif
//#define AUTO_BED_LEVELING_UBL
//#define MESH_BED_LEVELING
@ -1247,7 +1262,9 @@
* Normally G28 leaves leveling disabled on completion. Enable
* this option to have G28 restore the prior leveling state.
*/
#define RESTORE_LEVELING_AFTER_G28
#if ENABLED(CR10V2_BLTOUCH)
#define RESTORE_LEVELING_AFTER_G28
#endif
/**
* Enable detailed logging of G28, G29, M48, etc.
@ -1346,7 +1363,9 @@
* Add a bed leveling sub-menu for ABL or MBL.
* Include a guided procedure if manual probing is enabled.
*/
#define LCD_BED_LEVELING
#if ENABLED(CR10V2_BLTOUCH)
#define LCD_BED_LEVELING
#endif
#if ENABLED(LCD_BED_LEVELING)
#define MESH_EDIT_Z_STEP 0.025 // (mm) Step size while manually probing Z axis.
@ -1390,7 +1409,9 @@
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - Prevent Z homing when the Z probe is outside bed area.
//
#define Z_SAFE_HOMING
#if ENABLED(CR10V2_BLTOUCH)
#define Z_SAFE_HOMING
#endif
#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT X_CENTER // X point for Z homing when homing all axes (G28).