Merge pull request #462 from stklcode/marlin-2.1.2.1

Merge upstream changes from Marlin 2.1.2.1
This commit is contained in:
Oliver Köster
2023-06-09 08:50:09 +02:00
committed by GitHub
620 changed files with 41020 additions and 28890 deletions

42
Marlin/src/pins/ramps/pins_RAMPS.h Executable file → Normal file
View File

@@ -23,6 +23,7 @@
/**
* Arduino Mega with RAMPS v1.4 (or v1.3) pin assignments
* ATmega2560, ATmega1280
*
* Applies to the following boards:
*
@@ -96,10 +97,10 @@
#define Z_MAX_PIN -1
#endif
#ifndef I_STOP_PIN
#define I_STOP_PIN 18
#define I_STOP_PIN 18 // Z-
#endif
#ifndef J_STOP_PIN
#define J_STOP_PIN 19
#define J_STOP_PIN 19 // Z+
#endif
#endif
@@ -108,26 +109,26 @@
//
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
#define X_MIN_PIN 3
#define X_MIN_PIN 3 // X-
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN 43 // PATCH: Knutwurst
#define X_MAX_PIN 43 // X+ // PATCH: Knutwurst
#endif
#endif
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
#define Y_MIN_PIN 42 // PATCH: Knutwurst
#define Y_MIN_PIN 42 // Y- // PATCH: Knutwurst
#endif
#ifndef Y_MAX_PIN
#define Y_MAX_PIN -1 // PATCH: Knutwurst
#define Y_MAX_PIN -1 // Y+ // PATCH: Knutwurst
#endif
#endif
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
#define Z_MIN_PIN 18
#define Z_MIN_PIN 18 // Z-
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN -1 // PATCH: Knutwurst
#define Z_MAX_PIN -1 // Z+ // PATCH: Knutwurst
#endif
#endif
@@ -696,8 +697,6 @@
#if IS_RRD_SC
#define BEEPER_PIN EXP1_01_PIN
#if ENABLED(CR10_STOCKDISPLAY)
#define BTN_EN1 EXP1_03_PIN
#define BTN_EN2 EXP1_05_PIN
@@ -752,7 +751,9 @@
#define DOGLCD_A0 AUX2_07_PIN
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#define BEEPER_PIN EXP2_05_PIN
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP2_05_PIN
#endif
#define STAT_LED_RED_PIN AUX4_03_PIN
#define STAT_LED_BLUE_PIN EXP1_02_PIN
@@ -770,7 +771,9 @@
#define DOGLCD_CS EXP1_08_PIN
#define DOGLCD_A0 EXP1_07_PIN
#define BEEPER_PIN EXP1_05_PIN
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP1_05_PIN
#endif
#define LCD_BACKLIGHT_PIN EXP2_05_PIN
#define BTN_EN1 EXP1_02_PIN
@@ -785,7 +788,6 @@
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
#define BEEPER_PIN EXP1_01_PIN
#define BTN_ENC EXP1_02_PIN
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_07_PIN
@@ -839,7 +841,9 @@
#elif ENABLED(MINIPANEL)
#define BEEPER_PIN AUX2_08_PIN
#ifndef BEEPER_PIN
#define BEEPER_PIN AUX2_08_PIN
#endif
#define LCD_BACKLIGHT_PIN AUX2_10_PIN
#define DOGLCD_A0 AUX2_07_PIN
@@ -864,8 +868,6 @@
#elif ENABLED(G3D_PANEL)
#define BEEPER_PIN EXP1_01_PIN
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#endif
@@ -883,7 +885,9 @@
#else
#define BEEPER_PIN EXP2_05_PIN
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP2_05_PIN
#endif
#if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2
#define BTN_EN1 AUX2_03_PIN
@@ -898,6 +902,10 @@
#endif
#endif // IS_NEWPANEL
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP1_01_PIN // Most common mapping
#endif
#endif // HAS_WIRED_LCD && !LCD_PINS_DEFINED
#if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS