Format some pins files

This commit is contained in:
Scott Lahteine
2020-03-21 21:13:19 -05:00
committed by Scott Lahteine
parent 9340a33980
commit 2c325c2a7d
174 changed files with 9635 additions and 9668 deletions

View File

@@ -81,55 +81,55 @@ A stepper for E0 extruder
//
// Servos
//
#define SERVO0_PIN 61 // Analog pin 7, Digital pin 61
#define SERVO0_PIN 61 // Analog pin 7, Digital pin 61
//
// Limit Switches
//
#define X_MIN_PIN 9
#define Y_MIN_PIN 10
#define Z_MIN_PIN 11
#define X_MIN_PIN 9
#define Y_MIN_PIN 10
#define Z_MIN_PIN 11
#define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62
#define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62
//
// Steppers
//
#define X_STEP_PIN 2
#define X_DIR_PIN 5
#define X_ENABLE_PIN 8
#define X_STEP_PIN 2
#define X_DIR_PIN 5
#define X_ENABLE_PIN 8
#define Y_STEP_PIN 3
#define Y_DIR_PIN 6
#define Y_ENABLE_PIN 8
#define Y_STEP_PIN 3
#define Y_DIR_PIN 6
#define Y_ENABLE_PIN 8
#define Z_STEP_PIN 4
#define Z_DIR_PIN 7
#define Z_ENABLE_PIN 8
#define Z_STEP_PIN 4
#define Z_DIR_PIN 7
#define Z_ENABLE_PIN 8
#define E0_STEP_PIN 12
#define E0_DIR_PIN 13
#define E0_ENABLE_PIN 8
#define E0_STEP_PIN 12
#define E0_DIR_PIN 13
#define E0_ENABLE_PIN 8
//
// Heaters / Fans
//
#define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55
#define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57
#define FAN_PIN 54 // "Abort": Analog pin 0, Digital pin 54
#define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55
#define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57
#define FAN_PIN 54 // "Abort": Analog pin 0, Digital pin 54
#undef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56
#define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56
//
// Temperature Sensors
//
#define TEMP_0_PIN 4 // "SDA": Analog pin 4, Digital pin 58
#define TEMP_BED_PIN 5 // "SCL": Analog pin 5, Digital pin 59
#define TEMP_0_PIN 4 // "SDA": Analog pin 4, Digital pin 58
#define TEMP_BED_PIN 5 // "SCL": Analog pin 5, Digital pin 59
//
// Misc. Functions
//
#define SDSS 52
#define SDSS 52
#if ENABLED(ZONESTAR_LCD)
@@ -160,13 +160,13 @@ A stepper for E0 extruder
//
// LCD / Controller
//
#define LCD_PINS_ENABLE 14
#define LCD_PINS_RS 15
#define LCD_PINS_D4 16
#define LCD_PINS_D5 17
#define LCD_PINS_D6 18
#define LCD_PINS_D7 19
#define ADC_KEYPAD_PIN 6 //60 // Analog pin 6, Digital pin 60
#define LCD_PINS_ENABLE 14
#define LCD_PINS_RS 15
#define LCD_PINS_D4 16
#define LCD_PINS_D5 17
#define LCD_PINS_D6 18
#define LCD_PINS_D7 19
#define ADC_KEYPAD_PIN 6 //60 // Analog pin 6, Digital pin 60
/**
* The below defines will scale all the values to work properly on both

View File

@@ -35,126 +35,126 @@
//
// Servos
//
#define SERVO0_PIN 36
#define SERVO1_PIN 40
#define SERVO2_PIN 41
#define SERVO3_PIN -1
#define SERVO0_PIN 36
#define SERVO1_PIN 40
#define SERVO2_PIN 41
#define SERVO3_PIN -1
//
// Limit Switches
//
#define X_MIN_PIN 33 // PC1
#define X_MAX_PIN 34 // PC2
#define Y_MIN_PIN 35 // PC3
#define Y_MAX_PIN 37 // PC5
#define Z_MIN_PIN 38 // PC6
#define Z_MAX_PIN 39 // PC7
#define X_MIN_PIN 33 // PC1
#define X_MAX_PIN 34 // PC2
#define Y_MIN_PIN 35 // PC3
#define Y_MAX_PIN 37 // PC5
#define Z_MIN_PIN 38 // PC6
#define Z_MAX_PIN 39 // PC7
//
// Steppers
//
#define X_STEP_PIN 96 // PB24
#define X_DIR_PIN 2 // PB25
#define X_ENABLE_PIN 24 // PA15, motor RESET pin
#define X_STEP_PIN 96 // PB24
#define X_DIR_PIN 2 // PB25
#define X_ENABLE_PIN 24 // PA15, motor RESET pin
#define Y_STEP_PIN 94 // PB22
#define Y_DIR_PIN 95 // PB23
#define Y_ENABLE_PIN 24 // PA15, motor RESET pin
#define Y_STEP_PIN 94 // PB22
#define Y_DIR_PIN 95 // PB23
#define Y_ENABLE_PIN 24 // PA15, motor RESET pin
#define Z_STEP_PIN 98 // PC27
#define Z_DIR_PIN 3 // PC28
#define Z_ENABLE_PIN 24 // PA15, motor RESET pin
#define Z_STEP_PIN 98 // PC27
#define Z_DIR_PIN 3 // PC28
#define Z_ENABLE_PIN 24 // PA15, motor RESET pin
#define E0_STEP_PIN 5 // PC25
#define E0_DIR_PIN 4 // PC26
#define E0_ENABLE_PIN 24 // PA15, motor RESET pin
#define E0_STEP_PIN 5 // PC25
#define E0_DIR_PIN 4 // PC26
#define E0_ENABLE_PIN 24 // PA15, motor RESET pin
#define E1_STEP_PIN 28 // PD3 on piggy
#define E1_DIR_PIN 27 // PD2 on piggy
#define E1_ENABLE_PIN 24 // PA15, motor RESET pin
#define E1_STEP_PIN 28 // PD3 on piggy
#define E1_DIR_PIN 27 // PD2 on piggy
#define E1_ENABLE_PIN 24 // PA15, motor RESET pin
#define E2_STEP_PIN 11 // PD7 on piggy
#define E2_DIR_PIN 29 // PD6 on piggy
#define E2_ENABLE_PIN 24 // PA15, motor RESET pin
#define E2_STEP_PIN 11 // PD7 on piggy
#define E2_DIR_PIN 29 // PD6 on piggy
#define E2_ENABLE_PIN 24 // PA15, motor RESET pin
#define E3_STEP_PIN 30 // PD9 on piggy
#define E3_DIR_PIN 12 // PD8 on piggy
#define E3_ENABLE_PIN 24 // PA15, motor RESET pin
#define E3_STEP_PIN 30 // PD9 on piggy
#define E3_DIR_PIN 12 // PD8 on piggy
#define E3_ENABLE_PIN 24 // PA15, motor RESET pin
// Microstepping pins - Mapping not from fastio.h (?)
#define X_MS1_PIN 99 // PC10
#define Y_MS1_PIN 10 // PC29
#define Z_MS1_PIN 44 // PC19
#define E0_MS1_PIN 45 // PC18
#define X_MS1_PIN 99 // PC10
#define Y_MS1_PIN 10 // PC29
#define Z_MS1_PIN 44 // PC19
#define E0_MS1_PIN 45 // PC18
//#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
//#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
//
// Temperature Sensors
//
#define TEMP_0_PIN 1 // Analog Input (PA24)
#define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
#define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
#define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
#define TEMP_BED_PIN 0 // Analog Input (PA16)
#define TEMP_0_PIN 1 // Analog Input (PA24)
#define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
#define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
#define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
#define TEMP_BED_PIN 0 // Analog Input (PA16)
//
// Heaters / Fans
//
// Note that on the Due pin A0 on the board is channel 2 on the ARM chip
#define HEATER_0_PIN 68 // PA1
#define HEATER_1_PIN 8 // PC22 on piggy
#define HEATER_2_PIN 9 // PC21 on piggy
#define HEATER_3_PIN 97 // PC20 on piggy
#define HEATER_BED_PIN 69 // PA0
#define HEATER_0_PIN 68 // PA1
#define HEATER_1_PIN 8 // PC22 on piggy
#define HEATER_2_PIN 9 // PC21 on piggy
#define HEATER_3_PIN 97 // PC20 on piggy
#define HEATER_BED_PIN 69 // PA0
#ifndef FAN_PIN
#define FAN_PIN 92 // PA5
#define FAN_PIN 92 // PA5
#endif
#define FAN1_PIN 31 // PA7
#define FAN1_PIN 31 // PA7
//
// Misc. Functions
//
#define SDSS 77 // PA28
#define SD_DETECT_PIN 87 // PA29
#define LED_RED_PIN 40 // PC8
#define LED_GREEN_PIN 41 // PC9
#define SDSS 77 // PA28
#define SD_DETECT_PIN 87 // PA29
#define LED_RED_PIN 40 // PC8
#define LED_GREEN_PIN 41 // PC9
#define EXP_VOLTAGE_LEVEL_PIN 65
#define EXP_VOLTAGE_LEVEL_PIN 65
#define SPI_CHAN_DAC 1
#define SPI_CHAN_DAC 1
#define DAC0_SYNC 53 // PB14
#define DAC1_SYNC 6 // PC24
#define DAC0_SYNC 53 // PB14
#define DAC1_SYNC 6 // PC24
// 64K SPI EEPROM
#define SPI_EEPROM
#define SPI_CHAN_EEPROM1 2
#define SPI_EEPROM1_CS 25 // PD0
#define SPI_CHAN_EEPROM1 2
#define SPI_EEPROM1_CS 25 // PD0
// 2K SPI EEPROM
#define SPI_EEPROM2_CS 26 // PD1
#define SPI_EEPROM2_CS 26 // PD1
// FLASH SPI
// 32Mb
#define SPI_FLASH_CS 23 // PA14
#define SPI_FLASH_CS 23 // PA14
//
// LCD / Controller
//
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define LCD_PINS_RS 18
#define LCD_PINS_ENABLE 15
#define LCD_PINS_D4 19
#define BEEPER_PIN 64
#define LCD_PINS_RS 18
#define LCD_PINS_ENABLE 15
#define LCD_PINS_D4 19
#define BEEPER_PIN 64
#define BTN_EN1 14
#define BTN_EN2 16
#define BTN_ENC 17
#define BTN_EN1 14
#define BTN_EN2 16
#define BTN_ENC 17
#undef UI_VOLTAGE_LEVEL
#define UI_VOLTAGE_LEVEL 1
#define UI_VOLTAGE_LEVEL 1
#endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER

View File

@@ -46,7 +46,7 @@
//
// Timers
//
#define STEP_TIMER_NUM 3
#define STEP_TIMER_NUM 3
#define HAL_STEP_TIMER_ISR() void TC3_Handler()
//
@@ -56,147 +56,145 @@
//
// Servos
//
#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
//
// Limit Switches
//
#define X_MIN_PIN 14 // PD4 MIN ES1
#define X_MAX_PIN 32 // PD10 MAX ES1
#define Y_MIN_PIN 29 // PD6 MIN ES2
#define Y_MAX_PIN 15 // PD5 MAX ES2
#define Z_MIN_PIN 31 // PA7 MIN ES3
#define Z_MAX_PIN 30 // PD9 MAX ES3
#define X_MIN_PIN 14 // PD4 MIN ES1
#define X_MAX_PIN 32 // PD10 MAX ES1
#define Y_MIN_PIN 29 // PD6 MIN ES2
#define Y_MAX_PIN 15 // PD5 MAX ES2
#define Z_MIN_PIN 31 // PA7 MIN ES3
#define Z_MAX_PIN 30 // PD9 MAX ES3
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 32
#define Z_MIN_PROBE_PIN 32
#endif
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15)
#define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15)
#endif
#ifndef FIL_RUNOUT2_PIN
#define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16)
#define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16)
#endif
//
// Steppers
//
#define X_STEP_PIN 40 // PC8 STEP1 *
#define X_DIR_PIN 59 // PA4 DIR1 *
#define X_ENABLE_PIN 41 // PC9 EN1
#define X_STEP_PIN 40 // PC8 STEP1 *
#define X_DIR_PIN 59 // PA4 DIR1 *
#define X_ENABLE_PIN 41 // PC9 EN1
#define Y_STEP_PIN 49 // PC14 STEP2 *
#define Y_DIR_PIN 47 // PC16 DIR2 *
#define Y_ENABLE_PIN 48 // PC15 EN2 *
#define Y_STEP_PIN 49 // PC14 STEP2 *
#define Y_DIR_PIN 47 // PC16 DIR2 *
#define Y_ENABLE_PIN 48 // PC15 EN2 *
#define Z_STEP_PIN 36 // PC4 STEP Z *
#define Z_DIR_PIN 107 // PB10 DIR Z *
#define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns *
#define Z_STEP_PIN 36 // PC4 STEP Z *
#define Z_DIR_PIN 107 // PB10 DIR Z *
#define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns *
#define E0_STEP_PIN 78 // PB23 STEP3 *
#define E0_DIR_PIN 22 // PB26 DIR3 *
#define E0_ENABLE_PIN 97 // PB24 EN3 -Addons *
#define E0_STEP_PIN 78 // PB23 STEP3 *
#define E0_DIR_PIN 22 // PB26 DIR3 *
#define E0_ENABLE_PIN 97 // PB24 EN3 -Addons *
#define E1_STEP_PIN 26 // PD1 STEP4 *
#define E1_DIR_PIN 27 // PD2 DIR4 *
#define E1_ENABLE_PIN 28 // PD3 EN4 *
#define E1_STEP_PIN 26 // PD1 STEP4 *
#define E1_DIR_PIN 27 // PD2 DIR4 *
#define E1_ENABLE_PIN 28 // PD3 EN4 *
// Microstepping mode pins *
#define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic
#define X_MS2_PIN 38 // PC6 MOD1E1
#define X_MS3_PIN 37 // PC5 MOD2E1
#define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic
#define X_MS2_PIN 38 // PC6 MOD1E1
#define X_MS3_PIN 37 // PC5 MOD2E1
#define Y_MS1_PIN 50 // PC13 MODE0E2
#define Y_MS2_PIN 51 // PC12 MODE1E2
#define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns
#define Y_MS1_PIN 50 // PC13 MODE0E2
#define Y_MS2_PIN 51 // PC12 MODE1E2
#define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns
#define Z_MS1_PIN 44 // PC19 MOD0E Z
#define Z_MS2_PIN 45 // PC18 MOD1E Z
#define Z_MS3_PIN 46 // PC17 MOD2E Z
#define Z_MS1_PIN 44 // PC19 MOD0E Z
#define Z_MS2_PIN 45 // PC18 MOD1E Z
#define Z_MS3_PIN 46 // PC17 MOD2E Z
#define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns
#define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns
#define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns
#define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns
#define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns
#define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns
#define E1_MS1_PIN 25 // PD0 MOD0E4
#define E1_MS2_PIN 18 // PA11 MOD1E4
#define E1_MS3_PIN 19 // PA10 MOD2E4
#define E1_MS1_PIN 25 // PD0 MOD0E4
#define E1_MS2_PIN 18 // PA11 MOD1E4
#define E1_MS3_PIN 19 // PA10 MOD2E4
// Motor current PWM pins *
#define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2
#define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8
#define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7
#define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7
#define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8
#define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2
#define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8
#define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7
#define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7
#define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8
#define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref)
#define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref)
#define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } //, 1000, 1000} // X Y Z E0 E1, 1000 = 1000mAh
//
// Temperature Sensors
//
#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
//
// Heaters / Fans
//
#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#ifndef FAN_PIN
#define FAN_PIN 4 // D4 PC26 FET_PWM1
#define FAN_PIN 4 // D4 PC26 FET_PWM1
#endif
#define FAN1_PIN 5 // D5 PC25 FET_PWM2
#define FAN1_PIN 5 // D5 PC25 FET_PWM2
//
// Misc. Functions
//
// Internal MicroSD card reader on the PCB
#define INT_SCK_PIN 42 // D42 PA19/MCCK
#define INT_MISO_PIN 43 // D43 PA20/MCCDA
#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
#define INT_SDSS 55 // D55 PA24/MCDA3
#define INT_SCK_PIN 42 // D42 PA19/MCCK
#define INT_MISO_PIN 43 // D43 PA20/MCCDA
#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
#define INT_SDSS 55 // D55 PA24/MCDA3
// External SD card reader on SC2
#define SCK_PIN 76 // D76 PA27
#define MISO_PIN 74 // D74 PA25
#define MOSI_PIN 75 // D75 PA26
#define SDSS 87 // D87 PA29
#define SCK_PIN 76 // D76 PA27
#define MISO_PIN 74 // D74 PA25
#define MOSI_PIN 75 // D75 PA26
#define SDSS 87 // D87 PA29
// 2MB SPI Flash
#define SPI_FLASH_SS 52 // D52 PB21
#define SPI_FLASH_SS 52 // D52 PB21
//
// LCD / Controller
//
#if HAS_SPI_LCD
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1
#define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
#define LCD_PINS_D4 69 // D69 PA0_CANTX0
#define LCD_PINS_D5 54 // D54 PA16_SCK1
#define LCD_PINS_D6 68 // D68 PA1_CANRX0
#define LCD_PINS_D7 34 // D34 PC2_PWML0
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1
#define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
#define LCD_PINS_D4 69 // D69 PA0_CANTX0
#define LCD_PINS_D5 54 // D54 PA16_SCK1
#define LCD_PINS_D6 68 // D68 PA1_CANRX0
#define LCD_PINS_D7 34 // D34 PC2_PWML0
#define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#if ENABLED(NEWPANEL)
// Buttons on AUX-2
#define BTN_EN1 60 // D60 PA3_TIOB1
#define BTN_EN2 13 // D13 PB27_TIOB0
#define BTN_ENC 16 // D16 PA13_TXD1
#define BTN_EN1 60 // D60 PA3_TIOB1
#define BTN_EN2 13 // D13 PB27_TIOB0
#define BTN_ENC 16 // D16 PA13_TXD1
#endif // NEWPANEL
#endif // HAS_SPI_LCD

View File

@@ -52,8 +52,8 @@
//
// Servos
//
#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
//
// Limit Switches
@@ -65,83 +65,83 @@
// Otherwise use a physical endstop based configuration.
// TMC2130 Diag Pins
#define X_DIAG_PIN 59 // PA4
#define Y_DIAG_PIN 48 // PC15
#define Z_DIAG_PIN 36 // PC4
#define E0_DIAG_PIN 78 // PB23
#define E1_DIAG_PIN 25 // PD0
#define X_DIAG_PIN 59 // PA4
#define Y_DIAG_PIN 48 // PC15
#define Z_DIAG_PIN 36 // PC4
#define E0_DIAG_PIN 78 // PB23
#define E1_DIAG_PIN 25 // PD0
#if X_HOME_DIR < 0
#define X_MIN_PIN X_DIAG_PIN
#define X_MAX_PIN 32
#define X_MIN_PIN X_DIAG_PIN
#define X_MAX_PIN 32
#else
#define X_MIN_PIN 14
#define X_MAX_PIN X_DIAG_PIN
#define X_MIN_PIN 14
#define X_MAX_PIN X_DIAG_PIN
#endif
#if Y_HOME_DIR < 0
#define Y_MIN_PIN Y_DIAG_PIN
#define Y_MAX_PIN 15
#define Y_MIN_PIN Y_DIAG_PIN
#define Y_MAX_PIN 15
#else
#define Y_MIN_PIN 29
#define Y_MAX_PIN Y_DIAG_PIN
#define Y_MIN_PIN 29
#define Y_MAX_PIN Y_DIAG_PIN
#endif
#else
#define X_MIN_PIN 14 // PD4 MIN ES1
#define X_MAX_PIN 32 // PD10 MAX ES1
#define Y_MIN_PIN 29 // PD6 MIN ES2
#define Y_MAX_PIN 15 // PD5 MAX ES2
#define X_MIN_PIN 14 // PD4 MIN ES1
#define X_MAX_PIN 32 // PD10 MAX ES1
#define Y_MIN_PIN 29 // PD6 MIN ES2
#define Y_MAX_PIN 15 // PD5 MAX ES2
#endif
#define Z_MIN_PIN 31 // PA7 MIN ES3
#define Z_MAX_PIN 30 // PD9 MAX ES3
#define Z_MIN_PIN 31 // PA7 MIN ES3
#define Z_MAX_PIN 30 // PD9 MAX ES3
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 32
#define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
#define X_STEP_PIN 38 // PC6 X-STEP *
#define X_DIR_PIN 37 // PC5 X-DIR *
#define X_ENABLE_PIN 41 // PC9 EN1
#define X_STEP_PIN 38 // PC6 X-STEP *
#define X_DIR_PIN 37 // PC5 X-DIR *
#define X_ENABLE_PIN 41 // PC9 EN1
#ifndef X_CS_PIN
#define X_CS_PIN 39 // PC7 X_nCS
#define X_CS_PIN 39 // PC7 X_nCS
#endif
#define Y_STEP_PIN 51 // PC12 Y-STEP *
#define Y_DIR_PIN 92 // PC11 Y-DIR -AddOns *
#define Y_ENABLE_PIN 49 // PC14 Y-EN *
#define Y_STEP_PIN 51 // PC12 Y-STEP *
#define Y_DIR_PIN 92 // PC11 Y-DIR -AddOns *
#define Y_ENABLE_PIN 49 // PC14 Y-EN *
#ifndef Y_CS_PIN
#define Y_CS_PIN 50 // PC13 Y_nCS
#define Y_CS_PIN 50 // PC13 Y_nCS
#endif
#define Z_STEP_PIN 46 // PC17 Z-STEP *
#define Z_DIR_PIN 47 // PC16 Z-DIR *
#define Z_ENABLE_PIN 44 // PC19 Z-END *
#define Z_STEP_PIN 46 // PC17 Z-STEP *
#define Z_DIR_PIN 47 // PC16 Z-DIR *
#define Z_ENABLE_PIN 44 // PC19 Z-END *
#ifndef Z_CS_PIN
#define Z_CS_PIN 45 // PC18 Z_nCS
#define Z_CS_PIN 45 // PC18 Z_nCS
#endif
#define E0_STEP_PIN 107 // PB10 E1-STEP -AddOns *
#define E0_DIR_PIN 96 // PC10 E1-DIR -AddOns *
#define E0_ENABLE_PIN 105 // PB22 E1-EN -AddOns *
#define E0_STEP_PIN 107 // PB10 E1-STEP -AddOns *
#define E0_DIR_PIN 96 // PC10 E1-DIR -AddOns *
#define E0_ENABLE_PIN 105 // PB22 E1-EN -AddOns *
#ifndef E0_CS_PIN
#define E0_CS_PIN 104 // PC20 E1_nCS -AddOns *
#define E0_CS_PIN 104 // PC20 E1_nCS -AddOns *
#endif
#define E1_STEP_PIN 22 // PB26 E2_STEP *
#define E1_DIR_PIN 97 // PB24 E2_DIR -AddOns *
#define E1_ENABLE_PIN 18 // PA11 E2-EN
#define E1_STEP_PIN 22 // PB26 E2_STEP *
#define E1_DIR_PIN 97 // PB24 E2_DIR -AddOns *
#define E1_ENABLE_PIN 18 // PA11 E2-EN
#ifndef E1_CS_PIN
#define E1_CS_PIN 19 // PA10 E2_nCS
#define E1_CS_PIN 19 // PA10 E2_nCS
#endif
//
@@ -150,106 +150,106 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
#define TMC_SW_MOSI 28 // PD3
#define TMC_SW_MOSI 28 // PD3
#endif
#ifndef TMC_SW_MISO
#define TMC_SW_MISO 26 // PD1
#define TMC_SW_MISO 26 // PD1
#endif
#ifndef TMC_SW_SCK
#define TMC_SW_SCK 27 // PD2
#define TMC_SW_SCK 27 // PD2
#endif
#endif
//
// Temperature Sensors
//
#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
//
// Heaters / Fans
//
#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#ifndef FAN_PIN
#define FAN_PIN 4 // D4 PC26 FET_PWM1
#define FAN_PIN 4 // D4 PC26 FET_PWM1
#endif
#define FAN1_PIN 5 // D5 PC25 FET_PWM2
#define FAN1_PIN 5 // D5 PC25 FET_PWM2
//
// Misc. Functions
//
// Internal MicroSD card reader on the PCB
#define INT_SCK_PIN 42 // D42 PA19/MCCK
#define INT_MISO_PIN 43 // D43 PA20/MCCDA
#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
#define INT_SDSS 55 // D55 PA24/MCDA3
#define INT_SCK_PIN 42 // D42 PA19/MCCK
#define INT_MISO_PIN 43 // D43 PA20/MCCDA
#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
#define INT_SDSS 55 // D55 PA24/MCDA3
// External SD card reader on SC2
#define SCK_PIN 76 // D76 PA27
#define MISO_PIN 74 // D74 PA25
#define MOSI_PIN 75 // D75 PA26
#define SDSS 87 // D87 PA29
#define SCK_PIN 76 // D76 PA27
#define MISO_PIN 74 // D74 PA25
#define MOSI_PIN 75 // D75 PA26
#define SDSS 87 // D87 PA29
// Unused Digital GPIO J20 Pins
#define GPIO_PB1_J20_5 94 // D94 PB1 (Header J20 5)
#define GPIO_PB0_J20_6 95 // D95 PB0 (Header J20 6)
#define GPIO_PB3_J20_7 103 // D103 PB3 (Header J20 7)
#define GPIO_PB2_J20_8 93 // D93 PB2 (Header J20 8)
#define GPIO_PB6_J20_9 99 // D99 PB6 (Header J20 9)
#define GPIO_PB5_J20_10 101 // D101 PB5 (Header J20 10)
#define GPIO_PB8_J20_11 100 // D100 PB8 (Header J20 11)
#define GPIO_PB4_J20_12 102 // D102 PB4 (Header J20 12)
#define GPIO_PB9_J20_13 108 // D108 PB9 (Header J20 13)
#define GPIO_PB7_J20_14 98 // D98 PB7 (Header J20 14)
#define GPIO_PB15_J20_15 66 // D66 PB15 (Header J20 15)
#define GPIO_PB16_J20_16 67 // D67 PB16 (Header J20 16)
#define GPIO_PB14_J20_17 53 // D53 PB14 (Header J20 17)
#define GPIO_PA18_J20_21 71 // D71 PA17 (Header J20 21)
#define GPIO_PA17_J20_22 70 // D70 PA17 (Header J20 22)
#define GPIO_PB1_J20_5 94 // D94 PB1 (Header J20 5)
#define GPIO_PB0_J20_6 95 // D95 PB0 (Header J20 6)
#define GPIO_PB3_J20_7 103 // D103 PB3 (Header J20 7)
#define GPIO_PB2_J20_8 93 // D93 PB2 (Header J20 8)
#define GPIO_PB6_J20_9 99 // D99 PB6 (Header J20 9)
#define GPIO_PB5_J20_10 101 // D101 PB5 (Header J20 10)
#define GPIO_PB8_J20_11 100 // D100 PB8 (Header J20 11)
#define GPIO_PB4_J20_12 102 // D102 PB4 (Header J20 12)
#define GPIO_PB9_J20_13 108 // D108 PB9 (Header J20 13)
#define GPIO_PB7_J20_14 98 // D98 PB7 (Header J20 14)
#define GPIO_PB15_J20_15 66 // D66 PB15 (Header J20 15)
#define GPIO_PB16_J20_16 67 // D67 PB16 (Header J20 16)
#define GPIO_PB14_J20_17 53 // D53 PB14 (Header J20 17)
#define GPIO_PA18_J20_21 71 // D71 PA17 (Header J20 21)
#define GPIO_PA17_J20_22 70 // D70 PA17 (Header J20 22)
// Case Light
#define CASE_LIGHT_PIN GPIO_PB1_J20_5
#define CASE_LIGHT_PIN GPIO_PB1_J20_5
// 2MB SPI Flash
#define SPI_FLASH_SS 52 // D52 PB21
#define SPI_FLASH_SS 52 // D52 PB21
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN GPIO_PB15_J20_15
#define FIL_RUNOUT_PIN GPIO_PB15_J20_15
#endif
#ifndef FIL_RUNOUT2_PIN
#define FIL_RUNOUT2_PIN GPIO_PB16_J20_16
#define FIL_RUNOUT2_PIN GPIO_PB16_J20_16
#endif
//
// LCD / Controller
//
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1
#define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
#define LCD_PINS_D4 69 // D69 PA0_CANTX0
#define LCD_PINS_D5 54 // D54 PA16_SCK1
#define LCD_PINS_D6 68 // D68 PA1_CANRX0
#define LCD_PINS_D7 34 // D34 PC2_PWML0
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1
#define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
#define LCD_PINS_D4 69 // D69 PA0_CANTX0
#define LCD_PINS_D5 54 // D54 PA16_SCK1
#define LCD_PINS_D6 68 // D68 PA1_CANRX0
#define LCD_PINS_D7 34 // D34 PC2_PWML0
#define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
// Buttons on AUX-2
#define BTN_EN1 60 // D60 PA3_TIOB1
#define BTN_EN2 13 // D13 PB27_TIOB0
#define BTN_ENC 16 // D16 PA13_TXD1 // the click
#define BTN_EN1 60 // D60 PA3_TIOB1
#define BTN_EN2 13 // D13 PB27_TIOB0
#define BTN_ENC 16 // D16 PA13_TXD1 // the click
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
#endif // HAS_SPI_LCD

View File

@@ -33,91 +33,91 @@
//
// Servos
//
#define SERVO0_PIN 6
#define SERVO0_PIN 6
//
// Limit Switches
//
#define X_STOP_PIN 34
#define Y_STOP_PIN 39
#define Z_STOP_PIN 62
#define X_STOP_PIN 34
#define Y_STOP_PIN 39
#define Z_STOP_PIN 62
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
#define X_STEP_PIN 14
#define X_DIR_PIN 25
#define X_ENABLE_PIN 26
#define X_STEP_PIN 14
#define X_DIR_PIN 25
#define X_ENABLE_PIN 26
#define Y_STEP_PIN 11
#define Y_DIR_PIN 12
#define Y_ENABLE_PIN 15
#define Y_STEP_PIN 11
#define Y_DIR_PIN 12
#define Y_ENABLE_PIN 15
#define Z_STEP_PIN 24
#define Z_DIR_PIN 27
#define Z_ENABLE_PIN 28
#define Z_STEP_PIN 24
#define Z_DIR_PIN 27
#define Z_ENABLE_PIN 28
#define E0_STEP_PIN 64
#define E0_DIR_PIN 65
#define E0_ENABLE_PIN 63
#define E0_STEP_PIN 64
#define E0_DIR_PIN 65
#define E0_ENABLE_PIN 63
#define E1_STEP_PIN 8
#define E1_DIR_PIN 7
#define E1_ENABLE_PIN 29
#define E1_STEP_PIN 8
#define E1_DIR_PIN 7
#define E1_ENABLE_PIN 29
//
// Temperature Sensors
// Analog Inputs
//
#define TEMP_0_PIN 1
#define TEMP_1_PIN 2
#define TEMP_BED_PIN 4
#define TEMP_0_PIN 1
#define TEMP_1_PIN 2
#define TEMP_BED_PIN 4
#ifndef TEMP_CHAMBER_PIN
#define TEMP_CHAMBER_PIN 5
#define TEMP_CHAMBER_PIN 5
#endif
//
// Heaters
//
#define HEATER_0_PIN 3
#define HEATER_1_PIN 4
#define HEATER_BED_PIN 32
#define HEATER_CHAMBER_PIN 33
#define HEATER_0_PIN 3
#define HEATER_1_PIN 4
#define HEATER_BED_PIN 32
#define HEATER_CHAMBER_PIN 33
//
// Fans
//
//#define FAN0_PIN 8
#define ORIG_E0_AUTO_FAN_PIN 30
#define ORIG_E1_AUTO_FAN_PIN 30
#define ORIG_E2_AUTO_FAN_PIN 30
#define ORIG_E3_AUTO_FAN_PIN 30
#define ORIG_CHAMBER_AUTO_FAN_PIN 10
//#define FAN0_PIN 8
#define ORIG_E0_AUTO_FAN_PIN 30
#define ORIG_E1_AUTO_FAN_PIN 30
#define ORIG_E2_AUTO_FAN_PIN 30
#define ORIG_E3_AUTO_FAN_PIN 30
#define ORIG_CHAMBER_AUTO_FAN_PIN 10
//
// SD card
//
#define SCK_PIN 76
#define MISO_PIN 74
#define MOSI_PIN 75
#define SDSS 53
#define SD_DETECT_PIN 40
#define SCK_PIN 76
#define MISO_PIN 74
#define MOSI_PIN 75
#define SDSS 53
#define SD_DETECT_PIN 40
// Common I/O
//#define PWM_1_PIN 6 // probe
//#define PWM_2_PIN 13
//#define SPARE_IO 17
#define BEEPER_PIN 13
#define STAT_LED_BLUE_PIN -1
#define STAT_LED_RED_PIN 31
//#define PWM_1_PIN 6 // probe
//#define PWM_2_PIN 13
//#define SPARE_IO 17
#define BEEPER_PIN 13
#define STAT_LED_BLUE_PIN -1
#define STAT_LED_RED_PIN 31
// G425 CALIBRATION_GCODE default pin
#ifndef CALIBRATION_PIN
#define CALIBRATION_PIN 66
#define CALIBRATION_PIN 66
#endif

View File

@@ -34,138 +34,138 @@
//
// Servos
//
#define SERVO0_PIN 5
#define SERVO1_PIN 6
#define SERVO2_PIN 13
#define SERVO3_PIN -1
#define SERVO0_PIN 5
#define SERVO1_PIN 6
#define SERVO2_PIN 13
#define SERVO3_PIN -1
//
// Limit Switches
//
#define X_MIN_PIN 38
#define X_MAX_PIN 36
#define Y_MIN_PIN 34
#define Y_MAX_PIN 32
#define Z_MIN_PIN 30
#define Z_MAX_PIN 28
#define X_MIN_PIN 38
#define X_MAX_PIN 36
#define Y_MIN_PIN 34
#define Y_MAX_PIN 32
#define Z_MIN_PIN 30
#define Z_MAX_PIN 28
//
// Steppers
//
#define X_STEP_PIN 2
#define X_DIR_PIN 3
#define X_ENABLE_PIN 22
#define X_STEP_PIN 2
#define X_DIR_PIN 3
#define X_ENABLE_PIN 22
#define Y_STEP_PIN 17
#define Y_DIR_PIN 16
#define Y_ENABLE_PIN 26
#define Y_STEP_PIN 17
#define Y_DIR_PIN 16
#define Y_ENABLE_PIN 26
#define Z_STEP_PIN 61 // Z1 STP
#define Z_DIR_PIN 60 // Z1 DIR
#define Z_ENABLE_PIN 15 // Z1 ENA
#define Z_STEP_PIN 61 // Z1 STP
#define Z_DIR_PIN 60 // Z1 DIR
#define Z_ENABLE_PIN 15 // Z1 ENA
#define E0_STEP_PIN 64 // Z2 STP
#define E0_DIR_PIN 63 // Z2 DIR
#define E0_ENABLE_PIN 62 // Z2 ENA
#define E0_STEP_PIN 64 // Z2 STP
#define E0_DIR_PIN 63 // Z2 DIR
#define E0_ENABLE_PIN 62 // Z2 ENA
#define E1_STEP_PIN 51 // E1 STP
#define E1_DIR_PIN 53 // E1 DIR
#define E1_ENABLE_PIN 65 // E1 ENA
#define E1_STEP_PIN 51 // E1 STP
#define E1_DIR_PIN 53 // E1 DIR
#define E1_ENABLE_PIN 65 // E1 ENA
#define E2_STEP_PIN 24 // E2 STP
#define E2_DIR_PIN 23 // E2 DIR
#define E2_ENABLE_PIN 49 // E2 ENA
#define E2_STEP_PIN 24 // E2 STP
#define E2_DIR_PIN 23 // E2 DIR
#define E2_ENABLE_PIN 49 // E2 ENA
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
#define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor)
#define TEMP_2_PIN 5 // Analog Input (unused)
#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
#define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor)
#define TEMP_2_PIN 5 // Analog Input (unused)
#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN -1
#define MAX6675_SS_PIN -1
#else
#define MAX6675_SS_PIN -1
#define MAX6675_SS_PIN -1
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 7 // HOTEND0 MOSFET
#define HEATER_1_PIN 8 // HOTEND1 MOSFET
#define HEATER_BED_PIN 39 // BED MOSFET
#define HEATER_0_PIN 7 // HOTEND0 MOSFET
#define HEATER_1_PIN 8 // HOTEND1 MOSFET
#define HEATER_BED_PIN 39 // BED MOSFET
#ifndef FAN_PIN
#define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#endif
#define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN
#define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN
#define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN
#define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN
//
// Misc. Functions
//
#define SDSS 4
#define PS_ON_PIN 40
#define SDSS 4
#define PS_ON_PIN 40
//
// LCD / Controller
//
#if HAS_SPI_LCD
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define SDSS 4
#define SD_DETECT_PIN 14
#define SDSS 4
#define SD_DETECT_PIN 14
#elif ENABLED(RADDS_DISPLAY)
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_BACK 71
#define BTN_BACK 71
#undef SDSS
#define SDSS 4
#define SD_DETECT_PIN 14
#define SDSS 4
#define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#define BEEPER_PIN -1
#define BEEPER_PIN -1
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD

View File

@@ -34,141 +34,141 @@
//
// Servos
//
#define SERVO0_PIN 5
#define SERVO1_PIN 6
#define SERVO2_PIN 8 // 4-pin header FAN0
#define SERVO3_PIN -1
#define SERVO0_PIN 5
#define SERVO1_PIN 6
#define SERVO2_PIN 8 // 4-pin header FAN0
#define SERVO3_PIN -1
//
// Limit Switches
//
#define X_MIN_PIN 38
#define X_MAX_PIN -1
#define Y_MIN_PIN 34
#define Y_MAX_PIN -1
#define Z_MIN_PIN 30
#define Z_MAX_PIN -1
#define X_MIN_PIN 38
#define X_MAX_PIN -1
#define Y_MIN_PIN 34
#define Y_MAX_PIN -1
#define Z_MIN_PIN 30
#define Z_MAX_PIN -1
//
// Steppers
//
#define X_STEP_PIN 17
#define X_DIR_PIN 16
#define X_ENABLE_PIN 22
#define X_STEP_PIN 17
#define X_DIR_PIN 16
#define X_ENABLE_PIN 22
#define Y_STEP_PIN 2
#define Y_DIR_PIN 3
#define Y_ENABLE_PIN 26
#define Y_STEP_PIN 2
#define Y_DIR_PIN 3
#define Y_ENABLE_PIN 26
#define Z_STEP_PIN 64
#define Z_DIR_PIN 63
#define Z_ENABLE_PIN 15
#define Z_STEP_PIN 64
#define Z_DIR_PIN 63
#define Z_ENABLE_PIN 15
#define E0_STEP_PIN 61
#define E0_DIR_PIN 60
#define E0_ENABLE_PIN 62
#define E0_STEP_PIN 61
#define E0_DIR_PIN 60
#define E0_ENABLE_PIN 62
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
#define TEMP_1_PIN 2 // Analog Input (unused)
#define TEMP_2_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
#define TEMP_1_PIN 2 // Analog Input (unused)
#define TEMP_2_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#else
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 13 // HOTEND0 MOSFET
#define HEATER_BED_PIN 7 // BED MOSFET
#define HEATER_0_PIN 13 // HOTEND0 MOSFET
#define HEATER_BED_PIN 7 // BED MOSFET
#ifndef FAN_PIN
#define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#endif
#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN
#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN
//#define FAN3_PIN 8 // FAN0 4-pin header on board
#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN
#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN
//#define FAN3_PIN 8 // FAN0 4-pin header on board
//
// Misc. Functions
//
#define SDSS 4
#define PS_ON_PIN 40
#define SDSS 4
#define PS_ON_PIN 40
//
// LCD / Controller
//
#if HAS_SPI_LCD
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define SDSS 4
#define SD_DETECT_PIN 14
#define SDSS 4
#define SD_DETECT_PIN 14
#elif ENABLED(RADDS_DISPLAY)
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_BACK 71
#define BTN_BACK 71
#undef SDSS
#define SDSS 4
#define SD_DETECT_PIN 14
#define SDSS 4
#define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#define BEEPER_PIN -1
#define BEEPER_PIN -1
#elif ENABLED(MINIPANEL)
#define BTN_EN1 52
#define BTN_EN2 50
#define BTN_ENC 48
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#define BEEPER_PIN 41
#define DOGLCD_A0 46
#define DOGLCD_CS 45
#define BTN_EN1 52
#define BTN_EN2 50
#define BTN_ENC 48
#define LCD_SDSS 4
#define SD_DETECT_PIN 14
#define BEEPER_PIN 41
#define DOGLCD_A0 46
#define DOGLCD_CS 45
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD

View File

@@ -36,38 +36,38 @@
//
// Servos
//
//#define SERVO0_PIN -1
//#define SERVO1_PIN -1
//#define SERVO0_PIN -1
//#define SERVO1_PIN -1
//
// Limit Switches
//
#define X_MIN_PIN 22 // PB26
#define Y_MAX_PIN 18 // PA11
#define Z_MIN_PIN 19 // PA10
#define X_MIN_PIN 22 // PB26
#define Y_MAX_PIN 18 // PA11
#define Z_MIN_PIN 19 // PA10
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 22
#define Z_MIN_PROBE_PIN 22
#endif
#ifndef FIL_RUNOUT_PIN
//#define FIL_RUNOUT_PIN 57 // PA22
//#define FIL_RUNOUT_PIN 57 // PA22
#endif
#ifndef FIL_RUNOUT2_PIN
//#define FIL_RUNOUT2_PIN 21 // PB13
//#define FIL_RUNOUT2_PIN 21 // PB13
#endif
//
// LED defines
//
//#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
//#define NEOPIXEL_PIN 20 // LED driving pin on motherboard
//#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip
//#define SDA0 20 // PB12 NeoPixel pin I2C data
//#define SCL0 21 // PB13 I2C clock
//#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
//#define NEOPIXEL_PIN 20 // LED driving pin on motherboard
//#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip
//#define SDA0 20 // PB12 NeoPixel pin I2C data
//#define SCL0 21 // PB13 I2C clock
// D0_12 #REF! (INDICATOR_LED)
// B28 JTAG-CLK
@@ -79,82 +79,82 @@
//A15 UART_CTS
//PB2 Unassigned
//PB4 to PB9 Unassigned
//#define UART_RX_PIN 0 // PA8 "RX0"
//#define UART_TX_PIN 1 // PA9 "TX0"
//#define UART_RTS_PIN 23 // PA14
//#define UART_CTS_PIN 24 // PA15
//#define UART_RX_PIN 0 // PA8 "RX0"
//#define UART_TX_PIN 1 // PA9 "TX0"
//#define UART_RTS_PIN 23 // PA14
//#define UART_CTS_PIN 24 // PA15
//
// Steppers
//
#define Z_STEP_PIN 73 // PA21 MOTOR 1
#define Z_DIR_PIN 75 // PA26
#define Z_ENABLE_PIN 74 // PA25
#define Z_STEP_PIN 73 // PA21 MOTOR 1
#define Z_DIR_PIN 75 // PA26
#define Z_ENABLE_PIN 74 // PA25
#define X_STEP_PIN 66 // PB15 MOTOR 2
#define X_DIR_PIN 54 // PA16
#define X_ENABLE_PIN 67 // PB16
#define X_STEP_PIN 66 // PB15 MOTOR 2
#define X_DIR_PIN 54 // PA16
#define X_ENABLE_PIN 67 // PB16
#define Y_STEP_PIN 34 // PA29 MOTOR 3
#define Y_DIR_PIN 35 // PB1
#define Y_ENABLE_PIN 36 // PB0
#define Y_STEP_PIN 34 // PA29 MOTOR 3
#define Y_DIR_PIN 35 // PB1
#define Y_ENABLE_PIN 36 // PB0
#define E0_STEP_PIN 53 // PB14 MOTOR 4
#define E0_DIR_PIN 78 // PB23
#define E0_ENABLE_PIN 37 // PB22
#define E0_STEP_PIN 53 // PB14 MOTOR 4
#define E0_DIR_PIN 78 // PB23
#define E0_ENABLE_PIN 37 // PB22
// Microstepping mode pins
#define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1
#define Z_MS2_PIN 52 // PB21 MODE1
#define Z_MS3_PIN 65 // PB20 MODE2
#define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1
#define Z_MS2_PIN 52 // PB21 MODE1
#define Z_MS3_PIN 65 // PB20 MODE2
#define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2
#define X_MS2_PIN 43 // PA20 MODE1
#define X_MS3_PIN 42 // PA19 MODE2
#define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2
#define X_MS2_PIN 43 // PA20 MODE1
#define X_MS3_PIN 42 // PA19 MODE2
#define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3
#define Y_MS2_PIN 77 // PA28 MODE1
#define Y_MS3_PIN 76 // PA27 MODE2
#define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3
#define Y_MS2_PIN 77 // PA28 MODE1
#define Y_MS3_PIN 76 // PA27 MODE2
#define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4
#define E0_MS2_PIN 38 // PB11 MODE1
#define E0_MS3_PIN 39 // PB10 MODE2
#define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4
#define E0_MS2_PIN 38 // PB11 MODE1
#define E0_MS3_PIN 39 // PB10 MODE2
// Motor current PWM pins
#define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1
#define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2
#define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3
#define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4
#define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1
#define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2
#define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3
#define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4
#define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000} // XY Z E0, 1000 = 1000mAh
//
// Temperature Sensors
//
#define TEMP_0_PIN 2 // digital 56 PA23
#define TEMP_BED_PIN 5 // digital 59 PA4
#define TEMP_0_PIN 2 // digital 56 PA23
#define TEMP_BED_PIN 5 // digital 59 PA4
//
// Heaters / Fans
//
#define HEATER_0_PIN 40 // PA5
#define HEATER_BED_PIN 41 // PB24
#define HEATER_0_PIN 40 // PA5
#define HEATER_BED_PIN 41 // PB24
#ifndef FAN_PIN
#define FAN_PIN 13 // PB27 Fan1A
#define FAN_PIN 13 // PB27 Fan1A
#endif
#define FAN1_PIN 58 // PA6 Fan1B
#define FAN1_PIN 58 // PA6 Fan1B
#define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
#define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
#define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
#define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
/////////////////////////////////////////////////////////
#define MISO_PIN 68 // set to unused pins for now
#define MOSI_PIN 69 // set to unused pins for now
#define SCK_PIN 70 // set to unused pins for now
#define SDSS 71 // set to unused pins for now
#define MISO_PIN 68 // set to unused pins for now
#define MOSI_PIN 69 // set to unused pins for now
#define SCK_PIN 70 // set to unused pins for now
#define SDSS 71 // set to unused pins for now
/**
* G2 uses 8 pins that are not available in the DUE environment:

View File

@@ -35,187 +35,187 @@
// Servos
//
#if !HAS_CUTTER
#define SERVO0_PIN 5
#define SERVO0_PIN 5
#endif
#define SERVO1_PIN 6
#define SERVO2_PIN 39
#define SERVO3_PIN 40
#define SERVO1_PIN 6
#define SERVO2_PIN 39
#define SERVO3_PIN 40
//
// Limit Switches
//
#define X_MIN_PIN 28
#define X_MAX_PIN 34
#define Y_MIN_PIN 30
#define Y_MAX_PIN 36
#define Z_MIN_PIN 32
#define Z_MAX_PIN 38
#define X_MIN_PIN 28
#define X_MAX_PIN 34
#define Y_MIN_PIN 30
#define Y_MAX_PIN 36
#define Z_MIN_PIN 32
#define Z_MAX_PIN 38
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 38
#define Z_MIN_PROBE_PIN 38
#endif
//
// Steppers
//
#define X_STEP_PIN 24
#define X_DIR_PIN 23
#define X_ENABLE_PIN 26
#define X_STEP_PIN 24
#define X_DIR_PIN 23
#define X_ENABLE_PIN 26
#ifndef X_CS_PIN
#define X_CS_PIN 25
#define X_CS_PIN 25
#endif
#define Y_STEP_PIN 17
#define Y_DIR_PIN 16
#define Y_ENABLE_PIN 22
#define Y_STEP_PIN 17
#define Y_DIR_PIN 16
#define Y_ENABLE_PIN 22
#ifndef Y_CS_PIN
#define Y_CS_PIN 27
#define Y_CS_PIN 27
#endif
#define Z_STEP_PIN 2
#define Z_DIR_PIN 3
#define Z_ENABLE_PIN 15
#define Z_STEP_PIN 2
#define Z_DIR_PIN 3
#define Z_ENABLE_PIN 15
#ifndef Z_CS_PIN
#define Z_CS_PIN 29
#define Z_CS_PIN 29
#endif
#define E0_STEP_PIN 61
#define E0_DIR_PIN 60
#define E0_ENABLE_PIN 62
#define E0_STEP_PIN 61
#define E0_DIR_PIN 60
#define E0_ENABLE_PIN 62
#ifndef E0_CS_PIN
#define E0_CS_PIN 31
#define E0_CS_PIN 31
#endif
#define E1_STEP_PIN 64
#define E1_DIR_PIN 63
#define E1_ENABLE_PIN 65
#define E1_STEP_PIN 64
#define E1_DIR_PIN 63
#define E1_ENABLE_PIN 65
#ifndef E1_CS_PIN
#define E1_CS_PIN 33
#define E1_CS_PIN 33
#endif
#define E2_STEP_PIN 51
#define E2_DIR_PIN 53
#define E2_ENABLE_PIN 49
#define E2_STEP_PIN 51
#define E2_DIR_PIN 53
#define E2_ENABLE_PIN 49
#ifndef E2_CS_PIN
#define E2_CS_PIN 35
#define E2_CS_PIN 35
#endif
/**
* RADDS Extension Board V2 / V3
* http://doku.radds.org/dokumentation/extension-board
*/
//#define RADDS_EXTENSION 2
//#define RADDS_EXTENSION 2
#if RADDS_EXTENSION >= 2
#define E3_DIR_PIN 33
#define E3_STEP_PIN 35
#define E3_ENABLE_PIN 37
#define E3_DIR_PIN 33
#define E3_STEP_PIN 35
#define E3_ENABLE_PIN 37
#ifndef E3_CS_PIN
#define E3_CS_PIN 6
#define E3_CS_PIN 6
#endif
#if RADDS_EXTENSION == 3
#define E4_DIR_PIN 27
#define E4_STEP_PIN 29
#define E4_ENABLE_PIN 31
#define E4_DIR_PIN 27
#define E4_STEP_PIN 29
#define E4_ENABLE_PIN 31
#ifndef E4_CS_PIN
#define E4_CS_PIN 39
#define E4_CS_PIN 39
#endif
#define E5_DIR_PIN 66
#define E5_STEP_PIN 67
#define E5_ENABLE_PIN 68
#define E5_DIR_PIN 66
#define E5_STEP_PIN 67
#define E5_ENABLE_PIN 68
#ifndef E5_CS_PIN
#define E5_CS_PIN 6
#define E5_CS_PIN 6
#endif
#define RADDS_EXT_MSI_PIN 69
#define RADDS_EXT_MSI_PIN 69
#define BOARD_INIT() OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH)
#else
#define E4_DIR_PIN 27
#define E4_STEP_PIN 29
#define E4_ENABLE_PIN 31
#define E4_DIR_PIN 27
#define E4_STEP_PIN 29
#define E4_ENABLE_PIN 31
#ifndef E4_CS_PIN
#define E4_CS_PIN 39
#define E4_CS_PIN 39
#endif
// E3 and E4 share the same MSx pins
#define E3_MS1_PIN 67
#define E4_MS1_PIN 67
#define E3_MS2_PIN 68
#define E4_MS2_PIN 68
#define E3_MS3_PIN 69
#define E4_MS3_PIN 69
#define E3_MS1_PIN 67
#define E4_MS1_PIN 67
#define E3_MS2_PIN 68
#define E4_MS2_PIN 68
#define E3_MS3_PIN 69
#define E4_MS3_PIN 69
#define RADDS_EXT_VDD2_PIN 66
#define RADDS_EXT_VDD2_PIN 66
#define BOARD_INIT() do{ OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH); OUT_WRITE(RADDS_EXT_VDD2_PIN, HIGH); }while(0)
#endif
#define RADDS_EXT_VDD_PIN 25
#define RADDS_EXT_VDD_PIN 25
#endif
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // Analog Input
#define TEMP_1_PIN 1 // Analog Input
#define TEMP_2_PIN 2 // Analog Input
#define TEMP_3_PIN 3 // Analog Input
#define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
#define TEMP_BED_PIN 4 // Analog Input
#define TEMP_0_PIN 0 // Analog Input
#define TEMP_1_PIN 1 // Analog Input
#define TEMP_2_PIN 2 // Analog Input
#define TEMP_3_PIN 3 // Analog Input
#define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
#define TEMP_BED_PIN 4 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#else
#define MAX6675_SS_PIN 49
#define MAX6675_SS_PIN 49
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#if !HAS_CUTTER
#define HEATER_BED_PIN 7 // BED
#define HEATER_BED_PIN 7 // BED
#endif
#ifndef FAN_PIN
#define FAN_PIN 9
#define FAN_PIN 9
#endif
#define FAN1_PIN 8
#define FAN1_PIN 8
//
// Misc. Functions
//
#define SD_DETECT_PIN 14
#define PS_ON_PIN 40 // SERVO3_PIN
#define SD_DETECT_PIN 14
#define PS_ON_PIN 40 // SERVO3_PIN
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN 39 // SERVO2_PIN
#define FIL_RUNOUT_PIN 39 // SERVO2_PIN
#endif
#define I2C_EEPROM
#define E2END 0x1FFF // 8KB
#define E2END 0x1FFF // 8KB
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
#if !NUM_SERVOS
#define SPINDLE_LASER_PWM_PIN 5 // SERVO0_PIN
#define SPINDLE_LASER_PWM_PIN 5 // SERVO0_PIN
#endif
#define SPINDLE_LASER_ENA_PIN 7 // HEATER_BED_PIN - Pullup/down!
#define SPINDLE_LASER_ENA_PIN 7 // HEATER_BED_PIN - Pullup/down!
#endif
//
@@ -225,65 +225,65 @@
#if ENABLED(RADDS_DISPLAY)
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_D5 45
#define LCD_PINS_D6 46
#define LCD_PINS_D7 47
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_BACK 71
#define BTN_BACK 71
#define SDSS 10
#define SD_DETECT_PIN 14
#define SDSS 10
#define SD_DETECT_PIN 14
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
// The REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER requires
// an adapter such as https://www.thingiverse.com/thing:1740725
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define LCD_PINS_RS 42
#define LCD_PINS_ENABLE 43
#define LCD_PINS_D4 44
#define BEEPER_PIN 41
#define BEEPER_PIN 41
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define SDSS 10
#define SD_DETECT_PIN 14
#define SDSS 10
#define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 10
#define SD_DETECT_PIN 14
#define BTN_EN1 50
#define BTN_EN2 52
#define BTN_ENC 48
#define BEEPER_PIN 41
#define LCD_SDSS 10
#define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define LCD_PINS_D4 29
#define LCD_PINS_ENABLE 27
#define LCD_PINS_RS 25
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#define BTN_EN1 35
#define BTN_EN2 33
#define BTN_ENC 37
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD
#ifndef SDSS
#define SDSS 4
#define SDSS 4
#endif

