Merge upstream changes from Marlin 2.1.1
This commit is contained in:
@@ -31,28 +31,23 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "E4d@box only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "E4d@box only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#error "E4d@box only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#error "E4d@box only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "E4d@box"
|
||||
#define BOARD_WEBSITE_URL "github.com/Exilaus/E4d@box"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
|
||||
//
|
||||
// Redefine I2S for ESP32
|
||||
//
|
||||
#undef I2S_WS
|
||||
#define I2S_WS 23
|
||||
#undef I2S_BCK
|
||||
#define I2S_BCK 22
|
||||
#undef I2S_DATA
|
||||
#define I2S_WS 23
|
||||
#define I2S_BCK 22
|
||||
#define I2S_DATA 21
|
||||
|
||||
//
|
||||
|
118
Marlin/src/pins/esp32/pins_ENWI_ESPNP.h
Normal file
118
Marlin/src/pins/esp32/pins_ENWI_ESPNP.h
Normal file
@@ -0,0 +1,118 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Espressif ESP32 (Tensilica Xtensa LX6) on ESPNP by enwi
|
||||
* Website https://github.com/enwi/ESPNP
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "ESPNP"
|
||||
#define DEFAULT_MACHINE_NAME "ESP Pick and Place"
|
||||
|
||||
//
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 17
|
||||
#define I2S_BCK 22
|
||||
#define I2S_DATA 21
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 26
|
||||
#define SERVO1_PIN 25
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 36
|
||||
#define Y_STOP_PIN 39
|
||||
#define Z_STOP_PIN 34
|
||||
#define I_STOP_PIN 35
|
||||
#define J_STOP_PIN 05
|
||||
#define K_STOP_PIN 16
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN 136
|
||||
#define X_DIR_PIN 137
|
||||
#define X_STEP_PIN 138
|
||||
#define X_CS_PIN 139
|
||||
|
||||
#define Y_ENABLE_PIN 140
|
||||
#define Y_DIR_PIN 141
|
||||
#define Y_STEP_PIN 142
|
||||
#define Y_CS_PIN 143
|
||||
|
||||
#define Z_ENABLE_PIN 144
|
||||
#define Z_DIR_PIN 145
|
||||
#define Z_STEP_PIN 146
|
||||
#define Z_CS_PIN 147
|
||||
|
||||
#define I_ENABLE_PIN 148
|
||||
#define I_DIR_PIN 149
|
||||
#define I_STEP_PIN 150
|
||||
#define I_CS_PIN 151
|
||||
|
||||
#define J_ENABLE_PIN 152
|
||||
#define J_DIR_PIN 153
|
||||
#define J_STEP_PIN 154
|
||||
#define J_CS_PIN 155
|
||||
|
||||
#define K_ENABLE_PIN 156
|
||||
#define K_DIR_PIN 157
|
||||
#define K_STEP_PIN 158
|
||||
#define K_CS_PIN 159
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
//#define TEMP_0_PIN 36 // Analog Input
|
||||
//#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
// General use mosfets, useful for things like pumps and solenoids
|
||||
// Shift register pins 128, 129, 130 and 131 are broken out and can be used
|
||||
#define FAN_PIN 132
|
||||
#define FAN1_PIN 134
|
||||
#define FAN2_PIN 135
|
||||
#define FAN3_PIN 136
|
||||
|
||||
// #define FAN_SOFT_PWM_REQUIRED // check if needed
|
||||
|
||||
// Neopixel Rings
|
||||
#define NEOPIXEL_PIN 14
|
||||
#define NEOPIXEL2_PIN 27
|
||||
|
||||
// SPI
|
||||
#define MISO_PIN 19
|
||||
#define MOSI_PIN 23
|
||||
#define SCK_PIN 18
|
@@ -33,9 +33,11 @@
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#define I2S_WS 25
|
||||
#define I2S_BCK 26
|
||||
#define I2S_DATA 27
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 25
|
||||
#define I2S_BCK 26
|
||||
#define I2S_DATA 27
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
|
81
Marlin/src/pins/esp32/pins_ESPA_common.h
Normal file
81
Marlin/src/pins/esp32/pins_ESPA_common.h
Normal file
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* ESPA-like pin assignments
|
||||
* Supports 4 stepper drivers, heated bed, single hotend.
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 34
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 15
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 27
|
||||
#define X_DIR_PIN 26
|
||||
#define X_ENABLE_PIN 25
|
||||
|
||||
#define Y_STEP_PIN 33
|
||||
#define Y_DIR_PIN 32
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define Z_STEP_PIN 14
|
||||
#define Z_DIR_PIN 12
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E0_STEP_PIN 16
|
||||
#define E0_DIR_PIN 17
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 36 // Analog Input
|
||||
#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
@@ -31,47 +31,14 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#error "FYSETC E4 only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#error "FYSETC E4 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "FYSETC_E4"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#define I2S_WS -1
|
||||
#define I2S_BCK -1
|
||||
#define I2S_DATA -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 34
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 15
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 27
|
||||
#define X_DIR_PIN 26
|
||||
#define X_ENABLE_PIN 25
|
||||
|
||||
#define Y_STEP_PIN 33
|
||||
#define Y_DIR_PIN 32
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define Z_STEP_PIN 14
|
||||
#define Z_DIR_PIN 12
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E0_STEP_PIN 16
|
||||
#define E0_DIR_PIN 17
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
#include "pins_ESPA_common.h"
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
@@ -89,28 +56,6 @@
|
||||
#define TMC_BAUD_RATE 115200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 36 // Analog Input
|
||||
#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
/**
|
||||
* Hardware serial pins
|
||||
*
|
||||
|
193
Marlin/src/pins/esp32/pins_MKS_TINYBEE.h
Normal file
193
Marlin/src/pins/esp32/pins_MKS_TINYBEE.h
Normal file
@@ -0,0 +1,193 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MRR ESPE pin assignments
|
||||
* MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
|
||||
* Supports 5 stepper drivers (using I2S stepper stream), heated bed,
|
||||
* single hotend, and LCD controller.
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 2 || E_STEPPERS > 2
|
||||
#error "MKS TinyBee supports up to 2 E steppers."
|
||||
#elif HOTENDS > 2
|
||||
#error "MKS TinyBee supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS TinyBee"
|
||||
#define BOARD_WEBSITE_URL "https://github.com/makerbase-mks"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
// MAX_EXPANDER_BITS is defined for MKS TinyBee in HAL/ESP32/inc/Conditionals_adv.h
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 2
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 33
|
||||
#define Y_STOP_PIN 32
|
||||
#define Z_STOP_PIN 22
|
||||
//#define FIL_RUNOUT_PIN 35
|
||||
|
||||
//
|
||||
// Enable I2S stepper stream
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
#define I2S_DATA 27
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 129
|
||||
#define X_DIR_PIN 130
|
||||
#define X_ENABLE_PIN 128
|
||||
|
||||
#define Y_STEP_PIN 132
|
||||
#define Y_DIR_PIN 133
|
||||
#define Y_ENABLE_PIN 131
|
||||
|
||||
#define Z_STEP_PIN 135
|
||||
#define Z_DIR_PIN 136
|
||||
#define Z_ENABLE_PIN 134
|
||||
|
||||
#define E0_STEP_PIN 138
|
||||
#define E0_DIR_PIN 139
|
||||
#define E0_ENABLE_PIN 137
|
||||
|
||||
#define E1_STEP_PIN 141
|
||||
#define E1_DIR_PIN 142
|
||||
#define E1_ENABLE_PIN 140
|
||||
|
||||
#define Z2_STEP_PIN 141
|
||||
#define Z2_DIR_PIN 142
|
||||
#define Z2_ENABLE_PIN 140
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 36 // Analog Input
|
||||
#define TEMP_1_PIN 34 // Analog Input, you need set R6=0Ω and R7=NC
|
||||
#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 145
|
||||
#define HEATER_1_PIN 146
|
||||
#define FAN_PIN 147
|
||||
#define FAN1_PIN 148
|
||||
#define HEATER_BED_PIN 144
|
||||
|
||||
//#define CONTROLLER_FAN_PIN 148
|
||||
//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
|
||||
//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
|
||||
|
||||
//
|
||||
// ADC Reference Voltage
|
||||
//
|
||||
#define ADC_REFERENCE_VOLTAGE 2.565 // 2.5V reference VDDA
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* (BEEPER) 149 | 1 2 | 13 (BTN_ENC) (SPI MISO) 19 | 1 2 | 18 (SPI SCK)
|
||||
* (LCD_EN) 21 | 3 4 | 4 (LCD_RS) (BTN_EN1) 14 | 3 4 | 5 (SPI CS)
|
||||
* (LCD_D4) 0 5 6 | 16 (LCD_D5) (BTN_EN2) 12 5 6 | 23 (SPI MOSI)
|
||||
* (LCD_D6) 15 | 7 8 | 17 (LCD_D7) (SPI_DET) 34 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | 3.3V
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
|
||||
#define EXP1_01_PIN 149
|
||||
#define EXP1_02_PIN 13
|
||||
#define EXP1_03_PIN 21
|
||||
#define EXP1_04_PIN 4
|
||||
#define EXP1_05_PIN 0
|
||||
#define EXP1_06_PIN 16
|
||||
#define EXP1_07_PIN 15
|
||||
#define EXP1_08_PIN 17
|
||||
|
||||
#define EXP2_01_PIN 19
|
||||
#define EXP2_02_PIN 18
|
||||
#define EXP2_03_PIN 14
|
||||
#define EXP2_04_PIN 5
|
||||
#define EXP2_05_PIN 12
|
||||
#define EXP2_06_PIN 23
|
||||
#define EXP2_07_PIN 34
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
//#define SD_MOSI_PIN EXP2_06_PIN // uses esp32 default 23
|
||||
//#define SD_MISO_PIN EXP2_01_PIN // uses esp32 default 19
|
||||
//#define SD_SCK_PIN EXP2_02_PIN // uses esp32 default 18
|
||||
#define SDSS EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN // IO34 default is SD_DET signal (Jump to SDDET)
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
// MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define LCD_RESET_PIN -1
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
// MKS_MINI_12864_V3, BTT_MINI_12864_V1, FYSETC_MINI_12864_2_1
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define LCD_RESET_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
#else
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#endif
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
@@ -31,75 +31,24 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "MRR ESPA only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#error "MRR ESPA only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#error "MRR ESPA only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MRR ESPA"
|
||||
#define BOARD_WEBSITE_URL "github.com/maplerainresearch/MRR_ESPA"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#undef I2S_WS
|
||||
#undef I2S_BCK
|
||||
#undef I2S_DATA
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 34
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 15
|
||||
#include "pins_ESPA_common.h"
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 27
|
||||
#define X_DIR_PIN 26
|
||||
#define X_ENABLE_PIN 25
|
||||
//#define X_CS_PIN 21
|
||||
|
||||
#define Y_STEP_PIN 33
|
||||
#define Y_DIR_PIN 32
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define Y_CS_PIN 22
|
||||
|
||||
#define Z_STEP_PIN 14
|
||||
#define Z_DIR_PIN 12
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define Z_CS_PIN 5 // SS_PIN
|
||||
|
||||
#define E0_STEP_PIN 16
|
||||
#define E0_DIR_PIN 17
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define E0_CS_PIN 21
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 36 // Analog Input
|
||||
#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
// Hardware serial pins
|
||||
// Add the following to Configuration.h or Configuration_adv.h to assign
|
||||
// specific pins to hardware Serial1.
|
||||
|
@@ -32,9 +32,9 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 2 || E_STEPPERS > 2
|
||||
#error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "MRR ESPE only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#error "MRR ESPE supports up to 2 E steppers."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#error "MRR ESPE only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MRR ESPE"
|
||||
@@ -51,12 +51,12 @@
|
||||
//
|
||||
// Enable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
#define I2S_DATA 27
|
||||
#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
#define I2S_DATA 27
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
|
38
Marlin/src/pins/esp32/pins_PANDA_M4.h
Normal file
38
Marlin/src/pins/esp32/pins_PANDA_M4.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Panda M4 pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Panda_M4"
|
||||
|
||||
#include "pins_PANDA_common.h"
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN 115
|
||||
#define Y_ENABLE_PIN 114
|
||||
#define Z_ENABLE_PIN 113
|
||||
#define E0_ENABLE_PIN 112
|
61
Marlin/src/pins/esp32/pins_PANDA_ZHU.h
Normal file
61
Marlin/src/pins/esp32/pins_PANDA_ZHU.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Panda ZHU pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Panda_ZHU"
|
||||
|
||||
#include "pins_PANDA_common.h"
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN 128 // Shared with all steppers
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
//#define X_CS_PIN 0
|
||||
//#define Y_CS_PIN 13
|
||||
//#define Z_CS_PIN 5 // SS_PIN
|
||||
//#define E0_CS_PIN 21
|
||||
|
||||
#define E1_STEP_PIN 115
|
||||
#define E1_DIR_PIN 114
|
||||
#define E1_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E2_STEP_PIN 112
|
||||
#define E2_DIR_PIN 113
|
||||
#define E2_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E3_STEP_PIN 110
|
||||
#define E3_DIR_PIN 111
|
||||
#define E3_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E4_STEP_PIN 121
|
||||
#define E4_DIR_PIN 122
|
||||
#define E4_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define HEATER_1_PIN 123
|
128
Marlin/src/pins/esp32/pins_PANDA_common.h
Normal file
128
Marlin/src/pins/esp32/pins_PANDA_common.h
Normal file
@@ -0,0 +1,128 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Panda common pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 0
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 4
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 21
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 101
|
||||
#define X_DIR_PIN 100
|
||||
|
||||
#define Y_STEP_PIN 103
|
||||
#define Y_DIR_PIN 102
|
||||
|
||||
#define Z_STEP_PIN 105
|
||||
#define Z_DIR_PIN 104
|
||||
|
||||
#define E0_STEP_PIN 107
|
||||
#define E0_DIR_PIN 106
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 39 // Analog Input
|
||||
#define TEMP_BED_PIN 36 // Analog Input
|
||||
|
||||
#if ENABLED(MAX31856_PANDAPI)
|
||||
#define MAX31856_CLK_PIN 29
|
||||
#define MAX31856_MISO_PIN 24
|
||||
#define MAX31856_MOSI_PIN 28
|
||||
#define MAX31856_CS_PIN 27
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 108
|
||||
#define HEATER_BED_PIN 109
|
||||
#define FAN_PIN 118 // FAN0
|
||||
#define FAN1_PIN 119 // FAN1
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 120 // FAN2
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (MISO 19?) | 1 2 | (18 SCK?) (BEEPER) 129 | 1 2 | 12 (^ENC)
|
||||
* (EN1) 33 | 3 4 | (5 SDSS?) (EN) 26 | 3 4 | 27 (RS)
|
||||
* (EN2) 32 5 6 | (23 MOSI?) (D4) 14 | 5 6 --
|
||||
* (SDDET 2?) | 7 8 | (RESET) -- | 7 8 | --
|
||||
* -- | 9 10 | -- (GND) | 9 10 | (5V)
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
#define EXP1_01_PIN 129
|
||||
#define EXP1_02_PIN 12
|
||||
#define EXP1_03_PIN 26
|
||||
#define EXP1_04_PIN 27
|
||||
#define EXP1_05_PIN 14
|
||||
|
||||
#define EXP2_01_PIN 19 // ?
|
||||
#define EXP2_02_PIN 18 // ?
|
||||
#define EXP2_03_PIN 33
|
||||
#define EXP2_04_PIN 5 // ?
|
||||
#define EXP2_05_PIN 32
|
||||
#define EXP2_06_PIN 23 // ?
|
||||
#define EXP2_07_PIN 2 // ?
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
#define SDSS EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#endif
|
37
Marlin/src/pins/esp32/pins_RESP32_CUSTOM.h
Normal file
37
Marlin/src/pins/esp32/pins_RESP32_CUSTOM.h
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Rutilea ESP32 (Tensilica Xtensa LX6) pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Rutilea ESP32"
|
||||
|
||||
#include "pins_ESPA_common.h"
|
||||
|
||||
//
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
@@ -54,11 +54,9 @@
|
||||
#endif
|
||||
|
||||
#ifndef MARLIN_EEPROM_SIZE
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4K
|
||||
#endif
|
||||
|
||||
#define IS_RAMPS_EFB
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -144,58 +142,41 @@
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef MOSFET_A_PIN
|
||||
#define MOSFET_A_PIN 10
|
||||
#endif
|
||||
#ifndef MOSFET_B_PIN
|
||||
#define MOSFET_B_PIN 9
|
||||
#endif
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN 8
|
||||
#endif
|
||||
#ifndef MOSFET_D_PIN
|
||||
#define MOSFET_D_PIN -1
|
||||
#endif
|
||||
#ifndef RAMPS_D8_PIN
|
||||
#define RAMPS_D8_PIN 8
|
||||
#endif
|
||||
#ifndef RAMPS_D9_PIN
|
||||
#define RAMPS_D9_PIN 9
|
||||
#endif
|
||||
#ifndef RAMPS_D10_PIN
|
||||
#define RAMPS_D10_PIN 10
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN RAMPS_D10_PIN
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#define FAN_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define FAN1_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
|
||||
#define FAN_PIN RAMPS_D8_PIN
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EFF // Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN1_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_SF // Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
@@ -253,14 +234,16 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 40 // Z_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 42 // E0_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 44 // E1_CS_PIN
|
||||
#if HAS_PRUSA_MMU1
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 40 // Z_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 42 // E0_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 44 // E1_CS_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -410,6 +393,7 @@
|
||||
#define BEEPER_PIN 42
|
||||
|
||||
#define TOUCH_CS_PIN 33
|
||||
|
||||
#define SD_DETECT_PIN 41
|
||||
|
||||
#define HAS_SPI_FLASH 1
|
||||
@@ -426,17 +410,47 @@
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#ifndef XPT2046_X_CALIBRATION
|
||||
#define XPT2046_X_CALIBRATION 63934
|
||||
#endif
|
||||
#ifndef XPT2046_Y_CALIBRATION
|
||||
#define XPT2046_Y_CALIBRATION 63598
|
||||
#endif
|
||||
#ifndef XPT2046_X_OFFSET
|
||||
#define XPT2046_X_OFFSET -1
|
||||
#endif
|
||||
#ifndef XPT2046_Y_OFFSET
|
||||
#define XPT2046_Y_OFFSET -20
|
||||
#ifndef TOUCH_SCREEN_CALIBRATION
|
||||
#if ENABLED(TFT_RES_320x240)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X 20525
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 15335
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X -1
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y 0
|
||||
#endif
|
||||
#elif ENABLED(TFT_RES_480x272)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X 30715
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 17415
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 0
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -1
|
||||
#endif
|
||||
#elif ENABLED(TFT_RES_480x320)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X 30595
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 20415
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 2
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y 1
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define BTN_BACK 70
|
||||
@@ -568,11 +582,10 @@
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
#elif EITHER(VIKI2, miniVIKI)
|
||||
|
||||
#define DOGLCD_CS 45
|
||||
#define DOGLCD_A0 44
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
#define STAT_LED_RED_PIN 32
|
||||
@@ -585,6 +598,8 @@
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
|
||||
#define KILL_PIN 31
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define DOGLCD_CS 29
|
||||
@@ -606,12 +621,6 @@
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS 25
|
||||
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
// not connected to a pin
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
@@ -623,6 +632,8 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 64
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
@@ -632,12 +643,6 @@
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 66
|
||||
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
@@ -645,6 +650,8 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 64
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
#define ADC_KEYPAD_PIN 12
|
||||
|
@@ -145,9 +145,9 @@
|
||||
* PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 DIO46 Z_STEP_PIN
|
||||
* PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 DIO9 RAMPS_D9_PIN
|
||||
* PWM1.5 DIO9 MOSFET_B_PIN
|
||||
* PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 DIO10 RAMPS_D10_PIN
|
||||
* PWM1.6 DIO10 MOSFET_A_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@@ -58,31 +58,31 @@
|
||||
|
||||
|
||||
/** ------ ------
|
||||
* 1.30 |10 9 | 2.11 0.17 |10 9 | 0.15
|
||||
* 0.18 | 8 7 | 0.16 3.26 | 8 7 | 1.23
|
||||
* 0.15 6 5 | NC 3.25 6 5 | 0.18
|
||||
* NC | 4 3 | NC 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* 1.30 | 1 2 | 2.11 0.17 | 1 2 | 0.15
|
||||
* 0.18 | 3 4 | 0.16 3.26 | 3 4 | 1.23
|
||||
* 0.15 5 6 | -- 3.25 5 6 | 0.18
|
||||
* -- | 7 8 | -- 1.31 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN -1 // NC
|
||||
#define EXP1_04_PIN -1 // NC
|
||||
#define EXP1_05_PIN -1 // NC
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P2_11
|
||||
#define EXP1_10_PIN P1_30
|
||||
#define EXP1_01_PIN P1_30
|
||||
#define EXP1_02_PIN P2_11
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN -1 // NC
|
||||
#define EXP1_07_PIN -1 // NC
|
||||
#define EXP1_08_PIN -1 // NC
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P1_23
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
#define EXP2_01_PIN P0_17
|
||||
#define EXP2_02_PIN P0_15
|
||||
#define EXP2_03_PIN P3_26
|
||||
#define EXP2_04_PIN P1_23
|
||||
#define EXP2_05_PIN P3_25
|
||||
#define EXP2_06_PIN P0_18
|
||||
#define EXP2_07_PIN P1_31
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
/**
|
||||
* LCD / Controller
|
||||
@@ -100,23 +100,23 @@
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP2_05_PIN
|
||||
#define LCD_PINS_D4 EXP2_09_PIN
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP2_06_PIN
|
||||
#define LCD_PINS_D4 EXP2_02_PIN
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS P2_06
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -165,10 +165,10 @@
|
||||
// When using any TMC SPI-based drivers, software SPI is used
|
||||
// because pins may be shared with the display or SD card.
|
||||
#define TMC_USE_SW_SPI
|
||||
#define TMC_SW_MOSI EXP2_05_PIN
|
||||
#define TMC_SW_MISO EXP2_10_PIN
|
||||
#define TMC_SW_MOSI EXP2_06_PIN
|
||||
#define TMC_SW_MISO EXP2_01_PIN
|
||||
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
|
||||
#define TMC_SW_SCK EXP2_09_PIN
|
||||
#define TMC_SW_SCK EXP2_02_PIN
|
||||
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
|
||||
//#define TMC_SW_SCK P2_06
|
||||
|
||||
@@ -211,11 +211,11 @@
|
||||
// SDCARD_CONNECTION must not be 'LCD'. Nothing should be connected to EXP1/EXP2.
|
||||
//#define SKR_USE_LCD_PINS_FOR_CS
|
||||
#if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
|
||||
#define X_CS_PIN EXP2_07_PIN
|
||||
#define Y_CS_PIN EXP2_08_PIN
|
||||
#define Z_CS_PIN EXP1_09_PIN
|
||||
#define E0_CS_PIN EXP2_06_PIN
|
||||
#define E1_CS_PIN EXP2_04_PIN
|
||||
#define X_CS_PIN EXP2_04_PIN
|
||||
#define Y_CS_PIN EXP2_03_PIN
|
||||
#define Z_CS_PIN EXP1_02_PIN
|
||||
#define E0_CS_PIN EXP2_05_PIN
|
||||
#define E1_CS_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
@@ -228,11 +228,11 @@
|
||||
#define Z_CS_PIN P2_06
|
||||
// We use SD_DETECT_PIN for E0
|
||||
#undef SD_DETECT_PIN
|
||||
#define E0_CS_PIN EXP2_04_PIN
|
||||
#define E0_CS_PIN EXP2_07_PIN
|
||||
// We use LCD_SDSS pin for E1
|
||||
#undef LCD_SDSS
|
||||
#define LCD_SDSS -1
|
||||
#define E1_CS_PIN EXP2_07_PIN
|
||||
#define E1_CS_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
// Example 3: Use the driver enable pins for chip-select.
|
||||
|
@@ -26,7 +26,9 @@
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "BTT SKR V1.3"
|
||||
#define LPC1768_IS_SKRV1_3 1
|
||||
|
||||
#define LPC1768_IS_SKRV1_3
|
||||
#define USES_DIAG_JUMPERS
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
@@ -189,43 +191,46 @@
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* (BEEPER) 1.30 |10 9 | 0.28 (BTN_ENC) (MISO) 0.17 |10 9 | 0.15 (SCK)
|
||||
* (LCD_EN) 1.18 | 8 7 | 1.19 (LCD_RS) (BTN_EN1) 3.26 | 8 7 | 0.16 (SD_SS)
|
||||
* (LCD_D4) 1.20 6 5 | 1.21 (LCD_D5) (BTN_EN2) 3.25 6 5 | 0.18 (MOSI)
|
||||
* (LCD_D6) 1.22 | 4 3 | 1.23 (LCD_D7) (SD_DETECT) 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* (BEEPER) 1.30 | 1 2 | 0.28 (BTN_ENC) (MISO) 0.17 | 1 2 | 0.15 (SCK)
|
||||
* (LCD_EN) 1.18 | 3 4 | 1.19 (LCD_RS) (BTN_EN1) 3.26 | 3 4 | 0.16 (SD_SS)
|
||||
* (LCD_D4) 1.20 5 6 | 1.21 (LCD_D5) (BTN_EN2) 3.25 5 6 | 0.18 (MOSI)
|
||||
* (LCD_D6) 1.22 | 7 8 | 1.23 (LCD_D7) (SD_DETECT) 1.31 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_23
|
||||
#define EXP1_04_PIN P1_22
|
||||
#define EXP1_05_PIN P1_21
|
||||
#define EXP1_06_PIN P1_20
|
||||
#define EXP1_07_PIN P1_19
|
||||
#define EXP1_08_PIN P1_18
|
||||
#define EXP1_09_PIN P0_28
|
||||
#define EXP1_10_PIN P1_30
|
||||
#define EXP1_01_PIN P1_30
|
||||
#define EXP1_02_PIN P0_28
|
||||
#define EXP1_03_PIN P1_18
|
||||
#define EXP1_04_PIN P1_19
|
||||
#define EXP1_05_PIN P1_20
|
||||
#define EXP1_06_PIN P1_21
|
||||
#define EXP1_07_PIN P1_22
|
||||
#define EXP1_08_PIN P1_23
|
||||
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P0_16
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
#define EXP2_01_PIN P0_17
|
||||
#define EXP2_02_PIN P0_15
|
||||
#define EXP2_03_PIN P3_26
|
||||
#define EXP2_04_PIN P0_16
|
||||
#define EXP2_05_PIN P3_25
|
||||
#define EXP2_06_PIN P0_18
|
||||
#define EXP2_07_PIN P1_31
|
||||
#define EXP2_08_PIN -1
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
|
||||
#error "ANET_FULL_GRAPHICS_LCD_ALT_WIRING only applies to the ANET 1.0 board."
|
||||
|
||||
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. Comment out this line to continue."
|
||||
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
|
||||
* 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
|
||||
* 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because it is open drain.)
|
||||
* 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
@@ -234,34 +239,68 @@
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* GND 1 | 1 2 | 2 5V 5V 1 | 1 2 | 2 GND
|
||||
* CS 3 | 3 4 | 4 BTN_EN2 CS 3 | 3 4 | 4 BTN_EN2
|
||||
* SID 5 | 5 6 6 BTN_EN1 SID 5 | 5 6 6 BTN_EN1
|
||||
* open 7 | 7 8 | 8 BTN_ENC CLK 7 | 7 8 | 8 BTN_ENC
|
||||
* CLK 9 | 9 10 | 10 Beeper open 9 | 9 10 | 10 Beeper
|
||||
* (CLK) | 1 2 | (BEEPER) (BEEPER) |10 9 | --
|
||||
* -- | 3 4 | (BTN_ENC) (BTN_ENC) | 8 7 | (CLK)
|
||||
* (SID) 5 6 | (BTN_EN1) (BTN_EN1) 6 5 | (SID)
|
||||
* (CS) | 7 8 | (BTN_EN2) (BTN_EN2) | 4 3 | (CS)
|
||||
* GND | 9 10 | 5V GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_08_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_08_PIN
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_05_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_06_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
|
||||
#elif ENABLED(WYH_L12864)
|
||||
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! WYH_L12864 requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
|
||||
* 3. Swap the LCD's MOSI (Pin9) and empty (Pin10) wires because Pin9 is open drain.
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
*
|
||||
* The WYH_L12864 connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ______ ______
|
||||
* | 1 2 | (MOSI) (MOSI) |10 9 | --
|
||||
* (BTN_ENC) | 3 4 | (SCK) (BTN_ENC) | 8 7 | (SCK)
|
||||
* (BTN_EN1) 5 6 | (SID) (BTN_EN1) 6 5 | (SID)
|
||||
* (BTN_EN2) | 7 8 | (CS) (BTN_EN2) | 4 3 | (CS)
|
||||
* 5V | 9 10 | GND GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_04_PIN
|
||||
#define DOGLCD_MOSI EXP1_01_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif HAS_ADC_BUTTONS
|
||||
|
||||
@@ -269,20 +308,20 @@
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
|
||||
#define TFT_RST_PIN EXP2_04_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
//#define TFT_RST_PIN EXP2_07_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
@@ -330,90 +369,90 @@
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#else // !CR10_STOCKDISPLAY
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_06_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define BTN_EN1 EXP2_03_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_05_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN // (16) J3-7 & AUX-4
|
||||
#define SD_DETECT_PIN EXP2_04_PIN // (49) (NOT 5V tolerant)
|
||||
#define LCD_SDSS EXP2_04_PIN // (16) J3-7 & AUX-4
|
||||
#define SD_DETECT_PIN EXP2_07_PIN // (49) (NOT 5V tolerant)
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#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 EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // 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 EXP1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
|
||||
/**
|
||||
* Creality Ender-2 display pinout
|
||||
* -----
|
||||
* 5V | 1 2 | GND
|
||||
* (MOSI) P1_23 | 3 4 | P1_22 (LCD_CS)
|
||||
* (LCD_A0) P1_21 | 5 6 P1_20 (BTN_EN2)
|
||||
* (RESET) P1_19 | 7 8 | P1_18 (BTN_EN1)
|
||||
* (BTN_ENC) P0_28 | 9 10| P1_30 (SCK)
|
||||
* -----
|
||||
* ------
|
||||
* (SCK) P1_30 | 1 2 | P0_28 (BTN_ENC)
|
||||
* (BTN_EN1) P1_18 | 3 4 | P1_19 (RESET)
|
||||
* (BTN_EN2) P1_20 5 6 | P1_21 (LCD_A0)
|
||||
* (LCD_CS) P1_22 | 7 8 | P1_23 (MOSI)
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_01_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#endif
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
@@ -428,11 +467,11 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if NEED_TOUCH_PINS
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_SCK_PIN EXP2_09_PIN
|
||||
#define TOUCH_MOSI_PIN EXP2_05_PIN
|
||||
#define TOUCH_MISO_PIN EXP2_10_PIN
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_SCK_PIN EXP2_02_PIN
|
||||
#define TOUCH_MOSI_PIN EXP2_06_PIN
|
||||
#define TOUCH_MISO_PIN EXP2_01_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@@ -35,6 +35,8 @@
|
||||
#define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
|
||||
#endif
|
||||
|
||||
#define USES_DIAG_PINS
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
@@ -44,9 +46,9 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(I2C_EEPROM)
|
||||
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb
|
||||
#define MARLIN_EEPROM_SIZE 0x8000 // 32K
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2K
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -244,47 +246,49 @@
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* 1.30 |10 9 | 0.28 0.17 |10 9 | 0.15
|
||||
* 1.18 | 8 7 | 1.19 3.26 | 8 7 | 0.16
|
||||
* 1.20 6 5 | 1.21 3.25 6 5 | 0.18
|
||||
* 1.22 | 4 3 | 1.23 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* 1.30 | 1 2 | 0.28 0.17 | 1 2 | 0.15
|
||||
* 1.18 | 3 4 | 1.19 3.26 | 3 4 | 0.16
|
||||
* 1.20 5 6 | 1.21 3.25 5 6 | 0.18
|
||||
* 1.22 | 7 8 | 1.23 1.31 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_23
|
||||
#define EXP1_04_PIN P1_22
|
||||
#define EXP1_05_PIN P1_21
|
||||
#define EXP1_06_PIN P1_20
|
||||
#define EXP1_07_PIN P1_19
|
||||
#define EXP1_08_PIN P1_18
|
||||
#define EXP1_09_PIN P0_28
|
||||
#define EXP1_10_PIN P1_30
|
||||
#define EXP1_01_PIN P1_30
|
||||
#define EXP1_02_PIN P0_28
|
||||
#define EXP1_03_PIN P1_18
|
||||
#define EXP1_04_PIN P1_19
|
||||
#define EXP1_05_PIN P1_20
|
||||
#define EXP1_06_PIN P1_21
|
||||
#define EXP1_07_PIN P1_22
|
||||
#define EXP1_08_PIN P1_23
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P0_16
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
#define EXP2_01_PIN P0_17
|
||||
#define EXP2_02_PIN P0_15
|
||||
#define EXP2_03_PIN P3_26
|
||||
#define EXP2_04_PIN P0_16
|
||||
#define EXP2_05_PIN P3_25
|
||||
#define EXP2_06_PIN P0_18
|
||||
#define EXP2_07_PIN P1_31
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
#if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
|
||||
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_05_PIN
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN EXP1_05_PIN
|
||||
#define BEEPER_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD && !BTT_MOTOR_EXPANSION
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD_ALT_WIRING requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD_ALT_WIRING requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
@@ -296,181 +300,183 @@
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* GND | 1 2 | 5V 5V | 1 2 | GND
|
||||
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
|
||||
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
|
||||
* open | 7 8 | BTN_ENC open | 7 8 | BTN_ENC
|
||||
* CLK | 9 10| BEEPER CLK | 9 10| BEEPER
|
||||
* (BEEPER) | 1 2 | (CLK) (BEEPER) |10 9 | (CLK)
|
||||
* (BTN_ENC) | 3 4 | -- (BTN_ENC) | 8 7 | --
|
||||
* (BTN_EN1) 5 6 | (SID) (BTN_EN1) 6 5 | (SID)
|
||||
* (BTN_EN2) | 7 8 | (CS) (BTN_EN2) | 4 3 | (CS)
|
||||
* 5V | 9 10 | GND GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_10_PIN
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_01_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define BEEPER_PIN EXP1_03_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define BEEPER_PIN EXP1_08_PIN
|
||||
|
||||
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
|
||||
* 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
|
||||
* 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because it is open drain.)
|
||||
* 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
*
|
||||
* The ANET_FULL_GRAPHICS_LCD connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* GND | 1 2 | 5V 5V | 1 2 | GND
|
||||
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
|
||||
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
|
||||
* open | 7 8 | BTN_ENC CLK | 7 8 | BTN_ENC
|
||||
* CLK | 9 10 | BEEPER open | 9 10 | BEEPER
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* (BEEPER) | 1 2 | (CLK) (BEEPER) |10 9 | --
|
||||
* (BTN_ENC) | 3 4 | -- (BTN_ENC) | 8 7 | (CLK)
|
||||
* (BTN_EN1) 5 6 | (SID) (BTN_EN1) 6 5 | (SID)
|
||||
* (BTN_EN2) | 7 8 | (CS) (BTN_EN2) | 4 3 | (CS)
|
||||
* 5V | 9 10 | GND GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_08_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_08_PIN
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_05_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_06_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
|
||||
/** Creality Ender-2 display pinout
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* (MOSI) 1.23 | 3 4 | 1.22 (LCD_RS)
|
||||
* (LCD_A0) 1.21 | 5 6 1.20 (BTN_EN2)
|
||||
* RESET 1.19 | 7 8 | 1.18 (BTN_EN1)
|
||||
* (BTN_ENC) 0.28 | 9 10 | 1.30 (SCK)
|
||||
* (SCK) 1.30 | 1 2 | 0.28 (BTN_ENC)
|
||||
* (BTN_EN1) 1.18 | 3 4 | 1.19 (RESET)
|
||||
* (BTN_EN2) 1.20 5 6 | 1.21 (LCD_A0)
|
||||
* (LCD_RS) 1.22 | 7 8 | 1.23 (MOSI)
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_01_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
// SPI 1
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_06_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_EN1 EXP2_03_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_05_PIN // (33) J3-4 & AUX-4
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN // (16) J3-7 & AUX-4
|
||||
#define LCD_SDSS EXP2_04_PIN // (16) J3-7 & AUX-4
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#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 EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // 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 EXP1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN EXP1_03_PIN // Detect the presence of the encoder
|
||||
#define BTN_ENC_EN EXP1_08_PIN // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -134,8 +134,8 @@
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN EXP2_07_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_SS_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
@@ -150,59 +150,60 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_MOTOR_EXPANSION)
|
||||
/** ------ ------
|
||||
* NC | 1 2 | GND NC | 1 2 | GND
|
||||
* NC | 3 4 | M1EN M2EN | 3 4 | M3EN
|
||||
* M1STP | 5 6 M1DIR M1RX | 5 6 M1DIAG
|
||||
* M2DIR | 7 8 | M2STP M2RX | 7 8 | M2DIAG
|
||||
* M3DIR | 9 10 | M3STP M3RX | 9 10 | M3DIAG
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
/**
|
||||
* ------ ------
|
||||
* (M3STP) | 1 2 | (M3DIR) (M3DIAG) | 1 2 | (M3RX)
|
||||
* (M2STP) | 3 4 | (M2DIR) (M2DIAG) | 3 4 | (M2RX)
|
||||
* (M1DIR) 5 6 | (M1STP) (M1DIAG) 5 6 | (M1RX)
|
||||
* (M1EN) | 7 8 | -- (M3EN) | 7 8 | (M2EN)
|
||||
* GND | 9 10 | -- GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*
|
||||
* NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
|
||||
*/
|
||||
|
||||
// M1 on Driver Expansion Module
|
||||
#define E2_STEP_PIN EXP2_05_PIN
|
||||
#define E2_DIR_PIN EXP2_06_PIN
|
||||
#define E2_ENABLE_PIN EXP2_04_PIN
|
||||
#define E2_STEP_PIN EXP2_06_PIN
|
||||
#define E2_DIR_PIN EXP2_05_PIN
|
||||
#define E2_ENABLE_PIN EXP2_07_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E2_DIAG_PIN EXP1_06_PIN
|
||||
#define E2_CS_PIN EXP1_05_PIN
|
||||
#define E2_DIAG_PIN EXP1_05_PIN
|
||||
#define E2_CS_PIN EXP1_06_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E2_SERIAL_TX_PIN EXP1_05_PIN
|
||||
#define E2_SERIAL_TX_PIN EXP1_06_PIN
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// M2 on Driver Expansion Module
|
||||
#define E3_STEP_PIN EXP2_08_PIN
|
||||
#define E3_DIR_PIN EXP2_07_PIN
|
||||
#define E3_STEP_PIN EXP2_03_PIN
|
||||
#define E3_DIR_PIN EXP2_04_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E3_ENABLE_PIN EXP1_03_PIN
|
||||
#define E3_DIAG_PIN EXP1_08_PIN
|
||||
#define E3_CS_PIN EXP1_07_PIN
|
||||
#define E3_ENABLE_PIN EXP1_08_PIN
|
||||
#define E3_DIAG_PIN EXP1_03_PIN
|
||||
#define E3_CS_PIN EXP1_04_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E3_SERIAL_TX_PIN EXP1_07_PIN
|
||||
#define E3_SERIAL_TX_PIN EXP1_04_PIN
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E3_ENABLE_PIN EXP2_04_PIN
|
||||
#define E3_ENABLE_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
// M3 on Driver Expansion Module
|
||||
#define E4_STEP_PIN EXP2_10_PIN
|
||||
#define E4_DIR_PIN EXP2_09_PIN
|
||||
#define E4_STEP_PIN EXP2_01_PIN
|
||||
#define E4_DIR_PIN EXP2_02_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E4_ENABLE_PIN EXP1_04_PIN
|
||||
#define E4_DIAG_PIN EXP1_10_PIN
|
||||
#define E4_CS_PIN EXP1_09_PIN
|
||||
#define E4_ENABLE_PIN EXP1_07_PIN
|
||||
#define E4_DIAG_PIN EXP1_01_PIN
|
||||
#define E4_CS_PIN EXP1_02_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E4_SERIAL_TX_PIN EXP1_09_PIN
|
||||
#define E4_SERIAL_TX_PIN EXP1_02_PIN
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E4_ENABLE_PIN EXP2_04_PIN
|
||||
#define E4_ENABLE_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#endif // BTT_MOTOR_EXPANSION
|
||||
|
149
Marlin/src/pins/lpc1768/pins_EMOTRONIC.h
Normal file
149
Marlin/src/pins/lpc1768/pins_EMOTRONIC.h
Normal file
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* eMotion-Tech eMotronic pin assignments
|
||||
*
|
||||
* Board pins<->features assignments are based on the
|
||||
* Micro-Delta Rework printer default connections.
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "eMotronic"
|
||||
#define BOARD_WEBSITE_URL "www.reprap-france.com/article/lemotronic-quesaco"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN P1_22 // S0
|
||||
#define Y_STOP_PIN P1_23 // S1
|
||||
#define Z_STOP_PIN P1_24 // S2
|
||||
#define I_STOP_PIN P1_25 // S3
|
||||
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN P0_26 // S4 (opto)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN P2_02 // M3
|
||||
#define X_DIR_PIN P4_28
|
||||
#define X_ENABLE_PIN P4_29
|
||||
|
||||
#define Y_STEP_PIN P2_01 // M2
|
||||
#define Y_DIR_PIN P0_22
|
||||
#define Y_ENABLE_PIN P0_21
|
||||
|
||||
#define Z_STEP_PIN P2_00 // M1
|
||||
#define Z_DIR_PIN P3_26
|
||||
#define Z_ENABLE_PIN P3_25
|
||||
|
||||
#define E0_STEP_PIN P2_03 // M4
|
||||
#define E0_DIR_PIN P0_04
|
||||
#define E0_ENABLE_PIN P0_05 // Correct!
|
||||
|
||||
#define E1_STEP_PIN P2_08 // M5
|
||||
#define E1_DIR_PIN P0_20
|
||||
#define E1_ENABLE_PIN P0_19
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
// 3.3V max when defined as an analog input
|
||||
//
|
||||
#define TEMP_0_PIN P0_24_A1 // A1 (TH1)
|
||||
#define TEMP_1_PIN P0_23_A0 // A0 (TH0)
|
||||
#define TEMP_BED_PIN P0_25_A2 // A2 (TH2)
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define _H0_PIN P2_04 // (H0: 15A)
|
||||
|
||||
#define HEATER_BED_PIN P2_05 // (H1: 10A shared)
|
||||
#define HEATER_0_PIN P2_06 // (H2: 10A shared)
|
||||
#define HEATER_1_PIN P2_07 // (H3: 10A shared)
|
||||
|
||||
#define FAN_PIN P2_11 // (FAN0: 1A)
|
||||
#define FAN1_PIN P2_13 // (FAN1: 1A)
|
||||
|
||||
//
|
||||
// Extension ports
|
||||
//
|
||||
#define EXP1_01_PIN P0_03 // RX0
|
||||
#define EXP1_02_PIN P0_02 // TX0
|
||||
#define EXP1_03_PIN P1_30
|
||||
#define EXP1_04_PIN P1_31
|
||||
#define EXP1_05_PIN P0_17 // MISO0
|
||||
#define EXP1_06_PIN P0_18 // MOSI0
|
||||
#define EXP1_07_PIN P0_15 // SCK0
|
||||
#define EXP1_08_PIN P0_16 // SSEL0
|
||||
#define EXP1_09_PIN P0_27 // SDA0
|
||||
#define EXP1_10_PIN P0_28 // SCL0
|
||||
|
||||
#define EXP2_01_PIN P0_10
|
||||
#define EXP2_02_PIN P0_11
|
||||
#define EXP2_03_PIN P0_00 // SDA1
|
||||
#define EXP2_04_PIN P0_01 // SCL1
|
||||
#define EXP2_05_PIN P1_28
|
||||
#define EXP2_06_PIN P1_29
|
||||
#define EXP2_07_PIN P1_26
|
||||
#define EXP2_08_PIN P1_27
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN P0_06
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
#define SD_SCK_PIN EXP1_07_PIN
|
||||
#define SD_MISO_PIN EXP1_05_PIN
|
||||
#define SD_MOSI_PIN EXP1_06_PIN
|
||||
#define SD_SS_PIN EXP1_08_PIN
|
||||
#define SD_DETECT_PIN EXP1_04_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ENABLED(EMOTION_TECH_LCD)
|
||||
#define BEEPER_PIN EXP2_01_PIN
|
||||
#define DOGLCD_A0 EXP2_06_PIN
|
||||
#define DOGLCD_CS EXP2_04_PIN
|
||||
#define DOGLCD_SCK EXP1_07_PIN
|
||||
#define DOGLCD_MOSI EXP1_06_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_07_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP2_02_PIN
|
||||
#endif
|
@@ -238,7 +238,7 @@
|
||||
#define LCD_SDSS P0_28 // EXP2.4
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1.5
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
#endif
|
||||
@@ -278,11 +278,7 @@
|
||||
#endif
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -363,9 +359,9 @@
|
||||
* PWM1.4 P1_23 SDSS(SSEL0) J3-5 AUX-3
|
||||
* PWM1.4 P2_03 Z_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.5 P2_04 RAMPS_D9_PIN
|
||||
* PWM1.5 P2_04 MOSFET_B_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
||||
* PWM1.6 P2_05 RAMPS_D10_PIN
|
||||
* PWM1.6 P2_05 MOSFET_A_PIN
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@@ -30,6 +30,8 @@
|
||||
#define BOARD_INFO_NAME "MKS SGen-L"
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"
|
||||
|
||||
#define USES_DIAG_JUMPERS
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -229,46 +231,46 @@
|
||||
#define LED4_PIN P1_21
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 | 6 5 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* (BEEPER) 1.31 | 1 2 | 1.30 (BTN_ENC) (MISO) 0.8 | 1 2 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 3 4 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 3 4 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 5 6 | 0.17 (LCD_D5) (BTN_EN2) 3.26 5 6 | 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 7 8 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_22
|
||||
#define EXP1_04_PIN P1_00
|
||||
#define EXP1_05_PIN P0_17
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
#define EXP1_01_PIN P1_31
|
||||
#define EXP1_02_PIN P1_30
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P0_17
|
||||
#define EXP1_07_PIN P1_00
|
||||
#define EXP1_08_PIN P1_22
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P0_27
|
||||
#define EXP2_05_PIN P0_09
|
||||
#define EXP2_06_PIN P3_26
|
||||
#define EXP2_07_PIN P0_28
|
||||
#define EXP2_08_PIN P3_25
|
||||
#define EXP2_09_PIN P0_07
|
||||
#define EXP2_10_PIN P0_08
|
||||
#define EXP2_01_PIN P0_08
|
||||
#define EXP2_02_PIN P0_07
|
||||
#define EXP2_03_PIN P3_25
|
||||
#define EXP2_04_PIN P0_28
|
||||
#define EXP2_05_PIN P3_26
|
||||
#define EXP2_06_PIN P0_09
|
||||
#define EXP2_07_PIN P0_27
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SD_SS_PIN EXP2_07_PIN
|
||||
#define SD_SS_PIN EXP2_04_PIN
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
@@ -276,30 +278,30 @@
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 2
|
||||
|
||||
@@ -314,8 +316,8 @@
|
||||
#define TFT_QUEUE_SIZE 6144
|
||||
#endif
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
@@ -323,74 +325,74 @@
|
||||
#undef BTN_ENC
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
|
||||
#if ENABLED(MKS_12864OLED_SSD1306)
|
||||
|
||||
#define LCD_PINS_DC EXP1_05_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define LCD_PINS_DC EXP1_06_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define DOGLCD_SCK EXP1_06_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define DOGLCD_SCK EXP1_05_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#define KILL_PIN -1 // NC
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#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 EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // 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 EXP1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
|
@@ -168,52 +168,35 @@
|
||||
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
||||
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef MOSFET_A_PIN
|
||||
#define MOSFET_A_PIN P2_05
|
||||
#endif
|
||||
#ifndef MOSFET_B_PIN
|
||||
#define MOSFET_B_PIN P2_04
|
||||
#endif
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN P2_07
|
||||
#endif
|
||||
#ifndef MOSFET_D_PIN
|
||||
#define MOSFET_D_PIN -1
|
||||
#endif
|
||||
#ifndef RAMPS_D8_PIN
|
||||
#define RAMPS_D8_PIN P2_07 // (8)
|
||||
#endif
|
||||
#ifndef RAMPS_D9_PIN
|
||||
#define RAMPS_D9_PIN P2_04 // (9)
|
||||
#endif
|
||||
#ifndef RAMPS_D10_PIN
|
||||
#define RAMPS_D10_PIN P2_05 // (10)
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN RAMPS_D10_PIN
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN1_PIN RAMPS_D8_PIN
|
||||
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#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
|
||||
#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
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
@@ -222,14 +205,14 @@
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -245,7 +228,7 @@
|
||||
|
||||
#define PS_ON_PIN P2_12 // (12)
|
||||
|
||||
#if !defined(TEMP_0_CS_PIN) && DISABLED(USE_ZMAX_PLUG)
|
||||
#if !defined(TEMP_0_CS_PIN) && !(HAS_Z_AXIS && Z_HOME_DIR)
|
||||
#define TEMP_0_CS_PIN P1_28
|
||||
#endif
|
||||
|
||||
@@ -275,11 +258,13 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
||||
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
||||
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
||||
#if HAS_PRUSA_MMU1
|
||||
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
|
||||
#define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
|
||||
#define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
|
||||
#endif
|
||||
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
|
||||
#endif
|
||||
#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
|
||||
|
||||
/**
|
||||
* LCD / Controller
|
||||
@@ -322,7 +307,9 @@
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. See 'pins_RAMPS_RE_ARM.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
@@ -364,9 +351,7 @@
|
||||
//#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
@@ -375,6 +360,8 @@
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#else
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -423,11 +410,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
@@ -484,14 +467,14 @@
|
||||
* All Fast PWMs have a 50Hz rate.
|
||||
*
|
||||
* The following pins/signals use the direct method. All other pins use the
|
||||
* the interrupt method. Note that SERVO2_PIN and RAMPS_D8_PIN use the
|
||||
* the interrupt method. Note that SERVO2_PIN and MOSFET_C_PIN use the
|
||||
* interrupt method.
|
||||
*
|
||||
* P1_20 (11) SERVO0_PIN
|
||||
* P1_21 ( 6) SERVO1_PIN J5-1
|
||||
* P0_18 ( 4) SERVO3_PIN 5V output
|
||||
* *P2_04 ( 9) RAMPS_D9_PIN
|
||||
* *P2_05 (10) RAMPS_D10_PIN
|
||||
* *P2_04 ( 9) MOSFET_B_PIN
|
||||
* *P2_05 (10) MOSFET_A_PIN
|
||||
*
|
||||
* * - If used as a heater driver then a Fast PWM is NOT assigned. If used as
|
||||
* a fan driver then enabling FAST_PWM_FAN assigns a Fast PWM to it.
|
||||
|
@@ -107,7 +107,7 @@
|
||||
// Display
|
||||
//
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN P1_31
|
||||
#define DOGLCD_A0 P2_06
|
||||
#define DOGLCD_CS P0_16
|
||||
|
@@ -154,9 +154,7 @@
|
||||
//#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN P1_30 // (37) may change if cable changes
|
||||
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
@@ -164,6 +162,8 @@
|
||||
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#else
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
||||
@@ -180,11 +180,7 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -31,9 +31,11 @@
|
||||
#define BOARD_INFO_NAME "BTT SKR E3 Turbo"
|
||||
#endif
|
||||
|
||||
#define USES_DIAG_JUMPERS
|
||||
|
||||
// Onboard I2C EEPROM
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB (AT24C32)
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4K (AT24C32)
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -184,78 +186,82 @@
|
||||
|
||||
/**
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS)
|
||||
* (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
|
||||
* RESET | 7 8 | P0_19 (BTN_EN1)
|
||||
* (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
|
||||
* (BEEPER) P2_08 | 1 2 | P0_16 (BTN_ENC)
|
||||
* (BTN_EN1) P0_19 | 3 4 | RESET
|
||||
* (BTN_EN2) P0_20 5 6 | P0_15 (LCD_D4)
|
||||
* (LCD_RS) P0_17 | 7 8 | P0_18 (LCD_EN)
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
* EXP
|
||||
*/
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_17
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P0_20
|
||||
#define EXP1_07_PIN -1
|
||||
#define EXP1_08_PIN P0_19
|
||||
#define EXP1_09_PIN P0_16
|
||||
#define EXP1_10_PIN P2_08
|
||||
#define EXP1_01_PIN P2_08
|
||||
#define EXP1_02_PIN P0_16
|
||||
#define EXP1_03_PIN P0_19
|
||||
#define EXP1_04_PIN -1
|
||||
#define EXP1_05_PIN P0_20
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_17
|
||||
#define EXP1_08_PIN P0_18
|
||||
|
||||
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
#error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue."
|
||||
#if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. See 'pins_BTT_SKR_E3_TURBO.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Ender 3 V2 display SKR E3 Turbo (EXP1) Ender 3 V2 display --> SKR E3 Turbo
|
||||
* ------ ------ RX 8 --> 5 P0_15
|
||||
* 5V | 1 2 | GND 5V | 1 2 | GND TX 7 --> 9 P0_16
|
||||
* (BTN_E1) A | 3 4 | B (BTN_E2) (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS) BEEPER 5 --> 10 P2_08
|
||||
* BEEPER | 5 6 ENT (BTN_ENC) (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
|
||||
* (SKR_RX1) TX | 7 8 | RX (SKR_TX1) Reset | 7 8 | P0_19 (BTN_EN1)
|
||||
* NC | 9 10 | NC (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
|
||||
* ------ ------ RX 3 --> 5 P0_15
|
||||
* -- | 1 2 | -- (BEEPER) P2_08 |10 9 | P0_16 (BTN_ENC) TX 4 --> 9 P0_16
|
||||
* (SKR_TX1) RX | 3 4 | TX (SKR_RX1) (BTN_EN1) P0_19 | 8 7 | RESET BEEPER 6 --> 10 P2_08
|
||||
* (BTN_ENC) ENT 5 6 | BEEPER (BTN_EN2) P0_20 6 5 | P0_15 (LCD_D4)
|
||||
* (BTN_E2) B | 7 8 | A (BTN_E1) (LCD_RS) P0_17 | 4 3 | P0_18 (LCD_EN)
|
||||
* GND | 9 10 | 5V GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
*/
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_06_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_05_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_E3_TURBO.h' for details. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_E3_TURBO.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_RS EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_09_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_08_PIN
|
||||
#define LCD_PINS_D7 EXP1_10_PIN
|
||||
#define LCD_PINS_RS EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_02_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_03_PIN
|
||||
#define LCD_PINS_D7 EXP1_01_PIN
|
||||
#define ADC_KEYPAD_PIN P1_23 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_01_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
|
@@ -31,4 +31,4 @@
|
||||
// Include SKR 1.4 pins
|
||||
//
|
||||
#define REQUIRE_LPC1769
|
||||
#include "../lpc1768/pins_BTT_SKR_V1_4.h"
|
||||
#include "../lpc1768/pins_BTT_SKR_V1_4.h" // ... BTT_SKR_common
|
||||
|
@@ -30,14 +30,14 @@
|
||||
#define BOARD_INFO_NAME "MKS SGEN_L V2"
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
|
||||
|
||||
#define USES_DIAG_JUMPERS
|
||||
|
||||
//
|
||||
// EEPROM, MKS SGEN_L V2.0 hardware has 4K EEPROM on the board
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM // AT24C32
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#define I2C_EEPROM // AT24C32
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4K
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -101,6 +101,12 @@
|
||||
#define Z_MIN_PROBE_PIN P1_24
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#define FIL_RUNOUT_PIN P1_28 // X+
|
||||
#define FIL_RUNOUT2_PIN P1_26 // Y+
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
@@ -201,6 +207,14 @@
|
||||
#define TEMP_1_PIN P0_25_A2 // Analog Input A2 (TH2)
|
||||
#define TEMP_2_PIN P0_26_A3 // Analog Input A3 (P0.26, No pull up)
|
||||
|
||||
#if HOTENDS == 1 && !REDUNDANT_TEMP_MATCH(SOURCE, E1)
|
||||
#if TEMP_SENSOR_PROBE
|
||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||
#elif TEMP_SENSOR_CHAMBER
|
||||
#define TEMP_CHAMBER_PIN TEMP_1_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
@@ -256,86 +270,87 @@
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 | 6 5 | 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 | 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RST
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* (BEEPER) 1.31 | 1 2 | 1.30 (BTN_ENC) (MISO) 0.8 | 1 2 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 3 4 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 3 4 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 5 6 | 0.17 (LCD_D5) (BTN_EN2) 3.26 5 6 | 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 7 8 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 7 8 | RST
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_22
|
||||
#define EXP1_04_PIN P1_00
|
||||
#define EXP1_05_PIN P0_17
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
#define EXP1_01_PIN P1_31
|
||||
#define EXP1_02_PIN P1_30
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P0_17
|
||||
#define EXP1_07_PIN P1_00
|
||||
#define EXP1_08_PIN P1_22
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P0_27
|
||||
#define EXP2_05_PIN P0_09
|
||||
#define EXP2_06_PIN P3_26
|
||||
#define EXP2_07_PIN P0_28
|
||||
#define EXP2_08_PIN P3_25
|
||||
#define EXP2_09_PIN P0_07
|
||||
#define EXP2_10_PIN P0_08
|
||||
#define EXP2_01_PIN P0_08
|
||||
#define EXP2_02_PIN P0_07
|
||||
#define EXP2_03_PIN P3_25
|
||||
#define EXP2_04_PIN P0_28
|
||||
#define EXP2_05_PIN P3_26
|
||||
#define EXP2_06_PIN P0_09
|
||||
#define EXP2_07_PIN P0_27
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
|
||||
#if ENABLED(MKS_12864OLED_SSD1306)
|
||||
|
||||
#define LCD_PINS_DC EXP1_05_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define LCD_PINS_DC EXP1_06_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define DOGLCD_SCK EXP1_06_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define DOGLCD_SCK EXP1_05_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#define KILL_PIN -1 // NC
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 2
|
||||
|
||||
@@ -352,50 +367,50 @@
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#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 EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // 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 EXP1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
@@ -416,15 +431,15 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SD_SS_PIN EXP2_07_PIN
|
||||
#define SD_SS_PIN EXP2_04_PIN
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
|
@@ -91,7 +91,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
|
||||
#define BEEPER_PIN P1_31
|
||||
#define DOGLCD_A0 P2_11
|
||||
|
@@ -157,11 +157,11 @@
|
||||
|
||||
/**
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* P0_18 | 3 4 | P0_16
|
||||
* P0_15 | 5 6 P3_25
|
||||
* P2_11 | 7 8 | P3_26
|
||||
* P1_30 | 9 10 | P1_31
|
||||
* P1_31 | 1 2 | P1_30
|
||||
* P3_26 | 3 4 | P2_11
|
||||
* P3_25 5 6 | P0_15
|
||||
* P0_16 | 7 8 | P0_18
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
* EXP1
|
||||
*
|
||||
@@ -171,43 +171,43 @@
|
||||
* A remote SD card is currently not supported because the pins routed to the EXP2
|
||||
* connector are shared with the onboard SD card.
|
||||
*/
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P3_25
|
||||
#define EXP1_07_PIN P2_11
|
||||
#define EXP1_08_PIN P3_26
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
#define EXP1_01_PIN P1_31
|
||||
#define EXP1_02_PIN P1_30
|
||||
#define EXP1_03_PIN P3_26
|
||||
#define EXP1_04_PIN P2_11
|
||||
#define EXP1_05_PIN P3_25
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
/** ------
|
||||
* 5V | 1 2 | GND
|
||||
* LCD_EN | 3 4 | LCD_RS
|
||||
* LCD_D4 | 5 6 EN2
|
||||
* KILL | 7 8 | EN1
|
||||
* ENC | 9 10 | BEEPER
|
||||
* BEEPER | 1 2 | ENC
|
||||
* EN1 | 3 4 | KILL
|
||||
* EN2 5 6 | LCD_D4
|
||||
* LCD_RS | 7 8 | LCD_EN
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
*/
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define KILL_PIN EXP1_07_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define KILL_PIN EXP1_04_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
/** ------
|
||||
* 5V | 1 2 | GND
|
||||
* SPI-MOSI | 3 4 | SPI-CS
|
||||
* A0 | 5 6 EN2
|
||||
* -- | 7 8 | EN1
|
||||
* ENC | 9 10 | SPI-SCK
|
||||
* SCK | 1 2 | ENC
|
||||
* EN1 | 3 4 | --
|
||||
* EN2 5 6 | A0
|
||||
* CS | 7 8 | MOSI
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
*/
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_01_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define LCD_CONTRAST_INIT 160
|
||||
#define LCD_CONTRAST_MIN 120
|
||||
#define LCD_CONTRAST_MAX 180
|
||||
@@ -221,7 +221,7 @@
|
||||
#endif
|
||||
|
||||
#if EITHER(CR10_STOCKDISPLAY, MKS_MINI_12864)
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#endif
|
||||
|
@@ -135,17 +135,20 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 6
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 6
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 26
|
||||
#define DOGLCD_CS 24
|
||||
#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
||||
#define DOGLCD_SCK -1
|
||||
#define BTN_EN1 23
|
||||
#define BTN_EN2 25
|
||||
#define BTN_ENC 27
|
||||
|
||||
#define BTN_EN1 23
|
||||
#define BTN_EN2 25
|
||||
#define BTN_ENC 27
|
||||
#if HAS_MARLINUI_U8GLIB
|
||||
#define DOGLCD_A0 26
|
||||
#define DOGLCD_CS 24
|
||||
#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
||||
#define DOGLCD_SCK -1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT_PIN 19
|
||||
|
@@ -140,19 +140,20 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 16
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 16
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 39
|
||||
#define DOGLCD_CS 35
|
||||
#define DOGLCD_MOSI 48
|
||||
#define DOGLCD_SCK 49
|
||||
#define LCD_SCREEN_ROT_180
|
||||
#define BTN_EN1 36
|
||||
#define BTN_EN2 34
|
||||
#define BTN_ENC 38
|
||||
|
||||
// The encoder and click button
|
||||
#define BTN_EN1 36
|
||||
#define BTN_EN2 34
|
||||
#define BTN_ENC 38
|
||||
#if HAS_MARLINUI_U8GLIB
|
||||
#define DOGLCD_A0 39
|
||||
#define DOGLCD_CS 35
|
||||
#define DOGLCD_MOSI 48
|
||||
#define DOGLCD_SCK 49
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT_PIN 42
|
||||
@@ -164,3 +165,5 @@
|
||||
|
||||
#define STAT_LED_BLUE_PIN -1
|
||||
#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
@@ -127,7 +127,7 @@
|
||||
|
||||
#define LCD_RESET_PIN 16
|
||||
|
||||
#define DEFAULT_LCD_CONTRAST 220
|
||||
#define LCD_CONTRAST_INIT 220
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#else
|
||||
|
@@ -27,9 +27,9 @@
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 V3.0 (MC2)"
|
||||
|
||||
#define X_MIN_PIN 22
|
||||
#define X_MAX_PIN 24
|
||||
#define Y_MIN_PIN 26
|
||||
#define Y_MAX_PIN 28
|
||||
#define X_MIN_PIN 22
|
||||
#define X_MAX_PIN 24
|
||||
#define Y_MIN_PIN 26
|
||||
#define Y_MAX_PIN 28
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
||||
|
@@ -112,7 +112,7 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_DIR_PIN 16
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
@@ -134,7 +134,7 @@
|
||||
#if ENABLED(HJC_LCD_SMART_CONTROLLER)
|
||||
#define LCD_BACKLIGHT_PIN 5 // LCD_Backlight
|
||||
//#ifndef LCD_CONTRAST_PIN
|
||||
// #define LCD_CONTRAST_PIN 5 // LCD_Contrast
|
||||
// #define LCD_CONTRAST_PIN 5 // LCD_Contrast
|
||||
//#endif
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 24 // Filament runout
|
||||
|
@@ -84,7 +84,7 @@
|
||||
#define E1_ENABLE_PIN 33
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#define FIL_RUNOUT_PIN 42 // ROT2 Connector
|
||||
#define FIL_RUNOUT2_PIN 44 // ROT1 Connector
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Mega Controller supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#include "env_validate.h"
|
||||
@@ -121,7 +121,7 @@
|
||||
#define CONTROLLER_FAN_PIN FAN2_PIN
|
||||
#endif
|
||||
|
||||
#define FAN_SOFT_PWM
|
||||
#define FAN_SOFT_PWM_REQUIRED
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -139,17 +139,12 @@
|
||||
#if ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 46
|
||||
// Pins for DOGM SPI LCD Support
|
||||
|
||||
#define DOGLCD_A0 47
|
||||
#define DOGLCD_CS 45
|
||||
#define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
|
||||
|
||||
#define KILL_PIN 12
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BTN_EN1 48
|
||||
#define BTN_EN2 11
|
||||
@@ -157,6 +152,8 @@
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#endif // MINIPANEL
|
||||
|
||||
//
|
||||
|
@@ -106,7 +106,7 @@
|
||||
//
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
#define SD_DETECT_PIN -1 // RAMPS doesn't use this
|
||||
|
||||
#endif // IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#endif // HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
|
@@ -69,7 +69,7 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Pins
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 49
|
||||
@@ -144,61 +144,39 @@
|
||||
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning plugs
|
||||
//
|
||||
// Two thermocouple connectors allows for either
|
||||
// 2 extruders or 1 extruder and a heated bed.
|
||||
// With no heated bed, an additional 24V fan is possible.
|
||||
// FET Pin Mapping - FET 1 is closest to the input power connector
|
||||
//
|
||||
|
||||
// Labels from the schematic:
|
||||
#define EX1_HEAT_PIN 6 // H3
|
||||
#define EX1_FAN_PIN 7 // H4
|
||||
#define EX2_HEAT_PIN 11 // B5
|
||||
#define EX2_FAN_PIN 12 // B6
|
||||
#define HBP_PIN 45 // L4
|
||||
#define EXTRA_FET_PIN 44 // L5
|
||||
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_EEB
|
||||
#else
|
||||
#define IS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_EFB
|
||||
#else
|
||||
#define IS_EFF
|
||||
#endif
|
||||
#define MOSFET_1_PIN 6 // Plug EX1 Pin 1-2 -> PH3 #15 -> Logical 06
|
||||
#define MOSFET_2_PIN 7 // Plug EX1 Pin 3-4 -> PH4 #16 -> Logical 07
|
||||
#define MOSFET_3_PIN 11 // Plug EX2 1-2 -> PB5 #24 -> Logical 11
|
||||
#define MOSFET_4_PIN 12 // Plug EX2 3-4 -> PB6 #25 -> Logical 12
|
||||
#define MOSFET_5_PIN 45 // Plug HBD 1-2 -> PL4 #39 -> Logical 45
|
||||
#define MOSFET_6_PIN 44 // Plug Extra 1-2 -> PL5 #40 -> Logical 44 (FET not soldered in all boards)
|
||||
|
||||
//
|
||||
// Heaters / Fans (24V)
|
||||
//
|
||||
#define HEATER_0_PIN EX1_HEAT_PIN
|
||||
|
||||
#if ENABLED(IS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN HBP_PIN
|
||||
#elif ENABLED(IS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN EX2_HEAT_PIN
|
||||
#elif ENABLED(IS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN EX2_HEAT_PIN
|
||||
#define HEATER_BED_PIN HBP_PIN
|
||||
#elif ENABLED(IS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN1_PIN HBP_PIN
|
||||
#endif
|
||||
#define HEATER_0_PIN MOSFET_1_PIN // EX1
|
||||
#define HEATER_1_PIN MOSFET_3_PIN // EX2
|
||||
#define HEATER_BED_PIN MOSFET_5_PIN // HBP
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(IS_EFB, IS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN EX2_HEAT_PIN
|
||||
#elif EITHER(IS_EEF, IS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN HBP_PIN
|
||||
#else
|
||||
#define FAN_PIN EXTRA_FET_PIN
|
||||
// EX1 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN MOSFET_2_PIN
|
||||
#else
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN MOSFET_2_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN EX2_FAN_PIN
|
||||
// EX2 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN MOSFET_4_PIN
|
||||
#else
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN MOSFET_4_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -268,9 +246,6 @@
|
||||
#define SDSS 53 // B0
|
||||
#define SD_DETECT_PIN 9 // H6
|
||||
|
||||
//
|
||||
// TMC 220x
|
||||
//
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC220x stepper drivers
|
||||
|
@@ -34,7 +34,7 @@
|
||||
#if NOT_TARGET(__AVR_ATmega1281__)
|
||||
#error "Oops! Select 'Minitronics' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Minitronics supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Minitronics v1.0/1.1"
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Overlord Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Overlord supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#include "env_validate.h"
|
||||
@@ -49,7 +49,7 @@
|
||||
#define Z_MIN_PROBE_PIN 46 // JP4, Tfeed1
|
||||
#endif
|
||||
|
||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 44 // JP3, Tfeed2
|
||||
#endif
|
||||
|
||||
|
@@ -51,6 +51,7 @@
|
||||
#define SERVO0_PIN 3
|
||||
#define SERVO1_PIN 4
|
||||
#define SERVO2_PIN 5
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
|
@@ -73,7 +73,7 @@
|
||||
#define TEMP_BED_PIN 6
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
|
||||
#if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920
|
||||
#define LCD_PINS_RS 30
|
||||
#define LCD_PINS_ENABLE 20
|
||||
#define LCD_PINS_D4 25
|
||||
|
106
Marlin/src/pins/mega/pins_WEEDO_62A.h
Normal file
106
Marlin/src/pins/mega/pins_WEEDO_62A.h
Normal file
@@ -0,0 +1,106 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Based on WEEDO 62A pin configuration
|
||||
* Copyright (c) 2019 WEEDO3D Perron
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "WEEDO 62A"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 3
|
||||
#define X_MAX_PIN 2
|
||||
#define Y_MIN_PIN 40
|
||||
#define Y_MAX_PIN 41
|
||||
#define Z_MIN_PIN 18
|
||||
#define Z_MAX_PIN 19
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 26
|
||||
#define X_DIR_PIN 28
|
||||
#define X_ENABLE_PIN 24
|
||||
|
||||
#define Y_STEP_PIN 60
|
||||
#define Y_DIR_PIN 61
|
||||
#define Y_ENABLE_PIN 56
|
||||
|
||||
#define Z_STEP_PIN 46
|
||||
#define Z_DIR_PIN 48
|
||||
#define Z_ENABLE_PIN 62
|
||||
|
||||
#define E0_STEP_PIN 54
|
||||
#define E0_DIR_PIN 55
|
||||
#define E0_ENABLE_PIN 38
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 13 // ANALOG NUMBERING
|
||||
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 10 // EXTRUDER 1
|
||||
#define HEATER_BED_PIN 8 // BED
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define PS_ON_PIN 12
|
||||
#define LED_PIN 13
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS 29
|
||||
#define LCD_RESET_PIN 25
|
||||
#define LCD_CONTRAST_INIT 255
|
||||
|
||||
#define BTN_EN1 33
|
||||
#define BTN_EN2 31
|
||||
#define BTN_ENC 35
|
||||
#endif
|
@@ -37,19 +37,31 @@
|
||||
|
||||
#define MAX_E_STEPPERS 8
|
||||
|
||||
#if MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
|
||||
#define IS_RAMPS_EFB
|
||||
#elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
|
||||
#define IS_RAMPS_EEB
|
||||
#elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
|
||||
#define IS_RAMPS_EFF
|
||||
#elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
|
||||
#define IS_RAMPS_EEF
|
||||
#elif MB(RAMPS_13_SF, RAMPS_14_SF, RAMPS_PLUS_SF, RAMPS_14_RE_ARM_SF, RAMPS_SMART_SF, RAMPS_DUO_SF, RAMPS4DUE_SF)
|
||||
#define IS_RAMPS_SF
|
||||
#if NONE(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFF, FET_ORDER_EFB, FET_ORDER_SF)
|
||||
#if MB(RAMPS_13_EFB, RAMPS_14_EFB, RAMPS_PLUS_EFB, RAMPS_14_RE_ARM_EFB, RAMPS_SMART_EFB, RAMPS_DUO_EFB, RAMPS4DUE_EFB)
|
||||
#define FET_ORDER_EFB 1
|
||||
#elif MB(RAMPS_13_EEB, RAMPS_14_EEB, RAMPS_PLUS_EEB, RAMPS_14_RE_ARM_EEB, RAMPS_SMART_EEB, RAMPS_DUO_EEB, RAMPS4DUE_EEB)
|
||||
#define FET_ORDER_EEB 1
|
||||
#elif MB(RAMPS_13_EFF, RAMPS_14_EFF, RAMPS_PLUS_EFF, RAMPS_14_RE_ARM_EFF, RAMPS_SMART_EFF, RAMPS_DUO_EFF, RAMPS4DUE_EFF)
|
||||
#define FET_ORDER_EFF 1
|
||||
#elif MB(RAMPS_13_EEF, RAMPS_14_EEF, RAMPS_PLUS_EEF, RAMPS_14_RE_ARM_EEF, RAMPS_SMART_EEF, RAMPS_DUO_EEF, RAMPS4DUE_EEF)
|
||||
#define FET_ORDER_EEF 1
|
||||
#elif MB(RAMPS_13_SF, RAMPS_14_SF, RAMPS_PLUS_SF, RAMPS_14_RE_ARM_SF, RAMPS_SMART_SF, RAMPS_DUO_SF, RAMPS4DUE_SF)
|
||||
#define FET_ORDER_SF 1
|
||||
#elif HAS_MULTI_HOTEND || (HAS_EXTRUDERS && HAS_CUTTER)
|
||||
#if TEMP_SENSOR_BED
|
||||
#define FET_ORDER_EEB 1
|
||||
#else
|
||||
#define FET_ORDER_EEF 1
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define FET_ORDER_EFB 1
|
||||
#else
|
||||
#define FET_ORDER_EFF 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !(BOTH(IS_ULTRA_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD))
|
||||
#if !(BOTH(HAS_WIRED_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, WYH_L12864, MINIPANEL, REPRAPWORLD_KEYPAD))
|
||||
#define HAS_FREE_AUX2_PINS 1
|
||||
#endif
|
||||
|
||||
@@ -111,6 +123,8 @@
|
||||
#include "ramps/pins_ZRIB_V20.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
|
||||
#elif MB(ZRIB_V52)
|
||||
#include "ramps/pins_ZRIB_V52.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
|
||||
#elif MB(ZRIB_V53)
|
||||
#include "ramps/pins_ZRIB_V53.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
|
||||
#elif MB(FELIX2)
|
||||
#include "ramps/pins_FELIX2.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280
|
||||
#elif MB(RIGIDBOARD)
|
||||
@@ -187,6 +201,8 @@
|
||||
#include "ramps/pins_RAMPS_S_12.h" // ATmega2560 env:mega2560
|
||||
#elif MB(LONGER3D_LK1_PRO, LONGER3D_LKx_PRO)
|
||||
#include "ramps/pins_LONGER3D_LKx_PRO.h" // ATmega2560 env:mega2560
|
||||
#elif MB(PXMALION_CORE_I3)
|
||||
#include "ramps/pins_PXMALION_CORE_I3.h" // ATmega2560 env:mega2560
|
||||
// PATCH START: Knutwurst
|
||||
#elif MB(TRIGORILLA_CHIRON)
|
||||
#include "ramps/pins_TRIGORILLA_CHIRON.h" // ATmega2560 env:mega2560
|
||||
@@ -275,6 +291,8 @@
|
||||
#include "mega/pins_MALYAN_M180.h" // ATmega2560 env:mega2560
|
||||
#elif MB(PROTONEER_CNC_SHIELD_V3)
|
||||
#include "mega/pins_PROTONEER_CNC_SHIELD_V3.h"// ATmega2560 env:mega2560
|
||||
#elif MB(WEEDO_62A)
|
||||
#include "mega/pins_WEEDO_62A.h" // ATmega2560 env:mega2560
|
||||
|
||||
//
|
||||
// ATmega1281, ATmega2561
|
||||
@@ -388,6 +406,8 @@
|
||||
#include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
|
||||
#elif MB(BTT_SKR_V1_4)
|
||||
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768
|
||||
#elif MB(EMOTRONIC)
|
||||
#include "lpc1768/pins_EMOTRONIC.h" // LPC1768 env:LPC1768
|
||||
|
||||
//
|
||||
// LPC1769 ARM Cortex M3
|
||||
@@ -450,14 +470,14 @@
|
||||
#include "sam/pins_ARCHIM2.h" // SAM3X8E env:DUE_archim env:DUE_archim_debug
|
||||
#elif MB(ALLIGATOR)
|
||||
#include "sam/pins_ALLIGATOR_R2.h" // SAM3X8E env:DUE env:DUE_debug
|
||||
#elif MB(ADSK)
|
||||
#include "sam/pins_ADSK.h" // SAM3X8E env:DUE env:DUE_debug
|
||||
#elif MB(PRINTRBOARD_G2)
|
||||
#include "sam/pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
|
||||
#elif MB(CNCONTROLS_15D)
|
||||
#include "sam/pins_CNCONTROLS_15D.h" // SAM3X8E env:DUE env:DUE_USB
|
||||
#elif MB(KRATOS32)
|
||||
#include "sam/pins_KRATOS32.h" // SAM3X8E env:DUE env:DUE_USB
|
||||
#elif MB(PRINTRBOARD_G2)
|
||||
#include "sam/pins_PRINTRBOARD_G2.h" // SAM3X8C env:DUE_USB
|
||||
#elif MB(ADSK)
|
||||
#include "sam/pins_ADSK.h" // SAM3X8C env:DUE env:DUE_debug
|
||||
|
||||
//
|
||||
// STM32 ARM Cortex-M0
|
||||
@@ -478,15 +498,15 @@
|
||||
#elif MB(STM3R_MINI)
|
||||
#include "stm32f1/pins_STM3R_MINI.h" // STM32F103VE? env:STM32F103VE env:STM32F103RE_maple
|
||||
#elif MB(GTM32_PRO_VB)
|
||||
#include "stm32f1/pins_GTM32_PRO_VB.h" // STM32F103VE env:STM32F103VE env:STM32F103RE_maple
|
||||
#include "stm32f1/pins_GTM32_PRO_VB.h" // STM32F103VE env:STM32F103VE env:STM32F103VE_GTM32_maple
|
||||
#elif MB(GTM32_PRO_VD)
|
||||
#include "stm32f1/pins_GTM32_PRO_VD.h" // STM32F103VE env:STM32F103VE env:STM32F103RE_maple
|
||||
#include "stm32f1/pins_GTM32_PRO_VD.h" // STM32F103VE env:STM32F103VE env:STM32F103VE_GTM32_maple
|
||||
#elif MB(GTM32_MINI)
|
||||
#include "stm32f1/pins_GTM32_MINI.h" // STM32F103VE env:STM32F103VE env:STM32F103RE_maple
|
||||
#include "stm32f1/pins_GTM32_MINI.h" // STM32F103VE env:STM32F103VE env:STM32F103VE_GTM32_maple
|
||||
#elif MB(GTM32_MINI_A30)
|
||||
#include "stm32f1/pins_GTM32_MINI_A30.h" // STM32F103VE env:STM32F103VE env:STM32F103RE_maple
|
||||
#include "stm32f1/pins_GTM32_MINI_A30.h" // STM32F103VE env:STM32F103VE env:STM32F103VE_GTM32_maple
|
||||
#elif MB(GTM32_REV_B)
|
||||
#include "stm32f1/pins_GTM32_REV_B.h" // STM32F103VE env:STM32F103VE env:STM32F103RE_maple
|
||||
#include "stm32f1/pins_GTM32_REV_B.h" // STM32F103VE env:STM32F103VE env:STM32F103VE_GTM32_maple
|
||||
#elif MB(MORPHEUS)
|
||||
#include "stm32f1/pins_MORPHEUS.h" // STM32F103RE env:STM32F103RE env:STM32F103RE_maple
|
||||
#elif MB(CHITU3D)
|
||||
@@ -523,6 +543,8 @@
|
||||
#include "stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple
|
||||
#elif MB(BTT_SKR_MINI_E3_V2_0)
|
||||
#include "stm32f1/pins_BTT_SKR_MINI_E3_V2_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple env:STM32F103RE_btt_maple env:STM32F103RE_btt_USB_maple
|
||||
#elif MB(BTT_SKR_MINI_E3_V3_0)
|
||||
#include "stm32g0/pins_BTT_SKR_MINI_E3_V3_0.h" // STM32G0 env:STM32G0B1RE_btt env:STM32G0B1RE_btt_xfer
|
||||
#elif MB(BTT_SKR_MINI_MZ_V1_0)
|
||||
#include "stm32f1/pins_BTT_SKR_MINI_MZ_V1_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple
|
||||
#elif MB(BTT_SKR_E3_DIP)
|
||||
@@ -540,7 +562,7 @@
|
||||
#elif MB(LONGER3D_LK)
|
||||
#include "stm32f1/pins_LONGER3D_LK.h" // STM32F1 env:STM32F103VE_longer env:STM32F103VE_longer_maple
|
||||
#elif MB(CCROBOT_MEEB_3DP)
|
||||
#include "stm32f1/pins_CCROBOT_MEEB_3DP.h" // STM32F1 env:STM32F103RC_meeb
|
||||
#include "stm32f1/pins_CCROBOT_MEEB_3DP.h" // STM32F1 env:STM32F103RC_meeb_maple
|
||||
#elif MB(CHITU3D_V5)
|
||||
#include "stm32f1/pins_CHITU3D_V5.h" // STM32F1 env:chitu_f103 env:chitu_f103_maple env:chitu_v5_gpio_init env:chitu_v5_gpio_init_maple
|
||||
#elif MB(CHITU3D_V6)
|
||||
@@ -548,19 +570,31 @@
|
||||
#elif MB(CHITU3D_V9)
|
||||
#include "stm32f1/pins_CHITU3D_V9.h" // STM32F1 env:chitu_f103 env:chitu_f103_maple
|
||||
#elif MB(CREALITY_V4)
|
||||
#include "stm32f1/pins_CREALITY_V4.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V4.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V4210)
|
||||
#include "stm32f1/pins_CREALITY_V4210.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V4210.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V425)
|
||||
#include "stm32f1/pins_CREALITY_V425.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V422)
|
||||
#include "stm32f1/pins_CREALITY_V422.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V423)
|
||||
#include "stm32f1/pins_CREALITY_V423.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer
|
||||
#elif MB(CREALITY_V427)
|
||||
#include "stm32f1/pins_CREALITY_V427.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V427.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V431, CREALITY_V431_A, CREALITY_V431_B, CREALITY_V431_C, CREALITY_V431_D)
|
||||
#include "stm32f1/pins_CREALITY_V431.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V431.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V452)
|
||||
#include "stm32f1/pins_CREALITY_V452.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V452.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V453)
|
||||
#include "stm32f1/pins_CREALITY_V453.h" // STM32F1 env:STM32F103RET6_creality env:STM32F103RET6_creality_maple
|
||||
#include "stm32f1/pins_CREALITY_V453.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V24S1)
|
||||
#include "stm32f1/pins_CREALITY_V24S1.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V24S1_301)
|
||||
#include "stm32f1/pins_CREALITY_V24S1_301.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
|
||||
#elif MB(CREALITY_V25S1)
|
||||
#include "stm32f1/pins_CREALITY_V25S1.h" // STM32F1 env:STM32F103RE_creality_smartPro env:STM32F103RE_creality_smartPro_maple
|
||||
#elif MB(TRIGORILLA_PRO)
|
||||
#include "stm32f1/pins_TRIGORILLA_PRO.h" // STM32F1 env:trigorilla_pro env:trigorilla_pro_maple
|
||||
#include "stm32f1/pins_TRIGORILLA_PRO.h" // STM32F1 env:trigorilla_pro env:trigorilla_pro_maple env:trigorilla_pro_disk
|
||||
#elif MB(FLY_MINI)
|
||||
#include "stm32f1/pins_FLY_MINI.h" // STM32F1 env:FLY_MINI env:FLY_MINI_maple
|
||||
#elif MB(FLSUN_HISPEED)
|
||||
@@ -575,6 +609,10 @@
|
||||
#include "stm32f1/pins_ZM3E4_V1_0.h" // STM32F1 env:STM32F103VC_ZM3E4_USB env:STM32F103VC_ZM3E4_USB_maple
|
||||
#elif MB(ZONESTAR_ZM3E4V2)
|
||||
#include "stm32f1/pins_ZM3E4_V2_0.h" // STM32F1 env:STM32F103VE_ZM3E4V2_USB env:STM32F103VE_ZM3E4V2_USB_maple
|
||||
#elif MB(ERYONE_ERY32_MINI)
|
||||
#include "stm32f1/pins_ERYONE_ERY32_MINI.h" // STM32F103VET6 env:ERYONE_ERY32_MINI_maple
|
||||
#elif MB(PANDA_PI_V29)
|
||||
#include "stm32f1/pins_PANDA_PI_V29.h" // STM32F103RCT6 env:PANDA_PI_V29
|
||||
|
||||
//
|
||||
// ARM Cortex-M4F
|
||||
@@ -599,8 +637,6 @@
|
||||
#include "stm32f4/pins_RUMBA32_BTT.h" // STM32F4 env:rumba32
|
||||
#elif MB(BLACK_STM32F407VE)
|
||||
#include "stm32f4/pins_BLACK_STM32F407VE.h" // STM32F4 env:STM32F407VE_black
|
||||
#elif MB(STEVAL_3DP001V1)
|
||||
#include "stm32f4/pins_STEVAL_3DP001V1.h" // STM32F4 env:STM32F401VE_STEVAL
|
||||
#elif MB(BTT_SKR_PRO_V1_1)
|
||||
#include "stm32f4/pins_BTT_SKR_PRO_V1_1.h" // STM32F4 env:BIGTREE_SKR_PRO env:BIGTREE_SKR_PRO_usb_flash_drive
|
||||
#elif MB(BTT_SKR_PRO_V1_2)
|
||||
@@ -608,17 +644,19 @@
|
||||
#elif MB(BTT_GTR_V1_0)
|
||||
#include "stm32f4/pins_BTT_GTR_V1_0.h" // STM32F4 env:BIGTREE_GTR_V1_0 env:BIGTREE_GTR_V1_0_usb_flash_drive
|
||||
#elif MB(BTT_BTT002_V1_0)
|
||||
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
|
||||
#include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002 env:BIGTREE_BTT002_VET6
|
||||
#elif MB(BTT_E3_RRF)
|
||||
#include "stm32f4/pins_BTT_E3_RRF.h" // STM32F4 env:BIGTREE_E3_RRF
|
||||
#elif MB(BTT_SKR_V2_0_REV_A)
|
||||
#include "stm32f4/pins_BTT_SKR_V2_0_REV_A.h" // STM32F4 env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB
|
||||
#include "stm32f4/pins_BTT_SKR_V2_0_REV_A.h" // STM32F4 env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug
|
||||
#elif MB(BTT_SKR_V2_0_REV_B)
|
||||
#include "stm32f4/pins_BTT_SKR_V2_0_REV_B.h" // STM32F4 env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB
|
||||
#include "stm32f4/pins_BTT_SKR_V2_0_REV_B.h" // STM32F4 env:BIGTREE_SKR_2 env:BIGTREE_SKR_2_USB env:BIGTREE_SKR_2_USB_debug env:BIGTREE_SKR_2_F429 env:BIGTREE_SKR_2_F429_USB env:BIGTREE_SKR_2_F429_USB_debug
|
||||
#elif MB(BTT_OCTOPUS_V1_0)
|
||||
#include "stm32f4/pins_BTT_OCTOPUS_V1_0.h" // STM32F4 env:BIGTREE_OCTOPUS_V1 env:BIGTREE_OCTOPUS_V1_USB
|
||||
#elif MB(BTT_OCTOPUS_V1_1)
|
||||
#include "stm32f4/pins_BTT_OCTOPUS_V1_1.h" // STM32F4 env:BIGTREE_OCTOPUS_V1 env:BIGTREE_OCTOPUS_V1_USB
|
||||
#elif MB(BTT_OCTOPUS_PRO_V1_0)
|
||||
#include "stm32f4/pins_BTT_OCTOPUS_PRO_V1_0.h" // STM32F4 env:BIGTREE_OCTOPUS_V1 env:BIGTREE_OCTOPUS_V1_USB env:BIGTREE_OCTOPUS_PRO_V1_F429 env:BIGTREE_OCTOPUS_PRO_V1_F429_USB
|
||||
#elif MB(LERDGE_K)
|
||||
#include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:LERDGEK env:LERDGEK_usb_flash_drive
|
||||
#elif MB(LERDGE_S)
|
||||
@@ -633,6 +671,8 @@
|
||||
#include "stm32f4/pins_FYSETC_S6_V2_0.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
|
||||
#elif MB(FYSETC_SPIDER)
|
||||
#include "stm32f4/pins_FYSETC_SPIDER.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
|
||||
#elif MB(FYSETC_SPIDER_V2_2)
|
||||
#include "stm32f4/pins_FYSETC_SPIDER_V2_2.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
|
||||
#elif MB(FLYF407ZG)
|
||||
#include "stm32f4/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
|
||||
#elif MB(MKS_ROBIN2)
|
||||
@@ -641,20 +681,30 @@
|
||||
#include "stm32f4/pins_MKS_ROBIN_PRO_V2.h" // STM32F4 env:mks_robin_pro2
|
||||
#elif MB(MKS_ROBIN_NANO_V3)
|
||||
#include "stm32f4/pins_MKS_ROBIN_NANO_V3.h" // STM32F4 env:mks_robin_nano_v3 env:mks_robin_nano_v3_usb_flash_drive env:mks_robin_nano_v3_usb_flash_drive_msc
|
||||
#elif MB(MKS_ROBIN_NANO_V3_1)
|
||||
#include "stm32f4/pins_MKS_ROBIN_NANO_V3.h" // STM32F4 env:mks_robin_nano_v3_1 env:mks_robin_nano_v3_1_usb_flash_drive env:mks_robin_nano_v3_1_usb_flash_drive_msc
|
||||
#elif MB(ANET_ET4)
|
||||
#include "stm32f4/pins_ANET_ET4.h" // STM32F4 env:Anet_ET4_OpenBLT
|
||||
#include "stm32f4/pins_ANET_ET4.h" // STM32F4 env:Anet_ET4_no_bootloader env:Anet_ET4_OpenBLT
|
||||
#elif MB(ANET_ET4P)
|
||||
#include "stm32f4/pins_ANET_ET4P.h" // STM32F4 env:Anet_ET4_OpenBLT
|
||||
#include "stm32f4/pins_ANET_ET4P.h" // STM32F4 env:Anet_ET4_no_bootloader env:Anet_ET4_OpenBLT
|
||||
#elif MB(FYSETC_CHEETAH_V20)
|
||||
#include "stm32f4/pins_FYSETC_CHEETAH_V20.h" // STM32F4 env:FYSETC_CHEETAH_V20
|
||||
#elif MB(MKS_MONSTER8)
|
||||
#include "stm32f4/pins_MKS_MONSTER8.h" // STM32F4 env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
|
||||
#elif MB(TH3D_EZBOARD_LITE_V2)
|
||||
#include "stm32f4/pins_TH3D_EZBOARD_LITE_V2.h" // STM32F4 env:TH3D_EZBoard_Lite_V2
|
||||
#elif MB(INDEX_REV03)
|
||||
#include "stm32f4/pins_INDEX_REV03.h" // STM32F4 env:Index_Mobo_Rev03
|
||||
#elif MB(MKS_MONSTER8_V1)
|
||||
#include "stm32f4/pins_MKS_MONSTER8_V1.h" // STM32F4 env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
|
||||
#elif MB(MKS_MONSTER8_V2)
|
||||
#include "stm32f4/pins_MKS_MONSTER8_V2.h" // STM32F4 env:mks_monster8 env:mks_monster8_usb_flash_drive env:mks_monster8_usb_flash_drive_msc
|
||||
#elif MB(TH3D_EZBOARD_V2)
|
||||
#include "stm32f4/pins_TH3D_EZBOARD_V2.h" // STM32F4 env:TH3D_EZBoard_V2_no_bootloader env:TH3D_EZBoard_V2_OpenBLT
|
||||
#elif MB(OPULO_LUMEN_REV3)
|
||||
#include "stm32f4/pins_OPULO_LUMEN_REV3.h" // STM32F4 env:Opulo_Lumen_REV3
|
||||
#elif MB(MKS_ROBIN_NANO_V1_3_F4)
|
||||
#include "stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h" // STM32F4 env:mks_robin_nano_v1_3_f4
|
||||
#elif MB(MKS_EAGLE)
|
||||
#include "stm32f4/pins_MKS_EAGLE.h" // STM32F4 env:mks_eagle
|
||||
#elif MB(ARTILLERY_RUBY)
|
||||
#include "stm32f4/pins_ARTILLERY_RUBY.h" // STM32F4 env:Artillery_Ruby
|
||||
#elif MB(CREALITY_V24S1_301F4)
|
||||
#include "stm32f4/pins_CREALITY_V24S1_301F4.h" // STM32F4 env:STM32F401RC_creality env:STM32F401RC_creality_jlink env:STM32F401RC_creality_stlink
|
||||
|
||||
//
|
||||
// ARM Cortex M7
|
||||
@@ -664,8 +714,14 @@
|
||||
#include "stm32f7/pins_REMRAM_V1.h" // STM32F7 env:REMRAM_V1
|
||||
#elif MB(NUCLEO_F767ZI)
|
||||
#include "stm32f7/pins_NUCLEO_F767ZI.h" // STM32F7 env:NUCLEO_F767ZI
|
||||
#elif MB(BTT_SKR_SE_BX)
|
||||
#include "stm32h7/pins_BTT_SKR_SE_BX.h" // STM32H7 env:BTT_SKR_SE_BX
|
||||
#elif MB(BTT_SKR_SE_BX_V2)
|
||||
#include "stm32h7/pins_BTT_SKR_SE_BX_V2.h" // STM32H7 env:BTT_SKR_SE_BX
|
||||
#elif MB(BTT_SKR_SE_BX_V3)
|
||||
#include "stm32h7/pins_BTT_SKR_SE_BX_V3.h" // STM32H7 env:BTT_SKR_SE_BX
|
||||
#elif MB(BTT_SKR_V3_0)
|
||||
#include "stm32h7/pins_BTT_SKR_V3_0.h" // STM32H7 env:STM32H743Vx_btt
|
||||
#elif MB(BTT_SKR_V3_0_EZ)
|
||||
#include "stm32h7/pins_BTT_SKR_V3_0_EZ.h" // STM32H7 env:STM32H743Vx_btt
|
||||
#elif MB(TEENSY41)
|
||||
#include "teensy4/pins_TEENSY41.h" // Teensy-4.x env:teensy41
|
||||
#elif MB(T41U5XBB)
|
||||
@@ -683,8 +739,18 @@
|
||||
#include "esp32/pins_MRR_ESPE.h" // ESP32 env:esp32
|
||||
#elif MB(E4D_BOX)
|
||||
#include "esp32/pins_E4D.h" // ESP32 env:esp32
|
||||
#elif MB(RESP32_CUSTOM)
|
||||
#include "esp32/pins_RESP32_CUSTOM.h" // ESP32 env:esp32
|
||||
#elif MB(FYSETC_E4)
|
||||
#include "esp32/pins_FYSETC_E4.h" // ESP32 env:FYSETC_E4
|
||||
#elif MB(PANDA_ZHU)
|
||||
#include "esp32/pins_PANDA_ZHU.h" // ESP32 env:PANDA
|
||||
#elif MB(PANDA_M4)
|
||||
#include "esp32/pins_PANDA_M4.h" // ESP32 env:PANDA
|
||||
#elif MB(MKS_TINYBEE)
|
||||
#include "esp32/pins_MKS_TINYBEE.h" // ESP32 env:mks_tinybee
|
||||
#elif MB(ENWI_ESPNP)
|
||||
#include "esp32/pins_ENWI_ESPNP.h" // ESP32 env:esp32
|
||||
|
||||
//
|
||||
// Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4)
|
||||
@@ -692,6 +758,10 @@
|
||||
|
||||
#elif MB(AGCM4_RAMPS_144)
|
||||
#include "samd/pins_RAMPS_144.h" // SAMD51 env:SAMD51_grandcentral_m4
|
||||
#elif MB(BRICOLEMON_V1_0)
|
||||
#include "samd/pins_BRICOLEMON_V1_0.h" // SAMD51 env:SAMD51_grandcentral_m4
|
||||
#elif MB(BRICOLEMON_LITE_V1_0)
|
||||
#include "samd/pins_BRICOLEMON_LITE_V1_0.h" // SAMD51 env:SAMD51_grandcentral_m4
|
||||
|
||||
//
|
||||
// Custom board (with custom PIO env)
|
||||
@@ -713,29 +783,33 @@
|
||||
// Obsolete or unknown board
|
||||
//
|
||||
|
||||
#define BOARD_MKS_13 -1000
|
||||
#define BOARD_TRIGORILLA -1001
|
||||
#define BOARD_RURAMPS4D -1002
|
||||
#define BOARD_FORMBOT_TREX2 -1003
|
||||
#define BOARD_BIQU_SKR_V1_1 -1004
|
||||
#define BOARD_STM32F1R -1005
|
||||
#define BOARD_STM32F103R -1006
|
||||
#define BOARD_ESP32 -1007
|
||||
#define BOARD_STEVAL -1008
|
||||
#define BOARD_BIGTREE_SKR_V1_1 -1009
|
||||
#define BOARD_BIGTREE_SKR_V1_3 -1010
|
||||
#define BOARD_BIGTREE_SKR_V1_4 -1011
|
||||
#define BOARD_BIGTREE_SKR_V1_4_TURBO -1012
|
||||
#define BOARD_BIGTREE_BTT002_V1_0 -1013
|
||||
#define BOARD_BIGTREE_SKR_PRO_V1_1 -1014
|
||||
#define BOARD_BIGTREE_SKR_MINI_V1_1 -1015
|
||||
#define BOARD_BIGTREE_SKR_MINI_E3 -1016
|
||||
#define BOARD_BIGTREE_SKR_E3_DIP -1017
|
||||
#define BOARD_RUMBA32 -1018
|
||||
#define BOARD_RUMBA32_AUS3D -1019
|
||||
#define BOARD_RAMPS_DAGOMA -1020
|
||||
#define BOARD_RAMPS_LONGER3D_LK4PRO -1021
|
||||
#define BOARD_BTT_SKR_V2_0 -1022
|
||||
#define BOARD_MKS_13 99900
|
||||
#define BOARD_TRIGORILLA 99901
|
||||
#define BOARD_RURAMPS4D 99902
|
||||
#define BOARD_FORMBOT_TREX2 99903
|
||||
#define BOARD_BIQU_SKR_V1_1 99904
|
||||
#define BOARD_STM32F1R 99905
|
||||
#define BOARD_STM32F103R 99906
|
||||
#define BOARD_ESP32 99907
|
||||
#define BOARD_STEVAL 99908
|
||||
#define BOARD_STEVAL_3DP001V1 99908
|
||||
#define BOARD_BIGTREE_SKR_V1_1 99909
|
||||
#define BOARD_BIGTREE_SKR_V1_3 99910
|
||||
#define BOARD_BIGTREE_SKR_V1_4 99911
|
||||
#define BOARD_BIGTREE_SKR_V1_4_TURBO 99912
|
||||
#define BOARD_BIGTREE_BTT002_V1_0 99913
|
||||
#define BOARD_BIGTREE_SKR_PRO_V1_1 99914
|
||||
#define BOARD_BIGTREE_SKR_MINI_V1_1 99915
|
||||
#define BOARD_BIGTREE_SKR_MINI_E3 99916
|
||||
#define BOARD_BIGTREE_SKR_E3_DIP 99917
|
||||
#define BOARD_RUMBA32 99918
|
||||
#define BOARD_RUMBA32_AUS3D 99919
|
||||
#define BOARD_RAMPS_DAGOMA 99920
|
||||
#define BOARD_RAMPS_LONGER3D_LK4PRO 99921
|
||||
#define BOARD_BTT_SKR_V2_0 99922
|
||||
#define BOARD_TH3D_EZBOARD_LITE_V2 99923
|
||||
#define BOARD_BTT_SKR_SE_BX 99924
|
||||
#define BOARD_MKS_MONSTER8 99925
|
||||
|
||||
#if MB(MKS_13)
|
||||
#error "BOARD_MKS_13 has been renamed BOARD_MKS_GEN_13. Please update your configuration."
|
||||
@@ -774,7 +848,7 @@
|
||||
#elif MOTHERBOARD == BOARD_ESP32
|
||||
#error "BOARD_ESP32 has been renamed BOARD_ESPRESSIF_ESP32. Please update your configuration."
|
||||
#elif MB(STEVAL)
|
||||
#error "BOARD_STEVAL has been renamed BOARD_STEVAL_3DP001V1. Please update your configuration."
|
||||
#error "BOARD_STEVAL_3DP001V1 (BOARD_STEVAL) is no longer supported in Marlin."
|
||||
#elif MB(RUMBA32)
|
||||
#error "BOARD_RUMBA32 is now BOARD_RUMBA32_MKS or BOARD_RUMBA32_V1_0. Please update your configuration."
|
||||
#elif MB(RUMBA32_AUS3D)
|
||||
@@ -784,9 +858,14 @@
|
||||
#elif MB(RAMPS_LONGER3D_LK4PRO)
|
||||
#error "BOARD_RAMPS_LONGER3D_LK4PRO is now BOARD_LONGER3D_LKx_PRO. Please update your configuration."
|
||||
#elif MB(BTT_SKR_V2_0)
|
||||
#error "BTT_SKR_V2_0 is now BTT_SKR_V2_0_REV_A or BTT_SKR_V2_0_REV_B. See https://bit.ly/3t5d9JQ for more information. Please update your configuration."
|
||||
#error "BOARD_BTT_SKR_V2_0 is now BOARD_BTT_SKR_V2_0_REV_A or BOARD_BTT_SKR_V2_0_REV_B. See https://bit.ly/3t5d9JQ for more information. Please update your configuration."
|
||||
#elif MB(TH3D_EZBOARD_LITE_V2)
|
||||
#error "BOARD_TH3D_EZBOARD_LITE_V2 is now BOARD_TH3D_EZBOARD_V2. Please update your configuration."
|
||||
#elif MB(BTT_SKR_SE_BX)
|
||||
#error "BOARD_BTT_SKR_SE_BX is now BOARD_BTT_SKR_SE_BX_V2 or BOARD_BTT_SKR_SE_BX_V3. Please update your configuration."
|
||||
#elif MB(MKS_MONSTER8)
|
||||
#error "BOARD_MKS_MONSTER8 is now BOARD_MKS_MONSTER8_V1 or BOARD_MKS_MONSTER8_V2. Please update your configuration."
|
||||
#elif defined(MOTHERBOARD)
|
||||
#pragma message(MOTHERBOARD "Fix this problem!")
|
||||
#error "Unknown MOTHERBOARD value set in Configuration.h."
|
||||
#else
|
||||
#error "MOTHERBOARD not defined! Use '#define MOTHERBOARD BOARD_...' in Configuration.h."
|
||||
@@ -801,7 +880,7 @@
|
||||
#undef BOARD_STM32F103R
|
||||
#undef BOARD_ESP32
|
||||
#undef BOARD_STEVAL
|
||||
#undef BOARD_BIGTREE_SKR_MINI_E3
|
||||
#undef BOARD_STEVAL_3DP001V1
|
||||
#undef BOARD_BIGTREE_SKR_V1_1
|
||||
#undef BOARD_BIGTREE_SKR_V1_3
|
||||
#undef BOARD_BIGTREE_SKR_V1_4
|
||||
@@ -809,12 +888,16 @@
|
||||
#undef BOARD_BIGTREE_BTT002_V1_0
|
||||
#undef BOARD_BIGTREE_SKR_PRO_V1_1
|
||||
#undef BOARD_BIGTREE_SKR_MINI_V1_1
|
||||
#undef BOARD_BIGTREE_SKR_MINI_E3
|
||||
#undef BOARD_BIGTREE_SKR_E3_DIP
|
||||
#undef BOARD_RUMBA32
|
||||
#undef BOARD_RUMBA32_AUS3D
|
||||
#undef BOARD_RAMPS_DAGOMA
|
||||
#undef BOARD_RAMPS_LONGER3D_LK4PRO
|
||||
#undef BOARD_BTT_SKR_V2_0
|
||||
#undef BOARD_TH3D_EZBOARD_LITE_V2
|
||||
#undef BOARD_BTT_SKR_SE_BX
|
||||
#undef BOARD_MKS_MONSTER8
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -19,6 +19,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "../inc/MarlinConfig.h"
|
||||
|
||||
@@ -178,7 +179,7 @@ static void print_input_or_output(const bool isout) {
|
||||
}
|
||||
|
||||
// pretty report with PWM info
|
||||
inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool extended=false, PGM_P const start_string=nullptr) {
|
||||
inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool extended=false, FSTR_P const start_string=nullptr) {
|
||||
char buffer[MAX_NAME_LENGTH + 1]; // for the sprintf statements
|
||||
bool found = false, multi_name_pin = false;
|
||||
|
||||
@@ -202,7 +203,7 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
|
||||
LOOP_L_N(x, COUNT(pin_array)) { // scan entire array and report all instances of this pin
|
||||
if (GET_ARRAY_PIN(x) == pin) {
|
||||
if (!found) { // report digital and analog pin number only on the first time through
|
||||
if (start_string) SERIAL_ECHOPGM_P(start_string);
|
||||
if (start_string) SERIAL_ECHOF(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
@@ -211,7 +212,7 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
|
||||
}
|
||||
else {
|
||||
SERIAL_CHAR('.');
|
||||
SERIAL_ECHO_SP(MULTI_NAME_PAD + (start_string ? strlen_P(start_string) : 0)); // add padding if not the first instance found
|
||||
SERIAL_ECHO_SP(MULTI_NAME_PAD + (start_string ? strlen_P(FTOP(start_string)) : 0)); // add padding if not the first instance found
|
||||
}
|
||||
PRINT_ARRAY_NAME(x);
|
||||
if (extended) {
|
||||
@@ -250,7 +251,7 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
|
||||
} // end of for loop
|
||||
|
||||
if (!found) {
|
||||
if (start_string) SERIAL_ECHOPGM_P(start_string);
|
||||
if (start_string) SERIAL_ECHOF(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
|
@@ -26,9 +26,9 @@
|
||||
// If the new pin name is over 28 characters long then pinsDebug.h will need to be modified.
|
||||
|
||||
#if TARGET_LPC1768
|
||||
#define ANALOG_OK(PN) ((PN) == P0_02 || (PN) == P0_03 || (PN) == P0_23 || (PN) == P0_24 || (PN) == P0_25 || (PN) == P0_26 || (PN) == P1_30 || (PN) == P1_31)
|
||||
#define ANALOG_OK(PN) (WITHIN(PN, P0_02, P0_03) || WITHIN(PN, P0_23, P0_26) || WITHIN(PN, P1_30, P1_31))
|
||||
#else
|
||||
#define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_INPUTS)
|
||||
#define ANALOG_OK(PN) WITHIN(PN, 0, NUM_ANALOG_INPUTS - 1)
|
||||
#endif
|
||||
|
||||
#line 35 // set __LINE__ to a known value for both passes
|
||||
@@ -37,86 +37,150 @@
|
||||
// Analog Pin Assignments
|
||||
//
|
||||
|
||||
#if defined(EXT_AUX_A0) && ANALOG_OK(EXT_AUX_A0)
|
||||
#define _EXISTS(PN,V...) (defined(PN##V) && PN##V >= 0)
|
||||
|
||||
#if _EXISTS(EXT_AUX_A0)
|
||||
#if ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A1) && ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A1)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A2) && ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A2)
|
||||
#if _EXISTS(EXT_AUX_A1)
|
||||
#if ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
#endif
|
||||
#if defined(EXT_AUX_A3) && ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A3)
|
||||
#if _EXISTS(EXT_AUX_A2)
|
||||
#if ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
#endif
|
||||
#if defined(EXT_AUX_A4) && ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A4)
|
||||
#if _EXISTS(EXT_AUX_A3)
|
||||
#if ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(FILWIDTH) && ANALOG_OK(FILWIDTH_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, FILWIDTH_PIN)
|
||||
#if _EXISTS(EXT_AUX_A4)
|
||||
#if ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(MAIN_VOLTAGE_MEASURE) && ANALOG_OK(MAIN_VOLTAGE_MEASURE_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, MAIN_VOLTAGE_MEASURE_PIN)
|
||||
#if PIN_EXISTS(FILWIDTH)
|
||||
#if ANALOG_OK(FILWIDTH_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, FILWIDTH_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(MAIN_VOLTAGE_MEASURE)
|
||||
#if ANALOG_OK(MAIN_VOLTAGE_MEASURE_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, MAIN_VOLTAGE_MEASURE_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(POWER_MONITOR_CURRENT)
|
||||
#if ANALOG_OK(POWER_MONITOR_CURRENT_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, POWER_MONITOR_CURRENT_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(POWER_MONITOR_VOLTAGE)
|
||||
#if ANALOG_OK(POWER_MONITOR_VOLTAGE_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, POWER_MONITOR_VOLTAGE_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if !defined(ARDUINO_ARCH_SAM) && !defined(ARDUINO_ARCH_SAMD) // TC1 & TC2 are macros in the SAM/SAMD tool chain
|
||||
#if defined(TC1) && ANALOG_OK(TC1)
|
||||
#if _EXISTS(TC1)
|
||||
#if ANALOG_OK(TC1)
|
||||
REPORT_NAME_ANALOG(__LINE__, TC1)
|
||||
#endif
|
||||
#if defined(TC2) && ANALOG_OK(TC1)
|
||||
REPORT_NAME_ANALOG(__LINE__, TC2)
|
||||
#endif
|
||||
#if _EXISTS(TC2)
|
||||
#if ANALOG_OK(TC1)
|
||||
REPORT_NAME_ANALOG(__LINE__, TC1)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_0) && ANALOG_OK(TEMP_0_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_0_PIN)
|
||||
#if PIN_EXISTS(TEMP_0)
|
||||
#if ANALOG_OK(TEMP_0_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_0_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_1) && ANALOG_OK(TEMP_1_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_1_PIN)
|
||||
#if PIN_EXISTS(TEMP_1)
|
||||
#if ANALOG_OK(TEMP_1_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_1_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_2) && ANALOG_OK(TEMP_2_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_2_PIN)
|
||||
#if PIN_EXISTS(TEMP_2)
|
||||
#if ANALOG_OK(TEMP_2_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_2_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_3) && ANALOG_OK(TEMP_3_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_3_PIN)
|
||||
#if PIN_EXISTS(TEMP_3)
|
||||
#if ANALOG_OK(TEMP_3_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_3_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_4) && ANALOG_OK(TEMP_4_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_4_PIN)
|
||||
#if PIN_EXISTS(TEMP_4)
|
||||
#if ANALOG_OK(TEMP_4_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_4_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_5) && ANALOG_OK(TEMP_5_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_5_PIN)
|
||||
#if PIN_EXISTS(TEMP_5)
|
||||
#if ANALOG_OK(TEMP_5_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_5_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_6) && ANALOG_OK(TEMP_6_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_6_PIN)
|
||||
#if PIN_EXISTS(TEMP_6)
|
||||
#if ANALOG_OK(TEMP_6_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_6_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_7) && ANALOG_OK(TEMP_7_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_7_PIN)
|
||||
#if PIN_EXISTS(TEMP_7)
|
||||
#if ANALOG_OK(TEMP_7_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_7_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_BED) && ANALOG_OK(TEMP_BED_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_BED_PIN)
|
||||
#if PIN_EXISTS(TEMP_BED)
|
||||
#if ANALOG_OK(TEMP_BED_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_BED_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_CHAMBER) && ANALOG_OK(TEMP_CHAMBER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN)
|
||||
#if PIN_EXISTS(TEMP_CHAMBER)
|
||||
#if ANALOG_OK(TEMP_CHAMBER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_COOLER) && ANALOG_OK(TEMP_COOLER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_COOLER_PIN)
|
||||
#if PIN_EXISTS(TEMP_PROBE)
|
||||
#if ANALOG_OK(TEMP_PROBE_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_PROBE_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(ADC_KEYPAD) && ANALOG_OK(ADC_KEYPAD_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, ADC_KEYPAD_PIN)
|
||||
#if PIN_EXISTS(TEMP_COOLER)
|
||||
#if ANALOG_OK(TEMP_COOLER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_COOLER_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_BOARD)
|
||||
#if ANALOG_OK(TEMP_BOARD_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_BOARD_PIN)
|
||||
#endif
|
||||
#endif
|
||||
#if PIN_EXISTS(ADC_KEYPAD)
|
||||
#if ANALOG_OK(ADC_KEYPAD_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, ADC_KEYPAD_PIN)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Digital Pin Assignments
|
||||
//
|
||||
|
||||
#if defined(__FD) && __FD >= 0
|
||||
#if _EXISTS(__FD)
|
||||
REPORT_NAME_DIGITAL(__LINE__, __FD)
|
||||
#endif
|
||||
#if defined(__FS) && __FS >= 0
|
||||
#if _EXISTS(__FS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, __FS)
|
||||
#endif
|
||||
#if defined(__GD) && __GD >= 0
|
||||
#if _EXISTS(__GD)
|
||||
REPORT_NAME_DIGITAL(__LINE__, __GD)
|
||||
#endif
|
||||
#if defined(__GS) && __GS >= 0
|
||||
#if _EXISTS(__GS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, __GS)
|
||||
#endif
|
||||
#if PIN_EXISTS(AVR_MISO)
|
||||
@@ -137,46 +201,46 @@
|
||||
#if PIN_EXISTS(BEEPER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BEEPER_PIN)
|
||||
#endif
|
||||
#if defined(BTN_BACK) && BTN_BACK >= 0
|
||||
#if _EXISTS(BTN_BACK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_BACK)
|
||||
#endif
|
||||
#if defined(BTN_CENTER) && BTN_CENTER >= 0
|
||||
#if _EXISTS(BTN_CENTER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_CENTER)
|
||||
#endif
|
||||
#if defined(BTN_DOWN) && BTN_DOWN >= 0
|
||||
#if _EXISTS(BTN_DOWN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_DOWN)
|
||||
#endif
|
||||
#if defined(BTN_DWN) && BTN_DWN >= 0
|
||||
#if _EXISTS(BTN_DWN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_DWN)
|
||||
#endif
|
||||
#if defined(BTN_EN1) && BTN_EN1 >= 0
|
||||
#if _EXISTS(BTN_EN1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_EN1)
|
||||
#endif
|
||||
#if defined(BTN_EN2) && BTN_EN2 >= 0
|
||||
#if _EXISTS(BTN_EN2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_EN2)
|
||||
#endif
|
||||
#if defined(BTN_ENC_EN) && BTN_ENC_EN >= 0
|
||||
#if _EXISTS(BTN_ENC_EN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_ENC_EN)
|
||||
#endif
|
||||
#if defined(BTN_ENC) && BTN_ENC >= 0
|
||||
#if _EXISTS(BTN_ENC)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_ENC)
|
||||
#endif
|
||||
#if defined(BTN_HOME) && BTN_HOME >= 0
|
||||
#if _EXISTS(BTN_HOME)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_HOME)
|
||||
#endif
|
||||
#if defined(BTN_LEFT) && BTN_LEFT >= 0
|
||||
#if _EXISTS(BTN_LEFT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_LEFT)
|
||||
#endif
|
||||
#if defined(BTN_LFT) && BTN_LFT >= 0
|
||||
#if _EXISTS(BTN_LFT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_LFT)
|
||||
#endif
|
||||
#if defined(BTN_RIGHT) && BTN_RIGHT >= 0
|
||||
#if _EXISTS(BTN_RIGHT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_RIGHT)
|
||||
#endif
|
||||
#if defined(BTN_RT) && BTN_RT >= 0
|
||||
#if _EXISTS(BTN_RT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_RT)
|
||||
#endif
|
||||
#if defined(BTN_UP) && BTN_UP >= 0
|
||||
#if _EXISTS(BTN_UP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_UP)
|
||||
#endif
|
||||
#if PIN_EXISTS(JOY_X)
|
||||
@@ -287,10 +351,10 @@
|
||||
#if PIN_EXISTS(CUTOFF_TEST)
|
||||
REPORT_NAME_DIGITAL(__LINE__, CUTOFF_TEST_PIN)
|
||||
#endif
|
||||
#if defined(D57) && D57 >= 0
|
||||
#if _EXISTS(D57)
|
||||
REPORT_NAME_DIGITAL(__LINE__, D57)
|
||||
#endif
|
||||
#if defined(D58) && D58 >= 0
|
||||
#if _EXISTS(D58)
|
||||
REPORT_NAME_DIGITAL(__LINE__, D58)
|
||||
#endif
|
||||
#if PIN_EXISTS(DAC_DISABLE)
|
||||
@@ -305,49 +369,52 @@
|
||||
#if PIN_EXISTS(DEBUG)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DEBUG_PIN)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SCL) && DIGIPOTS_I2C_SCL >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SCL)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SCL)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SDA_E0) && DIGIPOTS_I2C_SDA_E0 >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SDA_E0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E0)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SDA_E1) && DIGIPOTS_I2C_SDA_E1 >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SDA_E1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E1)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SDA_X) && DIGIPOTS_I2C_SDA_X >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SDA_X)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_X)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SDA_Y) && DIGIPOTS_I2C_SDA_Y >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SDA_Y)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Y)
|
||||
#endif
|
||||
#if defined(DIGIPOTS_I2C_SDA_Z) && DIGIPOTS_I2C_SDA_Z >= 0
|
||||
#if _EXISTS(DIGIPOTS_I2C_SDA_Z)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Z)
|
||||
#endif
|
||||
#if PIN_EXISTS(DIGIPOTSS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DIGIPOTSS_PIN)
|
||||
#endif
|
||||
#if defined(DOGLCD_A0) && DOGLCD_A0 >= 0
|
||||
#if PIN_EXISTS(LCD_RESET)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_RESET_PIN)
|
||||
#endif
|
||||
#if _EXISTS(DOGLCD_A0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DOGLCD_A0)
|
||||
#endif
|
||||
#if defined(DOGLCD_CS) && DOGLCD_CS >= 0
|
||||
#if _EXISTS(DOGLCD_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DOGLCD_CS)
|
||||
#endif
|
||||
#if defined(DOGLCD_MOSI) && DOGLCD_MOSI >= 0
|
||||
#if _EXISTS(DOGLCD_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DOGLCD_MOSI)
|
||||
#endif
|
||||
#if defined(DOGLCD_SCK) && DOGLCD_SCK >= 0
|
||||
#if _EXISTS(DOGLCD_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DOGLCD_SCK)
|
||||
#endif
|
||||
#if defined(TMC_SW_MISO) && TMC_SW_MISO >= 0
|
||||
#if _EXISTS(TMC_SW_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO)
|
||||
#endif
|
||||
#if defined(TMC_SW_MOSI) && TMC_SW_MOSI >= 0
|
||||
#if _EXISTS(TMC_SW_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI)
|
||||
#endif
|
||||
#if defined(TMC_SW_SCK) && TMC_SW_SCK >= 0
|
||||
#if _EXISTS(TMC_SW_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
|
||||
#endif
|
||||
#if defined(TFTGLCD_CS) && TFTGLCD_CS >= 0
|
||||
#if _EXISTS(TFTGLCD_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
|
||||
#endif
|
||||
#if PIN_EXISTS(E_MUX0)
|
||||
@@ -389,6 +456,9 @@
|
||||
#if PIN_EXISTS(E0_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E0_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E0_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E0_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E1_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E1_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -413,6 +483,9 @@
|
||||
#if PIN_EXISTS(E1_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E1_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E1_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E1_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E2_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E2_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -437,6 +510,9 @@
|
||||
#if PIN_EXISTS(E2_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E2_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E2_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E2_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E3_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E3_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -461,6 +537,9 @@
|
||||
#if PIN_EXISTS(E3_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E3_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E3_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E3_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E4_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E4_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -485,6 +564,9 @@
|
||||
#if PIN_EXISTS(E4_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E4_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E4_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E4_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E5_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E5_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -509,6 +591,9 @@
|
||||
#if PIN_EXISTS(E5_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E5_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E5_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E5_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E6_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E6_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -533,6 +618,9 @@
|
||||
#if PIN_EXISTS(E6_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E6_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E6_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E6_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E7_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E7_AUTO_FAN_PIN)
|
||||
#endif
|
||||
@@ -557,71 +645,74 @@
|
||||
#if PIN_EXISTS(E7_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E7_STEP_PIN)
|
||||
#endif
|
||||
#if defined(ENET_CRS) && ENET_CRS >= 0
|
||||
#if PIN_EXISTS(E7_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E7_STDBY_PIN)
|
||||
#endif
|
||||
#if _EXISTS(ENET_CRS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_CRS)
|
||||
#endif
|
||||
#if defined(ENET_MDIO) && ENET_MDIO >= 0
|
||||
#if _EXISTS(ENET_MDIO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_MDIO)
|
||||
#endif
|
||||
#if defined(ENET_MOC) && ENET_MOC >= 0
|
||||
#if _EXISTS(ENET_MOC)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_MOC)
|
||||
#endif
|
||||
#if defined(ENET_RX_ER) && ENET_RX_ER >= 0
|
||||
#if _EXISTS(ENET_RX_ER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_RX_ER)
|
||||
#endif
|
||||
#if defined(ENET_RXD0) && ENET_RXD0 >= 0
|
||||
#if _EXISTS(ENET_RXD0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_RXD0)
|
||||
#endif
|
||||
#if defined(ENET_RXD1) && ENET_RXD1 >= 0
|
||||
#if _EXISTS(ENET_RXD1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_RXD1)
|
||||
#endif
|
||||
#if defined(ENET_TX_EN) && ENET_TX_EN >= 0
|
||||
#if _EXISTS(ENET_TX_EN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_TX_EN)
|
||||
#endif
|
||||
#if defined(ENET_TXD0) && ENET_TXD0 >= 0
|
||||
#if _EXISTS(ENET_TXD0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_TXD0)
|
||||
#endif
|
||||
#if defined(ENET_TXD1) && ENET_TXD1 >= 0
|
||||
#if _EXISTS(ENET_TXD1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ENET_TXD1)
|
||||
#endif
|
||||
#if PIN_EXISTS(EXP_VOLTAGE_LEVEL)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXP_VOLTAGE_LEVEL_PIN)
|
||||
#endif
|
||||
|
||||
#if defined(EXT_AUX_A0_IO) && EXT_AUX_A0_IO >= 0
|
||||
#if _EXISTS(EXT_AUX_A0_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A0_IO)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A1_IO) && EXT_AUX_A1_IO >= 0
|
||||
#if _EXISTS(EXT_AUX_A1_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A1_IO)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A2_IO) && EXT_AUX_A2_IO >= 0
|
||||
#if _EXISTS(EXT_AUX_A2_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A2_IO)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A3_IO) && EXT_AUX_A3_IO >= 0
|
||||
#if _EXISTS(EXT_AUX_A3_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A3_IO)
|
||||
#endif
|
||||
#if defined(EXT_AUX_A4_IO) && EXT_AUX_A4_IO >= 0
|
||||
#if _EXISTS(EXT_AUX_A4_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A4_IO)
|
||||
#endif
|
||||
#if defined(EXT_AUX_PWM_D24) && EXT_AUX_PWM_D24 >= 0
|
||||
#if _EXISTS(EXT_AUX_PWM_D24)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_PWM_D24)
|
||||
#endif
|
||||
#if defined(EXT_AUX_RX1_D2) && EXT_AUX_RX1_D2 >= 0
|
||||
#if _EXISTS(EXT_AUX_RX1_D2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_RX1_D2)
|
||||
#endif
|
||||
#if defined(EXT_AUX_SCL_D0) && EXT_AUX_SCL_D0 >= 0
|
||||
#if _EXISTS(EXT_AUX_SCL_D0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SCL_D0)
|
||||
#endif
|
||||
#if defined(EXT_AUX_SDA_D1) && EXT_AUX_SDA_D1 >= 0
|
||||
#if _EXISTS(EXT_AUX_SDA_D1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SDA_D1)
|
||||
#endif
|
||||
#if defined(EXT_AUX_TX1_D3) && EXT_AUX_TX1_D3 >= 0
|
||||
#if _EXISTS(EXT_AUX_TX1_D3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_TX1_D3)
|
||||
#endif
|
||||
#if defined(EXTRUDER_0_AUTO_FAN) && EXTRUDER_0_AUTO_FAN >= 0
|
||||
#if _EXISTS(EXTRUDER_0_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_0_AUTO_FAN)
|
||||
#endif
|
||||
#if defined(EXTRUDER_1_AUTO_FAN) && EXTRUDER_1_AUTO_FAN >= 0
|
||||
#if _EXISTS(EXTRUDER_1_AUTO_FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXTRUDER_1_AUTO_FAN)
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN)
|
||||
@@ -660,6 +751,9 @@
|
||||
#if PIN_EXISTS(POWER_LOSS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, POWER_LOSS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(SAFE_POWER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SAFE_POWER_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(FIL_RUNOUT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT_PIN)
|
||||
#endif
|
||||
@@ -729,31 +823,31 @@
|
||||
#if HAS_KILL
|
||||
REPORT_NAME_DIGITAL(__LINE__, KILL_PIN)
|
||||
#endif
|
||||
#if HAS_FREEZE_PIN
|
||||
#if PIN_EXISTS(FREEZE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FREEZE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LCD_BACKLIGHT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_BACKLIGHT_PIN)
|
||||
#endif
|
||||
#if defined(LCD_PINS_D4) && LCD_PINS_D4 >= 0
|
||||
#if _EXISTS(LCD_PINS_D4)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D4)
|
||||
#endif
|
||||
#if defined(LCD_PINS_D5) && LCD_PINS_D5 >= 0
|
||||
#if _EXISTS(LCD_PINS_D5)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D5)
|
||||
#endif
|
||||
#if defined(LCD_PINS_D6) && LCD_PINS_D6 >= 0
|
||||
#if _EXISTS(LCD_PINS_D6)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D6)
|
||||
#endif
|
||||
#if defined(LCD_PINS_D7) && LCD_PINS_D7 >= 0
|
||||
#if _EXISTS(LCD_PINS_D7)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D7)
|
||||
#endif
|
||||
#if defined(LCD_PINS_ENABLE) && LCD_PINS_ENABLE >= 0
|
||||
#if _EXISTS(LCD_PINS_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_ENABLE)
|
||||
#endif
|
||||
#if defined(LCD_PINS_RS) && LCD_PINS_RS >= 0
|
||||
#if _EXISTS(LCD_PINS_RS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_RS)
|
||||
#endif
|
||||
#if defined(LCD_SDSS) && LCD_SDSS >= 0
|
||||
#if _EXISTS(LCD_SDSS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_SDSS)
|
||||
#endif
|
||||
#if PIN_EXISTS(LED_GREEN)
|
||||
@@ -762,6 +856,15 @@
|
||||
#if PIN_EXISTS(LED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LED2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LED3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LED4)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED4_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LED_RED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED_RED_PIN)
|
||||
#endif
|
||||
@@ -799,9 +902,9 @@
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX7219_LOAD_PIN)
|
||||
#endif
|
||||
|
||||
// #if defined(MISO) && MISO >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MISO)
|
||||
// #endif
|
||||
//#if _EXISTS(MISO)
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MISO)
|
||||
//#endif
|
||||
#if PIN_EXISTS(MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN)
|
||||
#endif
|
||||
@@ -817,15 +920,21 @@
|
||||
#if PIN_EXISTS(MOSFET_D)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOSFET_D_PIN)
|
||||
#endif
|
||||
// #if defined(MOSI) && MOSI >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MOSI)
|
||||
// #endif
|
||||
//#if _EXISTS(MOSI)
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MOSI)
|
||||
//#endif
|
||||
#if PIN_EXISTS(MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_E_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_E0_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_E1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_X)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_X_PIN)
|
||||
#endif
|
||||
@@ -862,18 +971,9 @@
|
||||
#if PIN_EXISTS(PWM_2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, PWM_2_PIN)
|
||||
#endif
|
||||
#if defined(REF_CLK) && REF_CLK >= 0
|
||||
#if _EXISTS(REF_CLK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, REF_CLK)
|
||||
#endif
|
||||
#if PIN_EXISTS(RAMPS_D10)
|
||||
REPORT_NAME_DIGITAL(__LINE__, RAMPS_D10_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(RAMPS_D8)
|
||||
REPORT_NAME_DIGITAL(__LINE__, RAMPS_D8_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(RAMPS_D9)
|
||||
REPORT_NAME_DIGITAL(__LINE__, RAMPS_D9_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(NEOPIXEL)
|
||||
REPORT_NAME_DIGITAL(__LINE__, NEOPIXEL_PIN)
|
||||
#endif
|
||||
@@ -898,28 +998,28 @@
|
||||
#if PIN_EXISTS(SAFETY_TRIGGERED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SAFETY_TRIGGERED_PIN)
|
||||
#endif
|
||||
// #if defined(SCK) && SCK >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCK)
|
||||
// #endif
|
||||
//#if _EXISTS(SCK)
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCK)
|
||||
//#endif
|
||||
#if PIN_EXISTS(SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN)
|
||||
#endif
|
||||
// #if defined(SCL) && SCL >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCL)
|
||||
// #endif
|
||||
//#if _EXISTS(SCL)
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCL)
|
||||
//#endif
|
||||
#if PIN_EXISTS(SD_DETECT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_DETECT_PIN)
|
||||
#endif
|
||||
// #if defined(SDA) && SDA >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SDA)
|
||||
// #endif
|
||||
//#if _EXISTS(SDA)
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SDA)
|
||||
//#endif
|
||||
#if PIN_EXISTS(SDPOWER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN)
|
||||
#endif
|
||||
#if defined(SDSS) && SDSS >= 0
|
||||
#if _EXISTS(SDSS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SDSS)
|
||||
#endif
|
||||
#if defined(SERVO0) && SERVO0 >= 0
|
||||
#if _EXISTS(SERVO0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SERVO0)
|
||||
#endif
|
||||
#if PIN_EXISTS(SERVO0)
|
||||
@@ -976,7 +1076,7 @@
|
||||
#if PIN_EXISTS(SOL7)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SOL7_PIN)
|
||||
#endif
|
||||
#if defined(SPARE_IO) && SPARE_IO >= 0
|
||||
#if _EXISTS(SPARE_IO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPARE_IO)
|
||||
#endif
|
||||
#if PIN_EXISTS(SPI_EEPROM1_CS)
|
||||
@@ -1015,7 +1115,7 @@
|
||||
#if PIN_EXISTS(STAT_LED_BLUE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN)
|
||||
#endif
|
||||
#if defined(STAT_LED_RED_LED) && STAT_LED_RED_LED >= 0
|
||||
#if _EXISTS(STAT_LED_RED_LED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, STAT_LED_RED_LED)
|
||||
#endif
|
||||
#if PIN_EXISTS(STAT_LED_RED)
|
||||
@@ -1069,13 +1169,13 @@
|
||||
#if PIN_EXISTS(TX_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TX_ENABLE_PIN)
|
||||
#endif
|
||||
#if defined(UI1) && UI1 >= 0
|
||||
#if _EXISTS(UI1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, UI1)
|
||||
#endif
|
||||
#if defined(UI2) && UI2 >= 0
|
||||
#if _EXISTS(UI2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, UI2)
|
||||
#endif
|
||||
#if defined(UNUSED_PWM) && UNUSED_PWM >= 0
|
||||
#if _EXISTS(UNUSED_PWM)
|
||||
REPORT_NAME_DIGITAL(__LINE__, UNUSED_PWM)
|
||||
#endif
|
||||
#if PIN_EXISTS(X_ATT)
|
||||
@@ -1111,6 +1211,9 @@
|
||||
#if PIN_EXISTS(X_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, X_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(X_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, X_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(X_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, X_STOP_PIN)
|
||||
#endif
|
||||
@@ -1174,6 +1277,9 @@
|
||||
#if PIN_EXISTS(Y_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Y_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Y_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Y_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Y_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Y_STOP_PIN)
|
||||
#endif
|
||||
@@ -1237,6 +1343,9 @@
|
||||
#if PIN_EXISTS(Z_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z_STDBY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z_STDBY_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z_STOP_PIN)
|
||||
#endif
|
||||
@@ -1255,6 +1364,9 @@
|
||||
#if PIN_EXISTS(Z2_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z2_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z2_DIAG)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z2_DIAG_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z2_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z2_MS1_PIN)
|
||||
#endif
|
||||
@@ -1267,6 +1379,9 @@
|
||||
#if PIN_EXISTS(Z2_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z2_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z2_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z2_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(Z3_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z3_CS_PIN)
|
||||
#endif
|
||||
@@ -1324,6 +1439,15 @@
|
||||
#if PIN_EXISTS(Z_MIN_PROBE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(PROBE_ACTIVATION_SWITCH)
|
||||
REPORT_NAME_DIGITAL(__LINE__, PROBE_ACTIVATION_SWITCH_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(PROBE_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, PROBE_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(PROBE_TARE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, PROBE_TARE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
|
||||
#endif
|
||||
@@ -1423,6 +1547,105 @@
|
||||
#if PIN_EXISTS(K_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ZRIB_V20_D6)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ZRIB_V20_D6_PIN)
|
||||
#endif
|
||||
@@ -1477,6 +1700,42 @@
|
||||
#if PIN_EXISTS(Z4_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z4_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(U_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, U_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(V_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, V_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(W_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, W_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(E0_DIAG)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E0_DIAG_PIN)
|
||||
#endif
|
||||
@@ -1549,20 +1808,23 @@
|
||||
#if PIN_EXISTS(E7_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E7_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(L6470_CHAIN_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, L6470_CHAIN_SCK_PIN)
|
||||
#if PIN_EXISTS(I_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(L6470_CHAIN_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, L6470_CHAIN_MISO_PIN)
|
||||
#if PIN_EXISTS(I_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(L6470_CHAIN_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, L6470_CHAIN_MOSI_PIN)
|
||||
#if PIN_EXISTS(J_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(L6470_CHAIN_SS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, L6470_CHAIN_SS_PIN)
|
||||
#if PIN_EXISTS(J_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(L6470_RESET_CHAIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, L6470_RESET_CHAIN_PIN)
|
||||
#if PIN_EXISTS(K_SERIAL_TX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_SERIAL_TX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_SERIAL_RX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_SERIAL_RX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(FET_SAFETY)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FET_SAFETY_PIN)
|
||||
|
@@ -221,6 +221,15 @@
|
||||
#if !AXIS_HAS_SPI(K)
|
||||
#undef K_CS_PIN
|
||||
#endif
|
||||
#if !AXIS_HAS_SPI(U)
|
||||
#undef U_CS_PIN
|
||||
#endif
|
||||
#if !AXIS_HAS_SPI(V)
|
||||
#undef V_CS_PIN
|
||||
#endif
|
||||
#if !AXIS_HAS_SPI(W)
|
||||
#undef W_CS_PIN
|
||||
#endif
|
||||
#if E_STEPPERS && !AXIS_HAS_SPI(E0)
|
||||
#undef E0_CS_PIN
|
||||
#endif
|
||||
@@ -264,6 +273,15 @@
|
||||
#ifndef K_CS_PIN
|
||||
#define K_CS_PIN -1
|
||||
#endif
|
||||
#ifndef U_CS_PIN
|
||||
#define U_CS_PIN -1
|
||||
#endif
|
||||
#ifndef V_CS_PIN
|
||||
#define V_CS_PIN -1
|
||||
#endif
|
||||
#ifndef W_CS_PIN
|
||||
#define W_CS_PIN -1
|
||||
#endif
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN -1
|
||||
#endif
|
||||
@@ -419,6 +437,9 @@
|
||||
#else
|
||||
#define X_STOP_PIN X_MAX_PIN
|
||||
#endif
|
||||
#if !defined(X2_USE_ENDSTOP) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP)
|
||||
#define X2_USE_ENDSTOP _XSTOP_
|
||||
#endif
|
||||
|
||||
#if HAS_Y_AXIS
|
||||
#ifdef Y_STOP_PIN
|
||||
@@ -438,6 +459,9 @@
|
||||
#else
|
||||
#define Y_STOP_PIN Y_MAX_PIN
|
||||
#endif
|
||||
#if !defined(Y2_USE_ENDSTOP) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP)
|
||||
#define Y2_USE_ENDSTOP _YSTOP_
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_Z_AXIS
|
||||
@@ -458,9 +482,20 @@
|
||||
#else
|
||||
#define Z_STOP_PIN Z_MAX_PIN
|
||||
#endif
|
||||
#if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP)
|
||||
#ifndef Z2_USE_ENDSTOP
|
||||
#define Z2_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_USE_ENDSTOP)
|
||||
#define Z3_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_USE_ENDSTOP)
|
||||
#define Z4_USE_ENDSTOP _ZSTOP_
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if LINEAR_AXES >= 4
|
||||
#if HAS_I_AXIS
|
||||
#ifdef I_STOP_PIN
|
||||
#if I_HOME_TO_MIN
|
||||
#define I_MIN_PIN I_STOP_PIN
|
||||
@@ -483,7 +518,7 @@
|
||||
#undef I_MAX_PIN
|
||||
#endif
|
||||
|
||||
#if LINEAR_AXES >= 5
|
||||
#if HAS_J_AXIS
|
||||
#ifdef J_STOP_PIN
|
||||
#if J_HOME_TO_MIN
|
||||
#define J_MIN_PIN J_STOP_PIN
|
||||
@@ -506,7 +541,7 @@
|
||||
#undef J_MAX_PIN
|
||||
#endif
|
||||
|
||||
#if LINEAR_AXES >= 6
|
||||
#if HAS_K_AXIS
|
||||
#ifdef K_STOP_PIN
|
||||
#if K_HOME_TO_MIN
|
||||
#define K_MIN_PIN K_STOP_PIN
|
||||
@@ -529,14 +564,87 @@
|
||||
#undef K_MAX_PIN
|
||||
#endif
|
||||
|
||||
#if HAS_U_AXIS
|
||||
#ifdef U_STOP_PIN
|
||||
#if U_HOME_TO_MIN
|
||||
#define U_MIN_PIN U_STOP_PIN
|
||||
#ifndef U_MAX_PIN
|
||||
#define U_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define U_MAX_PIN U_STOP_PIN
|
||||
#ifndef U_MIN_PIN
|
||||
#define U_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif U_HOME_TO_MIN
|
||||
#define U_STOP_PIN U_MIN_PIN
|
||||
#else
|
||||
#define U_STOP_PIN U_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef U_MIN_PIN
|
||||
#undef U_MAX_PIN
|
||||
#endif
|
||||
|
||||
#if HAS_V_AXIS
|
||||
#ifdef V_STOP_PIN
|
||||
#if V_HOME_TO_MIN
|
||||
#define V_MIN_PIN V_STOP_PIN
|
||||
#ifndef V_MAX_PIN
|
||||
#define V_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define V_MAX_PIN V_STOP_PIN
|
||||
#ifndef V_MIN_PIN
|
||||
#define V_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif V_HOME_TO_MIN
|
||||
#define V_STOP_PIN V_MIN_PIN
|
||||
#else
|
||||
#define V_STOP_PIN V_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef V_MIN_PIN
|
||||
#undef V_MAX_PIN
|
||||
#endif
|
||||
|
||||
#if HAS_W_AXIS
|
||||
#ifdef W_STOP_PIN
|
||||
#if W_HOME_TO_MIN
|
||||
#define W_MIN_PIN W_STOP_PIN
|
||||
#ifndef W_MAX_PIN
|
||||
#define W_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define W_MAX_PIN W_STOP_PIN
|
||||
#ifndef W_MIN_PIN
|
||||
#define W_MIN_PIN -1
|
||||
#endif
|
||||
#endif
|
||||
#elif W_HOME_TO_MIN
|
||||
#define W_STOP_PIN W_MIN_PIN
|
||||
#else
|
||||
#define W_STOP_PIN W_MAX_PIN
|
||||
#endif
|
||||
#else
|
||||
#undef W_MIN_PIN
|
||||
#undef W_MAX_PIN
|
||||
#endif
|
||||
|
||||
// Filament Sensor first pin alias
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
#define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT1_PIN FIL_RUNOUT_PIN // Filament Sensor first pin alias
|
||||
#else
|
||||
#undef FIL_RUNOUT_PIN
|
||||
#undef FIL_RUNOUT1_PIN
|
||||
#endif
|
||||
|
||||
#if NUM_RUNOUT_SENSORS < 2
|
||||
#undef FIL_RUNOUT2_PIN
|
||||
#endif
|
||||
|
||||
#ifndef LCD_PINS_D4
|
||||
#define LCD_PINS_D4 -1
|
||||
#endif
|
||||
@@ -578,13 +686,14 @@
|
||||
#define X2_E_INDEX E_STEPPERS
|
||||
#endif
|
||||
|
||||
// The X2 axis, if any, should be the next open extruder port
|
||||
#if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS) && !defined(X2_DIAG_PIN) && !defined(X2_STEP_PIN) && !PIN_EXISTS(X2_CS_PIN)
|
||||
#if HAS_X2_STEPPER && !defined(X2_DIAG_PIN) && !defined(X2_STEP_PIN) && !PIN_EXISTS(X2_CS_PIN)
|
||||
#define Y2_E_INDEX INCREMENT(X2_E_INDEX)
|
||||
#else
|
||||
#define Y2_E_INDEX X2_E_INDEX
|
||||
#endif
|
||||
#if EITHER(DUAL_X_CARRIAGE, X_DUAL_STEPPER_DRIVERS)
|
||||
|
||||
// The X2 axis, if any, should be the next open extruder port
|
||||
#if HAS_X2_STEPPER
|
||||
#ifndef X2_STEP_PIN
|
||||
#define X2_STEP_PIN _EPIN(X2_E_INDEX, STEP)
|
||||
#define X2_DIR_PIN _EPIN(X2_E_INDEX, DIR)
|
||||
@@ -666,13 +775,14 @@
|
||||
#define X2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The Y2 axis, if any, should be the next open extruder port
|
||||
#if ENABLED(Y_DUAL_STEPPER_DRIVERS) && !defined(Y2_DIAG_PIN) && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS_PIN)
|
||||
#if HAS_DUAL_Y_STEPPERS && !defined(Y2_DIAG_PIN) && !defined(Y2_STEP_PIN) && !PIN_EXISTS(Y2_CS_PIN)
|
||||
#define Z2_E_INDEX INCREMENT(Y2_E_INDEX)
|
||||
#else
|
||||
#define Z2_E_INDEX Y2_E_INDEX
|
||||
#endif
|
||||
#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
|
||||
|
||||
// The Y2 axis, if any, should be the next open extruder port
|
||||
#if HAS_DUAL_Y_STEPPERS
|
||||
#ifndef Y2_STEP_PIN
|
||||
#define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP)
|
||||
#define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR)
|
||||
@@ -751,13 +861,14 @@
|
||||
#define Y2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The Z2 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 2 && !defined(Z2_DIAG_PIN) && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 2 && !defined(Z2_DIAG_PIN) && !defined(Z2_STEP_PIN) && !PIN_EXISTS(Z2_CS_PIN)
|
||||
#define Z3_E_INDEX INCREMENT(Z2_E_INDEX)
|
||||
#else
|
||||
#define Z3_E_INDEX Z2_E_INDEX
|
||||
#endif
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 2
|
||||
|
||||
// The Z2 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPERS >= 2
|
||||
#ifndef Z2_STEP_PIN
|
||||
#define Z2_STEP_PIN _EPIN(Z2_E_INDEX, STEP)
|
||||
#define Z2_DIR_PIN _EPIN(Z2_E_INDEX, DIR)
|
||||
@@ -801,7 +912,7 @@
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(Z2_DIAG_PIN) && !defined(Z2_USE_ENDSTOP) && defined(Z2_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 2 && _PEXI(Z2_E_INDEX, DIAG)
|
||||
#if !defined(Z2_DIAG_PIN) && !defined(Z2_USE_ENDSTOP) && defined(Z2_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && _PEXI(Z2_E_INDEX, DIAG)
|
||||
#define Z2_DIAG_PIN _EPIN(Z2_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(Z2, X_MIN)
|
||||
#define Z2_USE_ENDSTOP _XMIN_
|
||||
@@ -836,13 +947,14 @@
|
||||
#define Z2_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The Z3 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 3 && !defined(Z3_DIAG_PIN) && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 3 && !defined(Z3_DIAG_PIN) && !defined(Z3_STEP_PIN) && !PIN_EXISTS(Z3_CS_PIN)
|
||||
#define Z4_E_INDEX INCREMENT(Z3_E_INDEX)
|
||||
#else
|
||||
#define Z4_E_INDEX Z3_E_INDEX
|
||||
#endif
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 3
|
||||
|
||||
// The Z3 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPERS >= 3
|
||||
#ifndef Z3_STEP_PIN
|
||||
#define Z3_STEP_PIN _EPIN(Z3_E_INDEX, STEP)
|
||||
#define Z3_DIR_PIN _EPIN(Z3_E_INDEX, DIR)
|
||||
@@ -886,7 +998,7 @@
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(Z3_DIAG_PIN) && !defined(Z3_USE_ENDSTOP) && defined(Z3_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 3 && _PEXI(Z3_E_INDEX, DIAG)
|
||||
#if !defined(Z3_DIAG_PIN) && !defined(Z3_USE_ENDSTOP) && defined(Z3_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && _PEXI(Z3_E_INDEX, DIAG)
|
||||
#define Z3_DIAG_PIN _EPIN(Z3_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(Z3, X_MIN)
|
||||
#define Z3_USE_ENDSTOP _XMIN_
|
||||
@@ -921,13 +1033,14 @@
|
||||
#define Z3_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The Z4 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 4 && !defined(Z4_DIAG_PIN) && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS_PIN)
|
||||
#if NUM_Z_STEPPERS >= 4 && !defined(Z4_DIAG_PIN) && !defined(Z4_STEP_PIN) && !PIN_EXISTS(Z4_CS_PIN)
|
||||
#define I_E_INDEX INCREMENT(Z4_E_INDEX)
|
||||
#else
|
||||
#define I_E_INDEX Z4_E_INDEX
|
||||
#endif
|
||||
#if NUM_Z_STEPPER_DRIVERS >= 4
|
||||
|
||||
// The Z4 axis, if any, should be the next open extruder port
|
||||
#if NUM_Z_STEPPERS >= 4
|
||||
#ifndef Z4_STEP_PIN
|
||||
#define Z4_STEP_PIN _EPIN(Z4_E_INDEX, STEP)
|
||||
#define Z4_DIR_PIN _EPIN(Z4_E_INDEX, DIR)
|
||||
@@ -971,7 +1084,7 @@
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(Z4_DIAG_PIN) && !defined(Z4_USE_ENDSTOP) && defined(Z4_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && NUM_Z_STEPPER_DRIVERS >= 4 && _PEXI(Z4_E_INDEX, DIAG)
|
||||
#if !defined(Z4_DIAG_PIN) && !defined(Z4_USE_ENDSTOP) && defined(Z4_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && _PEXI(Z4_E_INDEX, DIAG)
|
||||
#define Z4_DIAG_PIN _EPIN(Z4_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(Z4, X_MIN)
|
||||
#define Z4_USE_ENDSTOP _XMIN_
|
||||
@@ -1006,13 +1119,14 @@
|
||||
#define Z4_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The I axis, if any, should be the next open extruder port
|
||||
#if LINEAR_AXES >= 4 && !defined(I_DIAG_PIN) && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS_PIN)
|
||||
#if HAS_I_AXIS && !defined(I_DIAG_PIN) && !defined(I_STEP_PIN) && !PIN_EXISTS(I_CS_PIN)
|
||||
#define J_E_INDEX INCREMENT(I_E_INDEX)
|
||||
#else
|
||||
#define J_E_INDEX I_E_INDEX
|
||||
#endif
|
||||
#if LINEAR_AXES >= 4
|
||||
|
||||
// The I axis, if any, should be the next open extruder port
|
||||
#if HAS_I_AXIS
|
||||
#ifndef I_STEP_PIN
|
||||
#define I_STEP_PIN _EPIN(I_E_INDEX, STEP)
|
||||
#define I_DIR_PIN _EPIN(I_E_INDEX, DIR)
|
||||
@@ -1091,13 +1205,14 @@
|
||||
#define I_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The J axis, if any, should be the next open extruder port
|
||||
#if LINEAR_AXES >= 5 && !defined(J_DIAG_PIN) && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS_PIN)
|
||||
#if HAS_J_AXIS && !defined(J_DIAG_PIN) && !defined(J_STEP_PIN) && !PIN_EXISTS(J_CS_PIN)
|
||||
#define K_E_INDEX INCREMENT(J_E_INDEX)
|
||||
#else
|
||||
#define K_E_INDEX J_E_INDEX
|
||||
#endif
|
||||
#if LINEAR_AXES >= 5
|
||||
|
||||
// The J axis, if any, should be the next open extruder port
|
||||
#if HAS_J_AXIS
|
||||
#ifndef J_STEP_PIN
|
||||
#define J_STEP_PIN _EPIN(J_E_INDEX, STEP)
|
||||
#define J_DIR_PIN _EPIN(J_E_INDEX, DIR)
|
||||
@@ -1176,8 +1291,14 @@
|
||||
#define J_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if HAS_K_AXIS && !defined(K_DIAG_PIN) && !defined(K_STEP_PIN) && !PIN_EXISTS(K_CS_PIN)
|
||||
#define U_E_INDEX INCREMENT(K_E_INDEX)
|
||||
#else
|
||||
#define U_E_INDEX K_E_INDEX
|
||||
#endif
|
||||
|
||||
// The K axis, if any, should be the next open extruder port
|
||||
#if LINEAR_AXES >= 6
|
||||
#if HAS_K_AXIS
|
||||
#ifndef K_STEP_PIN
|
||||
#define K_STEP_PIN _EPIN(K_E_INDEX, STEP)
|
||||
#define K_DIR_PIN _EPIN(K_E_INDEX, DIR)
|
||||
@@ -1256,26 +1377,278 @@
|
||||
#define K_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if HAS_U_AXIS && !defined(U_DIAG_PIN) && !defined(U_STEP_PIN) && !PIN_EXISTS(U_CS_PIN)
|
||||
#define V_E_INDEX INCREMENT(U_E_INDEX)
|
||||
#else
|
||||
#define V_E_INDEX U_E_INDEX
|
||||
#endif
|
||||
|
||||
// The U axis, if any, should be the next open extruder port
|
||||
#if HAS_U_AXIS
|
||||
#ifndef U_STEP_PIN
|
||||
#define U_STEP_PIN _EPIN(U_E_INDEX, STEP)
|
||||
#define U_DIR_PIN _EPIN(U_E_INDEX, DIR)
|
||||
#define U_ENABLE_PIN _EPIN(U_E_INDEX, ENABLE)
|
||||
#if M_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(U_STEP)
|
||||
#error "No E stepper plug left for U!"
|
||||
#else
|
||||
#define AUTO_ASSIGNED_U_STEPPER 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_SPI(U) && !defined(U_CS_PIN)
|
||||
#define U_CS_PIN _EPIN(U_E_INDEX, CS)
|
||||
#if PIN_EXISTS(U_CS)
|
||||
#define AUTO_ASSIGNED_U_CS 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef U_MS1_PIN
|
||||
#define U_MS1_PIN _EPIN(U_E_INDEX, MS1)
|
||||
#if PIN_EXISTS(U_MS1)
|
||||
#define AUTO_ASSIGNED_U_MS1 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef U_MS2_PIN
|
||||
#define U_MS2_PIN _EPIN(U_E_INDEX, MS2)
|
||||
#if PIN_EXISTS(U_MS2)
|
||||
#define AUTO_ASSIGNED_U_MS2 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef U_MS3_PIN
|
||||
#define U_MS3_PIN _EPIN(U_E_INDEX, MS3)
|
||||
#if PIN_EXISTS(U_MS3)
|
||||
#define AUTO_ASSIGNED_U_MS3 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_UART(U)
|
||||
#ifndef U_SERIAL_TX_PIN
|
||||
#define U_SERIAL_TX_PIN _EPIN(U_E_INDEX, SERIAL_TX)
|
||||
#endif
|
||||
#ifndef U_SERIAL_RX_PIN
|
||||
#define U_SERIAL_RX_PIN _EPIN(U_E_INDEX, SERIAL_RX)
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(U_DIAG_PIN) && !defined(U_USE_ENDSTOP) && defined(U_STALL_SENSITIVITY) && _PEXI(U_E_INDEX, DIAG)
|
||||
#define U_DIAG_PIN _EPIN(U_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(U, X_MIN)
|
||||
#define U_USE_ENDSTOP _XMIN_
|
||||
#elif DIAG_REMAPPED(U, Y_MIN)
|
||||
#define U_USE_ENDSTOP _YMIN_
|
||||
#elif DIAG_REMAPPED(U, Z_MIN)
|
||||
#define U_USE_ENDSTOP _ZMIN_
|
||||
#elif DIAG_REMAPPED(U, X_MAX)
|
||||
#define U_USE_ENDSTOP _XMAX_
|
||||
#elif DIAG_REMAPPED(U, Y_MAX)
|
||||
#define U_USE_ENDSTOP _YMAX_
|
||||
#elif DIAG_REMAPPED(U, Z_MAX)
|
||||
#define U_USE_ENDSTOP _ZMAX_
|
||||
#else
|
||||
#define U_USE_ENDSTOP _En_DIAG_(U_E_INDEX)
|
||||
#endif
|
||||
#define AUTO_ASSIGNED_U_DIAG 1
|
||||
#undef U_DIAG_PIN // Defined in Conditionals_post.h based on U_USE_ENDSTOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef U_CS_PIN
|
||||
#define U_CS_PIN -1
|
||||
#endif
|
||||
#ifndef U_MS1_PIN
|
||||
#define U_MS1_PIN -1
|
||||
#endif
|
||||
#ifndef U_MS2_PIN
|
||||
#define U_MS2_PIN -1
|
||||
#endif
|
||||
#ifndef U_MS3_PIN
|
||||
#define U_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
#if HAS_V_AXIS && !defined(V_DIAG_PIN) && !defined(V_STEP_PIN) && !PIN_EXISTS(V_CS_PIN)
|
||||
#define W_E_INDEX INCREMENT(V_E_INDEX)
|
||||
#else
|
||||
#define W_E_INDEX V_E_INDEX
|
||||
#endif
|
||||
|
||||
// The V axis, if any, should be the next open extruder port
|
||||
#if HAS_V_AXIS
|
||||
#ifndef V_STEP_PIN
|
||||
#define V_STEP_PIN _EPIN(V_E_INDEX, STEP)
|
||||
#define V_DIR_PIN _EPIN(V_E_INDEX, DIR)
|
||||
#define V_ENABLE_PIN _EPIN(V_E_INDEX, ENABLE)
|
||||
#if V_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(V_STEP)
|
||||
#error "No E stepper plug left for V!"
|
||||
#else
|
||||
#define AUTO_ASSIGNED_V_STEPPER 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_SPI(V) && !defined(V_CS_PIN)
|
||||
#define V_CS_PIN _EPIN(V_E_INDEX, CS)
|
||||
#if PIN_EXISTS(V_CS)
|
||||
#define AUTO_ASSIGNED_V_CS 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef V_MS1_PIN
|
||||
#define V_MS1_PIN _EPIN(V_E_INDEX, MS1)
|
||||
#if PIN_EXISTS(V_MS1)
|
||||
#define AUTO_ASSIGNED_V_MS1 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef V_MS2_PIN
|
||||
#define V_MS2_PIN _EPIN(V_E_INDEX, MS2)
|
||||
#if PIN_EXISTS(V_MS2)
|
||||
#define AUTO_ASSIGNED_V_MS2 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef V_MS3_PIN
|
||||
#define V_MS3_PIN _EPIN(V_E_INDEX, MS3)
|
||||
#if PIN_EXISTS(V_MS3)
|
||||
#define AUTO_ASSIGNED_V_MS3 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_UART(V)
|
||||
#ifndef V_SERIAL_TX_PIN
|
||||
#define V_SERIAL_TX_PIN _EPIN(V_E_INDEX, SERIAL_TX)
|
||||
#endif
|
||||
#ifndef V_SERIAL_RX_PIN
|
||||
#define V_SERIAL_RX_PIN _EPIN(V_E_INDEX, SERIAL_RX)
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(V_DIAG_PIN) && !defined(V_USE_ENDSTOP) && defined(V_STALL_SENSITIVITY) && _PEXI(V_E_INDEX, DIAG)
|
||||
#define V_DIAG_PIN _EPIN(V_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(V, X_MIN)
|
||||
#define V_USE_ENDSTOP _XMIN_
|
||||
#elif DIAG_REMAPPED(V, Y_MIN)
|
||||
#define V_USE_ENDSTOP _YMIN_
|
||||
#elif DIAG_REMAPPED(V, Z_MIN)
|
||||
#define V_USE_ENDSTOP _ZMIN_
|
||||
#elif DIAG_REMAPPED(V, X_MAX)
|
||||
#define V_USE_ENDSTOP _XMAX_
|
||||
#elif DIAG_REMAPPED(V, Y_MAX)
|
||||
#define V_USE_ENDSTOP _YMAX_
|
||||
#elif DIAG_REMAPPED(V, Z_MAX)
|
||||
#define V_USE_ENDSTOP _ZMAX_
|
||||
#else
|
||||
#define V_USE_ENDSTOP _En_DIAG_(V_E_INDEX)
|
||||
#endif
|
||||
#define AUTO_ASSIGNED_V_DIAG 1
|
||||
#undef V_DIAG_PIN // Defined in Conditionals_post.h based on O_USE_ENDSTOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef V_CS_PIN
|
||||
#define V_CS_PIN -1
|
||||
#endif
|
||||
#ifndef V_MS1_PIN
|
||||
#define V_MS1_PIN -1
|
||||
#endif
|
||||
#ifndef V_MS2_PIN
|
||||
#define V_MS2_PIN -1
|
||||
#endif
|
||||
#ifndef V_MS3_PIN
|
||||
#define V_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
// The W axis, if any, should be the next open extruder port
|
||||
#if HAS_W_AXIS
|
||||
#ifndef W_STEP_PIN
|
||||
#define W_STEP_PIN _EPIN(W_E_INDEX, STEP)
|
||||
#define W_DIR_PIN _EPIN(W_E_INDEX, DIR)
|
||||
#define W_ENABLE_PIN _EPIN(W_E_INDEX, ENABLE)
|
||||
#if W_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(W_STEP)
|
||||
#error "No E stepper plug left for W!"
|
||||
#else
|
||||
#define AUTO_ASSIGNED_W_STEPPER 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_SPI(W) && !defined(W_CS_PIN)
|
||||
#define W_CS_PIN _EPIN(W_E_INDEX, CS)
|
||||
#if PIN_EXISTS(W_CS)
|
||||
#define AUTO_ASSIGNED_W_CS 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef W_MS1_PIN
|
||||
#define W_MS1_PIN _EPIN(W_E_INDEX, MS1)
|
||||
#if PIN_EXISTS(W_MS1)
|
||||
#define AUTO_ASSIGNED_W_MS1 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef W_MS2_PIN
|
||||
#define W_MS2_PIN _EPIN(W_E_INDEX, MS2)
|
||||
#if PIN_EXISTS(W_MS2)
|
||||
#define AUTO_ASSIGNED_W_MS2 1
|
||||
#endif
|
||||
#endif
|
||||
#ifndef W_MS3_PIN
|
||||
#define W_MS3_PIN _EPIN(W_E_INDEX, MS3)
|
||||
#if PIN_EXISTS(W_MS3)
|
||||
#define AUTO_ASSIGNED_W_MS3 1
|
||||
#endif
|
||||
#endif
|
||||
#if AXIS_HAS_UART(W)
|
||||
#ifndef W_SERIAL_TX_PIN
|
||||
#define W_SERIAL_TX_PIN _EPIN(W_E_INDEX, SERIAL_TX)
|
||||
#endif
|
||||
#ifndef W_SERIAL_RX_PIN
|
||||
#define W_SERIAL_RX_PIN _EPIN(W_E_INDEX, SERIAL_RX)
|
||||
#endif
|
||||
#endif
|
||||
// Auto-assign pins for stallGuard sensorless homing
|
||||
#if !defined(W_DIAG_PIN) && !defined(W_USE_ENDSTOP) && defined(W_STALL_SENSITIVITY) && _PEXI(W_E_INDEX, DIAG)
|
||||
#define W_DIAG_PIN _EPIN(W_E_INDEX, DIAG)
|
||||
#if DIAG_REMAPPED(W, X_MIN)
|
||||
#define W_USE_ENDSTOP _XMIN_
|
||||
#elif DIAG_REMAPPED(W, Y_MIN)
|
||||
#define W_USE_ENDSTOP _YMIN_
|
||||
#elif DIAG_REMAPPED(W, Z_MIN)
|
||||
#define W_USE_ENDSTOP _ZMIN_
|
||||
#elif DIAG_REMAPPED(W, X_MAX)
|
||||
#define W_USE_ENDSTOP _XMAX_
|
||||
#elif DIAG_REMAPPED(W, Y_MAX)
|
||||
#define W_USE_ENDSTOP _YMAX_
|
||||
#elif DIAG_REMAPPED(W, Z_MAX)
|
||||
#define W_USE_ENDSTOP _ZMAX_
|
||||
#else
|
||||
#define W_USE_ENDSTOP _En_DIAG_(W_E_INDEX)
|
||||
#endif
|
||||
#define AUTO_ASSIGNED_W_DIAG 1
|
||||
#undef W_DIAG_PIN // Defined in Conditionals_post.h based on Q_USE_ENDSTOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef W_CS_PIN
|
||||
#define W_CS_PIN -1
|
||||
#endif
|
||||
#ifndef W_MS1_PIN
|
||||
#define W_MS1_PIN -1
|
||||
#endif
|
||||
#ifndef W_MS2_PIN
|
||||
#define W_MS2_PIN -1
|
||||
#endif
|
||||
#ifndef W_MS3_PIN
|
||||
#define W_MS3_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Disable unused endstop / probe pins
|
||||
//
|
||||
#define _STOP_IN_USE(N) (X2_USE_ENDSTOP == N || Y2_USE_ENDSTOP == N || Z2_USE_ENDSTOP == N || Z3_USE_ENDSTOP == N || Z4_USE_ENDSTOP == N)
|
||||
#if _STOP_IN_USE(_XMAX_)
|
||||
#if !defined(USE_XMAX_PLUG) && _STOP_IN_USE(_XMAX_)
|
||||
#define USE_XMAX_PLUG
|
||||
#endif
|
||||
#if _STOP_IN_USE(_YMAX_)
|
||||
#if !defined(USE_YMAX_PLUG) && _STOP_IN_USE(_YMAX_)
|
||||
#define USE_YMAX_PLUG
|
||||
#endif
|
||||
#if _STOP_IN_USE(_ZMAX_)
|
||||
#if !defined(USE_ZMAX_PLUG) && _STOP_IN_USE(_ZMAX_)
|
||||
#define USE_ZMAX_PLUG
|
||||
#endif
|
||||
#if _STOP_IN_USE(_XMIN_)
|
||||
#if !defined(USE_XMIN_PLUG) && _STOP_IN_USE(_XMIN_)
|
||||
#define USE_XMIN_PLUG
|
||||
#endif
|
||||
#if _STOP_IN_USE(_YMIN_)
|
||||
#if !defined(USE_YMIN_PLUG) && _STOP_IN_USE(_YMIN_)
|
||||
#define USE_YMIN_PLUG
|
||||
#endif
|
||||
#if _STOP_IN_USE(_ZMIN_)
|
||||
#if !defined(USE_ZMIN_PLUG) && _STOP_IN_USE(_ZMIN_)
|
||||
#define USE_ZMIN_PLUG
|
||||
#endif
|
||||
#undef _STOP_IN_USE
|
||||
@@ -1291,6 +1664,9 @@
|
||||
#undef X_MAX_PIN
|
||||
#define X_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_XMIN_PLUG, USE_XMAX_PLUG)
|
||||
#undef X_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_YMIN_PLUG)
|
||||
#undef Y_MIN_PIN
|
||||
#define Y_MIN_PIN -1
|
||||
@@ -1299,6 +1675,9 @@
|
||||
#undef Y_MAX_PIN
|
||||
#define Y_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_YMIN_PLUG, USE_YMAX_PLUG)
|
||||
#undef Y_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_ZMIN_PLUG)
|
||||
#undef Z_MIN_PIN
|
||||
#define Z_MIN_PIN -1
|
||||
@@ -1307,6 +1686,9 @@
|
||||
#undef Z_MAX_PIN
|
||||
#define Z_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_ZMIN_PLUG, USE_ZMAX_PLUG)
|
||||
#undef Z_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_IMIN_PLUG)
|
||||
#undef I_MIN_PIN
|
||||
#define I_MIN_PIN -1
|
||||
@@ -1315,6 +1697,9 @@
|
||||
#undef I_MAX_PIN
|
||||
#define I_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_IMIN_PLUG, USE_IMAX_PLUG)
|
||||
#undef I_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_JMIN_PLUG)
|
||||
#undef J_MIN_PIN
|
||||
#define J_MIN_PIN -1
|
||||
@@ -1323,6 +1708,9 @@
|
||||
#undef J_MAX_PIN
|
||||
#define J_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_JMIN_PLUG, USE_JMAX_PLUG)
|
||||
#undef J_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_KMIN_PLUG)
|
||||
#undef K_MIN_PIN
|
||||
#define K_MIN_PIN -1
|
||||
@@ -1331,6 +1719,42 @@
|
||||
#undef K_MAX_PIN
|
||||
#define K_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_KMIN_PLUG, USE_KMAX_PLUG)
|
||||
#undef K_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_UMIN_PLUG)
|
||||
#undef U_MIN_PIN
|
||||
#define U_MIN_PIN -1
|
||||
#endif
|
||||
#if DISABLED(USE_UMAX_PLUG)
|
||||
#undef U_MAX_PIN
|
||||
#define U_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_UMIN_PLUG, USE_UMAX_PLUG)
|
||||
#undef U_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_VMIN_PLUG)
|
||||
#undef V_MIN_PIN
|
||||
#define V_MIN_PIN -1
|
||||
#endif
|
||||
#if DISABLED(USE_VMAX_PLUG)
|
||||
#undef V_MAX_PIN
|
||||
#define V_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_VMIN_PLUG, USE_VMAX_PLUG)
|
||||
#undef V_STOP_PIN
|
||||
#endif
|
||||
#if DISABLED(USE_WMIN_PLUG)
|
||||
#undef W_MIN_PIN
|
||||
#define W_MIN_PIN -1
|
||||
#endif
|
||||
#if DISABLED(USE_WMAX_PLUG)
|
||||
#undef W_MAX_PIN
|
||||
#define W_MAX_PIN -1
|
||||
#endif
|
||||
#if NONE(USE_WMIN_PLUG, USE_WMAX_PLUG)
|
||||
#undef W_STOP_PIN
|
||||
#endif
|
||||
|
||||
#if DISABLED(X_DUAL_ENDSTOPS) || X_HOME_TO_MAX
|
||||
#undef X2_MIN_PIN
|
||||
@@ -1350,23 +1774,23 @@
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || Z_HOME_TO_MIN
|
||||
#undef Z2_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MAX
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 3 || Z_HOME_TO_MAX
|
||||
#undef Z3_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 3 || Z_HOME_TO_MIN
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 3 || Z_HOME_TO_MIN
|
||||
#undef Z3_MAX_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MAX
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 4 || Z_HOME_TO_MAX
|
||||
#undef Z4_MIN_PIN
|
||||
#endif
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPER_DRIVERS < 4 || Z_HOME_TO_MIN
|
||||
#if DISABLED(Z_MULTI_ENDSTOPS) || NUM_Z_STEPPERS < 4 || Z_HOME_TO_MIN
|
||||
#undef Z4_MAX_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Default DOGLCD SPI delays
|
||||
//
|
||||
#if DISABLED(U8GLIB_ST7920)
|
||||
#if !IS_U8GLIB_ST7920
|
||||
#undef ST7920_DELAY_1
|
||||
#undef ST7920_DELAY_2
|
||||
#undef ST7920_DELAY_3
|
||||
|
@@ -163,9 +163,11 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -205,7 +207,7 @@
|
||||
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
|
@@ -55,7 +55,6 @@
|
||||
|
||||
#define X_MIN_PIN 12 // X-
|
||||
#define Y_MIN_PIN 11 // Y-
|
||||
#define Z_MIN_PIN 10 // Z-
|
||||
#define X_MAX_PIN 81 // X+
|
||||
#define Y_MAX_PIN 57 // Y+
|
||||
|
||||
@@ -78,15 +77,16 @@
|
||||
#endif
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#define Z_MIN_PIN 11 // Y-MIN
|
||||
#define SERVO0_PIN 10 // Z-MIN
|
||||
#else
|
||||
#define Z_MIN_PIN 10
|
||||
#define Z_MIN_PIN 11 // Y-
|
||||
#define SERVO0_PIN 10 // Z-
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#define Z_MAX_PIN 7
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN 10 // Z-
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
@@ -157,9 +157,11 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -201,7 +203,7 @@
|
||||
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
|
@@ -130,10 +130,12 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#if !MB(MINIRAMBO_10A)
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#if !MB(MINIRAMBO_10A)
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -193,7 +195,7 @@
|
||||
|
||||
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
|
@@ -186,9 +186,11 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 84 // 84 in MK2 Firmware
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX0_PIN 17
|
||||
#define E_MUX1_PIN 16
|
||||
#define E_MUX2_PIN 84 // 84 in MK2 Firmware
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -206,7 +208,7 @@
|
||||
#define LCD_PINS_D6 74
|
||||
#define LCD_PINS_D7 75
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN 44
|
||||
// NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
|
||||
// beeper/buzzer is connected to pin 33; however, the pin used in the
|
||||
@@ -214,7 +216,6 @@
|
||||
|
||||
#define DOGLCD_A0 70
|
||||
#define DOGLCD_CS 71
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define BTN_EN1 85
|
||||
#define BTN_EN2 84
|
||||
@@ -225,6 +226,8 @@
|
||||
#define STAT_LED_RED_PIN 22
|
||||
#define STAT_LED_BLUE_PIN 32
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#else // !VIKI2 && !miniVIKI
|
||||
|
||||
#define BEEPER_PIN 79 // AUX-4
|
||||
@@ -270,7 +273,7 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 0
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
|
@@ -143,15 +143,16 @@
|
||||
|
||||
#define HOME_PIN BTN_HOME
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN 44
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 70
|
||||
#define DOGLCD_CS 71
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
|
||||
|
||||
#define STAT_LED_RED_PIN 22
|
||||
#define STAT_LED_BLUE_PIN 32
|
||||
#endif // VIKI2/miniVIKI
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
@@ -62,8 +62,8 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define RAMPS_D8_PIN 9
|
||||
#define RAMPS_D9_PIN 8
|
||||
#define MOSFET_B_PIN 8
|
||||
#define MOSFET_C_PIN 9
|
||||
#define MOSFET_D_PIN 12
|
||||
|
||||
//
|
||||
@@ -111,7 +111,7 @@
|
||||
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 62 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 48
|
||||
#elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#elif !BOTH(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 17
|
||||
#if !NUM_SERVOS // Use servo connector if possible
|
||||
@@ -135,7 +135,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
// TODO: Remap EXP1/2 based on adapter
|
||||
@@ -164,9 +164,9 @@
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#endif // HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 188
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Azteeg X3 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
||||
@@ -43,7 +43,7 @@
|
||||
#define SERVO0_PIN 44 // SERVO1 port
|
||||
#define SERVO1_PIN 55 // SERVO2 port
|
||||
|
||||
#include "pins_RAMPS_13.h"
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -51,7 +51,7 @@
|
||||
#undef STAT_LED_RED_PIN
|
||||
#undef STAT_LED_BLUE_PIN
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
|
||||
#undef DOGLCD_A0
|
||||
#undef DOGLCD_CS
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 5 || E_STEPPERS > 5
|
||||
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Azteeg X3 Pro supports up to 5 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Azteeg X3 Pro"
|
||||
@@ -142,7 +142,7 @@
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 49 // For easy adapter board
|
||||
#undef BEEPER_PIN
|
||||
@@ -158,7 +158,7 @@
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
|
||||
#undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
|
||||
#define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
|
||||
// as the wiring diagram uses pin 44 for DOGLCD_A0
|
||||
// as the wiring diagram uses pin 44 for DOGLCD_A0.
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -169,7 +169,7 @@
|
||||
#undef SPINDLE_DIR_PIN
|
||||
|
||||
#if HAS_CUTTER // EXP2 header
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BTN_EN2 31 // Pin 7 needed for Spindle PWM
|
||||
#endif
|
||||
#define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "2PrintBeta Due supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "2PrintBeta Due supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "2PrintBeta Due"
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "KFB 2.0 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "KFB 2.0 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "KFB 2.0"
|
||||
|
@@ -68,9 +68,9 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define RAMPS_D8_PIN 10
|
||||
#define RAMPS_D9_PIN 12
|
||||
#define RAMPS_D10_PIN 9
|
||||
#define MOSFET_A_PIN 9
|
||||
#define MOSFET_B_PIN 12
|
||||
#define MOSFET_C_PIN 10
|
||||
#define MOSFET_D_PIN 7
|
||||
|
||||
//
|
||||
@@ -106,7 +106,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 0
|
||||
#define BOARD_ST7920_DELAY_3 189
|
||||
@@ -115,7 +115,7 @@
|
||||
//
|
||||
// Import RAMPS 1.3 pins
|
||||
//
|
||||
#include "pins_RAMPS_13.h"
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// Used by the Hephestos 2 heated bed upgrade kit
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Dagoma3D F5 supports only 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Dagoma3D F5 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Dagoma3D F5"
|
||||
@@ -40,7 +40,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 250
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Felix 2.0+ supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Felix 2.0+ supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Felix 2.0+"
|
||||
@@ -49,7 +49,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#define SD_DETECT_PIN 6
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Formbot supports up to 3 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
@@ -121,23 +121,6 @@
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
@@ -66,3 +66,9 @@
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENA_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
|
||||
#error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
|
||||
#endif
|
||||
|
||||
#if HAS_MARLINUI_U8GLIB
|
||||
#define BOARD_ST7920_DELAY_1 125
|
||||
#define BOARD_ST7920_DELAY_2 125
|
||||
#define BOARD_ST7920_DELAY_3 125
|
||||
#endif
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Formbot supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Formbot"
|
||||
@@ -118,23 +118,6 @@
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
@@ -199,7 +182,7 @@
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#if IS_U8GLIB_ST7920
|
||||
#define BOARD_ST7920_DELAY_1 200
|
||||
#define BOARD_ST7920_DELAY_2 200
|
||||
#define BOARD_ST7920_DELAY_3 200
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Formbot supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Formbot"
|
||||
@@ -100,9 +100,15 @@
|
||||
#define E1_CS_PIN 44
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN 42
|
||||
#define E2_DIR_PIN 43
|
||||
#define E2_ENABLE_PIN 44
|
||||
#if HAS_X2_STEPPER
|
||||
#define X2_STEP_PIN 42
|
||||
#define X2_DIR_PIN 43
|
||||
#define X2_ENABLE_PIN 44
|
||||
#else
|
||||
#define E2_STEP_PIN 42
|
||||
#define E2_DIR_PIN 43
|
||||
#define E2_ENABLE_PIN 44
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -128,7 +134,6 @@
|
||||
#define FAN_PIN 9
|
||||
#define FAN1_PIN 12
|
||||
|
||||
#define NUM_RUNOUT_SENSORS 2
|
||||
#define FIL_RUNOUT_PIN 22
|
||||
#define FIL_RUNOUT2_PIN 21
|
||||
|
||||
@@ -174,3 +179,9 @@
|
||||
#define BEEPER_PIN 37
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_MARLINUI_U8GLIB
|
||||
#define BOARD_ST7920_DELAY_1 125
|
||||
#define BOARD_ST7920_DELAY_2 125
|
||||
#define BOARD_ST7920_DELAY_3 125
|
||||
#endif
|
||||
|
@@ -234,7 +234,7 @@
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
//
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/
|
||||
//
|
||||
#define DOGLCD_A0 16
|
||||
#define DOGLCD_CS 17
|
||||
|
@@ -30,4 +30,4 @@
|
||||
#define DEFAULT_MACHINE_NAME "K8200"
|
||||
#define DEFAULT_SOURCE_CODE_URL "github.com/CONSULitAS/Marlin-K8200"
|
||||
|
||||
#include "pins_3DRAG.h"
|
||||
#include "pins_3DRAG.h" // ... RAMPS
|
||||
|
@@ -50,7 +50,7 @@
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
|
||||
#include "pins_3DRAG.h"
|
||||
#include "pins_3DRAG.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
|
@@ -25,8 +25,8 @@
|
||||
* VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.
|
||||
*/
|
||||
|
||||
#if HOTENDS > 1
|
||||
#error "Only 1 hotend is supported for Vertex Nano."
|
||||
#if HAS_MULTI_HOTEND
|
||||
#error "K8600 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "K8600"
|
||||
@@ -59,7 +59,6 @@
|
||||
//
|
||||
// Other RAMPS pins
|
||||
//
|
||||
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
@@ -70,7 +69,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
#undef LCD_PINS_RS
|
||||
|
@@ -30,8 +30,6 @@
|
||||
#define BOARD_INFO_NAME "K8800"
|
||||
#define DEFAULT_MACHINE_NAME "Vertex Delta"
|
||||
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
@@ -107,9 +105,7 @@
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
#define LCD_CONTRAST_MIN 0
|
||||
#define LCD_CONTRAST_MAX 100
|
||||
#define DEFAULT_LCD_CONTRAST 30
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 17
|
||||
|
@@ -28,17 +28,17 @@
|
||||
#define REQUIRE_MEGA2560
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Longer3D LGT KIT V1.0 board only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "Longer3D LGT KIT V1.0 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1
|
||||
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1 || SERIAL_PORT_3 == 1
|
||||
#warning "Serial 1 is originally reserved to DGUS LCD."
|
||||
#endif
|
||||
#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2
|
||||
#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
|
||||
#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."
|
||||
#endif
|
||||
@@ -105,7 +105,9 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX2_PIN -1
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX2_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -116,5 +118,4 @@
|
||||
//
|
||||
// Other RAMPS 1.3 pins
|
||||
//
|
||||
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
|
||||
#include "pins_RAMPS_13.h"
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
|
@@ -28,10 +28,10 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS BASE 1.0 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS BASE 1.0 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS BASE 1.0"
|
||||
#define MKS_BASE_VERSION 10
|
||||
|
||||
#include "pins_MKS_BASE_common.h"
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS BASE 1.4 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS BASE 1.4 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS BASE 1.4"
|
||||
@@ -58,7 +58,7 @@
|
||||
#define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_BASE_common.h"
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
||||
/*
|
||||
Available connectors on MKS BASE v1.4
|
||||
|
@@ -26,10 +26,10 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS BASE 1.5 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS BASE 1.5 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS BASE 1.5"
|
||||
#define MKS_BASE_VERSION 15
|
||||
|
||||
#include "pins_MKS_BASE_common.h"
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS BASE 1.6 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS BASE 1.6 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS BASE 1.6"
|
||||
@@ -56,4 +56,4 @@
|
||||
#define PS_ON_PIN -1
|
||||
#endif
|
||||
|
||||
#include "pins_MKS_BASE_common.h"
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
@@ -25,7 +25,7 @@
|
||||
* MKS BASE with Heroic HR4982 stepper drivers
|
||||
*/
|
||||
|
||||
#include "pins_MKS_BASE_15.h"
|
||||
#include "pins_MKS_BASE_15.h" // ... MKS_BASE_common ... RAMPS
|
||||
|
||||
/**
|
||||
* Some new boards use HR4982 (Heroic) instead of the A4982 (Allegro) stepper drivers.
|
||||
|
@@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS GEN 1.3/1.4 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS GEN 1.3/1.4 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS GEN >= v1.3"
|
||||
@@ -54,13 +54,13 @@
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
#undef EXP2_03_PIN
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#undef EXP2_08_PIN
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
/**
|
||||
* VIKI2 Has two groups of wires with...
|
||||
*
|
||||
@@ -85,11 +85,11 @@
|
||||
* This configuration uses the following arrangement:
|
||||
*
|
||||
* ------ ------
|
||||
* ENCB |10 9 | ENCA MISO |10 9 | SCK
|
||||
* BLUE_LED | 8 7 | RED_LED ENCBTN | 8 7 | SDCS
|
||||
* KILL 6 5 | BEEPER 6 5 | MOSI
|
||||
* A0 | 4 3 | LCD_CS SDCD | 4 3 |
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ENCB | 1 2 | ENCA MISO | 1 2 | SCK
|
||||
* BLUE_LED | 3 4 | RED_LED ENCBTN | 3 4 | SDCS
|
||||
* KILL 5 6 | BEEPER 5 6 | MOSI
|
||||
* A0 | 7 8 | LCD_CS SDCD | 7 8 |
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
@@ -107,24 +107,24 @@
|
||||
//
|
||||
// VIKI2 12-wire lead
|
||||
//
|
||||
#define SD_DETECT_PIN EXP2_04_PIN // SDCD orange/white
|
||||
#define BTN_EN1 EXP1_09_PIN // ENCA white
|
||||
#define BTN_EN2 EXP1_10_PIN // ENCB green
|
||||
#define BTN_ENC EXP2_08_PIN // ENCBTN purple
|
||||
#define DOGLCD_A0 EXP1_04_PIN // A0 brown
|
||||
#define DOGLCD_CS EXP1_03_PIN // LCS green/white
|
||||
#define SD_DETECT_PIN EXP2_07_PIN // SDCD orange/white
|
||||
#define BTN_EN1 EXP1_02_PIN // ENCA white
|
||||
#define BTN_EN2 EXP1_01_PIN // ENCB green
|
||||
#define BTN_ENC EXP2_03_PIN // ENCBTN purple
|
||||
#define DOGLCD_A0 EXP1_07_PIN // A0 brown
|
||||
#define DOGLCD_CS EXP1_08_PIN // LCS green/white
|
||||
|
||||
// EXP2_10_PIN gray MISO
|
||||
// EXP2_05_PIN yellow MOSI
|
||||
// EXP2_09_PIN orange SCK
|
||||
// EXP2_01_PIN gray MISO
|
||||
// EXP2_06_PIN yellow MOSI
|
||||
// EXP2_02_PIN orange SCK
|
||||
|
||||
//#define SDSS EXP2_07_PIN // SDCS blue
|
||||
//#define SDSS EXP2_04_PIN // SDCS blue
|
||||
|
||||
//
|
||||
// VIKI2 4-wire lead
|
||||
//
|
||||
#define KILL_PIN EXP1_06_PIN // BTN blue
|
||||
#define BEEPER_PIN EXP1_05_PIN // BUZZER green
|
||||
#define STAT_LED_RED_PIN EXP1_07_PIN // RED-LED yellow
|
||||
#define STAT_LED_BLUE_PIN EXP1_08_PIN // BLUE-LED white
|
||||
#define KILL_PIN EXP1_05_PIN // BTN blue
|
||||
#define BEEPER_PIN EXP1_06_PIN // BUZZER green
|
||||
#define STAT_LED_RED_PIN EXP1_04_PIN // RED-LED yellow
|
||||
#define STAT_LED_BLUE_PIN EXP1_03_PIN // BLUE-LED white
|
||||
#endif
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS GEN L supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS GEN L supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS GEN L"
|
||||
@@ -37,6 +37,12 @@
|
||||
// Power outputs EFBF or EFBE
|
||||
#define MOSFET_D_PIN 7
|
||||
|
||||
// Hotend, Hotend, Bed + Fan on D9
|
||||
#if FET_ORDER_EEB
|
||||
#define MOSFET_B_PIN 7
|
||||
#define FAN_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
// CS Pins wired to avoid conflict with the LCD
|
||||
// See https://www.thingiverse.com/asset:66604
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS GEN L V2 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS GEN L V2 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS GEN L V2"
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS GEN L V2.1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "MKS GEN L V2.1 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS GEN L V2.1"
|
||||
|
86
Marlin/src/pins/ramps/pins_PXMALION_CORE_I3.h
Normal file
86
Marlin/src/pins/ramps/pins_PXMALION_CORE_I3.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Pxmalion Core i3 - https://github.com/Pxmalion
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Core i3"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 51
|
||||
#define SERVO1_PIN -1
|
||||
#define SERVO2_PIN -1
|
||||
#define SERVO3_PIN -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 2
|
||||
#define Z_MIN_PIN 19
|
||||
#define Z_MAX_PIN 18
|
||||
|
||||
// TODO: Filament Runout Sensor
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_CS_PIN -1
|
||||
#define Y_CS_PIN -1
|
||||
#define Z_CS_PIN -1
|
||||
#define E0_CS_PIN -1
|
||||
#define E1_CS_PIN -1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define FET_ORDER_EFB
|
||||
#ifndef MOSFET_A_PIN
|
||||
#define MOSFET_A_PIN 8
|
||||
#endif
|
||||
#ifndef MOSFET_B_PIN
|
||||
#define MOSFET_B_PIN 7
|
||||
#endif
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN -1 // Analog Input
|
||||
#endif
|
||||
|
||||
#define PS_ON_PIN 11
|
||||
|
||||
#include "pins_RAMPS.h"
|
@@ -78,6 +78,31 @@
|
||||
#define SERVO3_PIN 4
|
||||
#endif
|
||||
|
||||
//
|
||||
// Foam Cutter requirements
|
||||
//
|
||||
|
||||
#if ENABLED(FOAMCUTTER_XYUV)
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN -1
|
||||
#endif
|
||||
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN) && NUM_SERVOS < 2
|
||||
#define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM
|
||||
#endif
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN -1
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN -1
|
||||
#endif
|
||||
#ifndef I_STOP_PIN
|
||||
#define I_STOP_PIN 18
|
||||
#endif
|
||||
#ifndef J_STOP_PIN
|
||||
#define J_STOP_PIN 19
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
@@ -120,14 +145,14 @@
|
||||
#define X_DIR_PIN 55
|
||||
#define X_ENABLE_PIN 38
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN AUX3_03_PIN
|
||||
#define X_CS_PIN 53
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN 60
|
||||
#define Y_DIR_PIN 61
|
||||
#define Y_ENABLE_PIN 56
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN AUX3_07_PIN
|
||||
#define Y_CS_PIN 49
|
||||
#endif
|
||||
|
||||
#ifndef Z_STEP_PIN
|
||||
@@ -189,52 +214,35 @@
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card (SDSS) or 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
#define IS_RAMPS_EEF
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EFB
|
||||
#else
|
||||
#define IS_RAMPS_EFF
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef MOSFET_A_PIN
|
||||
#define MOSFET_A_PIN 10
|
||||
#endif
|
||||
#ifndef MOSFET_B_PIN
|
||||
#define MOSFET_B_PIN 9
|
||||
#endif
|
||||
#ifndef MOSFET_C_PIN
|
||||
#define MOSFET_C_PIN 8
|
||||
#endif
|
||||
#ifndef MOSFET_D_PIN
|
||||
#define MOSFET_D_PIN -1
|
||||
#endif
|
||||
#ifndef RAMPS_D8_PIN
|
||||
#define RAMPS_D8_PIN 8
|
||||
#endif
|
||||
#ifndef RAMPS_D9_PIN
|
||||
#define RAMPS_D9_PIN 9
|
||||
#endif
|
||||
#ifndef RAMPS_D10_PIN
|
||||
#define RAMPS_D10_PIN 10
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN RAMPS_D10_PIN
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN RAMPS_D9_PIN
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
|
||||
#define FAN1_PIN RAMPS_D8_PIN
|
||||
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
|
||||
#define HEATER_BED_PIN RAMPS_D8_PIN
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#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
|
||||
#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
|
||||
#if EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL)
|
||||
#define HEATER_1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
@@ -243,14 +251,14 @@
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN RAMPS_D8_PIN
|
||||
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -258,7 +266,7 @@
|
||||
// Misc. Functions
|
||||
//
|
||||
#ifndef SDSS
|
||||
#define SDSS AUX3_03_PIN
|
||||
#define SDSS AUX3_06_PIN
|
||||
#endif
|
||||
#define LED_PIN 13
|
||||
|
||||
@@ -293,9 +301,11 @@
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
|
||||
#if !NUM_SERVOS // Use servo connector if possible
|
||||
#if NUM_SERVOS < 2 // Use servo connector if possible
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#ifndef SPINDLE_LASER_PWM_PIN
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#endif
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#elif HAS_FREE_AUX2_PINS
|
||||
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
|
||||
@@ -435,30 +445,59 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 40 // Z_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 42 // E0_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 44 // E1_CS_PIN
|
||||
#if HAS_PRUSA_MMU1
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 40 // Z_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 42 // E0_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 44 // E1_CS_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// AUX3 : GND D52 D50 5V
|
||||
// NC D53 D51 D49
|
||||
|
||||
#define AUX3_03_PIN 53
|
||||
#define AUX3_04_PIN 52
|
||||
#define AUX3_05_PIN 51
|
||||
#define AUX3_06_PIN 50
|
||||
#define AUX3_07_PIN 49
|
||||
// AUX1 5V GND D2 D1
|
||||
// 2 4 6 8
|
||||
// 1 3 5 7
|
||||
// 5V GND A3 A4
|
||||
//
|
||||
#define AUX1_05_PIN 57 // (A3)
|
||||
#define AUX1_06_PIN 2
|
||||
#define AUX1_07_PIN 58 // (A4)
|
||||
#define AUX1_08_PIN 1
|
||||
|
||||
//
|
||||
// AUX4 : D16 D17 D23 D25 D27 D29 D31 D33 D35 D37 D39 D41 D43 D45 D47 D32 GND 5V
|
||||
// AUX2 GND A9 D40 D42 A11
|
||||
// 2 4 6 8 10
|
||||
// 1 3 5 7 9
|
||||
// VCC A5 A10 D44 A12
|
||||
//
|
||||
#define AUX2_03_PIN 59 // (A5)
|
||||
#define AUX2_04_PIN 63 // (A9)
|
||||
#define AUX2_05_PIN 64 // (A10)
|
||||
#define AUX2_06_PIN 40
|
||||
#define AUX2_07_PIN 44
|
||||
#define AUX2_08_PIN 42
|
||||
#define AUX2_09_PIN 66 // (A12)
|
||||
#define AUX2_10_PIN 65 // (A11)
|
||||
|
||||
//
|
||||
// AUX3 GND D52 D50 5V
|
||||
// 7 5 3 1
|
||||
// 8 6 4 2
|
||||
// NC D53 D51 D49
|
||||
//
|
||||
#define AUX3_02_PIN 49
|
||||
#define AUX3_03_PIN 50
|
||||
#define AUX3_04_PIN 51
|
||||
#define AUX3_05_PIN 52
|
||||
#define AUX3_06_PIN 53
|
||||
|
||||
//
|
||||
// AUX4 5V GND D32 D47 D45 D43 D41 D39 D37 D35 D33 D31 D29 D27 D25 D23 D17 D16
|
||||
//
|
||||
#define AUX4_03_PIN 32
|
||||
#define AUX4_04_PIN 47
|
||||
#define AUX4_05_PIN 45
|
||||
@@ -477,35 +516,69 @@
|
||||
#define AUX4_18_PIN 16
|
||||
|
||||
/**
|
||||
* LCD adapter. NOTE: These come in two variants. The socket keys can be
|
||||
* LCD adapters come in different variants. The socket keys can be
|
||||
* on either side, and may be backwards on some boards / displays.
|
||||
* ------ ------
|
||||
* D37 |10 9 | D35 (MISO) D50 |10 9 | D52 (SCK)
|
||||
* D17 | 8 7 | D16 D31 | 8 7 | D53
|
||||
* D23 6 5 D25 D33 6 5 D51 (MOSI)
|
||||
* D27 | 4 3 | D29 D49 | 4 3 | D41
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#ifndef EXP1_03_PIN
|
||||
#define EXP1_03_PIN AUX4_13_PIN
|
||||
#define EXP1_04_PIN AUX4_14_PIN
|
||||
#define EXP1_05_PIN AUX4_15_PIN
|
||||
#define EXP1_06_PIN AUX4_16_PIN
|
||||
#define EXP1_07_PIN AUX4_18_PIN
|
||||
#define EXP1_08_PIN AUX4_17_PIN
|
||||
#define EXP1_09_PIN AUX4_10_PIN
|
||||
#define EXP1_10_PIN AUX4_09_PIN
|
||||
#ifndef EXP1_08_PIN
|
||||
|
||||
#define EXP1_03_PIN AUX4_17_PIN
|
||||
#define EXP1_04_PIN AUX4_18_PIN
|
||||
#define EXP1_05_PIN AUX4_16_PIN
|
||||
#define EXP1_06_PIN AUX4_15_PIN
|
||||
#define EXP1_07_PIN AUX4_14_PIN
|
||||
#define EXP1_08_PIN AUX4_13_PIN
|
||||
|
||||
#define EXP2_01_PIN AUX3_03_PIN
|
||||
#define EXP2_02_PIN AUX3_05_PIN
|
||||
#define EXP2_04_PIN AUX3_06_PIN
|
||||
#define EXP2_06_PIN AUX3_04_PIN
|
||||
#define EXP2_07_PIN AUX3_02_PIN
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
/** Gadgets3D Smart Adapter
|
||||
* ------ ------
|
||||
* 4-11 | 1 2 | 4-12 (MISO) 3-03 | 1 2 | 3-05 (SCK)
|
||||
* 4-17 | 3 4 | 4-18 4-10 | 3 4 | 3-06
|
||||
* 4-16 5 6 | 4-15 4-09 5 6 | 3-04 (MOSI)
|
||||
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
|
||||
* (GND) 4-02 | 9 10 | 4-01 (5V) -- | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN AUX4_11_PIN
|
||||
#define EXP1_02_PIN AUX4_12_PIN
|
||||
|
||||
#define EXP2_03_PIN AUX4_10_PIN
|
||||
#define EXP2_05_PIN AUX4_09_PIN
|
||||
#define EXP2_08_PIN AUX4_07_PIN
|
||||
|
||||
#else
|
||||
|
||||
/** Smart Adapter (c) RRD
|
||||
* ------ ------
|
||||
* 4-09 | 1 2 | 4-10 (MISO) 3-03 | 1 2 | 3-05 (SCK)
|
||||
* 4-17 | 3 4 | 4-18 4-12 | 3 4 | 3-06
|
||||
* 4-16 5 6 | 4-15 4-11 5 6 | 3-04 (MOSI)
|
||||
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
|
||||
* (GND) 3-07 | 9 10 | 3-01 (5V) (GND) 3-07 | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN AUX4_09_PIN
|
||||
#define EXP1_02_PIN AUX4_10_PIN
|
||||
|
||||
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
|
||||
#define EXP2_03_PIN AUX4_11_PIN
|
||||
#define EXP2_05_PIN AUX4_12_PIN
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
#else
|
||||
#define EXP2_03_PIN AUX4_12_PIN
|
||||
#define EXP2_05_PIN AUX4_11_PIN
|
||||
#define EXP2_08_PIN AUX4_07_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#define EXP2_03_PIN AUX4_07_PIN
|
||||
#define EXP2_04_PIN AUX3_07_PIN
|
||||
#define EXP2_05_PIN AUX3_05_PIN
|
||||
#define EXP2_06_PIN AUX4_11_PIN
|
||||
#define EXP2_07_PIN AUX3_03_PIN
|
||||
#define EXP2_08_PIN AUX4_12_PIN
|
||||
#define EXP2_09_PIN AUX3_04_PIN
|
||||
#define EXP2_10_PIN AUX3_06_PIN
|
||||
#endif
|
||||
|
||||
//////////////////////////
|
||||
@@ -514,77 +587,81 @@
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
//
|
||||
// LCD Display output pins
|
||||
//
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS EXP2_04_PIN // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE EXP2_05_PIN // SID (MOSI)
|
||||
#define LCD_PINS_D4 EXP2_09_PIN // SCK (CLK) clock
|
||||
#define LCD_PINS_RS EXP2_07_PIN // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE EXP2_06_PIN // SID (MOSI)
|
||||
#define LCD_PINS_D4 EXP2_02_PIN // SCK (CLK) clock
|
||||
|
||||
#elif BOTH(IS_NEWPANEL, PANEL_ONE)
|
||||
|
||||
#define LCD_PINS_RS 40
|
||||
#define LCD_PINS_ENABLE 42
|
||||
#define LCD_PINS_D4 65
|
||||
#define LCD_PINS_D5 66
|
||||
#define LCD_PINS_D6 44
|
||||
#define LCD_PINS_D7 64
|
||||
#define LCD_PINS_RS AUX2_06_PIN
|
||||
#define LCD_PINS_ENABLE AUX2_08_PIN
|
||||
#define LCD_PINS_D4 AUX2_10_PIN
|
||||
#define LCD_PINS_D5 AUX2_09_PIN
|
||||
#define LCD_PINS_D6 AUX2_07_PIN
|
||||
#define LCD_PINS_D7 AUX2_05_PIN
|
||||
|
||||
#elif ENABLED(TFTGLCD_PANEL_SPI)
|
||||
|
||||
#define TFTGLCD_CS EXP2_06_PIN
|
||||
#define TFTGLCD_CS EXP2_05_PIN
|
||||
|
||||
#else
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#endif
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. It plugs into AUX2 but GND and 5V need to be swapped. Comment out this line to continue."
|
||||
#define LCD_PINS_RS 64
|
||||
#define LCD_PINS_ENABLE 44
|
||||
#define LCD_PINS_D4 63
|
||||
#define LCD_PINS_D5 40
|
||||
#define LCD_PINS_D6 42
|
||||
#define LCD_PINS_D7 65
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. It plugs into AUX2 but GND and 5V need to be swapped. See 'pins_RAMPS.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_RS AUX2_05_PIN
|
||||
#define LCD_PINS_ENABLE AUX2_07_PIN
|
||||
#define LCD_PINS_D4 AUX2_04_PIN
|
||||
#define LCD_PINS_D5 AUX2_06_PIN
|
||||
#define LCD_PINS_D6 AUX2_08_PIN
|
||||
#define LCD_PINS_D7 AUX2_10_PIN
|
||||
|
||||
#elif ENABLED(AZSMZ_12864)
|
||||
|
||||
// Pins only defined for RAMPS_SMART currently
|
||||
|
||||
#else
|
||||
|
||||
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
|
||||
#define LCD_PINS_DC EXP1_05_PIN // Set as output on init
|
||||
#define LCD_PINS_RS EXP1_04_PIN // Pull low for 1s to init
|
||||
#define LCD_PINS_DC EXP1_06_PIN // Set as output on init
|
||||
#define LCD_PINS_RS EXP1_07_PIN // Pull low for 1s to init
|
||||
// DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
#define DOGLCD_SCK EXP1_06_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define DOGLCD_SCK EXP1_05_PIN
|
||||
#else
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN EXP2_06_PIN
|
||||
#define BEEPER_PIN EXP2_05_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -593,9 +670,9 @@
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK_PIN 38
|
||||
//#define SHIFT_LD_PIN 42
|
||||
//#define SHIFT_OUT_PIN 40
|
||||
//#define SHIFT_EN_PIN EXP1_08_PIN
|
||||
//#define SHIFT_LD_PIN AUX2_08_PIN
|
||||
//#define SHIFT_OUT_PIN AUX2_06_PIN
|
||||
//#define SHIFT_EN_PIN EXP1_03_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -611,22 +688,22 @@
|
||||
|
||||
#if IS_RRD_SC
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#else
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#endif
|
||||
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
|
||||
@@ -635,10 +712,10 @@
|
||||
|
||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
#define SD_DETECT_PIN 42
|
||||
#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
|
||||
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
|
||||
@@ -646,119 +723,118 @@
|
||||
#define BTN_EN2 AUX4_06_PIN
|
||||
#define BTN_ENC AUX4_03_PIN
|
||||
#define LCD_SDSS SDSS
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
|
||||
#define BTN_EN1 40 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 42
|
||||
#define BTN_EN1 AUX2_06_PIN // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains AUX2-06 and AUX2-08.
|
||||
#define BTN_EN2 AUX2_08_PIN
|
||||
#define BTN_ENC -1
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
#elif EITHER(VIKI2, miniVIKI)
|
||||
|
||||
#define DOGLCD_CS 45
|
||||
#define DOGLCD_A0 44
|
||||
#define LCD_SCREEN_ROT_180
|
||||
#define DOGLCD_CS AUX4_05_PIN
|
||||
#define DOGLCD_A0 AUX2_07_PIN
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#define BEEPER_PIN EXP2_06_PIN
|
||||
#define STAT_LED_RED_PIN 32
|
||||
#define STAT_LED_BLUE_PIN EXP1_09_PIN
|
||||
#define BEEPER_PIN EXP2_05_PIN
|
||||
#define STAT_LED_RED_PIN AUX4_03_PIN
|
||||
#define STAT_LED_BLUE_PIN EXP1_02_PIN
|
||||
|
||||
#define BTN_EN1 22
|
||||
#define BTN_EN2 7
|
||||
#define BTN_ENC 39
|
||||
#define BTN_ENC AUX4_08_PIN
|
||||
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
|
||||
#define BEEPER_PIN EXP1_06_PIN
|
||||
#define LCD_BACKLIGHT_PIN EXP2_06_PIN
|
||||
#define BEEPER_PIN EXP1_05_PIN
|
||||
#define LCD_BACKLIGHT_PIN EXP2_05_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_09_PIN
|
||||
#define BTN_EN2 EXP1_10_PIN
|
||||
#define BTN_ENC EXP2_08_PIN
|
||||
#define BTN_EN1 EXP1_02_PIN
|
||||
#define BTN_EN2 EXP1_01_PIN
|
||||
#define BTN_ENC EXP2_03_PIN
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
#ifndef KILL_PIN
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
|
||||
// not connected to a pin
|
||||
#define LCD_BACKLIGHT_PIN -1 // 65 (MKS mini12864 can't adjust backlight by software!)
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#elif ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
// From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
||||
// From https://wiki.fysetc.com/Mini12864_Panel/
|
||||
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_06_PIN
|
||||
#define BTN_EN2 EXP2_08_PIN
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
#define BTN_EN2 EXP2_03_PIN
|
||||
|
||||
//#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 EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // 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 EXP1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
// not connected to a pin
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
#define BEEPER_PIN AUX2_08_PIN
|
||||
#define LCD_BACKLIGHT_PIN AUX2_10_PIN
|
||||
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 66
|
||||
#define DOGLCD_A0 AUX2_07_PIN
|
||||
#define DOGLCD_CS AUX2_09_PIN
|
||||
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
#define BTN_EN1 AUX2_06_PIN
|
||||
#define BTN_EN2 AUX2_04_PIN
|
||||
#define BTN_ENC AUX2_03_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define KILL_PIN 64
|
||||
#define SD_DETECT_PIN AUX3_02_PIN
|
||||
#define KILL_PIN AUX2_05_PIN
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
@@ -770,32 +846,31 @@
|
||||
|
||||
#elif ENABLED(G3D_PANEL)
|
||||
|
||||
#define BEEPER_PIN EXP2_06_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define KILL_PIN EXP2_03_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_10_PIN
|
||||
#define BTN_EN2 EXP1_09_PIN
|
||||
#define BTN_ENC EXP2_08_PIN
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
#define BTN_EN2 EXP2_03_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN EXP2_06_PIN
|
||||
#define BEEPER_PIN EXP2_05_PIN
|
||||
|
||||
// Buttons are directly attached to AUX-2
|
||||
#if ENABLED(PANEL_ONE)
|
||||
#define BTN_EN1 59 // AUX2 PIN 3
|
||||
#define BTN_EN2 63 // AUX2 PIN 4
|
||||
#define BTN_ENC EXP2_04_PIN
|
||||
#if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2
|
||||
#define BTN_EN1 AUX2_03_PIN
|
||||
#define BTN_EN2 AUX2_04_PIN
|
||||
#define BTN_ENC AUX3_02_PIN
|
||||
#else
|
||||
#define BTN_EN1 EXP1_10_PIN
|
||||
#define BTN_EN2 EXP1_09_PIN
|
||||
#define BTN_ENC EXP2_08_PIN
|
||||
#define BTN_EN1 EXP1_01_PIN
|
||||
#define BTN_EN2 EXP1_02_PIN
|
||||
#define BTN_ENC EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -804,60 +879,63 @@
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS
|
||||
#define SHIFT_OUT_PIN 40
|
||||
#define SHIFT_CLK_PIN 44
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define SHIFT_OUT_PIN AUX2_06_PIN
|
||||
#define SHIFT_CLK_PIN AUX2_07_PIN
|
||||
#define SHIFT_LD_PIN AUX2_08_PIN
|
||||
#ifndef BTN_EN1
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN1 AUX2_05_PIN
|
||||
#endif
|
||||
#ifndef BTN_EN2
|
||||
#define BTN_EN2 59
|
||||
#define BTN_EN2 AUX2_03_PIN
|
||||
#endif
|
||||
#ifndef BTN_ENC
|
||||
#define BTN_ENC 63
|
||||
#define BTN_ENC AUX2_04_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
|
||||
|
||||
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_RAMPS.h' for details. Comment out this line to continue."
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_RAMPS.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* FYSETC TFT-81050 display pinout
|
||||
*
|
||||
* Board Display
|
||||
* ----- -----
|
||||
* (SCK) D52 | 1 2 | D50 (MISO) MISO | 1 2 | SCK
|
||||
* (SD_CS) D53 | 3 4 | D33 (BNT_EN2) (BNT_EN2) MOD_RESET | 3 4 | SD_CS
|
||||
* (MOSI) D51 | 5 6 D31 (BNT_EN1) (BNT_EN1) LCD_CS | 5 6 MOSI
|
||||
* RESET | 7 8 | D49 (SD_DET) SD_DET | 7 8 | RESET
|
||||
* NC | 9 10| GND GND | 9 10| 5V
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
* Board Display
|
||||
* ------ ------
|
||||
* (MISO) 50 | 1 2 | 52 (SCK) 5V |10 9 | GND
|
||||
* (LCD_CS) 33 | 3 4 | 53 (SD_CS) RESET | 8 7 | (SD_DET)
|
||||
* 31 5 6 | 51 (MOSI) (MOSI) 6 5 | (LCD_CS)
|
||||
* (SD_DET) 49 | 7 8 | RESET (SD_CS) | 4 3 | (MOD_RESET)
|
||||
* GND | 9 10 | -- (SCK) | 2 1 | (MISO)
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*
|
||||
* Needs custom cable:
|
||||
*
|
||||
* Board Adapter Display
|
||||
* _________
|
||||
* EXP2-1 ----------- EXP1-10
|
||||
* EXP2-2 ----------- EXP1-9
|
||||
* EXP2-4 ----------- EXP1-8
|
||||
* EXP2-4 ----------- EXP1-7
|
||||
* EXP2-3 ----------- EXP1-6
|
||||
* EXP2-6 ----------- EXP1-5
|
||||
* EXP2-7 ----------- EXP1-4
|
||||
* EXP2-8 ----------- EXP1-3
|
||||
* EXP2-1 ----------- EXP1-2
|
||||
* EXP1-10 ---------- EXP1-1
|
||||
* ----------------------------------
|
||||
* EXP2-1 <--diode--- EXP1-1 MISO
|
||||
* EXP2-2 ----------- EXP1-2 SCK
|
||||
* EXP2-4 ----------- EXP1-3 MOD_RST
|
||||
* EXP2-4 ----------- EXP1-4 SD_CS
|
||||
* EXP2-3 ----------- EXP1-5 LCD_CS
|
||||
* EXP2-6 ----------- EXP1-6 MOSI
|
||||
* EXP2-7 ----------- EXP1-7 SD DET
|
||||
* EXP2-8 ----------- EXP1-8 RESET
|
||||
* EXP2-1 ----------- EXP1-9 MISO->GND
|
||||
* EXP1-10 ---------- EXP1-10 5V
|
||||
*
|
||||
* NOTE: The MISO pin should not get a 5V signal.
|
||||
* To fix, insert a 1N4148 diode in the MISO line.
|
||||
*/
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#define CLCD_MOD_RESET EXP2_05_PIN
|
||||
#define CLCD_SPI_CS EXP2_03_PIN
|
||||
|
||||
#define CLCD_MOD_RESET EXP2_08_PIN
|
||||
#define CLCD_SPI_CS EXP2_06_PIN
|
||||
#endif // TOUCH_UI_FTDI_EVE && LCD_FYSETC_TFT81050
|
||||
|
@@ -22,7 +22,7 @@
|
||||
#pragma once
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Creality3D RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Creality RAMPS supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Creality3D RAMPS"
|
||||
@@ -30,9 +30,8 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
// Power outputs EFBF or EFBE
|
||||
#define MOSFET_D_PIN 7
|
||||
#define MOSFET_B_PIN 7 // For HEATER_1_PIN ("EEF" or "EEB")
|
||||
#define FAN_PIN 9
|
||||
|
||||
#define FIL_RUNOUT_PIN 2
|
||||
#if NUM_RUNOUT_SENSORS >= 2
|
||||
@@ -40,7 +39,12 @@
|
||||
#endif
|
||||
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 49 // Always define onboard SD detect
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
//#define HAS_ONBOARD_SD_DETECT // If the SD_DETECT_PIN is wired up
|
||||
#endif
|
||||
#if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef PS_ON_PIN
|
||||
|
@@ -21,8 +21,8 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Ender-4 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "Ender-4 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Ender-4"
|
||||
@@ -36,6 +36,6 @@
|
||||
#if ENABLED(CASE_LIGHT_ENABLE)
|
||||
#undef FAN_PIN
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN RAMPS_D9_PIN
|
||||
#define CASE_LIGHT_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -23,10 +23,6 @@
|
||||
|
||||
/**
|
||||
* Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
|
||||
* The differences to the RAMPS v1.4 are:
|
||||
* - Swap heater E0 with E1
|
||||
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
|
||||
* - Change pins 16->42, 17->44 and 29->53 used for display.
|
||||
*
|
||||
* Applies to the following boards:
|
||||
*
|
||||
@@ -35,14 +31,19 @@
|
||||
* RAMPS_PLUS_EFF (Extruder, Fan, Fan)
|
||||
* RAMPS_PLUS_EEF (Extruder, Extruder, Fan)
|
||||
* RAMPS_PLUS_SF (Spindle, Controller Fan)
|
||||
*
|
||||
* Differences from RAMPS v1.4:
|
||||
* - Swap heater E0 with E1
|
||||
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
|
||||
* - Change EXP1/2 pins
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"
|
||||
|
||||
#define RAMPS_D8_PIN 10
|
||||
#define RAMPS_D10_PIN 8
|
||||
#define MOSFET_A_PIN 8
|
||||
#define MOSFET_C_PIN 10
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -62,15 +63,32 @@
|
||||
#define E1_ENABLE_PIN 24
|
||||
#define E1_CS_PIN -1
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
/** 3DYMY Expansion Headers
|
||||
* ------ ------
|
||||
* 37 | 1 2 | 35 (MISO) 50 | 1 2 | 52 (SCK)
|
||||
* 31 | 3 4 | 41 29 | 3 4 | 53
|
||||
* 33 5 6 | 23 25 5 6 | 51 (MOSI)
|
||||
* 42 | 7 8 | 44 49 | 7 8 | 27
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN 37
|
||||
#define EXP1_02_PIN 35
|
||||
#define EXP1_03_PIN 31
|
||||
#define EXP1_04_PIN 41
|
||||
#define EXP1_05_PIN 33
|
||||
#define EXP1_06_PIN 23
|
||||
#define EXP1_07_PIN 42
|
||||
#define EXP1_08_PIN 44
|
||||
|
||||
#if IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
|
||||
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
|
||||
#undef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
|
||||
#undef LCD_PINS_ENABLE
|
||||
#define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
|
||||
#endif
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
|
||||
#endif
|
||||
#define EXP2_01_PIN 50
|
||||
#define EXP2_02_PIN 52
|
||||
#define EXP2_03_PIN 29
|
||||
#define EXP2_04_PIN 53
|
||||
#define EXP2_05_PIN 25
|
||||
#define EXP2_06_PIN 51
|
||||
#define EXP2_07_PIN 49
|
||||
#define EXP2_08_PIN 27
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -233,14 +233,16 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 29 // E2_STEP_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 28 // E2_DIR_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
|
||||
#if HAS_PRUSA_MMU1
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 29 // E2_STEP_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 28 // E2_DIR_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//////////////////////////
|
||||
|
@@ -51,8 +51,8 @@
|
||||
//
|
||||
// MOSFET changes
|
||||
//
|
||||
#define RAMPS_D9_PIN 8 // FAN (by default)
|
||||
#define RAMPS_D10_PIN 9 // EXTRUDER 1
|
||||
#define MOSFET_A_PIN 9 // EXTRUDER 1
|
||||
#define MOSFET_B_PIN 8 // FAN (by default)
|
||||
#define MOSFET_D_PIN 12 // EXTRUDER 2 or FAN
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -27,7 +27,7 @@
|
||||
|
||||
#define BOARD_INFO_NAME "RigidBoard V2"
|
||||
|
||||
#include "pins_RIGIDBOARD.h"
|
||||
#include "pins_RIGIDBOARD.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// Steppers
|
||||
|
@@ -30,9 +30,9 @@
|
||||
#define DEFAULT_MACHINE_NAME "Rapide Lite 200"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "RL200v1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#elif NUM_Z_STEPPER_DRIVERS != 2
|
||||
#error "RL200 uses dual Z stepper motors. Set NUM_Z_STEPPER_DRIVERS to 2 or comment out this line to continue."
|
||||
#error "RL200v1 supports up to 2 hotends / E steppers."
|
||||
#elif NUM_Z_STEPPERS != 2
|
||||
#error "RL200 uses dual Z stepper motors. Z_DRIVER_TYPE and Z2_DRIVER_TYPE must be defined."
|
||||
#elif !(AXIS_DRIVER_TYPE_X(DRV8825) && AXIS_DRIVER_TYPE_Y(DRV8825) && AXIS_DRIVER_TYPE_Z(DRV8825) && AXIS_DRIVER_TYPE_Z2(DRV8825) && AXIS_DRIVER_TYPE_E0(DRV8825))
|
||||
#error "You must set ([XYZ]|Z2|E0)_DRIVER_TYPE to DRV8825 in Configuration.h for RL200."
|
||||
#endif
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "RUMBA supports up to 3 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
@@ -220,7 +220,7 @@
|
||||
#define RGB_LED_B_PIN 40
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN 25
|
||||
#define NEOPIXEL_PIN 38
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
@@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Sainsmart 2-in-1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Sainsmart 2-in-1 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Sainsmart"
|
||||
@@ -34,9 +34,9 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define RAMPS_D10_PIN 9 // E
|
||||
#define RAMPS_D9_PIN 7 // F PART FAN in front of board next to Extruder heat
|
||||
// RAMPS_D8_PIN 8 // B
|
||||
#define MOSFET_D_PIN 10 // F / E
|
||||
#define MOSFET_A_PIN 9 // E
|
||||
#define MOSFET_B_PIN 7 // F PART FAN in front of board next to Extruder heat
|
||||
// MOSFET_C_PIN 8 // B
|
||||
#define MOSFET_D_PIN 10 // F / E
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Tenlog supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "Tenlog supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Tenlog D3 Hero"
|
||||
@@ -148,6 +148,7 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define PS_ON_PIN 40 // The M80/M81 PSU pin for boards v2.1-2.3
|
||||
//#define CASE_LIGHT_PIN 5
|
||||
#define SDSS 53
|
||||
//#ifndef LED_PIN
|
||||
|
@@ -27,8 +27,7 @@
|
||||
|
||||
#define BOARD_INFO_NAME "Anycubic RAMPS 1.3"
|
||||
|
||||
#define IS_RAMPS_EFB
|
||||
#define RAMPS_D9_PIN 44
|
||||
#define MOSFET_B_PIN 44
|
||||
|
||||
#define E1_STEP_PIN -1
|
||||
#define E1_DIR_PIN -1
|
||||
@@ -41,4 +40,4 @@
|
||||
#define E0_AUTO_FAN_PIN 9
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS_13.h"
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
|
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
@@ -38,60 +38,78 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Custom Limit Switches
|
||||
// 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
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#if ANY(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFB)
|
||||
#define FAN1_PIN 7
|
||||
#endif
|
||||
#define FAN2_PIN 44
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 44 // Used in Anycubic Kossel example config
|
||||
#endif
|
||||
#if ENABLED(ANYCUBIC_LCD_I3MEGA)
|
||||
#define CONTROLLER_FAN_PIN 7
|
||||
#endif
|
||||
|
||||
//
|
||||
// AnyCubic standard pin mappings
|
||||
//
|
||||
// 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_MIN_PIN 19
|
||||
#endif
|
||||
|
||||
// Labeled pins
|
||||
#define TG_HEATER_BED_PIN 8
|
||||
#define TG_HEATER_0_PIN 10
|
||||
#define TG_HEATER_1_PIN 45 // Anycubic Kossel: Unused
|
||||
|
||||
#define TG_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
|
||||
#define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
|
||||
#define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
|
||||
#define CONTROLLER_FAN_PIN TG_FAN1_PIN
|
||||
#define FIL_RUNOUT_PIN 19
|
||||
#define BEEPER_PIN 31
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define SD_DETECT_PIN 49
|
||||
// Remap MOSFET pins to common usages:
|
||||
|
||||
#define RAMPS_D10_PIN TG_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
|
||||
|
||||
#if HOTENDS > 1 // EEF and EEB
|
||||
#define RAMPS_D9_PIN TG_HEATER_1_PIN
|
||||
#if !TEMP_SENSOR_BED
|
||||
// EEF
|
||||
#define RAMPS_D8_PIN TG_FAN0_PIN
|
||||
#else
|
||||
// EEB
|
||||
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
|
||||
#define FAN_PIN TG_FAN0_PIN // Override pin 4 in pins_RAMPS.h
|
||||
#define Y_STOP_PIN 19
|
||||
#elif EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
|
||||
#define Y_STOP_PIN 42
|
||||
#define Z2_MIN_PIN 43
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 2
|
||||
#endif
|
||||
#elif TEMP_SENSOR_BED
|
||||
// EFB (Anycubic Kossel default)
|
||||
#define RAMPS_D9_PIN TG_FAN0_PIN
|
||||
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
|
||||
#else
|
||||
// EFF
|
||||
#define RAMPS_D9_PIN TG_FAN1_PIN
|
||||
#define RAMPS_D8_PIN TG_FAN0_PIN
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
|
||||
#define FAN1_PIN TG_FAN1_PIN
|
||||
#endif
|
||||
#define FAN2_PIN TG_FAN2_PIN
|
||||
|
||||
#ifdef POWER_OUTAGE_TEST
|
||||
#define OUTAGETEST_PIN 79
|
||||
#define OUTAGECON_PIN 58
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#if ENABLED(ANYCUBIC_LCD_CHIRON)
|
||||
#define FIL_RUNOUT_PIN 33
|
||||
#else
|
||||
#define FIL_RUNOUT_PIN 19
|
||||
#endif
|
||||
#endif
|
||||
#define BEEPER_PIN 31
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
@@ -100,17 +118,17 @@
|
||||
// AnyCubic made the following changes to 1.1.0-RC8
|
||||
// If these are appropriate for your LCD let us know.
|
||||
//
|
||||
#if 0 && HAS_SPI_LCD
|
||||
#if 0 && HAS_WIRED_LCD
|
||||
|
||||
// LCD Display output pins
|
||||
#if BOTH(NEWPANEL, PANEL_ONE)
|
||||
#if BOTH(IS_NEWPANEL, PANEL_ONE)
|
||||
#undef LCD_PINS_D6
|
||||
#define LCD_PINS_D6 57
|
||||
#endif
|
||||
|
||||
// LCD Display input pins
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#if IS_NEWPANEL
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#undef DOGLCD_A0
|
||||
#define DOGLCD_A0 23
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
@@ -126,4 +144,4 @@
|
||||
#define DOGLCD_A0 42
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
@@ -137,4 +137,4 @@
|
||||
#define DOGLCD_A0 42
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_SPI_LCD
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
|
||||
#error "TRONXY-V3-1.0 supports up to 2 hotends/E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "TRONXY-V3-1.0"
|
||||
|
@@ -24,7 +24,7 @@
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 5 || E_STEPPERS > 5
|
||||
#error "TTOSCAR supports up to 5 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "TTOSCAR supports up to 5 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "TT OSCAR"
|
||||
@@ -226,7 +226,7 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE) && !PIN_EXISTS(SPINDLE_LASER_ENA)
|
||||
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
|
||||
#if !NUM_SERVOS // Prefer the servo connector
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
@@ -252,15 +252,17 @@
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
//#ifndef E_MUX0_PIN
|
||||
// #define E_MUX0_PIN 58 // Y_CS_PIN
|
||||
//#endif
|
||||
//#ifndef E_MUX1_PIN
|
||||
// #define E_MUX1_PIN 53 // Z_CS_PIN
|
||||
//#endif
|
||||
//#ifndef E_MUX2_PIN
|
||||
// #define E_MUX2_PIN 49 // En_CS_PIN
|
||||
//#endif
|
||||
#if 0 && HAS_PRUSA_MMU1
|
||||
#ifndef E_MUX0_PIN
|
||||
#define E_MUX0_PIN 58 // Y_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX1_PIN
|
||||
#define E_MUX1_PIN 53 // Z_CS_PIN
|
||||
#endif
|
||||
#ifndef E_MUX2_PIN
|
||||
#define E_MUX2_PIN 49 // En_CS_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//////////////////////////
|
||||
// LCDs and Controllers //
|
||||
@@ -402,7 +404,6 @@
|
||||
|
||||
#define DOGLCD_CS 45
|
||||
#define DOGLCD_A0 44
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
#define STAT_LED_RED_PIN 32
|
||||
@@ -416,6 +417,8 @@
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
|
||||
//#define KILL_PIN 31
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define DOGLCD_CS 29
|
||||
@@ -437,13 +440,6 @@
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS 25
|
||||
|
||||
// GLCD features
|
||||
//#define LCD_CONTRAST_INIT 190
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
@@ -455,6 +451,9 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
//#define KILL_PIN 64
|
||||
|
||||
//#define LCD_CONTRAST_INIT 190
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
@@ -464,13 +463,6 @@
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 66
|
||||
|
||||
// GLCD features
|
||||
//#define LCD_CONTRAST_INIT 190
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
@@ -479,6 +471,9 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
//#define KILL_PIN 64
|
||||
|
||||
//#define LCD_CONTRAST_INIT 190
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#else
|
||||
|
||||
// Beeper on AUX-4
|
||||
|
@@ -163,7 +163,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
|
||||
#if EITHER(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
|
||||
|
||||
#define LCD_PINS_RS 24
|
||||
#define LCD_PINS_ENABLE 22
|
||||
@@ -172,7 +172,7 @@
|
||||
#define LCD_PINS_D6 32
|
||||
#define LCD_PINS_D7 30
|
||||
|
||||
#elif BOTH(BOARD_REV_1_5, IS_ULTRA_LCD)
|
||||
#elif BOTH(BOARD_REV_1_5, HAS_WIRED_LCD)
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
#define BOARD_INFO_NAME "VORON Design v2"
|
||||
|
||||
#define RAMPS_D8_PIN 11
|
||||
#define MOSFET_C_PIN 11
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
* V2 and V3 Boards only differ in USB controller, nothing affecting the pins.
|
||||
*/
|
||||
|
||||
#include "pins_MKS_GEN_13.h"
|
||||
#include "pins_MKS_GEN_13.h" // ... RAMPS
|
||||
|
||||
#define ZRIB_V20_D6_PIN 6 // Fan
|
||||
#define ZRIB_V20_D9_PIN 9 // Fan2
|
||||
|
@@ -26,17 +26,17 @@
|
||||
*/
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "ZRIB V5.2 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#error "ZRIB V5.2 supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "ZRIB V5.2"
|
||||
|
||||
#define MKS_BASE_VERSION 14
|
||||
#define IS_RAMPS_EFB
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_1_PIN 7
|
||||
#define FAN_PIN 9 // PH6 ** Pin18 ** PWM9
|
||||
#define FAN1_PIN 6
|
||||
|
||||
@@ -46,115 +46,114 @@
|
||||
#define E2_STEP_PIN 4
|
||||
#define E2_DIR_PIN 5
|
||||
#define E2_ENABLE_PIN 22
|
||||
#define HEATER_1_PIN 7
|
||||
|
||||
#include "pins_MKS_BASE_common.h"
|
||||
#include "pins_MKS_BASE_common.h" // ... RAMPS
|
||||
|
||||
/*
|
||||
Available connectors on MKS BASE v1.4 (Basically same as ZRIB V5.2)
|
||||
|
||||
=======
|
||||
| GND |
|
||||
|-----| E0
|
||||
| 10 | (10) PB4 ** Pin23 ** PWM10
|
||||
|-----|
|
||||
| GND |
|
||||
|-----| E1
|
||||
| 7 | ( 7) PH4 ** Pin16 ** PWM7
|
||||
|-----|
|
||||
| GND |
|
||||
|-----| FAN
|
||||
| 9 | ( 9) PH6 ** Pin18 ** PWM9
|
||||
=======
|
||||
|
||||
=======
|
||||
| GND |
|
||||
|-----| Heated Bed
|
||||
| 8 | ( 8) PH5 ** Pin17 ** PWM8
|
||||
=======
|
||||
|
||||
==========
|
||||
| 12-24V |
|
||||
|--------| Power
|
||||
| GND |
|
||||
==========
|
||||
|
||||
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
|
||||
|----|----|-----|
|
||||
| 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
================= (52) PB1 ** Pin20 ** SPI_SCK
|
||||
|
||||
XS6/AUX-1 Connector
|
||||
======================
|
||||
| 5V | GND | NC | 20 | (20) PD1 ** Pin44 ** I2C_SDA
|
||||
|----|-----|----|----|
|
||||
| 50 | 51 | 52 | 21 | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
====================== (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
(52) PB1 ** Pin20 ** SPI_SCK
|
||||
(21) PD0 ** Pin43 ** I2C_SCL
|
||||
|
||||
Temperature
|
||||
==================================
|
||||
| GND | 69 | GND | 68 | GND | 67 |
|
||||
==================================
|
||||
(69) PK7 ** Pin82 ** A15
|
||||
(68) PK6 ** Pin83 ** A14
|
||||
(67) PK5 ** Pin84 ** A13
|
||||
|
||||
Limit Switches
|
||||
============
|
||||
| 2 | GND | X+ ( 2) PE4 ** Pin6 ** PWM2
|
||||
|----|-----|
|
||||
| 3 | GND | X- ( 3) PE5 ** Pin7 ** PWM3
|
||||
|----|-----|
|
||||
| 15 | GND | Y+ (15) PJ0 ** Pin63 ** USART3_RX
|
||||
|----|-----|
|
||||
| 14 | GND | Y- (14) PJ1 ** Pin64 ** USART3_TX
|
||||
|----|-----|
|
||||
| 19 | GND | Z+ (19) PD2 ** Pin45 ** USART1_RX
|
||||
|----|-----|
|
||||
| 18 | GND | Z- (18) PD3 ** Pin46 ** USART1_TX
|
||||
============
|
||||
|
||||
EXP1
|
||||
============
|
||||
| 37 | 35 | (37) PC0 ** Pin53 ** D37
|
||||
|-----|----| (35) PC2 ** Pin55 ** D35
|
||||
| 17 | 16 | (17) PH0 ** Pin12 ** USART2_RX
|
||||
|-----|----| (16) PH1 ** Pin13 ** USART2_TX
|
||||
| 23 | 25 | (23) PA1 ** Pin77 ** D23
|
||||
|-----|----| (25) PA3 ** Pin75 ** D25
|
||||
| 27 | 29 | (27) PA5 ** Pin73 ** D27
|
||||
|-----|----| (29) PA7 ** Pin71 ** D29
|
||||
| GND | 5V |
|
||||
============
|
||||
|
||||
EXP2
|
||||
============
|
||||
| 50 | 52 | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
|-----|----| (52) PB1 ** Pin20 ** SPI_SCK
|
||||
| 31 | 53 | (31) PC6 ** Pin59 ** D31
|
||||
|-----|----| (53) PB0 ** Pin19 ** SPI_SS
|
||||
| 33 | 51 | (33) PC4 ** Pin57 ** D33
|
||||
|-----|----| (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
| 49 | 41 | (49) PL0 ** Pin35 ** D49
|
||||
|-----|----| (41) PG0 ** Pin51 ** D41
|
||||
| GND | NC |
|
||||
============
|
||||
*/
|
||||
/**
|
||||
* Available connectors on MKS BASE v1.4 (Basically same as ZRIB V5.2)
|
||||
*
|
||||
* =======
|
||||
* | GND |
|
||||
* |-----| E0
|
||||
* | 10 | (10) PB4 ** Pin23 ** PWM10
|
||||
* |-----|
|
||||
* | GND |
|
||||
* |-----| E1
|
||||
* | 7 | ( 7) PH4 ** Pin16 ** PWM7
|
||||
* |-----|
|
||||
* | GND |
|
||||
* |-----| FAN
|
||||
* | 9 | ( 9) PH6 ** Pin18 ** PWM9
|
||||
* =======
|
||||
*
|
||||
* =======
|
||||
* | GND |
|
||||
* |-----| Heated Bed
|
||||
* | 8 | ( 8) PH5 ** Pin17 ** PWM8
|
||||
* =======
|
||||
*
|
||||
* ==========
|
||||
* | 12-24V |
|
||||
* |--------| Power
|
||||
* | GND |
|
||||
* ==========
|
||||
*
|
||||
* 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
|
||||
* |----|----|-----|
|
||||
* | 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
* ================= (52) PB1 ** Pin20 ** SPI_SCK
|
||||
*
|
||||
* XS6/AUX-1 Connector
|
||||
* ======================
|
||||
* | 5V | GND | NC | 20 | (20) PD1 ** Pin44 ** I2C_SDA
|
||||
* |----|-----|----|----|
|
||||
* | 50 | 51 | 52 | 21 | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
* ====================== (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
* (52) PB1 ** Pin20 ** SPI_SCK
|
||||
* (21) PD0 ** Pin43 ** I2C_SCL
|
||||
*
|
||||
* Temperature
|
||||
* ==================================
|
||||
* | GND | 69 | GND | 68 | GND | 67 |
|
||||
* ==================================
|
||||
* (69) PK7 ** Pin82 ** A15
|
||||
* (68) PK6 ** Pin83 ** A14
|
||||
* (67) PK5 ** Pin84 ** A13
|
||||
*
|
||||
* Limit Switches
|
||||
* ============
|
||||
* | 2 | GND | X+ ( 2) PE4 ** Pin6 ** PWM2
|
||||
* |----|-----|
|
||||
* | 3 | GND | X- ( 3) PE5 ** Pin7 ** PWM3
|
||||
* |----|-----|
|
||||
* | 15 | GND | Y+ (15) PJ0 ** Pin63 ** USART3_RX
|
||||
* |----|-----|
|
||||
* | 14 | GND | Y- (14) PJ1 ** Pin64 ** USART3_TX
|
||||
* |----|-----|
|
||||
* | 19 | GND | Z+ (19) PD2 ** Pin45 ** USART1_RX
|
||||
* |----|-----|
|
||||
* | 18 | GND | Z- (18) PD3 ** Pin46 ** USART1_TX
|
||||
* ============
|
||||
*
|
||||
* EXP1
|
||||
* ============
|
||||
* | 37 | 35 | (37) PC0 ** Pin53 ** D37
|
||||
* |-----|----| (35) PC2 ** Pin55 ** D35
|
||||
* | 17 | 16 | (17) PH0 ** Pin12 ** USART2_RX
|
||||
* |-----|----| (16) PH1 ** Pin13 ** USART2_TX
|
||||
* | 23 | 25 | (23) PA1 ** Pin77 ** D23
|
||||
* |-----|----| (25) PA3 ** Pin75 ** D25
|
||||
* | 27 | 29 | (27) PA5 ** Pin73 ** D27
|
||||
* |-----|----| (29) PA7 ** Pin71 ** D29
|
||||
* | GND | 5V |
|
||||
* ============
|
||||
*
|
||||
* EXP2
|
||||
* ============
|
||||
* | 50 | 52 | (50) PB3 ** Pin22 ** SPI_MISO
|
||||
* |-----|----| (52) PB1 ** Pin20 ** SPI_SCK
|
||||
* | 31 | 53 | (31) PC6 ** Pin59 ** D31
|
||||
* |-----|----| (53) PB0 ** Pin19 ** SPI_SS
|
||||
* | 33 | 51 | (33) PC4 ** Pin57 ** D33
|
||||
* |-----|----| (51) PB2 ** Pin21 ** SPI_MOSI
|
||||
* | 49 | 41 | (49) PL0 ** Pin35 ** D49
|
||||
* |-----|----| (41) PG0 ** Pin51 ** D41
|
||||
* | GND | NC |
|
||||
* ============
|
||||
*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user