From 56b5c775549cdb0f588f1a2f307e234d3f375113 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 31 May 2024 20:30:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Unbreak=20MINITRONICS=20(v1.0/v1?= =?UTF-8?q?.1)=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update the pin mapping to the one that actually works with current MegaCore (see preceding change to HAL/AVR/fastio/fastio_1281.h). While at that, drop wrong comments. --- Marlin/src/pins/mega/pins_MINITRONICS.h | 80 ++++++++++++------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/Marlin/src/pins/mega/pins_MINITRONICS.h b/Marlin/src/pins/mega/pins_MINITRONICS.h index c8828faea7ab..5b1b6d2a1f7b 100644 --- a/Marlin/src/pins/mega/pins_MINITRONICS.h +++ b/Marlin/src/pins/mega/pins_MINITRONICS.h @@ -46,35 +46,35 @@ // // Limit Switches // -#define X_MIN_PIN 5 -#define X_MAX_PIN 2 -#define Y_MIN_PIN 2 -#define Y_MAX_PIN 15 -#define Z_MIN_PIN 6 +#define X_MIN_PIN 3 +#define X_MAX_PIN -1 +#define Y_MIN_PIN 4 +#define Y_MAX_PIN -1 +#define Z_MIN_PIN 12 #define Z_MAX_PIN -1 // // Steppers // -#define X_STEP_PIN 48 -#define X_DIR_PIN 47 -#define X_ENABLE_PIN 49 +#define X_STEP_PIN 47 +#define X_DIR_PIN 46 +#define X_ENABLE_PIN 48 -#define Y_STEP_PIN 39 // A6 -#define Y_DIR_PIN 40 // A0 -#define Y_ENABLE_PIN 38 +#define Y_STEP_PIN 43 +#define Y_DIR_PIN 42 +#define Y_ENABLE_PIN 44 -#define Z_STEP_PIN 42 // A2 -#define Z_DIR_PIN 43 // A6 -#define Z_ENABLE_PIN 41 // A1 +#define Z_STEP_PIN 40 +#define Z_DIR_PIN 39 +#define Z_ENABLE_PIN 41 -#define E0_STEP_PIN 45 -#define E0_DIR_PIN 44 -#define E0_ENABLE_PIN 27 +#define E0_STEP_PIN 37 +#define E0_DIR_PIN 38 +#define E0_ENABLE_PIN 36 -#define E1_STEP_PIN 36 -#define E1_DIR_PIN 35 -#define E1_ENABLE_PIN 37 +#define E1_STEP_PIN 34 +#define E1_DIR_PIN 33 +#define E1_ENABLE_PIN 35 // // Temperature Sensors @@ -86,19 +86,18 @@ // // Heaters / Fans // -#define HEATER_0_PIN 7 // EXTRUDER 1 -#define HEATER_1_PIN 8 // EXTRUDER 2 -#define HEATER_BED_PIN 3 // BED +#define HEATER_0_PIN 13 // EXTRUDER 1 +#define HEATER_1_PIN 14 // EXTRUDER 2 +#define HEATER_BED_PIN 5 // BED #ifndef FAN0_PIN - #define FAN0_PIN 9 + #define FAN0_PIN 15 #endif - // // Misc. Functions // -#define SDSS 16 -#define LED_PIN 46 +#define SDSS 8 +#define LED_PIN 45 // // LCD / Controller @@ -106,16 +105,15 @@ #define BEEPER_PIN -1 #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD) + #define LCD_PINS_RS 7 // ICSP PIN10 + #define LCD_PINS_EN 10 // ICSP PIN8 + #define LCD_PINS_D4 9 // ICSP PIN3 - #define LCD_PINS_RS 15 // CS chip select /SS chip slave select - #define LCD_PINS_EN 11 // SID (MOSI) - #define LCD_PINS_D4 10 // SCK (CLK) clock - - #define BTN_EN1 18 - #define BTN_EN2 17 - #define BTN_ENC 25 + #define BTN_EN1 19 // AUX1 PIN3 + #define BTN_EN2 18 // AUX1 PIN1 + #define BTN_ENC 26 // AUX1 PIN2 - #define SD_DETECT_PIN 30 + #define SD_DETECT_PIN 28 // AUX1 PIN6 #else @@ -138,10 +136,10 @@ #undef TEMP_BED_PIN // need to free up some pins but also need to #undef TEMP_0_PIN // re-assign them (to unused pins) because Marlin #undef TEMP_1_PIN // requires the presence of certain pins or else it - #define HEATER_BED_PIN 4 // won't compile - #define TEMP_BED_PIN 50 - #define TEMP_0_PIN 51 - #define SPINDLE_LASER_PWM_PIN 3 // WARNING - LED & resistor pull up to +12/+24V stepper voltage - #define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup - #define SPINDLE_DIR_PIN 53 + #define HEATER_BED_PIN 53 // won't compile + #define TEMP_BED_PIN 49 + #define TEMP_0_PIN 50 + #define SPINDLE_LASER_PWM_PIN 5 // WARNING - LED & resistor pull up to +12/+24V stepper voltage + #define SPINDLE_LASER_ENA_PIN 51 // using A6 because it already has a pullup + #define SPINDLE_DIR_PIN 52 #endif