🔧 Cutter pins for SKR 2.0

This commit is contained in:
Scott Lahteine 2021-12-04 17:17:10 -06:00 committed by Scott Lahteine
parent aa3ec2fbfd
commit 05b57278d4

View File

@ -181,16 +181,28 @@
#define Z_CS_PIN PD0 #define Z_CS_PIN PD0
#endif #endif
#define E0_STEP_PIN PD15 #ifndef E0_STEP_PIN
#define E0_DIR_PIN PD14 #define E0_STEP_PIN PD15
#define E0_ENABLE_PIN PC7 #endif
#ifndef E0_DIR_PIN
#define E0_DIR_PIN PD14
#endif
#ifndef E0_ENABLE_PIN
#define E0_ENABLE_PIN PC7
#endif
#ifndef E0_CS_PIN #ifndef E0_CS_PIN
#define E0_CS_PIN PC6 #define E0_CS_PIN PC6
#endif #endif
#define E1_STEP_PIN PD11 #ifndef E1_STEP_PIN
#define E1_DIR_PIN PD10 #define E1_STEP_PIN PD11
#define E1_ENABLE_PIN PD13 #endif
#ifndef E1_DIR_PIN
#define E1_DIR_PIN PD10
#endif
#ifndef E1_ENABLE_PIN
#define E1_ENABLE_PIN PD13
#endif
#ifndef E1_CS_PIN #ifndef E1_CS_PIN
#define E1_CS_PIN PD12 #define E1_CS_PIN PD12
#endif #endif
@ -198,9 +210,15 @@
// //
// Temperature Sensors // Temperature Sensors
// //
#define TEMP_BED_PIN PA1 // TB #ifndef TEMP_0_PIN
#define TEMP_0_PIN PA2 // TH0 #define TEMP_0_PIN PA2 // TH0
#define TEMP_1_PIN PA3 // TH1 #endif
#ifndef TEMP_1_PIN
#define TEMP_1_PIN PA3 // TH1
#endif
#ifndef TEMP_BED_PIN
#define TEMP_BED_PIN PA1 // TB
#endif
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL) #if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
#if TEMP_SENSOR_PROBE #if TEMP_SENSOR_PROBE
@ -225,12 +243,22 @@
#ifndef FAN_PIN #ifndef FAN_PIN
#define FAN_PIN PB7 // Fan0 #define FAN_PIN PB7 // Fan0
#endif #endif
#ifndef FAN1_PIN
#define FAN1_PIN PB6 // Fan1 #if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
#endif #ifndef SPINDLE_LASER_PWM_PIN
#ifndef FAN2_PIN #define SPINDLE_LASER_PWM_PIN PB5
#define FAN2_PIN PB5 // Fan2 #endif
#endif #ifndef SPINDLE_LASER_ENA_PIN
#define SPINDLE_LASER_ENA_PIN PB6
#endif
#else
#ifndef FAN1_PIN
#define FAN1_PIN PB6 // Fan1
#endif
#ifndef FAN2_PIN
#define FAN2_PIN PB5 // Fan2
#endif
#endif // SPINDLE_FEATURE || LASER_FEATURE
// //
// Software SPI pins for TMC2130 stepper drivers // Software SPI pins for TMC2130 stepper drivers
@ -266,6 +294,9 @@
//#define E3_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1
//#define E4_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1
//
// Software serial
//
#define X_SERIAL_TX_PIN PE0 #define X_SERIAL_TX_PIN PE0
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
@ -324,7 +355,16 @@
// Onboard SD card // Onboard SD card
// Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2 // Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
// //
#if SD_CONNECTION_IS(ONBOARD) #if SD_CONNECTION_IS(LCD)
#define SDSS PA4
#define SD_SS_PIN SDSS
#define SD_SCK_PIN PA5
#define SD_MISO_PIN PA6
#define SD_MOSI_PIN PA7
#define SD_DETECT_PIN PC4
#elif SD_CONNECTION_IS(ONBOARD)
#define SDIO_SUPPORT // Use SDIO for onboard SD #define SDIO_SUPPORT // Use SDIO for onboard SD
#define SDIO_D0_PIN PC8 #define SDIO_D0_PIN PC8
@ -334,17 +374,8 @@
#define SDIO_CK_PIN PC12 #define SDIO_CK_PIN PC12
#define SDIO_CMD_PIN PD2 #define SDIO_CMD_PIN PD2
#elif SD_CONNECTION_IS(LCD)
#define SDSS PA4
#define SD_SS_PIN SDSS
#define SD_SCK_PIN PA5
#define SD_MISO_PIN PA6
#define SD_MOSI_PIN PA7
#define SD_DETECT_PIN PC4
#elif SD_CONNECTION_IS(CUSTOM_CABLE) #elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board" #error "No custom SD drive cable defined for this board."
#endif #endif
#if ENABLED(BTT_MOTOR_EXPANSION) #if ENABLED(BTT_MOTOR_EXPANSION)