Merge upstream changes from Marlin 2.1.2
This commit is contained in:
@@ -66,6 +66,8 @@
|
||||
#define MOSFET_C_PIN 9
|
||||
#define MOSFET_D_PIN 12
|
||||
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
@@ -122,16 +124,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
@@ -139,12 +131,6 @@
|
||||
#undef BEEPER_PIN
|
||||
|
||||
// TODO: Remap EXP1/2 based on adapter
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
@@ -153,13 +139,12 @@
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 23
|
||||
|
||||
#define LCD_PINS_DEFINED
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
@@ -171,3 +156,7 @@
|
||||
#define BOARD_ST7920_DELAY_2 188
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -50,6 +50,10 @@
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
|
||||
#if EITHER(BLTOUCH, TOUCH_MI_PROBE)
|
||||
#define HAS_INVERTED_PROBE
|
||||
#endif
|
||||
|
||||
#include "pins_3DRAG.h" // ... RAMPS
|
||||
|
||||
//
|
||||
|
@@ -37,8 +37,7 @@
|
||||
//
|
||||
#define X_MIN_PIN 3
|
||||
#define Y_MAX_PIN 14
|
||||
#define Z_MAX_PIN 18
|
||||
#define Z_MIN_PIN -1
|
||||
#define Z_STOP_PIN 18
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -48,6 +47,7 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN -1
|
||||
#define FAN_PIN 8
|
||||
|
||||
//
|
||||
@@ -56,28 +56,11 @@
|
||||
#define SDSS 25
|
||||
#define CASE_LIGHT_PIN 7
|
||||
|
||||
//
|
||||
// Other RAMPS pins
|
||||
//
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#undef HEATER_BED_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_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
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
@@ -86,15 +69,19 @@
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 17
|
||||
#define BTN_EN2 16
|
||||
#define BTN_ENC 23
|
||||
|
||||
#define LCD_PINS_DEFINED
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// Other RAMPS pins
|
||||
//
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -33,56 +33,68 @@
|
||||
#endif
|
||||
|
||||
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1 || SERIAL_PORT_3 == 1
|
||||
#warning "Serial 1 is originally reserved to DGUS LCD."
|
||||
#warning "Serial 1 is originally reserved for DGUS LCD."
|
||||
#endif
|
||||
#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2 || SERIAL_PORT_3 == 2 || LCD_SERIAL_PORT == 2
|
||||
#warning "Serial 2 has no connector. Hardware changes may be required to use it."
|
||||
#endif
|
||||
#if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3 || SERIAL_PORT_3 == 3 || LCD_SERIAL_PORT == 3
|
||||
#define CHANGE_Y_LIMIT_PINS
|
||||
#warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
|
||||
#warning "Serial 3 is originally reserved for Y limit switches. Hardware changes are required to use it."
|
||||
#define Y_STOP_PIN 37
|
||||
#if MB(LONGER3D_LKx_PRO)
|
||||
#define Z_STOP_PIN 35
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Custom flags and defines for the build
|
||||
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
|
||||
|
||||
#define BOARD_INFO_NAME "LGT KIT V1.0"
|
||||
#if ENABLED(LONGER_LK5)
|
||||
#define DEFAULT_MACHINE_NAME "LONGER LK5"
|
||||
#else
|
||||
#define DEFAULT_MACHINE_NAME "LONGER 3D Printer"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#if !MB(LONGER3D_LK1_PRO)
|
||||
#if MB(LONGER3D_LKx_PRO)
|
||||
#define SERVO0_PIN 7
|
||||
#endif
|
||||
#define SERVO1_PIN -1
|
||||
#define SERVO2_PIN -1
|
||||
#define SERVO3_PIN -1
|
||||
#define SERVO1_PIN -1
|
||||
#define SERVO2_PIN -1
|
||||
#define SERVO3_PIN -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
|
||||
#ifdef CHANGE_Y_LIMIT_PINS
|
||||
#define Y_STOP_PIN 37
|
||||
#if ENABLED(LONGER_LK5)
|
||||
#define X_MIN_PIN 3
|
||||
#define X_MAX_PIN 2
|
||||
#else
|
||||
#define Y_MIN_PIN 14
|
||||
#define Y_MAX_PIN 15
|
||||
#define X_STOP_PIN 3
|
||||
#endif
|
||||
|
||||
#if !MB(LONGER3D_LK1_PRO)
|
||||
#ifdef CHANGE_Y_LIMIT_PINS
|
||||
#define Z_STOP_PIN 35
|
||||
#if !ANY_PIN(Y_MIN, Y_MAX, Y_STOP)
|
||||
#if ENABLED(LONGER_LK5)
|
||||
#define Y_STOP_PIN 14
|
||||
#else
|
||||
#define Z_MIN_PIN 35
|
||||
#define Z_MAX_PIN 37
|
||||
#define Y_MIN_PIN 14
|
||||
#define Y_MAX_PIN 15
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !ANY_PIN(Z_MIN, Z_MAX, Z_STOP)
|
||||
#if MB(LONGER3D_LKx_PRO)
|
||||
#define Z_MIN_PIN 35
|
||||
#else
|
||||
#define Z_MIN_PIN 11
|
||||
#endif
|
||||
#else
|
||||
#define Z_MIN_PIN 11
|
||||
#define Z_MAX_PIN 37
|
||||
#endif
|
||||
|
||||
#undef CHANGE_Y_LIMIT_PINS
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#define Z_MIN_PROBE_PIN -1
|
||||
|
||||
//
|
||||
// Steppers - No E1 pins
|
||||
@@ -92,11 +104,6 @@
|
||||
#define E1_ENABLE_PIN -1
|
||||
#define E1_CS_PIN -1
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#define Z_MIN_PROBE_PIN -1
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -115,7 +122,36 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#define FIL_RUNOUT_PIN 2
|
||||
|
||||
// ------------------ ---------------- --------------- -------------
|
||||
// Aux-1 | D19 D18 GND 5V | J21 | D4 D5 D6 GND | J17 | D11 GND 24V | J18 | D7 GND 5V |
|
||||
// ------------------ ---------------- --------------- -------------
|
||||
|
||||
#if BOTH(CR10_STOCKDISPLAY, LONGER_LK5)
|
||||
/** CR-10 Stock Display
|
||||
* ------
|
||||
* GND | 9 10 | 5V
|
||||
* LCD_PINS_RS D5 | 7 8 | D4 LCD_PINS_ENABLE
|
||||
* BTN_EN2 D19 | 5 6 D6 LCD_PINS_D4
|
||||
* BTN_EN1 D18 | 3 4 | GND
|
||||
* BEEPER_PIN D11 | 1 2 | D15 BTN_ENC
|
||||
* ------
|
||||
* Connected via provided custom cable to:
|
||||
* Aux-1, J21, J17 and Y-Max.
|
||||
*/
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 4
|
||||
#define LCD_PINS_D4 6
|
||||
#define BTN_EN1 18
|
||||
#define BTN_EN2 19
|
||||
#define BTN_ENC 15
|
||||
#define BEEPER_PIN 11
|
||||
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
#define LCD_PINS_DEFINED
|
||||
#endif
|
||||
|
||||
//
|
||||
// Other RAMPS 1.3 pins
|
||||
//
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
#include "pins_RAMPS_13.h" // ... pins_RAMPS.h
|
||||
|
@@ -75,31 +75,25 @@
|
||||
#define E0_SERIAL_RX_PIN 65
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_RRD_FG_SC
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN 35
|
||||
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 23
|
||||
#define LCD_PINS_D4 37
|
||||
|
||||
#undef LCD_SDSS
|
||||
#undef SD_DETECT_PIN
|
||||
#define LCD_SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 29
|
||||
#define BTN_EN2 25
|
||||
#define BTN_ENC 16
|
||||
|
||||
#define LCD_PINS_DEFINED
|
||||
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -233,16 +233,22 @@
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#endif
|
||||
#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
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#endif
|
||||
#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
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#endif
|
||||
#if EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL)
|
||||
#define HEATER_1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
@@ -585,7 +591,7 @@
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#if HAS_WIRED_LCD && DISABLED(LCD_PINS_DEFINED)
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
@@ -715,7 +721,9 @@
|
||||
#define BTN_EN1 AUX2_05_PIN
|
||||
#define BTN_EN2 AUX2_03_PIN
|
||||
#define BTN_ENC AUX2_04_PIN
|
||||
#define SD_DETECT_PIN AUX2_08_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN AUX2_08_PIN
|
||||
#endif
|
||||
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
|
||||
@@ -732,7 +740,9 @@
|
||||
#define BTN_ENC -1
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#elif EITHER(VIKI2, miniVIKI)
|
||||
|
||||
@@ -748,7 +758,9 @@
|
||||
#define BTN_EN2 7
|
||||
#define BTN_ENC AUX4_08_PIN
|
||||
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
|
||||
#endif
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
@@ -764,7 +776,9 @@
|
||||
#define BTN_ENC EXP2_03_PIN
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
|
||||
@@ -833,7 +847,9 @@
|
||||
#define BTN_EN2 AUX2_04_PIN
|
||||
#define BTN_ENC AUX2_03_PIN
|
||||
|
||||
#define SD_DETECT_PIN AUX3_02_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN AUX3_02_PIN
|
||||
#endif
|
||||
#define KILL_PIN AUX2_05_PIN
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
@@ -848,7 +864,9 @@
|
||||
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
@@ -857,7 +875,9 @@
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
@@ -876,7 +896,7 @@
|
||||
#endif
|
||||
#endif // IS_NEWPANEL
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
#endif // HAS_WIRED_LCD && !LCD_PINS_DEFINED
|
||||
|
||||
#if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS
|
||||
#define SHIFT_OUT_PIN AUX2_06_PIN
|
||||
@@ -933,7 +953,9 @@
|
||||
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#define CLCD_MOD_RESET EXP2_05_PIN
|
||||
#define CLCD_SPI_CS EXP2_03_PIN
|
||||
|
@@ -103,9 +103,9 @@
|
||||
|
||||
// Direction buttons
|
||||
#define BTN_UP 37
|
||||
#define BTN_DWN 35
|
||||
#define BTN_LFT 33
|
||||
#define BTN_RT 32
|
||||
#define BTN_DOWN 35
|
||||
#define BTN_LEFT 33
|
||||
#define BTN_RIGHT 32
|
||||
|
||||
// 'R' button
|
||||
#undef BTN_ENC
|
||||
|
@@ -40,78 +40,97 @@
|
||||
//
|
||||
// PWM FETS
|
||||
//
|
||||
#if EITHER(FET_ORDER_EEF, FET_ORDER_EEB)
|
||||
#define MOSFET_B_PIN 45 // HEATER1
|
||||
#elif FET_ORDER_EFB
|
||||
#define MOSFET_B_PIN 9 // FAN0
|
||||
#else
|
||||
#define MOSFET_B_PIN 7 // FAN1
|
||||
#endif
|
||||
|
||||
#if FET_ORDER_EEB
|
||||
#define MOSFET_C_PIN 8 // BED
|
||||
#elif FET_ORDER_EFB
|
||||
#if DISABLED(ANYCUBIC_LCD_CHIRON)
|
||||
#define MOSFET_C_PIN 8
|
||||
#else
|
||||
#define MOSFET_C_PIN 45
|
||||
#endif
|
||||
#else // EEF, EFF
|
||||
#define MOSFET_C_PIN 9
|
||||
#endif
|
||||
|
||||
#if FET_ORDER_EEB
|
||||
#define FAN_PIN 9 // Override pin 4 in pins_RAMPS.h
|
||||
#endif
|
||||
#define MOSFET_B_PIN 45 // HEATER1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#if ANY(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFB)
|
||||
#define FAN1_PIN 7
|
||||
#endif
|
||||
#define FAN2_PIN 44
|
||||
#define FAN_PIN 9 // FAN0
|
||||
#define FAN1_PIN 7 // FAN1
|
||||
#define FAN2_PIN 44 // FAN2
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 44 // Used in Anycubic Kossel example config
|
||||
#endif
|
||||
#if ANY(ANYCUBIC_LCD_I3MEGA, KNUTWURST_MEGA, KNUTWURST_MEGA_S, KNUTWURST_MEGA_P, KNUTWURST_MEGA_X, KNUTWURST_4MAXP2, KNUTWURST_CHIRON)
|
||||
#define CONTROLLER_FAN_PIN 7
|
||||
#define E0_AUTO_FAN_PIN FAN2_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// AnyCubic standard pin mappings
|
||||
// AnyCubic pin mappings
|
||||
//
|
||||
// Define the appropriate mapping option in Configuration.h:
|
||||
// - TRIGORILLA_MAPPING_CHIRON
|
||||
// - TRIGORILLA_MAPPING_I3MEGA
|
||||
//
|
||||
// On most printers, endstops are NOT all wired to the appropriate pins on the Trigorilla board.
|
||||
// For instance, on a Chiron, Y axis goes to an aux connector.
|
||||
// There are also other things that have been wired in creative ways.
|
||||
// To enable PIN definitions for a specific printer model, #define the appropriate symbol after
|
||||
// MOTHERBOARD in Configuration.h
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
//#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
|
||||
|
||||
#if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
|
||||
#define X_MAX_PIN 43
|
||||
#define Y_STOP_PIN 19
|
||||
#elif ANY(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA, KNUTWURST_MEGA, KNUTWURST_MEGA_S, KNUTWURST_MEGA_P, KNUTWURST_MEGA_X, KNUTWURST_4MAXP2, KNUTWURST_CHIRON) // PATCH: Knutwurst
|
||||
#define Y_STOP_PIN 42
|
||||
#define Z2_MIN_PIN 43
|
||||
|
||||
#define CONTROLLER_FAN_PIN FAN1_PIN // PATCH: knutwurst
|
||||
#elif ANY(TRIGORILLA_MAPPING_CHIRON, TRIGORILLA_MAPPING_I3MEGA, KNUTWURST_MEGA, KNUTWURST_MEGA_S, KNUTWURST_MEGA_P, KNUTWURST_MEGA_X, KNUTWURST_4MAXP2, KNUTWURST_CHIRON) // PATCH: Knutwurst
|
||||
// Chiron uses AUX header for Y and Z endstops
|
||||
#define Y_STOP_PIN 42 // AUX
|
||||
#define Z_STOP_PIN 43 // AUX
|
||||
#define Z2_MIN_PIN 18 // Z-
|
||||
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 2
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#if EITHER(ANYCUBIC_LCD_CHIRON, KNUTWURST_CHIRON) // PATCH: Knutwurst
|
||||
|
||||
#define CONTROLLER_FAN_PIN FAN1_PIN
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
#define OUTAGETEST_PIN 79
|
||||
#define OUTAGECON_PIN 58
|
||||
#endif
|
||||
|
||||
#if EITHER(TRIGORILLA_MAPPING_CHIRON, KNUTWURST_CHIRON) // PATCH: Knutwurst
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 33
|
||||
#else
|
||||
#endif
|
||||
#define HEATER_BED_PIN MOSFET_B_PIN // HEATER1
|
||||
#else
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 19
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if EITHER(TRIGORILLA_MAPPING_CHIRON, SWAP_Z_MOTORS)
|
||||
// Chiron and some Anycubic i3 MEGAs swap Z steppers
|
||||
#define Z_STEP_PIN 36
|
||||
#define Z_DIR_PIN 34
|
||||
#define Z_ENABLE_PIN 30
|
||||
#define Z_CS_PIN 44
|
||||
|
||||
#define Z2_STEP_PIN 46
|
||||
#define Z2_DIR_PIN 48
|
||||
#define Z2_ENABLE_PIN 62
|
||||
#define Z2_CS_PIN 40
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
|
||||
#define BEEPER_PIN 31
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#ifndef X_SERIAL_TX_PIN
|
||||
#define X_SERIAL_TX_PIN SERVO1_PIN
|
||||
#endif
|
||||
#ifndef Y_SERIAL_TX_PIN
|
||||
#define Y_SERIAL_TX_PIN SERVO0_PIN
|
||||
#endif
|
||||
#ifndef Z_SERIAL_TX_PIN
|
||||
#define Z_SERIAL_TX_PIN SERVO3_PIN
|
||||
#endif
|
||||
#ifndef E0_SERIAL_TX_PIN
|
||||
#define E0_SERIAL_TX_PIN SERVO2_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
|
@@ -107,8 +107,8 @@
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 39
|
||||
#define LED_PIN 8
|
||||
#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
|
||||
#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
|
||||
//#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
|
||||
//#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
@@ -26,62 +26,37 @@
|
||||
* V2 and V3 Boards only differ in USB controller, nothing affecting the pins.
|
||||
*/
|
||||
|
||||
#include "pins_MKS_GEN_13.h" // ... RAMPS
|
||||
|
||||
#define ZRIB_V20_D6_PIN 6 // Fan
|
||||
#define ZRIB_V20_D9_PIN 9 // Fan2
|
||||
#define ZRIB_V20_A10_PIN 10
|
||||
#define ZRIB_V20_D16_PIN 16
|
||||
#define ZRIB_V20_D17_PIN 17
|
||||
#define ZRIB_V20_D23_PIN 23
|
||||
#define ZRIB_V20_D25_PIN 25
|
||||
#define ZRIB_V20_D27_PIN 27
|
||||
#define ZRIB_V20_D29_PIN 29
|
||||
#define ZRIB_V20_D37_PIN 37
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 11 // Analog Input
|
||||
#endif
|
||||
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN ZRIB_V20_D6_PIN
|
||||
#define E0_AUTO_FAN_PIN 6 // Fan
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN ZRIB_V20_D6_PIN
|
||||
#define E1_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN ZRIB_V20_D6_PIN
|
||||
#define E2_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN ZRIB_V20_D6_PIN
|
||||
#endif
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 11 // Analog Input
|
||||
#define E3_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
|
||||
#if ENABLED(ZONESTAR_LCD)
|
||||
#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 ADC_KEYPAD_PIN
|
||||
#undef BEEPER_PIN
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
#define ADC_KEYPAD_PIN 10 // Analog Input
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#undef SHIFT_OUT_PIN
|
||||
#undef SHIFT_CLK_PIN
|
||||
#undef SHIFT_LD_PIN
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
|
||||
#define LCD_PINS_RS ZRIB_V20_D16_PIN
|
||||
#define LCD_PINS_ENABLE ZRIB_V20_D17_PIN
|
||||
#define LCD_PINS_D4 ZRIB_V20_D23_PIN
|
||||
#define LCD_PINS_D5 ZRIB_V20_D25_PIN
|
||||
#define LCD_PINS_D6 ZRIB_V20_D27_PIN
|
||||
#define LCD_PINS_D7 ZRIB_V20_D29_PIN
|
||||
#define ADC_KEYPAD_PIN ZRIB_V20_A10_PIN
|
||||
#define BEEPER_PIN ZRIB_V20_D37_PIN
|
||||
#define LCD_PINS_DEFINED
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_GEN_13.h" // ... RAMPS
|
||||
|
@@ -47,6 +47,16 @@
|
||||
#define E2_DIR_PIN 5
|
||||
#define E2_ENABLE_PIN 22
|
||||
|
||||
//
|
||||
// Servos / XS3 Connector
|
||||
//
|
||||
#ifndef SERVO0_PIN
|
||||
#define SERVO0_PIN 65 // PWM
|
||||
#endif
|
||||
#ifndef SERVO1_PIN
|
||||
#define SERVO1_PIN 66 // PWM
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
||||
/**
|
||||
@@ -78,20 +88,13 @@
|
||||
* | GND |
|
||||
* ==========
|
||||
*
|
||||
* XS3 Connector
|
||||
* Servos / XS3 Connector
|
||||
* =================
|
||||
* | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
|
||||
* |----|-----|----|
|
||||
* | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
|
||||
* =================
|
||||
*
|
||||
* Servos Connector
|
||||
* =================
|
||||
* | 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
|
||||
* |----|-----|----|
|
||||
* | 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
|
||||
* =================
|
||||
*
|
||||
* ICSP
|
||||
* =================
|
||||
* | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
|
@@ -62,10 +62,10 @@
|
||||
// Servos / XS3 Connector
|
||||
//
|
||||
#ifndef SERVO0_PIN
|
||||
#define SERVO0_PIN 11 // Analog Output
|
||||
#define SERVO0_PIN 65 // PWM
|
||||
#endif
|
||||
#ifndef SERVO1_PIN
|
||||
#define SERVO1_PIN 12 // Analog Output
|
||||
#define SERVO1_PIN 66 // PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -424,18 +424,12 @@
|
||||
* |--------| Power
|
||||
* | GND |
|
||||
* ==========
|
||||
* XS3 Connector
|
||||
* Servos / XS3 Connector
|
||||
* =================
|
||||
* | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
|
||||
* |----|-----|----|
|
||||
* | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
|
||||
* =================
|
||||
* XS3/Servos Connector
|
||||
* =================
|
||||
* | 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
|
||||
* |----|-----|----|
|
||||
* | 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
|
||||
* =================
|
||||
* ICSP
|
||||
* =================
|
||||
* | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
|
Reference in New Issue
Block a user