Skip to content

Commit

Permalink
🩹 Unbreak MINITRONICS (v1.0/v1.1) configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lkundrak committed Jun 4, 2024
1 parent ae3d276 commit 56b5c77
Showing 1 changed file with 39 additions and 41 deletions.
80 changes: 39 additions & 41 deletions Marlin/src/pins/mega/pins_MINITRONICS.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -86,36 +86,34 @@
//
// 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
//
#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

Expand All @@ -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

0 comments on commit 56b5c77

Please sign in to comment.