🧑‍💻 Apply axis conditionals

This commit is contained in:
Scott Lahteine
2022-01-02 09:22:36 -06:00
committed by Scott Lahteine
parent a732427329
commit 9956e62674
28 changed files with 215 additions and 225 deletions

View File

@ -228,7 +228,7 @@
#define PS_ON_PIN P2_12 // (12)
#if !defined(TEMP_0_CS_PIN) && DISABLED(USE_ZMAX_PLUG)
#if !defined(TEMP_0_CS_PIN) && !(HAS_Z_AXIS && Z_HOME_DIR)
#define TEMP_0_CS_PIN P1_28
#endif

View File

@ -477,7 +477,7 @@
#endif
#endif
#if LINEAR_AXES >= 4
#if HAS_I_AXIS
#ifdef I_STOP_PIN
#if I_HOME_TO_MIN
#define I_MIN_PIN I_STOP_PIN
@ -500,7 +500,7 @@
#undef I_MAX_PIN
#endif
#if LINEAR_AXES >= 5
#if HAS_J_AXIS
#ifdef J_STOP_PIN
#if J_HOME_TO_MIN
#define J_MIN_PIN J_STOP_PIN
@ -523,7 +523,7 @@
#undef J_MAX_PIN
#endif
#if LINEAR_AXES >= 6
#if HAS_K_AXIS
#ifdef K_STOP_PIN
#if K_HOME_TO_MIN
#define K_MIN_PIN K_STOP_PIN
@ -1027,12 +1027,12 @@
#endif
// The I axis, if any, should be the next open extruder port
#if LINEAR_AXES >= 4 && !defined(I_DIAG_PIN) && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS_PIN)
#if HAS_I_AXIS && !defined(I_DIAG_PIN) && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS_PIN)
#define J_E_INDEX INCREMENT(I_E_INDEX)
#else
#define J_E_INDEX I_E_INDEX
#endif
#if LINEAR_AXES >= 4
#if HAS_I_AXIS
#ifndef I_STEP_PIN
#define I_STEP_PIN _EPIN(I_E_INDEX, STEP)
#define I_DIR_PIN _EPIN(I_E_INDEX, DIR)
@ -1112,12 +1112,12 @@
#endif
// The J axis, if any, should be the next open extruder port
#if LINEAR_AXES >= 5 && !defined(J_DIAG_PIN) && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS_PIN)
#if HAS_J_AXIS && !defined(J_DIAG_PIN) && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS_PIN)
#define K_E_INDEX INCREMENT(J_E_INDEX)
#else
#define K_E_INDEX J_E_INDEX
#endif
#if LINEAR_AXES >= 5
#if HAS_J_AXIS
#ifndef J_STEP_PIN
#define J_STEP_PIN _EPIN(J_E_INDEX, STEP)
#define J_DIR_PIN _EPIN(J_E_INDEX, DIR)
@ -1197,7 +1197,7 @@
#endif
// The K axis, if any, should be the next open extruder port
#if LINEAR_AXES >= 6
#if HAS_K_AXIS
#ifndef K_STEP_PIN
#define K_STEP_PIN _EPIN(K_E_INDEX, STEP)
#define K_DIR_PIN _EPIN(K_E_INDEX, DIR)

View File

@ -55,7 +55,6 @@
#define X_MIN_PIN 12 // X-
#define Y_MIN_PIN 11 // Y-
#define Z_MIN_PIN 10 // Z-
#define X_MAX_PIN 81 // X+
#define Y_MAX_PIN 57 // Y+
@ -78,15 +77,16 @@
#endif
#if ENABLED(BLTOUCH)
#define Z_MIN_PIN 11 // Y-MIN
#define SERVO0_PIN 10 // Z-MIN
#else
#define Z_MIN_PIN 10
#define Z_MIN_PIN 11 // Y-
#define SERVO0_PIN 10 // Z-
#endif
#endif
#define Z_MAX_PIN 7
#ifndef Z_MIN_PIN 7
#define Z_MIN_PIN 10 // Z-
#endif
//
// Z Probe (when not Z_MIN_PIN)

View File

@ -117,10 +117,6 @@
//#define E3_MS2_PIN ?
//#define E3_MS3_PIN ?
#if USES_Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#endif
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN Y_MIN_PIN
#endif

View File

@ -53,13 +53,6 @@
#define Z_MIN_PIN 47
#define Z_MAX_PIN 43
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
@ -105,7 +98,7 @@
#define E2_CS_PIN 61
#endif
#if USES_Z_MIN_PROBE_PIN
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#endif

View File

@ -155,7 +155,7 @@
#endif
#if LINEAR_AXES >= 4
#if HAS_I_AXIS
#if PIN_EXISTS(I_MIN)
#define _I_MIN I_MIN_PIN,
@ -201,7 +201,7 @@
#endif
#if LINEAR_AXES >= 5
#if HAS_J_AXIS
#if PIN_EXISTS(J_MIN)
#define _J_MIN J_MIN_PIN,
@ -247,7 +247,7 @@
#endif
#if LINEAR_AXES >= 6
#if HAS_K_AXIS
#if PIN_EXISTS(K_MIN)
#define _K_MIN K_MIN_PIN,

View File

@ -44,14 +44,13 @@
#define X_MAX_PIN 59
#define Y_MIN_PIN 60
#define Y_MAX_PIN 61
#define Z_MIN_PIN 62
#define Z_MAX_PIN 63
#else
#define X_STOP_PIN 36
#define Y_STOP_PIN 39
#define Z_MIN_PIN 62
#define Z_MAX_PIN 42
#endif
#define Z_MIN_PIN 62
//
// Z Probe (when not Z_MIN_PIN)