View File

@@ -56,20 +56,20 @@
// Temperature Sensors
//
#undef TEMP_0_PIN
#define TEMP_0_PIN 9 // Analog Input
#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
#define TEMP_1_PIN 11 // Analog Input
#define TEMP_1_PIN 11 // Analog Input
#undef TEMP_BED_PIN
#define TEMP_BED_PIN 10 // Analog Input
#define TEMP_BED_PIN 10 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
#define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
#else
#define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
#define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -79,13 +79,13 @@
#if BOTH(NEWPANEL, PANEL_ONE)
#undef LCD_PINS_D4
#define LCD_PINS_D4 68
#define LCD_PINS_D4 68
#undef LCD_PINS_D5
#define LCD_PINS_D5 69
#define LCD_PINS_D5 69
#undef LCD_PINS_D7
#define LCD_PINS_D7 67
#define LCD_PINS_D7 67
#endif
#if ENABLED(NEWPANEL)
@@ -93,36 +93,36 @@
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#undef BTN_EN1
#define BTN_EN1 67
#define BTN_EN1 67
#undef BTN_ENC
#define BTN_ENC 66
#define BTN_ENC 66
#elif ENABLED(MINIPANEL)
#undef DOGLCD_CS
#define DOGLCD_CS 69
#define DOGLCD_CS 69
#undef LCD_BACKLIGHT_PIN
#define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
#define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
#undef KILL_PIN
#define KILL_PIN 67
#define KILL_PIN 67
#undef BTN_EN2
#define BTN_EN2 66
#define BTN_EN2 66
#else
#if ENABLED(REPRAPWORLD_KEYPAD)
#undef BTN_EN1
#define BTN_EN1 67 // encoder
#define BTN_EN1 67 // encoder
#undef BTN_ENC
#define BTN_ENC 66 // enter button
#define BTN_ENC 66 // enter button
#elif ENABLED(PANEL_ONE)
#undef BTN_EN2
#define BTN_EN2 66 // AUX2 PIN 4
#define BTN_EN2 66 // AUX2 PIN 4
#endif
#endif

