Merge upstream changes from Marlin 2.1.2

This commit is contained in:
Stefan Kalscheuer
2022-12-19 15:23:45 +01:00
parent fe9ea826a5
commit 67c7ce7b79
427 changed files with 10732 additions and 7834 deletions

View File

@@ -27,4 +27,6 @@
#define BOARD_INFO_NAME "Azteeg X1"
#define FAN_PIN 4
#include "pins_SANGUINOLOLU_12.h" // ... SANGUINOLOLU_11

View File

@@ -29,7 +29,9 @@
#define BOARD_INFO_NAME "Melzi"
#endif
#define IS_MELZI 1
#ifndef FAN_PIN
#define FAN_PIN 4
#endif
// Alter timing for graphical display
#if IS_U8GLIB_ST7920

View File

@@ -42,24 +42,24 @@
#define BOARD_ST7920_DELAY_3 125
#endif
#include "pins_MELZI.h" // ... SANGUINOLOLU_12 ... SANGUINOLOLU_11
//
// For the stock CR-10 enable CR10_STOCKDISPLAY in Configuration.h
//
#undef LCD_SDSS
#undef LED_PIN
#undef LCD_PINS_RS
#undef LCD_PINS_ENABLE
#undef LCD_PINS_D4
#undef LCD_PINS_D5
#undef LCD_PINS_D6
#undef LCD_PINS_D7
#if ENABLED(CR10_STOCKDISPLAY)
#define LCD_SDSS 31 // Smart Controller SD card reader (rather than the Melzi)
#define LCD_PINS_RS 28 // ST9720 CS
#define LCD_PINS_ENABLE 17 // ST9720 DAT
#define LCD_PINS_D4 30 // ST9720 CLK
#define LCD_SDSS 31 // Smart Controller SD card reader (rather than the Melzi)
#define LCD_PINS_RS 28 // ST9720 CS
#define LCD_PINS_ENABLE 17 // ST9720 DAT
#define LCD_PINS_D4 30 // ST9720 CLK
#define BTN_ENC 16
#define BTN_EN1 11
#define BTN_EN2 10
#define BEEPER_PIN 27
#define LCD_PINS_DEFINED
#endif
#include "pins_MELZI.h" // ... SANGUINOLOLU_12 ... SANGUINOLOLU_11
#if ENABLED(BLTOUCH)
#ifndef SERVO0_PIN

View File

@@ -27,19 +27,15 @@
#define BOARD_INFO_NAME "Melzi (Malyan)"
#if ENABLED(CR10_STOCKDISPLAY)
#define LCD_PINS_RS 17 // ST9720 CS
#define LCD_PINS_ENABLE 16 // ST9720 DAT
#define LCD_PINS_D4 11 // ST9720 CLK
#define BTN_EN1 30
#define BTN_EN2 29
#define BTN_ENC 28
#define LCD_PINS_DEFINED
#endif
#include "pins_MELZI.h" // ... SANGUINOLOLU_12 ... SANGUINOLOLU_11
#undef LCD_SDSS
#undef LCD_PINS_RS
#undef LCD_PINS_ENABLE
#undef LCD_PINS_D4
#undef BTN_EN1
#undef BTN_EN2
#undef BTN_ENC
#define LCD_PINS_RS 17 // ST9720 CS
#define LCD_PINS_ENABLE 16 // ST9720 DAT
#define LCD_PINS_D4 11 // ST9720 CLK
#define BTN_EN1 30
#define BTN_EN2 29
#define BTN_ENC 28

View File

