From 4b32be9df074df23ee084869af8a3ed3bd07c9f5 Mon Sep 17 00:00:00 2001 From: Keith Bennett <13375512+thisiskeithb@users.noreply.github.com> Date: Sun, 20 Apr 2025 09:04:48 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Malyan=20M300=20/=20Monoprice=20?= =?UTF-8?q?Mini=20alternate=20orientation=20(#27808)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/pins/stm32f0/pins_MALYAN_M300.h | 44 ++++++++++++++++------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/Marlin/src/pins/stm32f0/pins_MALYAN_M300.h b/Marlin/src/pins/stm32f0/pins_MALYAN_M300.h index 5bc8c5f74b..0a524e4952 100644 --- a/Marlin/src/pins/stm32f0/pins_MALYAN_M300.h +++ b/Marlin/src/pins/stm32f0/pins_MALYAN_M300.h @@ -46,9 +46,15 @@ // // Limit Switches // -#define X_STOP_PIN PC13 -#define Y_STOP_PIN PC14 -#define Z_STOP_PIN PC15 +#if ENABLED(M300_ROTATE_TOWERS) + #define X_STOP_PIN PC14 + #define Y_STOP_PIN PC15 + #define Z_STOP_PIN PC13 +#else + #define X_STOP_PIN PC13 + #define Y_STOP_PIN PC14 + #define Z_STOP_PIN PC15 +#endif #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN PB7 @@ -57,17 +63,31 @@ // // Steppers // -#define X_STEP_PIN PB14 -#define X_DIR_PIN PB13 -#define X_ENABLE_PIN PB10 +#if ENABLED(M300_ROTATE_TOWERS) + #define X_STEP_PIN PB12 + #define X_DIR_PIN PB11 + #define X_ENABLE_PIN PB10 -#define Y_STEP_PIN PB12 -#define Y_DIR_PIN PB11 -#define Y_ENABLE_PIN PB10 + #define Y_STEP_PIN PB2 + #define Y_DIR_PIN PB1 + #define Y_ENABLE_PIN PB10 -#define Z_STEP_PIN PB2 -#define Z_DIR_PIN PB1 -#define Z_ENABLE_PIN PB10 + #define Z_STEP_PIN PB14 + #define Z_DIR_PIN PB13 + #define Z_ENABLE_PIN PB10 +#else + #define X_STEP_PIN PB14 + #define X_DIR_PIN PB13 + #define X_ENABLE_PIN PB10 + + #define Y_STEP_PIN PB12 + #define Y_DIR_PIN PB11 + #define Y_ENABLE_PIN PB10 + + #define Z_STEP_PIN PB2 + #define Z_DIR_PIN PB1 + #define Z_ENABLE_PIN PB10 +#endif #define E0_STEP_PIN PA7 #define E0_DIR_PIN PA6