Merge upstream changes from Marlin 2.1.1
This commit is contained in:
@@ -168,52 +168,35 @@
|
||||
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
||||
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef MOSFET_A_PIN
|
||||
#define MOSFET_A_PIN P2_05
|
||||
#endif
|
||||
#ifndef MOSFET_B_PIN
|
||||
#define MOSFET_B_PIN P2_04
|
||||
#endif
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN P2_07
|
||||
#endif
|
||||
#ifndef MOSFET_D_PIN
|
||||
#define MOSFET_D_PIN -1
|
||||
#endif
|
||||
#ifndef RAMPS_D8_PIN
|
||||
#define RAMPS_D8_PIN P2_07 // (8)
|
||||
#endif
|
||||
#ifndef RAMPS_D9_PIN
|
||||
#define RAMPS_D9_PIN P2_04 // (9)
|
||||
#endif
|
||||
#ifndef RAMPS_D10_PIN
|
||||
#define RAMPS_D10_PIN P2_05 // (10)
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN RAMPS_D10_PIN
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN1_PIN RAMPS_D8_PIN
|
||||
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EFF // Hotend, Fan, Fan
|
||||
#define FAN1_PIN MOSFET_C_PIN
|
||||
#elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
@@ -222,14 +205,14 @@
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -245,7 +228,7 @@
|
||||
|
||||
#define PS_ON_PIN P2_12 // (12)
|
||||
|
||||
#if !defined(TEMP_0_CS_PIN) && DISABLED(USE_ZMAX_PLUG)
|
||||
#if !defined(TEMP_0_CS_PIN) && !(HAS_Z_AXIS && Z_HOME_DIR)
|
||||
#define TEMP_0_CS_PIN P1_28
|
||||
#endif
|
||||
|
||||
@@ -275,11 +258,13 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
||||
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
||||
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
||||
#if HAS_PRUSA_MMU1
|
||||
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
||||
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
||||
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
||||
#endif
|
||||
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
|
||||
#endif
|
||||
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
|
||||
|
||||
/**
|
||||
* LCD / Controller
|
||||
@@ -322,7 +307,9 @@
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. See 'pins_RAMPS_RE_ARM.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
@@ -364,9 +351,7 @@
|
||||
//#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
@@ -375,6 +360,8 @@
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#else
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -423,11 +410,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -484,14 +467,14 @@
|
||||
* All Fast PWMs have a 50Hz rate.
|
||||
*
|
||||
* The following pins/signals use the direct method. All other pins use the
|
||||
* the interrupt method. Note that SERVO2_PIN and RAMPS_D8_PIN use the
|
||||
* the interrupt method. Note that SERVO2_PIN and MOSFET_C_PIN use the
|
||||
* interrupt method.
|
||||
*
|
||||
* P1_20 (11) SERVO0_PIN
|
||||
* P1_21 ( 6) SERVO1_PIN J5-1
|
||||
* P0_18 ( 4) SERVO3_PIN 5V output
|
||||
* *P2_04 ( 9) RAMPS_D9_PIN
|
||||
* *P2_05 (10) RAMPS_D10_PIN
|
||||
* *P2_04 ( 9) MOSFET_B_PIN
|
||||
* *P2_05 (10) MOSFET_A_PIN
|
||||
*
|
||||
* * - If used as a heater driver then a Fast PWM is NOT assigned. If used as
|
||||
* a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it.
|
||||
|
Reference in New Issue
Block a user