1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 15:26:18 +00:00

Define DIAG pins for MKS SGen-L

This commit is contained in:
Scott Lahteine 2020-02-26 11:35:02 -06:00
parent 832951ec44
commit 633b716a3a

View File

@ -38,15 +38,53 @@
#define SERVO0_PIN P1_23 // SERVO P1.23 #define SERVO0_PIN P1_23 // SERVO P1.23
#define SERVO1_PIN P2_00 // SERVO P2.0 #define SERVO1_PIN P2_00 // SERVO P2.0
//
// Trinamic Stallguard pins
//
#define X_DIAG_PIN P1_29 // X-
#define Y_DIAG_PIN P1_27 // Y-
#define Z_DIAG_PIN P1_25 // Z-
#define E0_DIAG_PIN P1_28 // X+
#define E1_DIAG_PIN P1_26 // Y+
// //
// Limit Switches // Limit Switches
// //
#define X_MIN_PIN P1_29 #if X_STALL_SENSITIVITY
#define X_MAX_PIN P1_28 #define X_STOP_PIN X_DIAG_PIN
#define Y_MIN_PIN P1_27 #if X_HOME_DIR < 0
#define Y_MAX_PIN P1_26 #define X_MAX_PIN P1_28 // X+
#define Z_MIN_PIN P1_25 #else
#define Z_MAX_PIN P1_24 #define X_MIN_PIN P1_28 // X+
#endif
#else
#define X_MIN_PIN P1_29 // X-
#define X_MAX_PIN P1_28 // X+
#endif
#if Y_STALL_SENSITIVITY
#define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
#define Y_MAX_PIN P1_26 // Y+
#else
#define Y_MIN_PIN P1_26 // Y+
#endif
#else
#define Y_MIN_PIN P1_27 // Y-
#define Y_MAX_PIN P1_26 // Y+
#endif
#if Z_STALL_SENSITIVITY
#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN P1_24 // Z+
#else
#define Z_MIN_PIN P1_24 // Z+
#endif
#else
#define Z_MIN_PIN P1_25 // Z-
#define Z_MAX_PIN P1_24 // Z+
#endif
// //
// Z Probe (when not Z_MIN_PIN) // Z Probe (when not Z_MIN_PIN)