Add support for first generation i3 Mega with only one endstop

This commit is contained in:
Knutwurst
2020-09-02 21:15:58 +02:00
parent 982de8ddff
commit b6bdcd393b
2 changed files with 33 additions and 14 deletions

View File

@@ -80,6 +80,20 @@
//#define KNUTWURST_MEGA_X
//#define KNUTWURST_MEGA_P
/*
* If you own the first generation i3 Mega
* with only one Z endstop, you need to activate
* KNUTWURST_MEGA and also this to disable
* the left endstop and switch the Z Motors.
*
* If the option is disabled, two Z endstops
* are used by default.
*
* PLEASE READ THE WARNING ABOVE!
*
*/
#define KNUTWURST_ONE_Z_ENDSTOP
/*
* If you have defined the MEGA_X or if
* you have the "new" Mega S with the blue/yellow
@@ -750,7 +764,10 @@
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#if DISABLED(KNUTWURST_ONE_Z_ENDSTOP)
#define USE_XMAX_PLUG
#endif
//#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG

View File

@@ -537,7 +537,9 @@
#define NUM_Z_STEPPER_DRIVERS 2 // (1-4) Z options change based on how many
#if NUM_Z_STEPPER_DRIVERS > 1
#if DISABLED(KNUTWURST_ONE_Z_ENDSTOP)
#define Z_MULTI_ENDSTOPS
#endif
#if ENABLED(Z_MULTI_ENDSTOPS)
#define Z2_USE_ENDSTOP _XMAX_
#define Z2_ENDSTOP_ADJUSTMENT 0