Browse Source

Generic stop pins (presume one endstop per axis end)

pull/1/head
Scott Lahteine 6 years ago
parent
commit
0f79fb9821
  1. 12
      Marlin/src/pins/pins.h

12
Marlin/src/pins/pins.h

@ -820,6 +820,10 @@
#define X_MIN_PIN -1 #define X_MIN_PIN -1
#define X_MAX_PIN X_STOP_PIN #define X_MAX_PIN X_STOP_PIN
#endif #endif
#elif X_HOME_DIR < 0
#define X_STOP_PIN X_MIN_PIN
#else
#define X_STOP_PIN X_MAX_PIN
#endif #endif
#ifdef Y_STOP_PIN #ifdef Y_STOP_PIN
@ -830,6 +834,10 @@
#define Y_MIN_PIN -1 #define Y_MIN_PIN -1
#define Y_MAX_PIN Y_STOP_PIN #define Y_MAX_PIN Y_STOP_PIN
#endif #endif
#elif Y_HOME_DIR < 0
#define Y_STOP_PIN Y_MIN_PIN
#else
#define Y_STOP_PIN Y_MAX_PIN
#endif #endif
#ifdef Z_STOP_PIN #ifdef Z_STOP_PIN
@ -840,6 +848,10 @@
#define Z_MIN_PIN -1 #define Z_MIN_PIN -1
#define Z_MAX_PIN Z_STOP_PIN #define Z_MAX_PIN Z_STOP_PIN
#endif #endif
#elif Z_HOME_DIR < 0
#define Z_STOP_PIN Z_MIN_PIN
#else
#define Z_STOP_PIN Z_MAX_PIN
#endif #endif
// //

Loading…
Cancel
Save