View File

@@ -43,98 +43,98 @@
//
// Servos
//
#define SERVO0_PIN 7
#define SERVO1_PIN 6
#define SERVO2_PIN 5
#define SERVO3_PIN 3
#define SERVO0_PIN 7
#define SERVO1_PIN 6
#define SERVO2_PIN 5
#define SERVO3_PIN 3
//
// Limit Switches
//
#define X_MIN_PIN 22
#define X_MAX_PIN 30
#define Y_MIN_PIN 24
#define Y_MAX_PIN 38
#define Z_MIN_PIN 26
#define Z_MAX_PIN 34
#define X_MIN_PIN 22
#define X_MAX_PIN 30
#define Y_MIN_PIN 24
#define Y_MAX_PIN 38
#define Z_MIN_PIN 26
#define Z_MAX_PIN 34
//
// Steppers
//
#define X_STEP_PIN 63
#define X_DIR_PIN 62
#define X_ENABLE_PIN 48
#define X_STEP_PIN 63
#define X_DIR_PIN 62
#define X_ENABLE_PIN 48
#ifndef X_CS_PIN
#define X_CS_PIN 68
#define X_CS_PIN 68
#endif
#define Y_STEP_PIN 65
#define Y_DIR_PIN 64
#define Y_ENABLE_PIN 46
#define Y_STEP_PIN 65
#define Y_DIR_PIN 64
#define Y_ENABLE_PIN 46
#ifndef Y_CS_PIN
#define Y_CS_PIN 60
#define Y_CS_PIN 60
#endif
#define Z_STEP_PIN 67
#define Z_DIR_PIN 66
#define Z_ENABLE_PIN 44
#define Z_STEP_PIN 67
#define Z_DIR_PIN 66
#define Z_ENABLE_PIN 44
#ifndef Z_CS_PIN
#define Z_CS_PIN 58
#define Z_CS_PIN 58
#endif
#define E0_STEP_PIN 36
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 42
#define E0_STEP_PIN 36
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 42
#ifndef E0_CS_PIN
#define E0_CS_PIN 67
#define E0_CS_PIN 67
#endif
#define E1_STEP_PIN 43
#define E1_DIR_PIN 41
#define E1_ENABLE_PIN 39
#define E1_STEP_PIN 43
#define E1_DIR_PIN 41
#define E1_ENABLE_PIN 39
#ifndef E1_CS_PIN
#define E1_CS_PIN 61
#define E1_CS_PIN 61
#endif
#define E2_STEP_PIN 32
#define E2_DIR_PIN 47
#define E2_ENABLE_PIN 45
#define E2_STEP_PIN 32
#define E2_DIR_PIN 47
#define E2_ENABLE_PIN 45
#ifndef E2_CS_PIN
#define E2_CS_PIN 59
#define E2_CS_PIN 59
#endif
//
// Temperature Sensors
//
#define TEMP_0_PIN 1 // Analog Input
#define TEMP_1_PIN 2 // Analog Input
#define TEMP_2_PIN 3 // Analog Input
#define TEMP_BED_PIN 0 // Analog Input
#define TEMP_0_PIN 1 // Analog Input
#define TEMP_1_PIN 2 // Analog Input
#define TEMP_2_PIN 3 // Analog Input
#define TEMP_BED_PIN 0 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#else
#define MAX6675_SS_PIN 49
#define MAX6675_SS_PIN 49
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 9
#define HEATER_1_PIN 10
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 8
#define HEATER_0_PIN 9
#define HEATER_1_PIN 10
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 8
#ifndef FAN_PIN
#define FAN_PIN 12
#define FAN_PIN 12
#endif
//
// Misc. Functions
//
#define SDSS 4
#define LED_PIN 13
#define SDSS 4
#define LED_PIN 13
//
// LCD / Controller
@@ -142,65 +142,65 @@
#if HAS_SPI_LCD
// ramps-fd lcd adaptor
#define BEEPER_PIN 37
#define BTN_EN1 33
#define BTN_EN2 31
#define BTN_ENC 35
#define SD_DETECT_PIN 49
#define BEEPER_PIN 37
#define BTN_EN1 33
#define BTN_EN2 31
#define BTN_ENC 35
#define SD_DETECT_PIN 49
#if ENABLED(NEWPANEL)
#define LCD_PINS_RS 16
#define LCD_PINS_ENABLE 17
#define LCD_PINS_RS 16
#define LCD_PINS_ENABLE 17
#endif
#if ENABLED(FYSETC_MINI_12864)
#define DOGLCD_CS LCD_PINS_ENABLE
#define DOGLCD_A0 LCD_PINS_RS
#define DOGLCD_SCK 76
#define DOGLCD_MOSI 75
#define DOGLCD_CS LCD_PINS_ENABLE
#define DOGLCD_A0 LCD_PINS_RS
#define DOGLCD_SCK 76
#define DOGLCD_MOSI 75
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
#define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
#define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
#define RGB_LED_R_PIN 25
#define RGB_LED_R_PIN 25
#endif
#ifndef RGB_LED_G_PIN
#define RGB_LED_G_PIN 27
#define RGB_LED_G_PIN 27
#endif
#ifndef RGB_LED_B_PIN
#define RGB_LED_B_PIN 29
#define RGB_LED_B_PIN 29
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN 25
#define NEOPIXEL_PIN 25
#endif
#elif ENABLED(NEWPANEL)
#define LCD_PINS_D4 23
#define LCD_PINS_D5 25
#define LCD_PINS_D6 27
#define LCD_PINS_D7 29
#define LCD_PINS_D4 23
#define LCD_PINS_D5 25
#define LCD_PINS_D6 27
#define LCD_PINS_D7 29
#if ENABLED(MINIPANEL)
#define DOGLCD_CS 25
#define DOGLCD_A0 27
#define DOGLCD_CS 25
#define DOGLCD_A0 27
#endif
#endif
#if ANY(VIKI2, miniVIKI)
#define DOGLCD_A0 16
#define KILL_PIN 51
#define STAT_LED_BLUE_PIN 29
#define STAT_LED_RED_PIN 23
#define DOGLCD_CS 17
#define DOGLCD_SCK 76 // SCK_PIN - Required for DUE Hardware SPI
#define DOGLCD_MOSI 75 // MOSI_PIN
#define DOGLCD_MISO 74 // MISO_PIN
#define DOGLCD_A0 16
#define KILL_PIN 51
#define STAT_LED_BLUE_PIN 29
#define STAT_LED_RED_PIN 23
#define DOGLCD_CS 17
#define DOGLCD_SCK 76 // SCK_PIN - Required for DUE Hardware SPI
#define DOGLCD_MOSI 75 // MOSI_PIN
#define DOGLCD_MISO 74 // MISO_PIN
#endif
#endif // HAS_SPI_LCD
@@ -229,7 +229,7 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HOTENDS < 3 && HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
#define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA
#define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM
#define SPINDLE_DIR_PIN 47 // Use E2 DIR
#define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA
#define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM
#define SPINDLE_DIR_PIN 47 // Use E2 DIR
#endif

