From 7f3c7398e429b93d93730b19de15213350e81694 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Mon, 7 Aug 2017 10:42:36 -0600 Subject: [PATCH] Swapped extruder pins in Yellowfin. - Swapped the extruders in Yellowfin so the first extruder is on the left. --- Marlin/Conditionals_LulzBot.h | 5 +++-- Marlin/pins_RAMBO.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/Marlin/Conditionals_LulzBot.h b/Marlin/Conditionals_LulzBot.h index 92134414e..a65ebed25 100644 --- a/Marlin/Conditionals_LulzBot.h +++ b/Marlin/Conditionals_LulzBot.h @@ -523,8 +523,9 @@ #undef LULZBOT_X_MAX_POS #define LULZBOT_X_MAX_POS 290 #define LULZBOT_X_MAX_ENDSTOP_INVERTING false - #undef LULZBOT_INVERT_E0_DIR - #define LULZBOT_INVERT_E0_DIR false + #define LULZBOT_SWAP_EXTRUDERS + #undef LULZBOT_INVERT_E1_DIR + #define LULZBOT_INVERT_E1_DIR false #define LULZBOT_AO_Hexagon #endif /* TOOLHEAD_Yellowfin_DualExtruder */ diff --git a/Marlin/pins_RAMBO.h b/Marlin/pins_RAMBO.h index 8e5185532..6aec9be8f 100644 --- a/Marlin/pins_RAMBO.h +++ b/Marlin/pins_RAMBO.h @@ -88,6 +88,15 @@ #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 +#if defined(LULZBOT_SWAP_EXTRUDERS) +#define E0_STEP_PIN 33 +#define E0_DIR_PIN 42 +#define E0_ENABLE_PIN 25 + +#define E1_STEP_PIN 34 +#define E1_DIR_PIN 43 +#define E1_ENABLE_PIN 26 +#else #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 @@ -95,6 +104,7 @@ #define E1_STEP_PIN 33 #define E1_DIR_PIN 42 #define E1_ENABLE_PIN 25 +#endif // Microstepping pins - Mapping not from fastio.h (?) #define X_MS1_PIN 40 @@ -103,26 +113,50 @@ #define Y_MS2_PIN 39 #define Z_MS1_PIN 68 #define Z_MS2_PIN 67 + +#if defined(LULZBOT_SWAP_EXTRUDERS) +#define E0_MS1_PIN 63 +#define E0_MS2_PIN 64 +#define E1_MS1_PIN 65 +#define E1_MS2_PIN 66 +#else #define E0_MS1_PIN 65 #define E0_MS2_PIN 66 #define E1_MS1_PIN 63 #define E1_MS2_PIN 64 +#endif #define DIGIPOTSS_PIN 38 +#if defined(LULZBOT_SWAP_EXTRUDERS) +#define DIGIPOT_CHANNELS {4,5,3,1,0} // X Y Z E0 E1 digipot channels to stepper driver mapping +#else #define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping +#endif // // Temperature Sensors // +#if defined(LULZBOT_SWAP_EXTRUDERS) +#define TEMP_0_PIN 1 // Analog Input +#define TEMP_1_PIN 0 // Analog Input +#else #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input +#endif #define TEMP_BED_PIN 2 // Analog Input // // Heaters / Fans // + +#if defined(LULZBOT_SWAP_EXTRUDERS) +#define HEATER_0_PIN 7 +#define HEATER_1_PIN 9 +#else #define HEATER_0_PIN 9 #define HEATER_1_PIN 7 +#endif + #define HEATER_2_PIN 6 #define HEATER_BED_PIN 3 @@ -133,6 +167,7 @@ #define FAN_PIN 8 //#define FAN1_PIN 6 #endif + #define FAN2_PIN 2 //