@@ -27,6 +27,24 @@
#define BOARD_INFO_NAME "Melzi (Tronxy)"
#define Z_ENABLE_PIN 14
#define LCD_SDSS -1
#if EITHER(CR10_STOCKDISPLAY, LCD_FOR_MELZI)
#define LCD_PINS_RS 30
#define LCD_PINS_ENABLE 28
#define LCD_PINS_D4 16
#define LCD_PINS_D5 17
#define LCD_PINS_D6 27
#define LCD_PINS_D7 29
#define BTN_EN1 10
#define BTN_EN2 11
#define BTN_ENC 26
#define LCD_PINS_DEFINED
#endif
// Alter timing for graphical display
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 0
@@ -35,26 +53,3 @@
#endif
#include "pins_MELZI.h" // ... SANGUINOLOLU_12 ... SANGUINOLOLU_11
#undef Z_ENABLE_PIN
#undef LCD_PINS_RS
#undef LCD_PINS_ENABLE
#undef LCD_PINS_D4
#undef LCD_PINS_D5
#undef LCD_PINS_D6
#undef LCD_PINS_D7
#undef BTN_EN1
#undef BTN_EN2
#undef BTN_ENC
#undef LCD_SDSS
#define Z_ENABLE_PIN 14
#define LCD_PINS_RS 30
#define LCD_PINS_ENABLE 28
#define LCD_PINS_D4 16
#define LCD_PINS_D5 17
#define LCD_PINS_D6 27
#define LCD_PINS_D7 29
#define BTN_EN1 10
#define BTN_EN2 11
#define BTN_ENC 26

View File

@@ -90,30 +90,18 @@
//
#define HEATER_0_PIN 13 // (extruder)
#if ENABLED(SANGUINOLOLU_V_1_2)
#define HEATER_BED_PIN 12 // (bed)
#define X_ENABLE_PIN 14
#define Y_ENABLE_PIN 14
#define Z_ENABLE_PIN 26
#define E0_ENABLE_PIN 14
#if !defined(FAN_PIN) && ENABLED(LCD_I2C_PANELOLU2)
#define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
#endif
#else
#ifndef FAN_PIN
#define FAN_PIN 4 // Works for Panelolu2 too
#endif
#if DISABLED(SANGUINOLOLU_V_1_2)
#define HEATER_BED_PIN 14 // (bed)
#define X_ENABLE_PIN 4
#define Y_ENABLE_PIN 4
#define Z_ENABLE_PIN 4
#ifndef Z_ENABLE_PIN
#define Z_ENABLE_PIN 4
#endif
#define E0_ENABLE_PIN 4
#endif
#if !defined(FAN_PIN) && (MB(AZTEEG_X1, STB_11) || IS_MELZI)
#define FAN_PIN 4 // Works for Panelolu2 too
#endif
//
@@ -151,7 +139,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if HAS_WIRED_LCD && DISABLED(LCD_PINS_DEFINED)
#define SD_DETECT_PIN -1
@@ -245,7 +233,9 @@
#if IS_MELZI
#define BTN_ENC 29
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
#ifndef LCD_SDSS
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
#endif
#else
#define BTN_ENC 30
#endif
@@ -253,7 +243,9 @@
#else // !LCD_FOR_MELZI && !ZONESTAR_LCD && !LCD_I2C_PANELOLU2
#define BTN_ENC 16
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
#ifndef LCD_SDSS
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
#endif
#endif

View File

@@ -38,5 +38,17 @@
#define BOARD_INFO_NAME "Sanguinololu 1.2"
#endif
#define HEATER_BED_PIN 12 // (bed)
#define X_ENABLE_PIN 14
#define Y_ENABLE_PIN 14
#ifndef Z_ENABLE_PIN
#define Z_ENABLE_PIN 26
#endif
#define E0_ENABLE_PIN 14
#if !defined(FAN_PIN) && ENABLED(LCD_I2C_PANELOLU2)
#define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
#endif
#define SANGUINOLOLU_V_1_2
#include "pins_SANGUINOLOLU_11.h"

View File

@@ -27,4 +27,8 @@
#define BOARD_INFO_NAME "STB V1.1"
#ifndef FAN_PIN
#define FAN_PIN 4 // Works for Panelolu2 too
#endif
#include "pins_SANGUINOLOLU_12.h" // ... SANGUINOLOLU_11

View File

@@ -36,7 +36,7 @@
* If you don't have a chip programmer you can use a spare Arduino plus a few
* electronic components to write the bootloader.
*
* See http://www.instructables.com/id/Burn-Arduino-Bootloader-with-Arduino-MEGA/
* See https://www.instructables.com/Burn-Arduino-Bootloader-with-Arduino-MEGA/
*/
/**