View File

@@ -73,26 +73,26 @@
#define I2C_EEPROM
#define E2END 0xFFF
#define RESET_PIN 42 // Resets the board if the jumper is attached
#define RESET_PIN 42 // Resets the board if the jumper is attached
//
// Temperature Sensors
//
#undef TEMP_0_PIN
#define TEMP_0_PIN 9 // Analog Input
#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
#define TEMP_1_PIN 10 // Analog Input
#define TEMP_1_PIN 10 // Analog Input
#undef TEMP_BED_PIN
#define TEMP_BED_PIN 11 // Analog Input
#define TEMP_BED_PIN 11 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 67 // Don't use 53 if using Display/SD card
#define MAX6675_SS_PIN 67 // Don't use 53 if using Display/SD card
#else
#define MAX6675_SS_PIN 67 // Don't use 49 (SD_DETECT_PIN)
#define MAX6675_SS_PIN 67 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -100,12 +100,12 @@
//
// Support for AZSMZ 12864 LCD with SD Card 3D printer smart controller control panel
#if ENABLED(AZSMZ_12864)
#define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
#define DOGLCD_A0 59
#define DOGLCD_CS 44
#define BTN_EN1 58
#define BTN_EN2 40
#define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
#define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
#define KILL_PIN 42
#define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
#define DOGLCD_A0 59
#define DOGLCD_CS 44
#define BTN_EN1 58
#define BTN_EN2 40
#define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
#define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
#define KILL_PIN 42
#endif

View File

@@ -41,76 +41,76 @@
//
// Servos
//
#define SERVO0_PIN 5
#define SERVO1_PIN 3
#define SERVO0_PIN 5
#define SERVO1_PIN 3
//
// Limit Switches
//
#define X_MIN_PIN 45
#define X_MAX_PIN 39
#define Y_MIN_PIN 46
#define Y_MAX_PIN 41
#define Z_MIN_PIN 47
#define Z_MAX_PIN 43
#define X_MIN_PIN 45
#define X_MAX_PIN 39
#define Y_MIN_PIN 46
#define Y_MAX_PIN 41
#define Z_MIN_PIN 47
#define Z_MAX_PIN 43
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 43
#define Z_MIN_PROBE_PIN 43
#endif
//
// Steppers
//
#define X_STEP_PIN 37 // Support Extension Board
#define X_DIR_PIN 36
#define X_ENABLE_PIN 38
#define X_STEP_PIN 37 // Support Extension Board
#define X_DIR_PIN 36
#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
#define X_CS_PIN -1
#define X_CS_PIN -1
#endif
#define Y_STEP_PIN 32 // Support Extension Board
#define Y_DIR_PIN 35
#define Y_ENABLE_PIN 34
#define Y_STEP_PIN 32 // Support Extension Board
#define Y_DIR_PIN 35
#define Y_ENABLE_PIN 34
#ifndef Y_CS_PIN
#define Y_CS_PIN -1
#define Y_CS_PIN -1
#endif
#define Z_STEP_PIN 30 // Support Extension Board
#define Z_DIR_PIN 2
#define Z_ENABLE_PIN 33
#define Z_STEP_PIN 30 // Support Extension Board
#define Z_DIR_PIN 2
#define Z_ENABLE_PIN 33
#ifndef Z_CS_PIN
#define Z_CS_PIN -1
#define Z_CS_PIN -1
#endif
#define E0_STEP_PIN 29
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 31
#define E0_STEP_PIN 29
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 31
#ifndef E0_CS_PIN
#define E0_CS_PIN -1
#define E0_CS_PIN -1
#endif
#define E1_STEP_PIN 22
#define E1_DIR_PIN 24
#define E1_ENABLE_PIN 26
#define E1_STEP_PIN 22
#define E1_DIR_PIN 24
#define E1_ENABLE_PIN 26
#ifndef E1_CS_PIN
#define E1_CS_PIN -1
#define E1_CS_PIN -1
#endif
#define E2_STEP_PIN 25
#define E2_DIR_PIN 23
#define E2_ENABLE_PIN 27
#define E2_STEP_PIN 25
#define E2_DIR_PIN 23
#define E2_ENABLE_PIN 27
#ifndef E2_CS_PIN
#define E2_CS_PIN -1
#define E2_CS_PIN -1
#endif
#define E3_STEP_PIN 15 // Only For Extension Board
#define E3_DIR_PIN 14
#define E3_ENABLE_PIN 61
#define E3_STEP_PIN 15 // Only For Extension Board
#define E3_DIR_PIN 14
#define E3_ENABLE_PIN 61
#ifndef E3_CS_PIN
#define E3_CS_PIN -1
#define E3_CS_PIN -1
#endif
// For Future: Microstepping pins - Mapping not from fastio.h (?)
@@ -119,77 +119,77 @@
//#define E3_MS3_PIN ?
#if HAS_CUSTOM_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#define Z_MIN_PROBE_PIN 49
#endif
#if HAS_FILAMENT_SENSOR
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN Y_MIN_PIN
#define FIL_RUNOUT_PIN Y_MIN_PIN
#endif
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 7 // BED H1
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 7 // BED H1
#ifndef FAN_PIN
#define FAN_PIN 9
#define FAN_PIN 9
#endif
#define FAN1_PIN 8
#define CONTROLLER_FAN_PIN -1
#define FAN1_PIN 8
#define CONTROLLER_FAN_PIN -1
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // ANALOG A0
#define TEMP_1_PIN 1 // ANALOG A1
#define TEMP_2_PIN 2 // ANALOG A2
#define TEMP_3_PIN 3 // ANALOG A3
#define TEMP_BED_PIN 4 // ANALOG A4
#define TEMP_0_PIN 0 // ANALOG A0
#define TEMP_1_PIN 1 // ANALOG A1
#define TEMP_2_PIN 2 // ANALOG A2
#define TEMP_3_PIN 3 // ANALOG A3
#define TEMP_BED_PIN 4 // ANALOG A4
// The thermocouple uses Analog pins
#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
#define TEMP_4_PIN 5 // A5
#define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
#define TEMP_4_PIN 5 // A5
#define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#endif
// SPI for Max6675 or Max31855 Thermocouple
/*
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#else
#define MAX6675_SS_PIN 49
#define MAX6675_SS_PIN 49
#endif
*/
//
// Misc. Functions
//
#define SDSS 4 // 4,10,52 if using HW SPI.
#define LED_PIN -1 // 13 - HEATER_0_PIN
#define PS_ON_PIN -1 // 65
#define SDSS 4 // 4,10,52 if using HW SPI.
#define LED_PIN -1 // 13 - HEATER_0_PIN
#define PS_ON_PIN -1 // 65
// MKS TFT / Nextion Use internal USART-1
#define TFT_LCD_MODULE_COM 1
#define TFT_LCD_MODULE_BAUDRATE 115600
#define TFT_LCD_MODULE_COM 1
#define TFT_LCD_MODULE_BAUDRATE 115600
// ESP WiFi Use internal USART-2
#define ESP_WIFI_MODULE_COM 2
#define ESP_WIFI_MODULE_BAUDRATE 115600
#define ESP_WIFI_MODULE_RESET_PIN -1
#define PIGGY_GPIO_PIN -1
#define ESP_WIFI_MODULE_COM 2
#define ESP_WIFI_MODULE_BAUDRATE 115600
#define ESP_WIFI_MODULE_RESET_PIN -1
#define PIGGY_GPIO_PIN -1
//
// EEPROM
//
#define E2END 0x7FFF // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
#define E2END 0x7FFF // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
//#define SPI_CHAN_EEPROM1 ?
//#define SPI_EEPROM1_CS ?
// 2K EEPROM
@@ -203,72 +203,72 @@
#if HAS_SPI_LCD
#if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BEEPER_PIN 62
#define LCD_PINS_D4 48
#define LCD_PINS_D5 50
#define LCD_PINS_D6 52
#define LCD_PINS_D7 53
#define SD_DETECT_PIN 51
#define BEEPER_PIN 62
#define LCD_PINS_D4 48
#define LCD_PINS_D5 50
#define LCD_PINS_D6 52
#define LCD_PINS_D7 53
#define SD_DETECT_PIN 51
#endif
#if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
#define LCD_PINS_RS 63
#define LCD_PINS_ENABLE 64
#define LCD_PINS_RS 63
#define LCD_PINS_ENABLE 64
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define LCD_PINS_RS 52
#define LCD_PINS_ENABLE 53
#define LCD_PINS_RS 52
#define LCD_PINS_ENABLE 53
#elif HAS_SSD1306_OLED_I2C
#define BEEPER_PIN 62
#define LCD_SDSS 10
#define SD_DETECT_PIN 51
#define BEEPER_PIN 62
#define LCD_SDSS 10
#define SD_DETECT_PIN 51
#elif ENABLED(FYSETC_MINI_12864)
#define BEEPER_PIN 62
#define DOGLCD_CS 64
#define DOGLCD_A0 63
#define BEEPER_PIN 62
#define DOGLCD_CS 64
#define DOGLCD_A0 63
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
#define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
#define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
#define RGB_LED_R_PIN 50 // D5
#define RGB_LED_R_PIN 50 // D5
#endif
#ifndef RGB_LED_G_PIN
#define RGB_LED_G_PIN 52 // D6
#define RGB_LED_G_PIN 52 // D6
#endif
#ifndef RGB_LED_B_PIN
#define RGB_LED_B_PIN 53 // D7
#define RGB_LED_B_PIN 53 // D7
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN 50 // D5
#define NEOPIXEL_PIN 50 // D5
#endif
#elif ENABLED(SPARK_FULL_GRAPHICS)
//http://doku.radds.org/dokumentation/other-electronics/sparklcd/
#error "Oops! SPARK_FULL_GRAPHICS not supported with RURAMPS4D."
//#define LCD_PINS_D4 29 //?
//#define LCD_PINS_ENABLE 27 //?
//#define LCD_PINS_RS 25 //?
//#define BTN_EN1 35 //?
//#define BTN_EN2 33 //?
//#define BTN_ENC 37 //?
//#define LCD_PINS_D4 29 //?
//#define LCD_PINS_ENABLE 27 //?
//#define LCD_PINS_RS 25 //?
//#define BTN_EN1 35 //?
//#define BTN_EN2 33 //?
//#define BTN_ENC 37 //?
#endif // SPARK_FULL_GRAPHICS
#if ENABLED(NEWPANEL)
#define BTN_EN1 44
#define BTN_EN2 42
#define BTN_ENC 40
#define BTN_EN1 44
#define BTN_EN2 42
#define BTN_ENC 40
#endif
#endif // HAS_SPI_LCD

View File

@@ -41,141 +41,141 @@
//
// Servos
//
#define SERVO0_PIN 5
#define SERVO1_PIN 3
#define SERVO0_PIN 5
#define SERVO1_PIN 3
//
// Limit Switches
//
#define X_MIN_PIN 45
#define X_MAX_PIN 39
#define Y_MIN_PIN 46
#define Y_MAX_PIN 41
#define Z_MIN_PIN 47
#define Z_MAX_PIN 43
#define X_MIN_PIN 45
#define X_MAX_PIN 39
#define Y_MIN_PIN 46
#define Y_MAX_PIN 41
#define Z_MIN_PIN 47
#define Z_MAX_PIN 43
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
#define X_STEP_PIN 37 // Support Extension Board
#define X_DIR_PIN 36
#define X_ENABLE_PIN 31
#define X_STEP_PIN 37 // Support Extension Board
#define X_DIR_PIN 36
#define X_ENABLE_PIN 31
#ifndef X_CS_PIN
#define X_CS_PIN 38
#define X_CS_PIN 38
#endif
#define Y_STEP_PIN 32 // Support Extension Board
#define Y_DIR_PIN 35
#define Y_ENABLE_PIN 31
#define Y_STEP_PIN 32 // Support Extension Board
#define Y_DIR_PIN 35
#define Y_ENABLE_PIN 31
#ifndef Y_CS_PIN
#define Y_CS_PIN 34
#define Y_CS_PIN 34
#endif
#define Z_STEP_PIN 30 // Support Extension Board
#define Z_DIR_PIN 2
#define Z_ENABLE_PIN 31
#define Z_STEP_PIN 30 // Support Extension Board
#define Z_DIR_PIN 2
#define Z_ENABLE_PIN 31
#ifndef Z_CS_PIN
#define Z_CS_PIN 10
#define Z_CS_PIN 10
#endif
#define E0_STEP_PIN 29
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 33
#define E0_STEP_PIN 29
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 33
#ifndef E0_CS_PIN
#define E0_CS_PIN 14
#define E0_CS_PIN 14
#endif
#define E1_STEP_PIN 22
#define E1_DIR_PIN 24
#define E1_ENABLE_PIN 26
#define E1_STEP_PIN 22
#define E1_DIR_PIN 24
#define E1_ENABLE_PIN 26
#ifndef E1_CS_PIN
#define E1_CS_PIN 15
#define E1_CS_PIN 15
#endif
#define E2_STEP_PIN 25
#define E2_DIR_PIN 23
#define E2_ENABLE_PIN 27
#define E2_STEP_PIN 25
#define E2_DIR_PIN 23
#define E2_ENABLE_PIN 27
#ifndef E2_CS_PIN
#define E2_CS_PIN 61
#define E2_CS_PIN 61
#endif
#if HAS_CUSTOM_PROBE_PIN
#define Z_MIN_PROBE_PIN 49
#define Z_MIN_PROBE_PIN 49
#endif
#if HAS_FILAMENT_SENSOR
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN Y_MIN_PIN
#define FIL_RUNOUT_PIN Y_MIN_PIN
#endif
#endif
//
// Heaters / Fans
//
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 7 // BED H1
#define HEATER_0_PIN 13
#define HEATER_1_PIN 12
#define HEATER_2_PIN 11
#define HEATER_BED_PIN 7 // BED H1
#define FAN_PIN 9
#define FAN1_PIN 8
#define CONTROLLER_FAN_PIN -1
#define FAN_PIN 9
#define FAN1_PIN 8
#define CONTROLLER_FAN_PIN -1
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // ANALOG A0
#define TEMP_1_PIN 1 // ANALOG A1
#define TEMP_2_PIN 2 // ANALOG A2
#define TEMP_3_PIN 3 // ANALOG A3
#define TEMP_BED_PIN 4 // ANALOG A4
#define TEMP_0_PIN 0 // ANALOG A0
#define TEMP_1_PIN 1 // ANALOG A1
#define TEMP_2_PIN 2 // ANALOG A2
#define TEMP_3_PIN 3 // ANALOG A3
#define TEMP_BED_PIN 4 // ANALOG A4
// The thermocouple uses Analog pins
#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
#define TEMP_4_PIN 5 // A5
#define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
#define TEMP_4_PIN 5 // A5
#define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#endif
// SPI for Max6675 or Max31855 Thermocouple
/*
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 53
#define MAX6675_SS_PIN 53
#else
#define MAX6675_SS_PIN 49
#define MAX6675_SS_PIN 49
#endif
*/
//
// Misc. Functions
//
#define SDSS 4 // 4,10,52 if using HW SPI.
#define LED_PIN -1 // 13 - HEATER_0_PIN
#define PS_ON_PIN -1 // 65
#define SDSS 4 // 4,10,52 if using HW SPI.
#define LED_PIN -1 // 13 - HEATER_0_PIN
#define PS_ON_PIN -1 // 65
// MKS TFT / Nextion Use internal USART-1
#define TFT_LCD_MODULE_COM 1
#define TFT_LCD_MODULE_BAUDRATE 115200
#define TFT_LCD_MODULE_COM 1
#define TFT_LCD_MODULE_BAUDRATE 115200
// ESP WiFi Use internal USART-2
#define ESP_WIFI_MODULE_COM 2
#define ESP_WIFI_MODULE_BAUDRATE 115200
#define ESP_WIFI_MODULE_RESET_PIN -1
#define PIGGY_GPIO_PIN -1
#define ESP_WIFI_MODULE_COM 2
#define ESP_WIFI_MODULE_BAUDRATE 115200
#define ESP_WIFI_MODULE_RESET_PIN -1
#define PIGGY_GPIO_PIN -1
//
// EEPROM
//
#define E2END 0x7FFF // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
#define E2END 0x7FFF // 32Kb (24lc256)
#define I2C_EEPROM // EEPROM on I2C-0
//#define EEPROM_SD // EEPROM on SDCARD
//#define SPI_EEPROM // EEPROM on SPI-0
//#define SPI_CHAN_EEPROM1 ?
//#define SPI_EEPROM1_CS ?
// 2K EEPROM
@@ -189,70 +189,70 @@
#if HAS_SPI_LCD
#if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BEEPER_PIN 62
#define LCD_PINS_D4 48
#define LCD_PINS_D5 50
#define LCD_PINS_D6 52
#define LCD_PINS_D7 53
#define SD_DETECT_PIN 51
#define BEEPER_PIN 62
#define LCD_PINS_D4 48
#define LCD_PINS_D5 50
#define LCD_PINS_D6 52
#define LCD_PINS_D7 53
#define SD_DETECT_PIN 51
#endif
#if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
#define LCD_PINS_RS 63
#define LCD_PINS_ENABLE 64
#define LCD_PINS_RS 63
#define LCD_PINS_ENABLE 64
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define LCD_PINS_RS 52
#define LCD_PINS_ENABLE 53
#define LCD_PINS_RS 52
#define LCD_PINS_ENABLE 53
#elif HAS_SSD1306_OLED_I2C
#define BEEPER_PIN 62
#define LCD_SDSS 10
#define SD_DETECT_PIN 51
#define BEEPER_PIN 62
#define LCD_SDSS 10
#define SD_DETECT_PIN 51
#elif ENABLED(FYSETC_MINI_12864)
#define BEEPER_PIN 62
#define DOGLCD_CS 64
#define DOGLCD_A0 63
#define BEEPER_PIN 62
#define DOGLCD_CS 64
#define DOGLCD_A0 63
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
#define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
#define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
#define RGB_LED_R_PIN 50 // D5
#define RGB_LED_R_PIN 50 // D5
#endif
#ifndef RGB_LED_G_PIN
#define RGB_LED_G_PIN 52 // D6
#define RGB_LED_G_PIN 52 // D6
#endif
#ifndef RGB_LED_B_PIN
#define RGB_LED_B_PIN 53 // D7
#define RGB_LED_B_PIN 53 // D7
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN 50 // D5
#define NEOPIXEL_PIN 50 // D5
#endif
#elif ENABLED(MKS_MINI_12864)
#define ORIG_BEEPER_PIN 62
#define ORIG_BEEPER_PIN 62
#define DOGLCD_A0 52
#define DOGLCD_CS 50
#define DOGLCD_A0 52
#define DOGLCD_CS 50
#define SD_DETECT_PIN 51
#define SD_DETECT_PIN 51
#endif
#if ENABLED(NEWPANEL)
#define BTN_EN1 44
#define BTN_EN2 42
#define BTN_ENC 40
#define BTN_EN1 44
#define BTN_EN2 42
#define BTN_ENC 40
#endif
#endif // HAS_SPI_LCD

View File

@@ -35,140 +35,140 @@
// Servos
//
#if NUM_SERVOS > 0
#define SERVO0_PIN 11
#define SERVO0_PIN 11
#if NUM_SERVOS > 1
#define SERVO1_PIN 12
#define SERVO1_PIN 12
#endif
#endif
//
// Limit Switches
//
#define X_MIN_PIN 31
#define X_MAX_PIN 30
#define Y_MIN_PIN 12
#define Y_MAX_PIN 11
#define Z_MIN_PIN 29
#define Z_MAX_PIN 28
#define X_MIN_PIN 31
#define X_MAX_PIN 30
#define Y_MIN_PIN 12
#define Y_MAX_PIN 11
#define Z_MIN_PIN 29
#define Z_MAX_PIN 28
//
// Steppers
//
#define X_STEP_PIN 35
#define X_DIR_PIN 34
#define X_ENABLE_PIN 37
#define X_STEP_PIN 35
#define X_DIR_PIN 34
#define X_ENABLE_PIN 37
#ifndef X_CS_PIN
#define X_CS_PIN 18
#define X_CS_PIN 18
#endif
#define Y_STEP_PIN 22
#define Y_DIR_PIN 23
#define Y_ENABLE_PIN 33
#define Y_STEP_PIN 22
#define Y_DIR_PIN 23
#define Y_ENABLE_PIN 33
#ifndef Y_CS_PIN
#define Y_CS_PIN 19
#define Y_CS_PIN 19
#endif
#define Z_STEP_PIN 25
#define Z_DIR_PIN 26
#define Z_ENABLE_PIN 24
#define Z_STEP_PIN 25
#define Z_DIR_PIN 26
#define Z_ENABLE_PIN 24
#ifndef Z_CS_PIN
#define Z_CS_PIN 16
#define Z_CS_PIN 16
#endif
#define E0_STEP_PIN 47
#define E0_DIR_PIN 46
#define E0_ENABLE_PIN 48
#define E0_STEP_PIN 47
#define E0_DIR_PIN 46
#define E0_ENABLE_PIN 48
#ifndef E0_CS_PIN
#define E0_CS_PIN 17
#define E0_CS_PIN 17
#endif
#define E1_STEP_PIN 44
#define E1_DIR_PIN 36
#define E1_ENABLE_PIN 45
#define E1_STEP_PIN 44
#define E1_DIR_PIN 36
#define E1_ENABLE_PIN 45
#ifndef E1_CS_PIN
#define E1_CS_PIN -1
#define E1_CS_PIN -1
#endif
#define E2_STEP_PIN 42
#define E2_DIR_PIN 41
#define E2_ENABLE_PIN 43
#define E2_STEP_PIN 42
#define E2_DIR_PIN 41
#define E2_ENABLE_PIN 43
#ifndef E2_CS_PIN
#define E2_CS_PIN -1
#define E2_CS_PIN -1
#endif
#define E3_STEP_PIN 39
#define E3_DIR_PIN 38
#define E3_ENABLE_PIN 40
#define E3_STEP_PIN 39
#define E3_DIR_PIN 38
#define E3_ENABLE_PIN 40
#ifndef E3_CS_PIN
#define E3_CS_PIN -1
#define E3_CS_PIN -1
#endif
//
// Temperature Sensors
//
#define TEMP_0_PIN 0 // Analog Input
#define TEMP_1_PIN 2 // Analog Input
#define TEMP_2_PIN 3 // Analog Input
#define TEMP_3_PIN 4 // Analog Input
#define TEMP_BED_PIN 1 // Analog Input
#define TEMP_0_PIN 0 // Analog Input
#define TEMP_1_PIN 2 // Analog Input
#define TEMP_2_PIN 3 // Analog Input
#define TEMP_3_PIN 4 // Analog Input
#define TEMP_BED_PIN 1 // Analog Input
//
// Heaters / Fans
//
#define HEATER_0_PIN 3
#define HEATER_1_PIN 8
#define HEATER_2_PIN 7
#define HEATER_3_PIN 9
#define HEATER_BED_PIN 2
#define HEATER_0_PIN 3
#define HEATER_1_PIN 8
#define HEATER_2_PIN 7
#define HEATER_3_PIN 9
#define HEATER_BED_PIN 2
#ifndef FAN_PIN
#define FAN_PIN 6
#define FAN_PIN 6
#endif
#define FAN2_PIN 5
#define FAN2_PIN 5
//
// Misc. Functions
//
#define SDSS 59
#define SD_DETECT_PIN 60
#define LED_PIN 13
#define PS_ON_PIN 32
#define SDSS 59
#define SD_DETECT_PIN 60
#define LED_PIN 13
#define PS_ON_PIN 32
//
// SPI Buses
//
#define DAC0_SYNC 53 // PB14
#define SPI_CHAN_DAC 1
#define DAC0_SYNC 53 // PB14
#define SPI_CHAN_DAC 1
#define SPI_CHAN_EEPROM1 -1
#define SPI_EEPROM1_CS -1
#define SPI_EEPROM2_CS -1
#define SPI_FLASH_CS -1
#define SPI_CHAN_EEPROM1 -1
#define SPI_EEPROM1_CS -1
#define SPI_EEPROM2_CS -1
#define SPI_FLASH_CS -1
// SPI for Max6675 or Max31855 Thermocouple
#define MAX6675_SS_PIN 65
#define MAX31855_SS0 65
#define MAX31855_SS1 52
#define MAX31855_SS2 50
#define MAX31855_SS3 51
#define MAX6675_SS_PIN 65
#define MAX31855_SS0 65
#define MAX31855_SS1 52
#define MAX31855_SS2 50
#define MAX31855_SS3 51
#define ENC424_SS 61
#define ENC424_SS 61
//
// LCD / Controller
//
#define BEEPER_PIN 27
#define BEEPER_PIN 27
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define LCD_PINS_RS A8 // CS chip select / SS chip slave select
#define LCD_PINS_ENABLE MOSI // SID (MOSI)
#define LCD_PINS_D4 SCK // SCK (CLK) clock
#define LCD_PINS_RS A8 // CS chip select / SS chip slave select
#define LCD_PINS_ENABLE MOSI // SID (MOSI)
#define LCD_PINS_D4 SCK // SCK (CLK) clock
#define BTN_EN1 20
#define BTN_EN2 21
#define BTN_ENC 64
#define BTN_EN1 20
#define BTN_EN2 21
#define BTN_ENC 64
#endif // REPRAPWORLD_GRAPHICAL_LCD