code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with PICA pin assignments * Schematic: https://github.com/mjrice/PICA/blob/master/pica_schematic.pdf * ATmega2560 * * PICA is Power, Interface, and Control Adapter and is open source hardware. * See https://github.com/mjrice/PICA for schematics etc. * * Applies to PICA, PICA_REVB */ #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "PICA supports up to 2 hotends / E steppers." #endif #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "PICA" #endif // // Servos // #define SERVO0_PIN 3 #define SERVO1_PIN 4 #define SERVO2_PIN 5 // // Limit Switches // #define X_MIN_PIN 14 #define X_MAX_PIN 15 #define Y_MIN_PIN 16 #define Y_MAX_PIN 17 #define Z_MIN_PIN 23 #define Z_MAX_PIN 22 // // Steppers // #define X_STEP_PIN 55 #define X_DIR_PIN 54 #define X_ENABLE_PIN 60 #define Y_STEP_PIN 57 #define Y_DIR_PIN 56 #define Y_ENABLE_PIN 61 #define Z_STEP_PIN 59 #define Z_DIR_PIN 58 #define Z_ENABLE_PIN 62 #define E0_STEP_PIN 67 #define E0_DIR_PIN 24 #define E0_ENABLE_PIN 26 #define E1_STEP_PIN 68 #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 27 // // Temperature Sensors // #define TEMP_0_PIN 9 // Analog Input #define TEMP_1_PIN 10 #define TEMP_BED_PIN 10 #define TEMP_2_PIN 11 #define TEMP_3_PIN 12 // // Heaters / Fans // #ifndef HEATER_0_PIN #define HEATER_0_PIN 10 // E0 #endif #ifndef HEATER_1_PIN #define HEATER_1_PIN 2 // E1 #endif #define HEATER_BED_PIN 8 // HEAT-BED #ifndef FAN0_PIN #define FAN0_PIN 9 #endif #ifndef FAN_2_PIN #define FAN_2_PIN 7 #endif #define SDPOWER_PIN -1 #define LED_PIN -1 #define PS_ON_PIN -1 #define KILL_PIN -1 #define SSR_PIN 6 // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) #endif // // SD Support // #define SD_DETECT_PIN EXP2_07_PIN #define SDSS EXP2_04_PIN /** PICA Expansion Headers * ------ ------ * (BEEP) 29 | 1 2 | 31 (ENC) (MISO) 50 | 1 2 | 52 (SCK) * (LCD_EN) 30 | 3 4 | 33 (LCD_RS) (EN1) 47 | 3 4 | 53 (SDSS) * (LCD_D4) 35 5 6 | 32 (LCD_D5) (EN2) 48 5 6 | 51 (MOSI) * (LCD_D6) 37 | 7 8 | 36 (LCD_D7) (SDDET) 49 | 7 8 | 41 (KILL) * GND | 9 10 | 5V -- | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 29 // BEEPER #define EXP1_02_PIN 31 // ENC #define EXP1_03_PIN 30 // LCD_EN #define EXP1_04_PIN 33 // LCD_RS #define EXP1_05_PIN 35 // LCD_D4 #define EXP1_06_PIN 32 // LCD_D5 #define EXP1_07_PIN 37 // LCD_D6 #define EXP1_08_PIN 36 // LCD_D7 #define EXP2_01_PIN 50 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 47 // EN1 #define EXP2_04_PIN 53 // SDSS #define EXP2_05_PIN 48 // EN2 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 49 // SDDET #define EXP2_08_PIN 41 // KILL // // LCD / Controller // #define BEEPER_PIN EXP1_01_PIN #if HAS_WIRED_LCD #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN EXP1_03_PIN #define LCD_PINS_D4 EXP1_05_PIN #define LCD_PINS_D5 EXP1_06_PIN #define LCD_PINS_D6 EXP1_07_PIN #define LCD_PINS_D7 EXP1_08_PIN #define BTN_EN1 EXP2_03_PIN #define BTN_EN2 EXP2_05_PIN #define BTN_ENC EXP1_02_PIN #define LCD_SDSS EXP2_04_PIN #endif
2301_81045437/Marlin
Marlin/src/pins/mega/pins_PICA.h
C
agpl-3.0
6,006
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // Schematic: https://github.com/mjrice/PICA/blob/97ab9e7771a8e5eef97788f3adcc17a9fa9de9b9/pica_schematic.pdf // ATmega2560 #define HEATER_0_PIN 9 // E0 #define HEATER_1_PIN 10 // E1 #define FAN0_PIN 11 #define FAN2_PIN 12 #include "pins_PICA.h"
2301_81045437/Marlin
Marlin/src/pins/mega/pins_PICAOLD.h
C
agpl-3.0
1,235
/** * 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 /** * Protoneer v3.00 pin assignments * Schematic: https://i0.wp.com/blog.protoneer.co.nz/wp-content/uploads/2013/07/Arduino-CNC-Shield-Scematics-V3.XX_.jpg * ATmega2560 * * This CNC shield has an UNO pinout and fits all Arduino-compatibles. * * Referenced docs: * - https://blog.protoneer.co.nz/arduino-cnc-shield-v3-00-assembly-guide/ * - https://blog.protoneer.co.nz/arduino-cnc-shield/ */ #include "env_validate.h" #define BOARD_INFO_NAME "Protoneer CNC Shield v3.00" // // Limit Switches // #define X_STOP_PIN 9 #define Y_STOP_PIN 10 #define Z_STOP_PIN 11 // // Steppers // #define X_STEP_PIN 2 #define X_DIR_PIN 5 #define X_ENABLE_PIN 8 // Shared enable pin #define Y_STEP_PIN 3 #define Y_DIR_PIN 6 #define Y_ENABLE_PIN X_ENABLE_PIN #define Z_STEP_PIN 4 #define Z_DIR_PIN 7 #define Z_ENABLE_PIN X_ENABLE_PIN // Designated with letter "A" on BOARD #define E0_STEP_PIN 12 #define E0_DIR_PIN 13 #define E0_ENABLE_PIN X_ENABLE_PIN // // Temperature sensors - These could be any analog output not hidden by board // #define TEMP_0_PIN 8 // Analog Input //#define TEMP_1_PIN 9 // Analog Input //#define TEMP_BED_PIN 10 // Analog Input // // Heaters / Fans - These could be any digital input not hidden by board // //#define HEATER_0_PIN 22 // EXTRUDER 1 //#define HEATER_1_PIN 23 // EXTRUDER 2 //#define HEATER_BED_PIN 24
2301_81045437/Marlin
Marlin/src/pins/mega/pins_PROTONEER_CNC_SHIELD_V3.h
C
agpl-3.0
2,743
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2561 #if NOT_TARGET(__AVR_ATmega1281__, __AVR_ATmega2561__) #error "Oops! Select 'Silvergate' in 'Tools > Board.'" #endif #define BOARD_INFO_NAME "Silver Gate" #define X_STEP_PIN 43 #define X_DIR_PIN 44 #define X_ENABLE_PIN 42 #define X_MIN_PIN 31 #define X_MAX_PIN 34 #define Y_STEP_PIN 40 #define Y_DIR_PIN 41 #define Y_ENABLE_PIN 39 #define Y_MIN_PIN 32 #define Y_MAX_PIN 35 #define Z_STEP_PIN 13 #define Z_DIR_PIN 38 #define Z_ENABLE_PIN 14 #define Z_MIN_PIN 33 #define Z_MAX_PIN 36 #define E0_STEP_PIN 27 #define E0_DIR_PIN 37 #define E0_ENABLE_PIN 45 #define SDSS 16 #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 34 // X_MAX unless overridden #endif #ifndef FAN0_PIN #define FAN0_PIN 5 #endif #define HEATER_0_PIN 7 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 3 #endif #define CONTROLLER_FAN_PIN 2 #define TEMP_0_PIN 7 // Analog Input #define HEATER_BED_PIN 8 #define TEMP_BED_PIN 6 #if HAS_WIRED_LCD #if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920 #define LCD_PINS_RS 30 #define LCD_PINS_EN 20 #define LCD_PINS_D4 25 #define BEEPER_PIN 29 #define BTN_EN1 19 #define BTN_EN2 22 #define BTN_ENC 24 #define LCD_BACKLIGHT_PIN 6 #if ENABLED(SILVER_GATE_GLCD_CONTROLLER) #define KILL_PIN 21 #define HOME_PIN 28 #endif #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 250 #define BOARD_ST7920_DELAY_3 0 #endif #endif #define SD_DETECT_PIN 15 #define STAT_LED_RED_PIN 23 #define STAT_LED_BLUE_PIN 26 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 51 #endif
2301_81045437/Marlin
Marlin/src/pins/mega/pins_SILVER_GATE.h
C
agpl-3.0
3,546
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Wanhao 0ne+ pin assignments * ATmega2560 */ #include "env_validate.h" #define BOARD_INFO_NAME "Wanhao i3 Mini 0ne+" #define DEFAULT_MACHINE_NAME "i3 Mini" #define BOARD_WEBSITE_URL "tinyurl.com/yyxw7se7" // // Limit Switches // #define X_STOP_PIN 19 #define Y_STOP_PIN 18 #define Z_STOP_PIN 38 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 38 #endif // // Steppers // #define X_STEP_PIN 22 #define X_DIR_PIN 23 #define X_ENABLE_PIN 57 #define Y_STEP_PIN 25 #define Y_DIR_PIN 26 #define Y_ENABLE_PIN 24 #define Z_STEP_PIN 29 #define Z_DIR_PIN 39 #define Z_ENABLE_PIN 28 #define E0_STEP_PIN 55 #define E0_DIR_PIN 56 #define E0_ENABLE_PIN 54 // // Temperature Sensors // #define TEMP_0_PIN 13 #define TEMP_BED_PIN 14 // // Heaters / Fans // #define HEATER_0_PIN 4 #define HEATER_BED_PIN 44 #define FAN0_PIN 12 // IO pin. Buffer needed // // SD Card // #define SD_DETECT_PIN 83 #define SDSS 53 // // Misc. Functions // #define BEEPER_PIN 37 #define KILL_PIN 64 // // LCD / Controller (Integrated MINIPANEL) // #if ENABLED(MINIPANEL) #define DOGLCD_A0 40 #define DOGLCD_CS 41 #define LCD_BACKLIGHT_PIN 65 // Backlight LED on A11/D65 #define LCD_RESET_PIN 27 #define BTN_EN1 2 #define BTN_EN2 3 #define BTN_ENC 5 // This display has adjustable contrast #define LCD_CONTRAST_MIN 0 #define LCD_CONTRAST_MAX 255 #define LCD_CONTRAST_INIT LCD_CONTRAST_MAX #endif
2301_81045437/Marlin
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
C
agpl-3.0
3,209
/** * 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 * ATmega2560 */ #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 FAN0_PIN 4 // IO pin. Buffer needed // // Misc. Functions // #define PS_ON_PIN 12 #define LED_PIN 13 // // SD Support // #if HAS_MEDIA #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
2301_81045437/Marlin
Marlin/src/pins/mega/pins_WEEDO_62A.h
C
agpl-3.0
3,103
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * File: pins/pins.h * * Include pins definitions * * Pins numbering schemes: * * - Digital I/O pin number if used by READ/WRITE macros. (e.g., X_STEP_DIR) * The FastIO headers map digital pins to their ports and functions. * * - Analog Input number if used by analogRead or DAC. (e.g., TEMP_n_PIN) * These numbers are the same in any pin mapping. */ #define MAX_E_STEPPERS 8 #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, RAMPS_BTT_16_PLUS_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, RAMPS_BTT_16_PLUS_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, RAMPS_BTT_16_PLUS_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, RAMPS_BTT_16_PLUS_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, RAMPS_BTT_16_PLUS_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 !(ALL(HAS_WIRED_LCD, IS_NEWPANEL) && ANY(PANEL_ONE, VIKI2, miniVIKI, WYH_L12864, MINIPANEL, REPRAPWORLD_KEYPAD)) #define HAS_FREE_AUX2_PINS 1 #endif // // Check for additional used endstop pins // #ifndef X_MIN_PIN #define X_MIN_PIN 1001 #endif #ifndef Y_MIN_PIN #define Y_MIN_PIN 1002 #endif #ifndef Z_MIN_PIN #define Z_MIN_PIN 1003 #endif #ifndef X_MAX_PIN #define X_MAX_PIN 1004 #endif #ifndef Y_MAX_PIN #define Y_MAX_PIN 1005 #endif #ifndef Z_MAX_PIN #define Z_MAX_PIN 1006 #endif #define _ENDSTOP_IS_ANY(P) (HAS_EXTRA_ENDSTOPS && (X2_STOP_PIN == P || Y2_STOP_PIN == P || Z2_STOP_PIN == P || Z3_STOP_PIN == P || Z4_STOP_PIN == P)) #if ENABLED(DUAL_X_CARRIAGE) || _ENDSTOP_IS_ANY(X_MIN_PIN) || _ENDSTOP_IS_ANY(X_MAX_PIN) #define NEEDS_X_MINMAX 1 #endif #if _ENDSTOP_IS_ANY(Y_MIN_PIN) || _ENDSTOP_IS_ANY(Y_MAX_PIN) #define NEEDS_Y_MINMAX 1 #endif #if _ENDSTOP_IS_ANY(Z_MIN_PIN) || _ENDSTOP_IS_ANY(Z_MAX_PIN) || ALL(Z_HOME_TO_MAX, Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) #define NEEDS_Z_MINMAX 1 #endif #undef _ENDSTOP_IS_ANY #if X_MIN_PIN > 1000 #undef X_MIN_PIN #endif #if Y_MIN_PIN > 1000 #undef Y_MIN_PIN #endif #if Z_MIN_PIN > 1000 #undef Z_MIN_PIN #endif #if X_MAX_PIN > 1000 #undef X_MAX_PIN #endif #if Y_MAX_PIN > 1000 #undef Y_MAX_PIN #endif #if Z_MAX_PIN > 1000 #undef Z_MAX_PIN #endif // Test the target within the included pins file #ifdef __MARLIN_DEPS__ #define NOT_TARGET(V...) 0 #else #define NOT_TARGET NONE #endif // // RAMPS 1.3 / 1.4 / 1.6+ - ATmega1280, ATmega2560 // #if MB(RAMPS_OLD) #include "ramps/pins_RAMPS_OLD.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(RAMPS_13_EFB, RAMPS_13_EEB, RAMPS_13_EFF, RAMPS_13_EEF, RAMPS_13_SF) #include "ramps/pins_RAMPS_13.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(RAMPS_14_EFB, RAMPS_14_EEB, RAMPS_14_EFF, RAMPS_14_EEF, RAMPS_14_SF) #include "ramps/pins_RAMPS.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(RAMPS_PLUS_EFB, RAMPS_PLUS_EEB, RAMPS_PLUS_EFF, RAMPS_PLUS_EEF, RAMPS_PLUS_SF) #include "ramps/pins_RAMPS_PLUS.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(RAMPS_BTT_16_PLUS_EFB, RAMPS_BTT_16_PLUS_EEB, RAMPS_BTT_16_PLUS_EFF, RAMPS_BTT_16_PLUS_EEF, RAMPS_BTT_16_PLUS_SF) #include "ramps/pins_RAMPS_BTT_16_PLUS.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 // // RAMPS Derivatives - ATmega1280, ATmega2560 // #elif MB(3DRAG) #include "ramps/pins_3DRAG.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(K8200) #include "ramps/pins_K8200.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(K8400) #include "ramps/pins_K8400.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(K8600) #include "ramps/pins_K8600.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(K8800) #include "ramps/pins_K8800.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(BAM_DICE) #include "ramps/pins_RAMPS.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(BAM_DICE_DUE) #include "ramps/pins_BAM_DICE_DUE.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(MKS_BASE) #include "ramps/pins_MKS_BASE_10.h" // ATmega2560 env:mega2560 #elif MB(MKS_BASE_14) #include "ramps/pins_MKS_BASE_14.h" // ATmega2560 env:mega2560 #elif MB(MKS_BASE_15) #include "ramps/pins_MKS_BASE_15.h" // ATmega2560 env:mega2560 #elif MB(MKS_BASE_16) #include "ramps/pins_MKS_BASE_16.h" // ATmega2560 env:mega2560 #elif MB(MKS_BASE_HEROIC) #include "ramps/pins_MKS_BASE_HEROIC.h" // ATmega2560 env:mega2560 #elif MB(MKS_GEN_13) #include "ramps/pins_MKS_GEN_13.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(MKS_GEN_L) #include "ramps/pins_MKS_GEN_L.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(KFB_2) #include "ramps/pins_BIQU_KFB_2.h" // ATmega2560 env:mega2560 #elif MB(ZRIB_V20) #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) #include "ramps/pins_RIGIDBOARD.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(RIGIDBOARD_V2) #include "ramps/pins_RIGIDBOARD_V2.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(SAINSMART_2IN1) #include "ramps/pins_SAINSMART_2IN1.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(ULTIMAKER) #include "ramps/pins_ULTIMAKER.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(ULTIMAKER_OLD) #include "ramps/pins_ULTIMAKER_OLD.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(AZTEEG_X3) #include "ramps/pins_AZTEEG_X3.h" // ATmega2560 env:mega2560 #elif MB(AZTEEG_X3_PRO) #include "ramps/pins_AZTEEG_X3_PRO.h" // ATmega2560 env:mega2560 #elif MB(ULTIMAIN_2) #include "ramps/pins_ULTIMAIN_2.h" // ATmega2560 env:mega2560ext #elif MB(FORMBOT_RAPTOR) #include "ramps/pins_FORMBOT_RAPTOR.h" // ATmega2560 env:mega2560 #elif MB(FORMBOT_RAPTOR2) #include "ramps/pins_FORMBOT_RAPTOR2.h" // ATmega2560 env:mega2560 #elif MB(FORMBOT_TREX2PLUS) #include "ramps/pins_FORMBOT_TREX2PLUS.h" // ATmega2560 env:mega2560 #elif MB(FORMBOT_TREX3) #include "ramps/pins_FORMBOT_TREX3.h" // ATmega2560 env:mega2560 #elif MB(RUMBA) #include "ramps/pins_RUMBA.h" // ATmega2560 env:mega2560 #elif MB(RUMBA_RAISE3D) #include "ramps/pins_RUMBA_RAISE3D.h" // ATmega2560 env:mega2560 #elif MB(RL200) #include "ramps/pins_RL200.h" // ATmega2560 env:mega2560 #elif MB(BQ_ZUM_MEGA_3D) #include "ramps/pins_BQ_ZUM_MEGA_3D.h" // ATmega2560 env:mega2560ext #elif MB(MAKEBOARD_MINI) #include "ramps/pins_MAKEBOARD_MINI.h" // ATmega2560 env:mega2560 #elif MB(TRIGORILLA_13) #include "ramps/pins_TRIGORILLA_13.h" // ATmega2560 env:mega2560 #elif MB(TRIGORILLA_14, TRIGORILLA_14_11) #include "ramps/pins_TRIGORILLA_14.h" // ATmega2560 env:mega2560 #elif MB(RAMPS_ENDER_4) #include "ramps/pins_RAMPS_ENDER_4.h" // ATmega2560 env:mega2560 #elif MB(RAMPS_CREALITY) #include "ramps/pins_RAMPS_CREALITY.h" // ATmega2560 env:mega2560 #elif MB(DAGOMA_F5) #include "ramps/pins_DAGOMA_F5.h" // ATmega2560 env:mega2560 #elif MB(DAGOMA_D6) #include "ramps/pins_DAGOMA_D6.h" // ATmega2560 env:mega2560ext #elif MB(FYSETC_F6_13) #include "ramps/pins_FYSETC_F6_13.h" // ATmega2560 env:FYSETC_F6 #elif MB(FYSETC_F6_14) #include "ramps/pins_FYSETC_F6_14.h" // ATmega2560 env:FYSETC_F6 #elif MB(DUPLICATOR_I3_PLUS) #include "ramps/pins_DUPLICATOR_I3_PLUS.h" // ATmega2560 env:mega2560 #elif MB(VORON) #include "ramps/pins_VORON.h" // ATmega2560 env:mega2560 #elif MB(TRONXY_V3_1_0) #include "ramps/pins_TRONXY_V3_1_0.h" // ATmega2560 env:mega2560 #elif MB(Z_BOLT_X_SERIES) #include "ramps/pins_Z_BOLT_X_SERIES.h" // ATmega2560 env:mega2560 #elif MB(TT_OSCAR) #include "ramps/pins_TT_OSCAR.h" // ATmega2560 env:mega2560 #elif MB(TANGO) #include "ramps/pins_TANGO.h" // ATmega2560 env:mega2560 #elif MB(MKS_GEN_L_V2) #include "ramps/pins_MKS_GEN_L_V2.h" // ATmega2560 env:mega2560 #elif MB(COPYMASTER_3D) #include "ramps/pins_COPYMASTER_3D.h" // ATmega2560 env:mega2560 #elif MB(ORTUR_4) #include "ramps/pins_ORTUR_4.h" // ATmega2560 env:mega2560 #elif MB(TENLOG_D3_HERO) #include "ramps/pins_TENLOG_D3_HERO.h" // ATmega2560 env:mega2560 #elif MB(TENLOG_MB1_V23) #include "ramps/pins_TENLOG_MB1_V23.h" // ATmega2560 env:mega2560 #elif MB(MKS_GEN_L_V21) #include "ramps/pins_MKS_GEN_L_V21.h" // ATmega2560 env:mega2560 #elif MB(RAMPS_S_12_EEFB, RAMPS_S_12_EEEB, RAMPS_S_12_EFFB) #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 #elif MB(PANOWIN_CUTLASS) #include "ramps/pins_PANOWIN_CUTLASS.h" // ATmega2560 env:mega2560ext #elif MB(KODAMA_BARDO) #include "ramps/pins_KODAMA_BARDO.h" // ATmega2560 env:mega2560ext // // RAMBo and derivatives // #elif MB(RAMBO) #include "rambo/pins_RAMBO.h" // ATmega2560 env:rambo #elif MB(MINIRAMBO, MINIRAMBO_10A) #include "rambo/pins_MINIRAMBO.h" // ATmega2560 env:rambo #elif MB(EINSY_RAMBO) #include "rambo/pins_EINSY_RAMBO.h" // ATmega2560 env:rambo #elif MB(EINSY_RETRO) #include "rambo/pins_EINSY_RETRO.h" // ATmega2560 env:rambo #elif MB(SCOOVO_X9H) #include "rambo/pins_SCOOVO_X9H.h" // ATmega2560 env:rambo #elif MB(RAMBO_THINKERV2) #include "rambo/pins_RAMBO_THINKERV2.h" // ATmega2560 env:rambo // // Other ATmega1280, ATmega2560 // #elif MB(CNCONTROLS_11) #include "mega/pins_CNCONTROLS_11.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(CNCONTROLS_12) #include "mega/pins_CNCONTROLS_12.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(CNCONTROLS_15) #include "mega/pins_CNCONTROLS_15.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(MIGHTYBOARD_REVE) #include "mega/pins_MIGHTYBOARD_REVE.h" // ATmega2560, ATmega1280 env:mega2560ext env:MightyBoard1280 env:MightyBoard2560 #elif MB(CHEAPTRONIC) #include "mega/pins_CHEAPTRONIC.h" // ATmega2560 env:mega2560 #elif MB(CHEAPTRONIC_V2) #include "mega/pins_CHEAPTRONICv2.h" // ATmega2560 env:mega2560 #elif MB(MEGATRONICS) #include "mega/pins_MEGATRONICS.h" // ATmega2560 env:mega2560 #elif MB(MEGATRONICS_2) #include "mega/pins_MEGATRONICS_2.h" // ATmega2560 env:mega2560 #elif MB(MEGATRONICS_3, MEGATRONICS_31, MEGATRONICS_32) #include "mega/pins_MEGATRONICS_3.h" // ATmega2560 env:mega2560 #elif MB(ELEFU_3) #include "mega/pins_ELEFU_3.h" // ATmega2560 env:mega2560 #elif MB(LEAPFROG) #include "mega/pins_LEAPFROG.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(MEGACONTROLLER) #include "mega/pins_MEGACONTROLLER.h" // ATmega2560 env:mega2560 #elif MB(GT2560_REV_A) #include "mega/pins_GT2560_REV_A.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(GT2560_REV_A_PLUS) #include "mega/pins_GT2560_REV_A_PLUS.h" // ATmega2560, ATmega1280 env:mega2560 env:mega1280 #elif MB(GT2560_V3) #include "mega/pins_GT2560_V3.h" // ATmega2560 env:mega2560 #elif MB(GT2560_REV_B) #include "mega/pins_GT2560_REV_B.h" // ATmega2560 env:mega2560 #elif MB(GT2560_V4) #include "mega/pins_GT2560_V4.h" // ATmega2560 env:mega2560 #elif MB(GT2560_V4_A20) #include "mega/pins_GT2560_V4_A20.h" // ATmega2560 env:mega2560 #elif MB(GT2560_V3_MC2) #include "mega/pins_GT2560_V3_MC2.h" // ATmega2560 env:mega2560 #elif MB(GT2560_V3_A20) #include "mega/pins_GT2560_V3_A20.h" // ATmega2560 env:mega2560 #elif MB(EINSTART_S) #include "mega/pins_EINSTART-S.h" // ATmega2560, ATmega1280 env:mega2560ext env:mega1280 #elif MB(WANHAO_ONEPLUS) #include "mega/pins_WANHAO_ONEPLUS.h" // ATmega2560 env:mega2560 #elif MB(OVERLORD) #include "mega/pins_OVERLORD.h" // ATmega2560 env:mega2560 #elif MB(HJC2560C_REV1) #include "mega/pins_HJC2560C_REV2.h" // ATmega2560 env:mega2560 #elif MB(HJC2560C_REV2) #include "mega/pins_HJC2560C_REV2.h" // ATmega2560 env:mega2560 #elif MB(LEAPFROG_XEED2015) #include "mega/pins_LEAPFROG_XEED2015.h" // ATmega2560 env:mega2560 #elif MB(PICA) #include "mega/pins_PICA.h" // ATmega2560 env:mega2560 #elif MB(PICA_REVB) #include "mega/pins_PICAOLD.h" // ATmega2560 env:mega2560 #elif MB(INTAMSYS40) #include "mega/pins_INTAMSYS40.h" // ATmega2560 env:mega2560 #elif MB(MALYAN_M180) #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 #elif MB(GT2560_V41B) #include "mega/pins_GT2560_V41b.h" // ATmega2560 env:mega2560ext // // ATmega1281, ATmega2561 // #elif MB(MINITRONICS) #include "mega/pins_MINITRONICS.h" // ATmega1281 env:mega1280 #elif MB(SILVER_GATE) #include "mega/pins_SILVER_GATE.h" // ATmega2561 env:mega2560 // // Sanguinololu and Derivatives - ATmega644P, ATmega1284P // #elif MB(SANGUINOLOLU_11) #include "sanguino/pins_SANGUINOLOLU_11.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(SANGUINOLOLU_12) #include "sanguino/pins_SANGUINOLOLU_12.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(MELZI) #include "sanguino/pins_MELZI.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(MELZI_V2) #include "sanguino/pins_MELZI_V2.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(MELZI_MAKR3D) #include "sanguino/pins_MELZI_MAKR3D.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(MELZI_CREALITY) #include "sanguino/pins_MELZI_CREALITY.h" // ATmega1284P env:melzi_optiboot_optimized env:melzi_optiboot env:melzi_optimized env:melzi #elif MB(MELZI_CREALITY_ENDER2) #include "sanguino/pins_MELZI_CREALITY_E2.h" // ATmega1284P env:melzi_optiboot_optimized env:melzi_optiboot env:melzi_optimized env:melzi #elif MB(MELZI_MALYAN) #include "sanguino/pins_MELZI_MALYAN.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(MELZI_TRONXY) #include "sanguino/pins_MELZI_TRONXY.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(STB_11) #include "sanguino/pins_STB_11.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(AZTEEG_X1) #include "sanguino/pins_AZTEEG_X1.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(ZMIB_V2) #include "sanguino/pins_ZMIB_V2.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p // // Other ATmega644P, ATmega644, ATmega1284P // #elif MB(GEN3_MONOLITHIC) #include "sanguino/pins_GEN3_MONOLITHIC.h" // ATmega644P env:sanguino644p #elif MB(GEN3_PLUS) #include "sanguino/pins_GEN3_PLUS.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN6) #include "sanguino/pins_GEN6.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN6_DELUXE) #include "sanguino/pins_GEN6_DELUXE.h" // ATmega644P, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN7_CUSTOM) #include "sanguino/pins_GEN7_CUSTOM.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN7_12) #include "sanguino/pins_GEN7_12.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN7_13) #include "sanguino/pins_GEN7_13.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(GEN7_14) #include "sanguino/pins_GEN7_14.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p #elif MB(OMCA_A) #include "sanguino/pins_OMCA_A.h" // ATmega644 env:sanguino644p #elif MB(OMCA) #include "sanguino/pins_OMCA.h" // ATmega644P, ATmega644 env:sanguino644p #elif MB(ANET_10) #include "sanguino/pins_ANET_10.h" // ATmega1284P env:sanguino1284p env:sanguino1284p_optimized env:melzi_optiboot #elif MB(SETHI) #include "sanguino/pins_SETHI.h" // ATmega644P, ATmega644, ATmega1284P env:sanguino1284p_optimized env:sanguino1284p env:sanguino644p // // Teensyduino - AT90USB1286, AT90USB1286P // #elif MB(TEENSYLU) #include "teensy2/pins_TEENSYLU.h" // AT90USB1286, AT90USB1286P env:at90usb1286_cdc #elif MB(PRINTRBOARD) #include "teensy2/pins_PRINTRBOARD.h" // AT90USB1286 env:at90usb1286_dfu #elif MB(PRINTRBOARD_REVF) #include "teensy2/pins_PRINTRBOARD_REVF.h" // AT90USB1286 env:at90usb1286_dfu #elif MB(BRAINWAVE) #include "teensy2/pins_BRAINWAVE.h" // AT90USB646 env:at90usb1286_cdc #elif MB(BRAINWAVE_PRO) #include "teensy2/pins_BRAINWAVE_PRO.h" // AT90USB1286 env:at90usb1286_cdc #elif MB(SAV_MKI) #include "teensy2/pins_SAV_MKI.h" // AT90USB1286 env:at90usb1286_cdc #elif MB(TEENSY2) #include "teensy2/pins_TEENSY2.h" // AT90USB1286 env:teensy20 #elif MB(5DPRINT) #include "teensy2/pins_5DPRINT.h" // AT90USB1286 env:at90usb1286_dfu // // LPC1768 ARM Cortex-M3 // #elif MB(RAMPS_14_RE_ARM_EFB, RAMPS_14_RE_ARM_EEB, RAMPS_14_RE_ARM_EFF, RAMPS_14_RE_ARM_EEF, RAMPS_14_RE_ARM_SF) #include "lpc1768/pins_RAMPS_RE_ARM.h" // LPC1768 env:LPC1768 #elif MB(MKS_SBASE) #include "lpc1768/pins_MKS_SBASE.h" // LPC1768 env:LPC1768 #elif MB(MKS_SGEN_L) #include "lpc1768/pins_MKS_SGEN_L.h" // LPC1768 env:LPC1768 #elif MB(AZSMZ_MINI) #include "lpc1768/pins_AZSMZ_MINI.h" // LPC1768 env:LPC1768 #elif MB(BIQU_BQ111_A4) #include "lpc1768/pins_BIQU_BQ111_A4.h" // LPC1768 env:LPC1768 #elif MB(SELENA_COMPACT) #include "lpc1768/pins_SELENA_COMPACT.h" // LPC1768 env:LPC1768 #elif MB(BIQU_B300_V1_0) #include "lpc1768/pins_BIQU_B300_V1.0.h" // LPC1768 env:LPC1768 #elif MB(GMARSH_X6_REV1) #include "lpc1768/pins_GMARSH_X6_REV1.h" // LPC1768 env:LPC1768 #elif MB(BTT_SKR_V1_1) #include "lpc1768/pins_BTT_SKR_V1_1.h" // LPC1768 env:LPC1768 #elif MB(BTT_SKR_V1_3) #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 // #elif MB(MKS_SGEN) #include "lpc1769/pins_MKS_SGEN.h" // LPC1769 env:LPC1769 #elif MB(AZTEEG_X5_GT) #include "lpc1769/pins_AZTEEG_X5_GT.h" // LPC1769 env:LPC1769 #elif MB(AZTEEG_X5_MINI) #include "lpc1769/pins_AZTEEG_X5_MINI.h" // LPC1769 env:LPC1769 #elif MB(AZTEEG_X5_MINI_WIFI) #include "lpc1769/pins_AZTEEG_X5_MINI_WIFI.h" // LPC1769 env:LPC1769 #elif MB(COHESION3D_REMIX) #include "lpc1769/pins_COHESION3D_REMIX.h" // LPC1769 env:LPC1769 #elif MB(COHESION3D_MINI) #include "lpc1769/pins_COHESION3D_MINI.h" // LPC1769 env:LPC1769 #elif MB(SMOOTHIEBOARD) #include "lpc1769/pins_SMOOTHIEBOARD.h" // LPC1769 env:LPC1769 #elif MB(TH3D_EZBOARD) #include "lpc1769/pins_TH3D_EZBOARD.h" // LPC1769 env:LPC1769 #elif MB(BTT_SKR_V1_4_TURBO) #include "lpc1769/pins_BTT_SKR_V1_4_TURBO.h" // LPC1769 env:LPC1769 #elif MB(MKS_SGEN_L_V2) #include "lpc1769/pins_MKS_SGEN_L_V2.h" // LPC1769 env:LPC1769 #elif MB(BTT_SKR_E3_TURBO) #include "lpc1769/pins_BTT_SKR_E3_TURBO.h" // LPC1769 env:LPC1769 #elif MB(FLY_CDY) #include "lpc1769/pins_FLY_CDY.h" // LPC1769 env:LPC1769 // // Due (ATSAM) boards // #elif MB(DUE3DOM) #include "sam/pins_DUE3DOM.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(DUE3DOM_MINI) #include "sam/pins_DUE3DOM_MINI.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RADDS) #include "sam/pins_RADDS.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RURAMPS4D_11) #include "sam/pins_RURAMPS4D_11.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RURAMPS4D_13) #include "sam/pins_RURAMPS4D_13.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RAMPS_FD_V1) #include "sam/pins_RAMPS_FD_V1.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RAMPS_FD_V2) #include "sam/pins_RAMPS_FD_V2.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RAMPS_SMART_EFB, RAMPS_SMART_EEB, RAMPS_SMART_EFF, RAMPS_SMART_EEF, RAMPS_SMART_SF) #include "sam/pins_RAMPS_SMART.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RAMPS_DUO_EFB, RAMPS_DUO_EEB, RAMPS_DUO_EFF, RAMPS_DUO_EEF, RAMPS_DUO_SF) #include "sam/pins_RAMPS_DUO.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(RAMPS4DUE_EFB, RAMPS4DUE_EEB, RAMPS4DUE_EFF, RAMPS4DUE_EEF, RAMPS4DUE_SF) #include "sam/pins_RAMPS4DUE.h" // SAM3X8E env:DUE env:DUE_USB env:DUE_debug #elif MB(ULTRATRONICS_PRO) #include "sam/pins_ULTRATRONICS_PRO.h" // SAM3X8E env:DUE env:DUE_debug #elif MB(ARCHIM1) #include "sam/pins_ARCHIM1.h" // SAM3X8E env:DUE_archim env:DUE_archim_debug #elif MB(ARCHIM2) #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(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 // #elif MB(MALYAN_M200_V2) #include "stm32f0/pins_MALYAN_M200_V2.h" // STM32F0 env:STM32F070RB_malyan env:STM32F070CB_malyan #elif MB(MALYAN_M300) #include "stm32f0/pins_MALYAN_M300.h" // STM32F0 env:malyan_M300 // // STM32 ARM Cortex-M0+ // #elif MB(BTT_EBB42_V1_1) #include "stm32g0/pins_BTT_EBB42_V1_1.h" // STM32G0 env:BTT_EBB42_V1_1_filament_extruder #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_MANTA_M4P_V2_1) #include "stm32g0/pins_BTT_MANTA_M4P_V2_1.h" // STM32G0 env:STM32G0B1RE_manta_btt env:STM32G0B1RE_manta_btt_xfer #elif MB(BTT_MANTA_M5P_V1_0) #include "stm32g0/pins_BTT_MANTA_M5P_V1_0.h" // STM32G0 env:STM32G0B1RE_manta_btt env:STM32G0B1RE_manta_btt_xfer #elif MB(BTT_MANTA_E3_EZ_V1_0) #include "stm32g0/pins_BTT_MANTA_E3_EZ_V1_0.h" // STM32G0 env:STM32G0B1RE_manta_btt env:STM32G0B1RE_manta_btt_xfer #elif MB(BTT_MANTA_M8P_V1_0) #include "stm32g0/pins_BTT_MANTA_M8P_V1_0.h" // STM32G0 env:STM32G0B1VE_btt env:STM32G0B1VE_btt_xfer #elif MB(BTT_MANTA_M8P_V1_1) #include "stm32g0/pins_BTT_MANTA_M8P_V1_1.h" // STM32G0 env:STM32G0B1VE_btt env:STM32G0B1VE_btt_xfer // // STM32 ARM Cortex-M3 // #elif MB(STM32F103RE) #include "stm32f1/pins_STM32F1R.h" // STM32F1 env:STM32F103RE env:STM32F103RE_maple #elif MB(MALYAN_M200) #include "stm32f1/pins_MALYAN_M200.h" // STM32F1 env:STM32F103CB_malyan env:STM32F103CB_malyan_maple #elif MB(STM3R_MINI) #include "stm32f1/pins_STM3R_MINI.h" // STM32F1 env:STM32F103VE env:STM32F103RE_maple #elif MB(GTM32_PRO_VB) #include "stm32f1/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F103VE env:STM32F103VE_GTM32_maple #elif MB(GTM32_PRO_VD) #include "stm32f1/pins_GTM32_PRO_VD.h" // STM32F1 env:STM32F103VE env:STM32F103VE_GTM32_maple #elif MB(GTM32_MINI) #include "stm32f1/pins_GTM32_MINI.h" // STM32F1 env:STM32F103VE env:STM32F103VE_GTM32_maple #elif MB(GTM32_MINI_A30) #include "stm32f1/pins_GTM32_MINI_A30.h" // STM32F1 env:STM32F103VE env:STM32F103VE_GTM32_maple #elif MB(GTM32_REV_B) #include "stm32f1/pins_GTM32_REV_B.h" // STM32F1 env:STM32F103VE env:STM32F103VE_GTM32_maple #elif MB(MORPHEUS) #include "stm32f1/pins_MORPHEUS.h" // STM32F1 env:STM32F103RE env:STM32F103RE_maple #elif MB(CHITU3D) #include "stm32f1/pins_CHITU3D.h" // STM32F1 env:STM32F103ZE env:STM32F103RE_maple #elif MB(MKS_ROBIN) #include "stm32f1/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin env:mks_robin_maple #elif MB(MKS_ROBIN_MINI) #include "stm32f1/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini env:mks_robin_mini_maple #elif MB(MKS_ROBIN_NANO) #include "stm32f1/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano_v1v2 env:mks_robin_nano_v1v2_maple env:mks_robin_nano_v1v2_usbmod #elif MB(MKS_ROBIN_NANO_V2) #include "stm32f1/pins_MKS_ROBIN_NANO_V2.h" // STM32F1 env:mks_robin_nano_v1v2 env:mks_robin_nano_v1v2_maple #elif MB(MKS_ROBIN_LITE) #include "stm32f1/pins_MKS_ROBIN_LITE.h" // STM32F1 env:mks_robin_lite env:mks_robin_lite_maple #elif MB(MKS_ROBIN_LITE3) #include "stm32f1/pins_MKS_ROBIN_LITE3.h" // STM32F1 env:mks_robin_lite3 env:mks_robin_lite3_maple #elif MB(MKS_ROBIN_PRO) #include "stm32f1/pins_MKS_ROBIN_PRO.h" // STM32F1 env:mks_robin_pro env:mks_robin_pro_maple #elif MB(MKS_ROBIN_E3) #include "stm32f1/pins_MKS_ROBIN_E3.h" // STM32F1 env:mks_robin_e3 env:mks_robin_e3_maple #elif MB(MKS_ROBIN_E3_V1_1) #include "stm32f1/pins_MKS_ROBIN_E3_V1_1.h" // STM32F1 env:mks_robin_e3 #elif MB(MKS_ROBIN_E3D) #include "stm32f1/pins_MKS_ROBIN_E3D.h" // STM32F1 env:mks_robin_e3 #elif MB(MKS_ROBIN_E3D_V1_1) #include "stm32f1/pins_MKS_ROBIN_E3D_V1_1.h" // STM32F1 env:mks_robin_e3 env:mks_robin_e3_maple #elif MB(MKS_ROBIN_E3P) #include "stm32f1/pins_MKS_ROBIN_E3P.h" // STM32F1 env:mks_robin_e3p env:mks_robin_e3p_maple #elif MB(BTT_SKR_MINI_V1_1) #include "stm32f1/pins_BTT_SKR_MINI_V1_1.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple #elif MB(BTT_SKR_MINI_E3_V1_0) #include "stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple #elif MB(BTT_SKR_MINI_E3_V1_2) #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_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) #include "stm32f1/pins_BTT_SKR_E3_DIP.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_CR6) #include "stm32f1/pins_BTT_SKR_CR6.h" // STM32F1 env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RE_btt_maple env:STM32F103RE_btt_USB_maple #elif MB(JGAURORA_A5S_A1) #include "stm32f1/pins_JGAURORA_A5S_A1.h" // STM32F1 env:jgaurora_a5s_a1 env:jgaurora_a5s_a1_maple #elif MB(FYSETC_AIO_II) #include "stm32f1/pins_FYSETC_AIO_II.h" // STM32F1 env:STM32F103RC_fysetc env:STM32F103RC_fysetc_maple #elif MB(FYSETC_CHEETAH) #include "stm32f1/pins_FYSETC_CHEETAH.h" // STM32F1 env:STM32F103RC_fysetc env:STM32F103RC_fysetc_maple #elif MB(FYSETC_CHEETAH_V12) #include "stm32f1/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:STM32F103RC_fysetc env:STM32F103RC_fysetc_maple #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_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) #include "stm32f1/pins_CHITU3D_V6.h" // STM32F1 env:chitu_f103 env:chitu_f103_maple #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: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: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: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: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: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: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(CREALITY_V521) #include "stm32f1/pins_CREALITY_V521.h" // STM32F1 env:STM32F103VE_creality #elif MB(TRIGORILLA_PRO) #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) #include "stm32f1/pins_FLSUN_HISPEED.h" // STM32F1 env:flsun_hispeedv1 #elif MB(BEAST) #include "stm32f1/pins_BEAST.h" // STM32F1 env:STM32F103VE env:STM32F103RE_maple #elif MB(MINGDA_MPX_ARM_MINI) #include "stm32f1/pins_MINGDA_MPX_ARM_MINI.h" // STM32F1 env:mingda_mpx_arm_mini #elif MB(ZONESTAR_ZM3E2) #include "stm32f1/pins_ZM3E2_V1_0.h" // STM32F1 env:STM32F103RC_ZM3E2_USB env:STM32F103RC_ZM3E2_USB_maple #elif MB(ZONESTAR_ZM3E4) #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" // STM32F1 env:ERYONE_ERY32_MINI_maple #elif MB(PANDA_PI_V29) #include "stm32f1/pins_PANDA_PI_V29.h" // STM32F1 env:PANDA_PI_V29 #elif MB(SOVOL_V131) #include "gd32f1/pins_SOVOL_V131.h" // GD32F1 env:GD32F103RET6_sovol_maple #elif MB(TRIGORILLA_V006) #include "gd32f1/pins_TRIGORILLA_V006.h" // GD32F1 env:trigorilla_v006 #elif MB(KEDI_CONTROLLER_V1_2) #include "stm32f1/pins_KEDI_CONTROLLER_V1_2.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_USB env:STM32F103RC_btt_maple env:STM32F103RC_btt_USB_maple #elif MB(MD_D301) #include "stm32f1/pins_MD_D301.h" // STM32F1 env:mingda_d301 env:mingda_d301_maple #elif MB(VOXELAB_AQUILA) #include "gd32f1/pins_VOXELAB_AQUILA.h" // GD32F1, N32G4, STM32F1 env:GD32F103RC_voxelab_maple env:N32G455RE_voxelab_maple env:STM32F103RE_creality_maple env:STM32F103RE_creality #elif MB(SPRINGER_CONTROLLER) #include "stm32f1/pins_ORCA_3D_SPRINGER.h" // STM32F1 env:STM32F103VC_orca3d // // ARM Cortex-M4F // #elif MB(TEENSY31_32) #include "teensy3/pins_TEENSY31_32.h" // TEENSY31_32 env:teensy31 #elif MB(TEENSY35_36) #include "teensy3/pins_TEENSY35_36.h" // TEENSY35_36 env:teensy35 env:teensy36 // // STM32 ARM Cortex-M4F // #elif MB(ARMED) #include "stm32f4/pins_ARMED.h" // STM32F4 env:ARMED #elif MB(RUMBA32_V1_0, RUMBA32_V1_1) #include "stm32f4/pins_RUMBA32_AUS3D.h" // STM32F4 env:rumba32 #elif MB(RUMBA32_MKS) #include "stm32f4/pins_RUMBA32_MKS.h" // STM32F4 env:rumba32 #elif MB(RUMBA32_BTT) #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(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) #include "stm32f4/pins_BTT_SKR_PRO_V1_2.h" // STM32F4 env:BIGTREE_SKR_PRO env:BIGTREE_SKR_PRO_usb_flash_drive #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 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_MINI_E3_V3_0_1) #include "stm32f4/pins_BTT_SKR_MINI_E3_V3_0_1.h" // STM32F4 env:STM32F401RC_btt env:STM32F401RC_btt_xfer #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 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 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:STM32F446ZE_btt env:STM32F446ZE_btt_usb_flash_drive #elif MB(BTT_OCTOPUS_V1_1) #include "stm32f4/pins_BTT_OCTOPUS_V1_1.h" // STM32F4 env:STM32F446ZE_btt env:STM32F446ZE_btt_usb_flash_drive env:STM32F429ZG_btt env:STM32F429ZG_btt_usb_flash_drive env:STM32F407ZE_btt env:STM32F407ZE_btt_usb_flash_drive #elif MB(BTT_OCTOPUS_PRO_V1_0) #include "stm32f4/pins_BTT_OCTOPUS_PRO_V1_0.h" // STM32F4 env:STM32F446ZE_btt env:STM32F446ZE_btt_usb_flash_drive env:STM32F429ZG_btt env:STM32F429ZG_btt_usb_flash_drive env:STM32H723ZE_btt #elif MB(LERDGE_K) #include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:LERDGEK env:LERDGEK_usb_flash_drive #elif MB(LERDGE_S) #include "stm32f4/pins_LERDGE_S.h" // STM32F4 env:LERDGES env:LERDGES_usb_flash_drive #elif MB(LERDGE_X) #include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:LERDGEX env:LERDGEX_usb_flash_drive #elif MB(FYSETC_S6) #include "stm32f4/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000 #elif MB(FYSETC_S6_V2_0) #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) #include "stm32f4/pins_MKS_ROBIN2.h" // STM32F4 env:mks_robin2 #elif MB(MKS_ROBIN_PRO_V2) #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_no_bootloader env:Anet_ET4_OpenBLT #elif MB(ANET_ET4P) #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(FYSETC_CHEETAH_V30) #include "stm32f4/pins_FYSETC_CHEETAH_V30.h" // STM32F4 env:FYSETC_CHEETAH_V30 #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 env:mks_robin_nano_v1_3_f4_usbmod #elif MB(MKS_EAGLE) #include "stm32f4/pins_MKS_EAGLE.h" // STM32F4 env:mks_eagle env:mks_eagle_usb_flash_drive env:mks_eagle_usb_flash_drive_msc #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_nobootloader env:STM32F401RC_creality_jlink env:STM32F401RC_creality_stlink #elif MB(CREALITY_CR4NTXXC10) #include "stm32f4/pins_CREALITY_CR4NTXXC10.h" // STM32F4 env:STM32F401RE_freeruns env:STM32F401RE_freeruns_jlink env:STM32F401RE_freeruns_stlink #elif MB(OPULO_LUMEN_REV4) #include "stm32f4/pins_OPULO_LUMEN_REV4.h" // STM32F4 env:Opulo_Lumen_REV4 #elif MB(FYSETC_SPIDER_KING407) #include "stm32f4/pins_FYSETC_SPIDER_KING407.h" // STM32F4 env:FYSETC_SPIDER_KING407 #elif MB(MKS_SKIPR_V1) #include "stm32f4/pins_MKS_SKIPR_V1_0.h" // STM32F4 env:mks_skipr_v1 env:mks_skipr_v1_nobootloader #elif MB(TRONXY_CXY_446_V10) #include "stm32f4/pins_TRONXY_CXY_446_V10.h" // STM32F4 env:TRONXY_CXY_446_V10 env:TRONXY_CXY_446_V10_usb_flash_drive #elif MB(CREALITY_F401RE) #include "stm32f4/pins_CREALITY_F401.h" // STM32F4 env:STM32F401RE_creality #elif MB(BLACKPILL_CUSTOM) #include "stm32f4/pins_BLACKPILL_CUSTOM.h" // STM32F4 env:STM32F401CD_blackpill_stlink #elif MB(I3DBEEZ9_V1) #include "stm32f4/pins_I3DBEEZ9.h" // STM32F4 env:I3DBEEZ9_V1 #elif MB(MELLOW_FLY_E3_V2) #include "stm32f4/pins_MELLOW_FLY_E3_V2.h" // STM32F4 env:FLY_E3_V2 #elif MB(BLACKBEEZMINI_V1) #include "stm32f4/pins_BLACKBEEZMINI.h" // STM32F4 env:BLACKBEEZMINI_V1 // // ARM Cortex-M7 // #elif MB(REMRAM_V1) #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_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:STM32H743VI_btt env:STM32H723VG_btt #elif MB(BTT_SKR_V3_0_EZ) #include "stm32h7/pins_BTT_SKR_V3_0_EZ.h" // STM32H7 env:STM32H743VI_btt env:STM32H723VG_btt #elif MB(BTT_OCTOPUS_MAX_EZ_V1_0) #include "stm32h7/pins_BTT_OCTOPUS_MAX_EZ.h" // STM32H7 env:STM32H723ZE_btt #elif MB(BTT_OCTOPUS_PRO_V1_0_1) #include "stm32h7/pins_BTT_OCTOPUS_PRO_V1_0_1.h" // STM32H7 env:STM32H723ZE_btt #elif MB(BTT_OCTOPUS_PRO_V1_1) #include "stm32h7/pins_BTT_OCTOPUS_PRO_V1_1.h" // STM32H7 env:STM32H723ZE_btt #elif MB(BTT_MANTA_M8P_V2_0) #include "stm32h7/pins_BTT_MANTA_M8P_V2_0.h" // STM32H7 env:STM32H723ZE_btt #elif MB(BTT_KRAKEN_V1_0) #include "stm32h7/pins_BTT_KRAKEN_V1_0.h" // STM32H7 env:STM32H723ZG_btt #elif MB(TEENSY41) #include "teensy4/pins_TEENSY41.h" // Teensy-4.x env:teensy41 #elif MB(T41U5XBB) #include "teensy4/pins_T41U5XBB.h" // Teensy-4.x env:teensy41 // // Espressif ESP32 // #elif MB(ESPRESSIF_ESP32) #include "esp32/pins_ESP32.h" // ESP32 env:esp32 #elif MB(MRR_ESPA) #include "esp32/pins_MRR_ESPA.h" // ESP32 env:esp32 #elif MB(MRR_ESPE) #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 #elif MB(GODI_CONTROLLER_V1_0) #include "esp32/pins_GODI_CONTROLLER_V1_0.h" // ESP32 env:godi_esp32 #elif MB(MM_JOKER) #include "esp32/pins_MM_JOKER.h" // ESP32 env:esp32 // // Adafruit Grand Central M4 (SAMD51 ARM Cortex-M4) // #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 // // ReprapWorld Minitronics (SAMD21) // #elif MB(MINITRONICS20) #include "samd/pins_MINITRONICS20.h" // SAMD21 env:SAMD21_minitronics20 // // HC32 ARM Cortex-M4 // #elif MB(AQUILA_V101) #include "hc32f4/pins_AQUILA_101.h" // HC32F460 env:HC32F460C_aquila_101 #elif MB(CREALITY_ENDER2P_V24S4) #include "hc32f4/pins_CREALITY_ENDER2P_V24S4.h" // HC32F460 env:HC32F460C_e2p24s4 // // Custom board (with custom PIO env) // #elif MB(CUSTOM) #include "pins_custom.h" // env:custom // // Linux Native Debug board // #elif MB(SIMULATED) #include "linux/pins_RAMPS_LINUX.h" // Native or Simulation lin:linux_native mac:simulator_macos_debug mac:simulator_macos_release win:simulator_windows lin:simulator_linux_debug lin:simulator_linux_release #else // // Obsolete or unknown board // #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 #define BOARD_LINUX_RAMPS 99926 #define BOARD_BTT_MANTA_M4P_V1_0 99927 #define BOARD_VAKE403D 99928 #define BOARD_TRONXY_V10 99929 #if MB(MKS_13) #error "BOARD_MKS_13 is now BOARD_MKS_GEN_13. Please update your configuration." #elif MB(TRIGORILLA) #error "BOARD_TRIGORILLA is now BOARD_TRIGORILLA_13. Please update your configuration." #elif MB(RURAMPS4D) #error "BOARD_RURAMPS4D is now BOARD_RURAMPS4D_11. Please update your configuration." #elif MB(FORMBOT_TREX2) #error "FORMBOT_TREX2 is now BOARD_FORMBOT_TREX2PLUS. Please update your configuration." #elif MB(BIQU_SKR_V1_1) #error "BOARD_BIQU_SKR_V1_1 is now BOARD_BTT_SKR_V1_1. Please update your configuration." #elif MB(BIGTREE_SKR_V1_1) #error "BOARD_BIGTREE_SKR_V1_1 is now BOARD_BTT_SKR_V1_1. Please update your configuration." #elif MB(BIGTREE_SKR_V1_2) #error "BOARD_BIGTREE_SKR_V1_2 is now BOARD_BTT_SKR_V1_2. Please update your configuration." #elif MB(BIGTREE_SKR_V1_3) #error "BOARD_BIGTREE_SKR_V1_3 is now BOARD_BTT_SKR_V1_3. Please update your configuration." #elif MB(BIGTREE_SKR_V1_4) #error "BOARD_BIGTREE_SKR_V1_4 is now BOARD_BTT_SKR_V1_4. Please update your configuration." #elif MB(BIGTREE_SKR_V1_4_TURBO) #error "BOARD_BIGTREE_SKR_V1_4_TURBO is now BOARD_BTT_SKR_V1_4_TURBO. Please update your configuration." #elif MB(BIGTREE_BTT002_V1_0) #error "BOARD_BIGTREE_BTT002_V1_0 is now BOARD_BTT_BTT002_V1_0. Please update your configuration." #elif MB(BIGTREE_SKR_PRO_V1_1) #error "BOARD_BIGTREE_SKR_PRO_V1_1 is now BOARD_BTT_SKR_PRO_V1_1. Please update your configuration." #elif MB(BIGTREE_SKR_MINI_V1_1) #error "BOARD_BIGTREE_SKR_MINI_V1_1 is now BOARD_BTT_SKR_MINI_V1_1. Please update your configuration." #elif MB(BIGTREE_SKR_MINI_E3) #error "BOARD_BIGTREE_SKR_MINI_E3 is now BOARD_BTT_SKR_MINI_E3_V1_0. Please update your configuration." #elif MB(BIGTREE_SKR_E3_DIP) #error "BOARD_BIGTREE_SKR_E3_DIP is now BOARD_BTT_SKR_E3_DIP. Please update your configuration." #elif MB(STM32F1R) #error "BOARD_STM32F1R is now BOARD_STM32F103RE. Please update your configuration." #elif MB(STM32F103R) #error "BOARD_STM32F103R is now BOARD_STM32F103RE. Please update your configuration." #elif MOTHERBOARD == BOARD_ESP32 #error "BOARD_ESP32 is now BOARD_ESPRESSIF_ESP32. Please update your configuration." #elif MB(STEVAL) #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) #error "BOARD_RUMBA32_AUS3D is now BOARD_RUMBA32_V1_0. Please update your configuration." #elif MB(RAMPS_DAGOMA) #error "BOARD_RAMPS_DAGOMA is now BOARD_DAGOMA_F5. Please update your configuration." #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 "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 MB(LINUX_RAMPS) #error "BOARD_LINUX_RAMPS is now BOARD_SIMULATED. Please update your configuration." #elif MB(BTT_MANTA_M4P_V1_0) #error "BOARD_BTT_MANTA_M4P_V1_0 is now BOARD_BTT_MANTA_M4P_V2_1. Please update your configuration." #elif MB(TRONXY_V10) #error "BOARD_TRONXY_V10 is now BOARD_TRONXY_CXY_446_V10. Please update your configuration." #elif MB(VAKE403D) #error "BOARD_VAKE403D is no longer supported in Marlin." #elif defined(MOTHERBOARD) #error "Unknown MOTHERBOARD value set in Configuration.h." #else #error "MOTHERBOARD not defined! Use '#define MOTHERBOARD BOARD_...' in Configuration.h." #endif #undef BOARD_MKS_13 #undef BOARD_TRIGORILLA #undef BOARD_RURAMPS4D #undef BOARD_FORMBOT_TREX2 #undef BOARD_BIQU_SKR_V1_1 #undef BOARD_STM32F1R #undef BOARD_STM32F103R #undef BOARD_ESP32 #undef BOARD_STEVAL #undef BOARD_STEVAL_3DP001V1 #undef BOARD_BIGTREE_SKR_V1_1 #undef BOARD_BIGTREE_SKR_V1_3 #undef BOARD_BIGTREE_SKR_V1_4 #undef BOARD_BIGTREE_SKR_V1_4_TURBO #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 #undef BOARD_LINUX_RAMPS #undef BOARD_BTT_MANTA_M4P_V1_0 #undef BOARD_VAKE403D #undef BOARD_TRONXY_V10 #endif // // LCD / Controller Pins based on board expansion headers with adapters // #include "pins_lcd.h" // // Post-process pins according to configured settings // #include "pins_postprocess.h"
2301_81045437/Marlin
Marlin/src/pins/pins.h
C
agpl-3.0
64,268
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 #include "../inc/MarlinConfig.h" #define MAX_NAME_LENGTH 39 // one place to specify the format of all the sources of names // "-" left justify, "39" minimum width of name, pad with blanks /** * This routine minimizes RAM usage by creating a FLASH resident array to * store the pin names, pin numbers and analog/digital flag. * * Creating the array in FLASH is a two pass process. The first pass puts the * name strings into FLASH. The second pass actually creates the array. * * Both passes use the same pin list. The list contains two macro names. The * actual macro definitions are changed depending on which pass is being done. */ // first pass - put the name strings into FLASH #define _ADD_PIN_2(PIN_NAME, ENTRY_NAME) static const char ENTRY_NAME[] PROGMEM = { PIN_NAME }; #define _ADD_PIN(PIN_NAME, COUNTER) _ADD_PIN_2(PIN_NAME, entry_NAME_##COUNTER) #define REPORT_NAME_DIGITAL(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER) #define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER) #include "pinsDebug_list.h" #line 49 // manually add pins that have names that are macros which don't play well with these macros #if ANY(AVR_ATmega2560_FAMILY, AVR_ATmega1284_FAMILY, ARDUINO_ARCH_SAM, TARGET_LPC1768) #if SERIAL_IN_USE(0) static const char RXD_NAME_0[] PROGMEM = { "RXD0" }; static const char TXD_NAME_0[] PROGMEM = { "TXD0" }; #endif #if SERIAL_IN_USE(1) static const char RXD_NAME_1[] PROGMEM = { "RXD1" }; static const char TXD_NAME_1[] PROGMEM = { "TXD1" }; #endif #if SERIAL_IN_USE(2) static const char RXD_NAME_2[] PROGMEM = { "RXD2" }; static const char TXD_NAME_2[] PROGMEM = { "TXD2" }; #endif #if SERIAL_IN_USE(3) static const char RXD_NAME_3[] PROGMEM = { "RXD3" }; static const char TXD_NAME_3[] PROGMEM = { "TXD3" }; #endif #endif ///////////////////////////////////////////////////////////////////////////// // second pass - create the array #undef _ADD_PIN_2 #undef _ADD_PIN #undef REPORT_NAME_DIGITAL #undef REPORT_NAME_ANALOG #define _ADD_PIN_2(ENTRY_NAME, NAME, IS_DIGITAL) { ENTRY_NAME, NAME, IS_DIGITAL }, #define _ADD_PIN(NAME, COUNTER, IS_DIGITAL) _ADD_PIN_2(entry_NAME_##COUNTER, NAME, IS_DIGITAL) #define REPORT_NAME_DIGITAL(COUNTER, NAME) _ADD_PIN(NAME, COUNTER, true) #define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(analogInputToDigitalPin(NAME), COUNTER, false) typedef struct { PGM_P const name; pin_t pin; bool is_digital; } PinInfo; const PinInfo pin_array[] PROGMEM = { /** * [pin name] [pin number] [is digital or analog] 1 = digital, 0 = analog * Each entry takes up 6 bytes in FLASH: * 2 byte pointer to location of the name string * 2 bytes containing the pin number * analog pin numbers were converted to digital when the array was created * 2 bytes containing the digital/analog bool flag */ #if SERIAL_IN_USE(0) #if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM) { RXD_NAME_0, 0, true }, { TXD_NAME_0, 1, true }, #elif AVR_ATmega1284_FAMILY { RXD_NAME_0, 8, true }, { TXD_NAME_0, 9, true }, #elif defined(TARGET_LPC1768) // TX P0_02 RX P0_03 { RXD_NAME_0, 3, true }, { TXD_NAME_0, 2, true }, #endif #endif #if SERIAL_IN_USE(1) #if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM) { RXD_NAME_1, 19, true }, { TXD_NAME_1, 18, true }, #elif AVR_ATmega1284_FAMILY { RXD_NAME_1, 10, true }, { TXD_NAME_1, 11, true }, #elif defined(TARGET_LPC1768) #ifdef LPC_PINCFG_UART1_P2_00 // TX P2_00 RX P2_01 { RXD_NAME_1, 0x41, true }, { TXD_NAME_1, 0x40, true }, #else // TX P0_15 RX P0_16 { RXD_NAME_1, 16, true }, { TXD_NAME_1, 15, true }, #endif #endif #endif #if SERIAL_IN_USE(2) #if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM) { RXD_NAME_2, 17, true }, { TXD_NAME_2, 16, true }, #elif defined(TARGET_LPC1768) #ifdef LPC_PINCFG_UART2_P2_08 // TX P2_08 RX P2_09 { RXD_NAME_2, 0x49, true }, { TXD_NAME_2, 0x48, true }, #else // TX P0_10 RX P0_11 { RXD_NAME_2, 11, true }, { TXD_NAME_2, 10, true }, #endif #endif #endif #if SERIAL_IN_USE(3) #if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM) { RXD_NAME_3, 15, true }, { TXD_NAME_3, 14, true }, #elif defined(TARGET_LPC1768) #ifdef LPC_PINCFG_UART3_P0_25 // TX P0_25 RX P0_26 { RXD_NAME_3, 0x1A, true }, { TXD_NAME_3, 0x19, true }, #elif defined(LPC_PINCFG_UART3_P4_28) // TX P4_28 RX P4_29 { RXD_NAME_3, 0x9D, true }, { TXD_NAME_3, 0x9C, true }, #else // TX P0_00 RX P0_01 { RXD_NAME_3, 1, true }, { TXD_NAME_3, 0, true }, #endif #endif #endif #include "pinsDebug_list.h" #line 168 }; #include HAL_PATH(.., pinsDebug.h) // get the correct support file for this CPU #ifndef M43_NEVER_TOUCH #define M43_NEVER_TOUCH(Q) false #endif bool pin_is_protected(const pin_t pin); static void print_input_or_output(const bool isout) { SERIAL_ECHO(isout ? F("Output ") : F("Input ")); } static void print_pin_state(const bool state) { SERIAL_ECHO(state ? F("HIGH") : F("LOW")); } // pretty report with PWM info inline void report_pin_state_extended(const 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; auto alt_pin_echo = [](const pin_t &pin) { #if AVR_AT90USB1286_FAMILY // Use FastIO for pins Teensy doesn't expose if (pin == 46) { print_input_or_output(IS_OUTPUT(46)); print_pin_state(READ(46)); return false; } else if (pin == 47) { print_input_or_output(IS_OUTPUT(47)); print_pin_state(READ(47)); return false; } #endif return true; }; for (uint8_t x = 0; x < COUNT(pin_array); ++x) { // 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_ECHO(start_string); SERIAL_ECHOPGM("PIN: "); PRINT_PIN(pin); print_port(pin); if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number else SERIAL_ECHO_SP(8); // add padding if not an analog pin } else { SERIAL_CHAR('.'); 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) { if (pin_is_protected(pin) && !ignore) SERIAL_ECHOPGM("protected "); else { if (alt_pin_echo(pin)) { if (!GET_ARRAY_IS_DIGITAL(x)) { sprintf_P(buffer, PSTR("Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin))); SERIAL_ECHO(buffer); } else { if (!GET_PINMODE(pin)) { //pinMode(pin, INPUT_PULLUP); // make sure input isn't floating - stopped doing this // because this could interfere with inductive/capacitive // sensors (high impedance voltage divider) and with Pt100 amplifier print_input_or_output(false); print_pin_state(digitalRead_mod(pin)); } else if (pwm_status(pin)) { // do nothing } else { print_input_or_output(true); print_pin_state(digitalRead_mod(pin)); } } if (!multi_name_pin && extended) pwm_details(pin); // report PWM capabilities only on the first pass & only if doing an extended report } } } SERIAL_EOL(); multi_name_pin = found; found = true; } // end of IF } // end of for loop if (!found) { if (start_string) SERIAL_ECHO(start_string); SERIAL_ECHOPGM("PIN: "); PRINT_PIN(pin); print_port(pin); if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number else SERIAL_ECHO_SP(8); // add padding if not an analog pin SERIAL_ECHOPGM("<unused/unknown>"); if (extended) { if (alt_pin_echo(pin)) { if (pwm_status(pin)) { // do nothing } else if (GET_PINMODE(pin)) { SERIAL_ECHO_SP(MAX_NAME_LENGTH - 16); print_input_or_output(true); print_pin_state(digitalRead_mod(pin)); } else { if (IS_ANALOG(pin)) { sprintf_P(buffer, PSTR(" Analog in = %5ld"), (long)analogRead(DIGITAL_PIN_TO_ANALOG_PIN(pin))); SERIAL_ECHO(buffer); SERIAL_ECHOPGM(" "); } else SERIAL_ECHO_SP(MAX_NAME_LENGTH - 16); // add padding if not an analog pin print_input_or_output(false); print_pin_state(digitalRead_mod(pin)); } //if (!pwm_status(pin)) SERIAL_CHAR(' '); // add padding if it's not a PWM pin if (extended) { SERIAL_ECHO_SP(MAX_NAME_LENGTH - 16); pwm_details(pin); // report PWM capabilities only if doing an extended report } } } SERIAL_EOL(); } }
2301_81045437/Marlin
Marlin/src/pins/pinsDebug.h
C
agpl-3.0
10,626
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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/>. * */ // Please update this list when adding new pins to Marlin. // The order doesn't matter. // Following this pattern is a must. // 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) (WITHIN(PN, P0_02, P0_03) || WITHIN(PN, P0_23, P0_26) || WITHIN(PN, P1_30, P1_31)) #else #define ANALOG_OK(PN) WITHIN(PN, 0, NUM_ANALOG_INPUTS - 1) #endif #line 35 // set __LINE__ to a known value for both passes // // Analog Pin Assignments // #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 #endif #if _EXISTS(EXT_AUX_A1) #if ANALOG_OK(EXT_AUX_A0) REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0) #endif #endif #if _EXISTS(EXT_AUX_A2) #if ANALOG_OK(EXT_AUX_A0) REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0) #endif #endif #if _EXISTS(EXT_AUX_A3) #if ANALOG_OK(EXT_AUX_A0) REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0) #endif #endif #if _EXISTS(EXT_AUX_A4) #if ANALOG_OK(EXT_AUX_A0) REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0) #endif #endif #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 _EXISTS(TC1) #if ANALOG_OK(TC1) REPORT_NAME_ANALOG(__LINE__, TC1) #endif #endif #if _EXISTS(TC2) #if ANALOG_OK(TC1) REPORT_NAME_ANALOG(__LINE__, TC1) #endif #endif #endif #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) #if ANALOG_OK(TEMP_1_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_1_PIN) #endif #endif #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) #if ANALOG_OK(TEMP_3_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_3_PIN) #endif #endif #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) #if ANALOG_OK(TEMP_5_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_5_PIN) #endif #endif #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) #if ANALOG_OK(TEMP_7_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_7_PIN) #endif #endif #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) #if ANALOG_OK(TEMP_CHAMBER_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN) #endif #endif #if PIN_EXISTS(TEMP_PROBE) #if ANALOG_OK(TEMP_PROBE_PIN) REPORT_NAME_ANALOG(__LINE__, TEMP_PROBE_PIN) #endif #endif #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 _EXISTS(__FD) REPORT_NAME_DIGITAL(__LINE__, __FD) #endif #if _EXISTS(__FS) REPORT_NAME_DIGITAL(__LINE__, __FS) #endif #if _EXISTS(__GD) REPORT_NAME_DIGITAL(__LINE__, __GD) #endif #if _EXISTS(__GS) REPORT_NAME_DIGITAL(__LINE__, __GS) #endif // // SPI on AVR // #if PIN_EXISTS(AVR_MISO) REPORT_NAME_DIGITAL(__LINE__, AVR_MISO_PIN) #endif #if PIN_EXISTS(AVR_MOSI) REPORT_NAME_DIGITAL(__LINE__, AVR_MOSI_PIN) #endif #if PIN_EXISTS(AVR_SCK) REPORT_NAME_DIGITAL(__LINE__, AVR_SCK_PIN) #endif #if PIN_EXISTS(AVR_SS) REPORT_NAME_DIGITAL(__LINE__, AVR_SS_PIN) #endif // // Sound // #if PIN_EXISTS(BEEPER) REPORT_NAME_DIGITAL(__LINE__, BEEPER_PIN) #endif #if PIN_EXISTS(ALARM) REPORT_NAME_DIGITAL(__LINE__, ALARM_PIN) #endif // // Digital Encoder / Keypad // #if _EXISTS(BTN_BACK) REPORT_NAME_DIGITAL(__LINE__, BTN_BACK) #endif #if _EXISTS(BTN_CENTER) REPORT_NAME_DIGITAL(__LINE__, BTN_CENTER) #endif #if _EXISTS(BTN_EN1) REPORT_NAME_DIGITAL(__LINE__, BTN_EN1) #endif #if _EXISTS(BTN_EN2) REPORT_NAME_DIGITAL(__LINE__, BTN_EN2) #endif #if _EXISTS(BTN_ENC_EN) REPORT_NAME_DIGITAL(__LINE__, BTN_ENC_EN) #endif #if _EXISTS(BTN_ENC) REPORT_NAME_DIGITAL(__LINE__, BTN_ENC) #endif #if _EXISTS(BTN_HOME) REPORT_NAME_DIGITAL(__LINE__, BTN_HOME) #endif #if _EXISTS(BTN_UP) REPORT_NAME_DIGITAL(__LINE__, BTN_UP) #endif #if _EXISTS(BTN_DOWN) REPORT_NAME_DIGITAL(__LINE__, BTN_DOWN) #endif #if _EXISTS(BTN_LEFT) REPORT_NAME_DIGITAL(__LINE__, BTN_LEFT) #endif #if _EXISTS(BTN_RIGHT) REPORT_NAME_DIGITAL(__LINE__, BTN_RIGHT) #endif // // Joystick // #if PIN_EXISTS(JOY_X) REPORT_NAME_DIGITAL(__LINE__, JOY_X_PIN) #endif #if PIN_EXISTS(JOY_Y) REPORT_NAME_DIGITAL(__LINE__, JOY_Y_PIN) #endif #if PIN_EXISTS(JOY_Z) REPORT_NAME_DIGITAL(__LINE__, JOY_Z_PIN) #endif #if PIN_EXISTS(JOY_EN) REPORT_NAME_DIGITAL(__LINE__, JOY_EN_PIN) #endif // // Custom Buttons // #if PIN_EXISTS(BUTTON1) REPORT_NAME_DIGITAL(__LINE__, BUTTON1_PIN) #endif #if PIN_EXISTS(BUTTON2) REPORT_NAME_DIGITAL(__LINE__, BUTTON2_PIN) #endif #if PIN_EXISTS(BUTTON3) REPORT_NAME_DIGITAL(__LINE__, BUTTON3_PIN) #endif #if PIN_EXISTS(BUTTON4) REPORT_NAME_DIGITAL(__LINE__, BUTTON4_PIN) #endif #if PIN_EXISTS(BUTTON5) REPORT_NAME_DIGITAL(__LINE__, BUTTON5_PIN) #endif #if PIN_EXISTS(BUTTON6) REPORT_NAME_DIGITAL(__LINE__, BUTTON6_PIN) #endif #if PIN_EXISTS(BUTTON7) REPORT_NAME_DIGITAL(__LINE__, BUTTON7_PIN) #endif #if PIN_EXISTS(BUTTON8) REPORT_NAME_DIGITAL(__LINE__, BUTTON8_PIN) #endif #if PIN_EXISTS(BUTTON9) REPORT_NAME_DIGITAL(__LINE__, BUTTON9_PIN) #endif #if PIN_EXISTS(BUTTON10) REPORT_NAME_DIGITAL(__LINE__, BUTTON10_PIN) #endif #if PIN_EXISTS(BUTTON11) REPORT_NAME_DIGITAL(__LINE__, BUTTON11_PIN) #endif #if PIN_EXISTS(BUTTON12) REPORT_NAME_DIGITAL(__LINE__, BUTTON12_PIN) #endif #if PIN_EXISTS(BUTTON13) REPORT_NAME_DIGITAL(__LINE__, BUTTON13_PIN) #endif #if PIN_EXISTS(BUTTON14) REPORT_NAME_DIGITAL(__LINE__, BUTTON14_PIN) #endif #if PIN_EXISTS(BUTTON15) REPORT_NAME_DIGITAL(__LINE__, BUTTON15_PIN) #endif #if PIN_EXISTS(BUTTON16) REPORT_NAME_DIGITAL(__LINE__, BUTTON16_PIN) #endif #if PIN_EXISTS(BUTTON17) REPORT_NAME_DIGITAL(__LINE__, BUTTON17_PIN) #endif #if PIN_EXISTS(BUTTON18) REPORT_NAME_DIGITAL(__LINE__, BUTTON18_PIN) #endif #if PIN_EXISTS(BUTTON19) REPORT_NAME_DIGITAL(__LINE__, BUTTON19_PIN) #endif #if PIN_EXISTS(BUTTON20) REPORT_NAME_DIGITAL(__LINE__, BUTTON20_PIN) #endif #if PIN_EXISTS(BUTTON21) REPORT_NAME_DIGITAL(__LINE__, BUTTON21_PIN) #endif #if PIN_EXISTS(BUTTON22) REPORT_NAME_DIGITAL(__LINE__, BUTTON22_PIN) #endif #if PIN_EXISTS(BUTTON23) REPORT_NAME_DIGITAL(__LINE__, BUTTON23_PIN) #endif #if PIN_EXISTS(BUTTON24) REPORT_NAME_DIGITAL(__LINE__, BUTTON24_PIN) #endif #if PIN_EXISTS(BUTTON25) REPORT_NAME_DIGITAL(__LINE__, BUTTON25_PIN) #endif #if PIN_EXISTS(CASE_LIGHT) REPORT_NAME_DIGITAL(__LINE__, CASE_LIGHT_PIN) #endif #if PIN_EXISTS(COOLANT_FLOOD) REPORT_NAME_DIGITAL(__LINE__, COOLANT_FLOOD_PIN) #endif #if PIN_EXISTS(COOLANT_MIST) REPORT_NAME_DIGITAL(__LINE__, COOLANT_MIST_PIN) #endif #if PIN_EXISTS(CUTOFF_RESET) REPORT_NAME_DIGITAL(__LINE__, CUTOFF_RESET_PIN) #endif #if PIN_EXISTS(CUTOFF_TEST) REPORT_NAME_DIGITAL(__LINE__, CUTOFF_TEST_PIN) #endif #if _EXISTS(D57) REPORT_NAME_DIGITAL(__LINE__, D57) #endif #if _EXISTS(D58) REPORT_NAME_DIGITAL(__LINE__, D58) #endif #if PIN_EXISTS(DAC_DISABLE) REPORT_NAME_DIGITAL(__LINE__, DAC_DISABLE_PIN) #endif #if PIN_EXISTS(DAC0_SYNC) REPORT_NAME_DIGITAL(__LINE__, DAC0_SYNC_PIN) #endif #if PIN_EXISTS(DAC1_SYNC) REPORT_NAME_DIGITAL(__LINE__, DAC1_SYNC_PIN) #endif #if _EXISTS(DIGIPOTS_I2C_SCL) REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SCL) #endif #if _EXISTS(DIGIPOTS_I2C_SDA_E0) REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E0) #endif #if _EXISTS(DIGIPOTS_I2C_SDA_E1) REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_E1) #endif #if _EXISTS(DIGIPOTS_I2C_SDA_X) REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_X) #endif #if _EXISTS(DIGIPOTS_I2C_SDA_Y) REPORT_NAME_DIGITAL(__LINE__, DIGIPOTS_I2C_SDA_Y) #endif #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 PIN_EXISTS(EXP1_01) REPORT_NAME_DIGITAL(__LINE__, EXP1_01_PIN) #endif #if PIN_EXISTS(EXP1_02) REPORT_NAME_DIGITAL(__LINE__, EXP1_02_PIN) #endif #if PIN_EXISTS(EXP1_03) REPORT_NAME_DIGITAL(__LINE__, EXP1_03_PIN) #endif #if PIN_EXISTS(EXP1_04) REPORT_NAME_DIGITAL(__LINE__, EXP1_04_PIN) #endif #if PIN_EXISTS(EXP1_05) REPORT_NAME_DIGITAL(__LINE__, EXP1_05_PIN) #endif #if PIN_EXISTS(EXP1_06) REPORT_NAME_DIGITAL(__LINE__, EXP1_06_PIN) #endif #if PIN_EXISTS(EXP1_07) REPORT_NAME_DIGITAL(__LINE__, EXP1_07_PIN) #endif #if PIN_EXISTS(EXP1_08) REPORT_NAME_DIGITAL(__LINE__, EXP1_08_PIN) #endif #if PIN_EXISTS(EXP1_09) REPORT_NAME_DIGITAL(__LINE__, EXP1_09_PIN) #endif #if PIN_EXISTS(EXP1_10) REPORT_NAME_DIGITAL(__LINE__, EXP1_10_PIN) #endif #if PIN_EXISTS(EXP2_01) REPORT_NAME_DIGITAL(__LINE__, EXP2_01_PIN) #endif #if PIN_EXISTS(EXP2_02) REPORT_NAME_DIGITAL(__LINE__, EXP2_02_PIN) #endif #if PIN_EXISTS(EXP2_03) REPORT_NAME_DIGITAL(__LINE__, EXP2_03_PIN) #endif #if PIN_EXISTS(EXP2_04) REPORT_NAME_DIGITAL(__LINE__, EXP2_04_PIN) #endif #if PIN_EXISTS(EXP2_05) REPORT_NAME_DIGITAL(__LINE__, EXP2_05_PIN) #endif #if PIN_EXISTS(EXP2_06) REPORT_NAME_DIGITAL(__LINE__, EXP2_06_PIN) #endif #if PIN_EXISTS(EXP2_07) REPORT_NAME_DIGITAL(__LINE__, EXP2_07_PIN) #endif #if PIN_EXISTS(EXP2_08) REPORT_NAME_DIGITAL(__LINE__, EXP2_08_PIN) #endif #if PIN_EXISTS(EXP2_09) REPORT_NAME_DIGITAL(__LINE__, EXP2_09_PIN) #endif #if PIN_EXISTS(EXP2_10) REPORT_NAME_DIGITAL(__LINE__, EXP2_10_PIN) #endif #if PIN_EXISTS(EXP3_01) REPORT_NAME_DIGITAL(__LINE__, EXP3_01_PIN) #endif #if PIN_EXISTS(EXP3_02) REPORT_NAME_DIGITAL(__LINE__, EXP3_02_PIN) #endif #if PIN_EXISTS(EXP3_03) REPORT_NAME_DIGITAL(__LINE__, EXP3_03_PIN) #endif #if PIN_EXISTS(EXP3_04) REPORT_NAME_DIGITAL(__LINE__, EXP3_04_PIN) #endif #if PIN_EXISTS(EXP3_05) REPORT_NAME_DIGITAL(__LINE__, EXP3_05_PIN) #endif #if PIN_EXISTS(EXP3_06) REPORT_NAME_DIGITAL(__LINE__, EXP3_06_PIN) #endif #if PIN_EXISTS(EXP3_07) REPORT_NAME_DIGITAL(__LINE__, EXP3_07_PIN) #endif #if PIN_EXISTS(EXP3_08) REPORT_NAME_DIGITAL(__LINE__, EXP3_08_PIN) #endif #if PIN_EXISTS(EXP3_09) REPORT_NAME_DIGITAL(__LINE__, EXP3_09_PIN) #endif #if PIN_EXISTS(EXP3_10) REPORT_NAME_DIGITAL(__LINE__, EXP3_10_PIN) #endif #if _EXISTS(TMC_SPI_MISO) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MISO) #endif #if _EXISTS(TMC_SPI_MOSI) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MOSI) #endif #if _EXISTS(TMC_SPI_SCK) REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_SCK) #endif #if _EXISTS(TFTGLCD_CS) REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS) #endif #if _EXISTS(TFTGLCD_SCK) REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_SCK) #endif #if _EXISTS(TFTGLCD_MISO) REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MISO) #endif #if _EXISTS(TFTGLCD_MOSI) REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MOSI) #endif // // E Multiplexing // #if PIN_EXISTS(E_MUX0) REPORT_NAME_DIGITAL(__LINE__, E_MUX0_PIN) #endif #if PIN_EXISTS(E_MUX1) REPORT_NAME_DIGITAL(__LINE__, E_MUX1_PIN) #endif #if PIN_EXISTS(E_MUX2) REPORT_NAME_DIGITAL(__LINE__, E_MUX2_PIN) #endif #if PIN_EXISTS(E0_DIR) REPORT_NAME_DIGITAL(__LINE__, E0_DIR_PIN) #endif #if PIN_EXISTS(E0_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E0_ENABLE_PIN) #endif #if PIN_EXISTS(E0_STEP) REPORT_NAME_DIGITAL(__LINE__, E0_STEP_PIN) #endif #if PIN_EXISTS(E1_DIR) REPORT_NAME_DIGITAL(__LINE__, E1_DIR_PIN) #endif #if PIN_EXISTS(E1_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E1_ENABLE_PIN) #endif #if PIN_EXISTS(E1_STEP) REPORT_NAME_DIGITAL(__LINE__, E1_STEP_PIN) #endif #if PIN_EXISTS(E2_DIR) REPORT_NAME_DIGITAL(__LINE__, E2_DIR_PIN) #endif #if PIN_EXISTS(E2_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E2_ENABLE_PIN) #endif #if PIN_EXISTS(E2_STEP) REPORT_NAME_DIGITAL(__LINE__, E2_STEP_PIN) #endif #if PIN_EXISTS(E3_DIR) REPORT_NAME_DIGITAL(__LINE__, E3_DIR_PIN) #endif #if PIN_EXISTS(E3_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E3_ENABLE_PIN) #endif #if PIN_EXISTS(E3_STEP) REPORT_NAME_DIGITAL(__LINE__, E3_STEP_PIN) #endif #if PIN_EXISTS(E4_DIR) REPORT_NAME_DIGITAL(__LINE__, E4_DIR_PIN) #endif #if PIN_EXISTS(E4_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E4_ENABLE_PIN) #endif #if PIN_EXISTS(E4_STEP) REPORT_NAME_DIGITAL(__LINE__, E4_STEP_PIN) #endif #if PIN_EXISTS(E5_DIR) REPORT_NAME_DIGITAL(__LINE__, E5_DIR_PIN) #endif #if PIN_EXISTS(E5_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E5_ENABLE_PIN) #endif #if PIN_EXISTS(E5_STEP) REPORT_NAME_DIGITAL(__LINE__, E5_STEP_PIN) #endif #if PIN_EXISTS(E6_DIR) REPORT_NAME_DIGITAL(__LINE__, E6_DIR_PIN) #endif #if PIN_EXISTS(E6_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E6_ENABLE_PIN) #endif #if PIN_EXISTS(E6_STEP) REPORT_NAME_DIGITAL(__LINE__, E6_STEP_PIN) #endif #if PIN_EXISTS(E7_DIR) REPORT_NAME_DIGITAL(__LINE__, E7_DIR_PIN) #endif #if PIN_EXISTS(E7_ENABLE) REPORT_NAME_DIGITAL(__LINE__, E7_ENABLE_PIN) #endif #if PIN_EXISTS(E7_STEP) REPORT_NAME_DIGITAL(__LINE__, E7_STEP_PIN) #endif // // Stepper Select // #if PIN_EXISTS(X_CS) REPORT_NAME_DIGITAL(__LINE__, X_CS_PIN) #endif #if PIN_EXISTS(X2_CS) REPORT_NAME_DIGITAL(__LINE__, X2_CS_PIN) #endif #if PIN_EXISTS(Y_CS) REPORT_NAME_DIGITAL(__LINE__, Y_CS_PIN) #endif #if PIN_EXISTS(Y2_CS) REPORT_NAME_DIGITAL(__LINE__, Y2_CS_PIN) #endif #if PIN_EXISTS(Z_CS) REPORT_NAME_DIGITAL(__LINE__, Z_CS_PIN) #endif #if PIN_EXISTS(Z2_CS) REPORT_NAME_DIGITAL(__LINE__, Z2_CS_PIN) #endif #if PIN_EXISTS(Z3_CS) REPORT_NAME_DIGITAL(__LINE__, Z3_CS_PIN) #endif #if PIN_EXISTS(Z4_CS) REPORT_NAME_DIGITAL(__LINE__, Z4_CS_PIN) #endif #if PIN_EXISTS(I_CS) REPORT_NAME_DIGITAL(__LINE__, I_CS_PIN) #endif #if PIN_EXISTS(J_CS) REPORT_NAME_DIGITAL(__LINE__, J_CS_PIN) #endif #if PIN_EXISTS(K_CS) REPORT_NAME_DIGITAL(__LINE__, K_CS_PIN) #endif #if PIN_EXISTS(U_CS) REPORT_NAME_DIGITAL(__LINE__, U_CS_PIN) #endif #if PIN_EXISTS(V_CS) REPORT_NAME_DIGITAL(__LINE__, V_CS_PIN) #endif #if PIN_EXISTS(W_CS) REPORT_NAME_DIGITAL(__LINE__, W_CS_PIN) #endif #if PIN_EXISTS(E0_CS) REPORT_NAME_DIGITAL(__LINE__, E0_CS_PIN) #endif #if PIN_EXISTS(E1_CS) REPORT_NAME_DIGITAL(__LINE__, E1_CS_PIN) #endif #if PIN_EXISTS(E2_CS) REPORT_NAME_DIGITAL(__LINE__, E2_CS_PIN) #endif #if PIN_EXISTS(E3_CS) REPORT_NAME_DIGITAL(__LINE__, E3_CS_PIN) #endif #if PIN_EXISTS(E4_CS) REPORT_NAME_DIGITAL(__LINE__, E4_CS_PIN) #endif #if PIN_EXISTS(E5_CS) REPORT_NAME_DIGITAL(__LINE__, E5_CS_PIN) #endif #if PIN_EXISTS(E6_CS) REPORT_NAME_DIGITAL(__LINE__, E6_CS_PIN) #endif #if PIN_EXISTS(E7_CS) REPORT_NAME_DIGITAL(__LINE__, E7_CS_PIN) #endif // // Ethernet // #if _EXISTS(ENET_CRS) REPORT_NAME_DIGITAL(__LINE__, ENET_CRS) #endif #if _EXISTS(ENET_MDIO) REPORT_NAME_DIGITAL(__LINE__, ENET_MDIO) #endif #if _EXISTS(ENET_MOC) REPORT_NAME_DIGITAL(__LINE__, ENET_MOC) #endif #if _EXISTS(ENET_RX_ER) REPORT_NAME_DIGITAL(__LINE__, ENET_RX_ER) #endif #if _EXISTS(ENET_RXD0) REPORT_NAME_DIGITAL(__LINE__, ENET_RXD0) #endif #if _EXISTS(ENET_RXD1) REPORT_NAME_DIGITAL(__LINE__, ENET_RXD1) #endif #if _EXISTS(ENET_TX_EN) REPORT_NAME_DIGITAL(__LINE__, ENET_TX_EN) #endif #if _EXISTS(ENET_TXD0) REPORT_NAME_DIGITAL(__LINE__, ENET_TXD0) #endif #if _EXISTS(ENET_TXD1) REPORT_NAME_DIGITAL(__LINE__, ENET_TXD1) #endif #if _EXISTS(REF_CLK) REPORT_NAME_DIGITAL(__LINE__, REF_CLK) #endif #if PIN_EXISTS(EXP_VOLTAGE_LEVEL) REPORT_NAME_DIGITAL(__LINE__, EXP_VOLTAGE_LEVEL_PIN) #endif #if _EXISTS(EXT_AUX_A0_IO) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A0_IO) #endif #if _EXISTS(EXT_AUX_A1_IO) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A1_IO) #endif #if _EXISTS(EXT_AUX_A2_IO) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A2_IO) #endif #if _EXISTS(EXT_AUX_A3_IO) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A3_IO) #endif #if _EXISTS(EXT_AUX_A4_IO) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_A4_IO) #endif #if _EXISTS(EXT_AUX_PWM_D24) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_PWM_D24) #endif #if _EXISTS(EXT_AUX_RX1_D2) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_RX1_D2) #endif #if _EXISTS(EXT_AUX_SCL_D0) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SCL_D0) #endif #if _EXISTS(EXT_AUX_SDA_D1) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_SDA_D1) #endif #if _EXISTS(EXT_AUX_TX1_D3) REPORT_NAME_DIGITAL(__LINE__, EXT_AUX_TX1_D3) #endif // // Fans // #if PIN_EXISTS(FAN0) REPORT_NAME_DIGITAL(__LINE__, FAN0_PIN) #endif #if PIN_EXISTS(FAN1) REPORT_NAME_DIGITAL(__LINE__, FAN1_PIN) #endif #if PIN_EXISTS(FAN2) REPORT_NAME_DIGITAL(__LINE__, FAN2_PIN) #endif #if PIN_EXISTS(FAN3) REPORT_NAME_DIGITAL(__LINE__, FAN3_PIN) #endif #if PIN_EXISTS(FAN4) REPORT_NAME_DIGITAL(__LINE__, FAN4_PIN) #endif #if PIN_EXISTS(FAN5) REPORT_NAME_DIGITAL(__LINE__, FAN5_PIN) #endif #if PIN_EXISTS(FAN6) REPORT_NAME_DIGITAL(__LINE__, FAN6_PIN) #endif #if PIN_EXISTS(FAN7) REPORT_NAME_DIGITAL(__LINE__, FAN7_PIN) #endif #if PIN_EXISTS(FAN_MUX0) REPORT_NAME_DIGITAL(__LINE__, FAN_MUX0_PIN) #endif #if PIN_EXISTS(FAN_MUX1) REPORT_NAME_DIGITAL(__LINE__, FAN_MUX1_PIN) #endif #if PIN_EXISTS(FAN_MUX2) REPORT_NAME_DIGITAL(__LINE__, FAN_MUX2_PIN) #endif #if PIN_EXISTS(E0_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E0_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E1_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E1_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E2_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E2_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E3_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E3_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E4_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E4_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E5_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E5_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E6_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E6_AUTO_FAN_PIN) #endif #if PIN_EXISTS(E7_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, E7_AUTO_FAN_PIN) #endif #if PIN_EXISTS(CHAMBER_AUTO_FAN) REPORT_NAME_DIGITAL(__LINE__, CHAMBER_AUTO_FAN_PIN) #endif #if PIN_EXISTS(CONTROLLER_FAN) REPORT_NAME_DIGITAL(__LINE__, CONTROLLER_FAN_PIN) #endif // // Filament Runout Sensor // #if PIN_EXISTS(FIL_RUNOUT) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT2) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT2_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT3) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT3_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT4) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT4_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT5) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT5_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT6) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT6_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT7) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT7_PIN) #endif #if PIN_EXISTS(FIL_RUNOUT8) REPORT_NAME_DIGITAL(__LINE__, FIL_RUNOUT8_PIN) #endif // // Heaters // #if PIN_EXISTS(HEATER_0) REPORT_NAME_DIGITAL(__LINE__, HEATER_0_PIN) #endif #if PIN_EXISTS(HEATER_1) REPORT_NAME_DIGITAL(__LINE__, HEATER_1_PIN) #endif #if PIN_EXISTS(HEATER_2) REPORT_NAME_DIGITAL(__LINE__, HEATER_2_PIN) #endif #if PIN_EXISTS(HEATER_3) REPORT_NAME_DIGITAL(__LINE__, HEATER_3_PIN) #endif #if PIN_EXISTS(HEATER_4) REPORT_NAME_DIGITAL(__LINE__, HEATER_4_PIN) #endif #if PIN_EXISTS(HEATER_5) REPORT_NAME_DIGITAL(__LINE__, HEATER_5_PIN) #endif #if PIN_EXISTS(HEATER_6) REPORT_NAME_DIGITAL(__LINE__, HEATER_6_PIN) #endif #if PIN_EXISTS(HEATER_7) REPORT_NAME_DIGITAL(__LINE__, HEATER_7_PIN) #endif #if PIN_EXISTS(HEATER_BED) REPORT_NAME_DIGITAL(__LINE__, HEATER_BED_PIN) #endif #if PIN_EXISTS(HEATER_CHAMBER) REPORT_NAME_DIGITAL(__LINE__, HEATER_CHAMBER_PIN) #endif #if PIN_EXISTS(COOLER) REPORT_NAME_DIGITAL(__LINE__, COOLER_PIN) #endif #if PIN_EXISTS(HOME) REPORT_NAME_DIGITAL(__LINE__, HOME_PIN) #endif #if HAS_KILL REPORT_NAME_DIGITAL(__LINE__, KILL_PIN) #endif #if PIN_EXISTS(FREEZE) REPORT_NAME_DIGITAL(__LINE__, FREEZE_PIN) #endif #if PIN_EXISTS(DEBUG) REPORT_NAME_DIGITAL(__LINE__, DEBUG_PIN) #endif #if PIN_EXISTS(SUICIDE) REPORT_NAME_DIGITAL(__LINE__, SUICIDE_PIN) #endif #if PIN_EXISTS(FET_SAFETY) REPORT_NAME_DIGITAL(__LINE__, FET_SAFETY_PIN) #endif #if PIN_EXISTS(SAFETY_TRIGGERED) REPORT_NAME_DIGITAL(__LINE__, SAFETY_TRIGGERED_PIN) #endif #if PIN_EXISTS(SAFE_POWER) REPORT_NAME_DIGITAL(__LINE__, SAFE_POWER_PIN) #endif #if PIN_EXISTS(OUTAGECON) REPORT_NAME_DIGITAL(__LINE__, OUTAGECON_PIN) #endif #if PIN_EXISTS(POWER_LOSS) REPORT_NAME_DIGITAL(__LINE__, POWER_LOSS_PIN) #endif #if PIN_EXISTS(PS_ON) REPORT_NAME_DIGITAL(__LINE__, PS_ON_PIN) #endif #if PIN_EXISTS(PS_ON1) REPORT_NAME_DIGITAL(__LINE__, PS_ON1_PIN) #endif // // LCD // #if _EXISTS(DOGLCD_A0) REPORT_NAME_DIGITAL(__LINE__, DOGLCD_A0) #endif #if _EXISTS(DOGLCD_CS) REPORT_NAME_DIGITAL(__LINE__, DOGLCD_CS) #endif #if _EXISTS(DOGLCD_MOSI) REPORT_NAME_DIGITAL(__LINE__, DOGLCD_MOSI) #endif #if _EXISTS(DOGLCD_SCK) REPORT_NAME_DIGITAL(__LINE__, DOGLCD_SCK) #endif #if _EXISTS(LCD_PINS_D4) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D4) #endif #if _EXISTS(LCD_PINS_D5) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D5) #endif #if _EXISTS(LCD_PINS_D6) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D6) #endif #if _EXISTS(LCD_PINS_D7) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D7) #endif #if _EXISTS(LCD_PINS_EN) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_EN) #endif #if _EXISTS(LCD_PINS_RS) REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_RS) #endif #if _EXISTS(LCD_SDSS) REPORT_NAME_DIGITAL(__LINE__, LCD_SDSS) #endif #if PIN_EXISTS(LCD_RESET) REPORT_NAME_DIGITAL(__LINE__, LCD_RESET_PIN) #endif #if PIN_EXISTS(LCD_BACKLIGHT) REPORT_NAME_DIGITAL(__LINE__, LCD_BACKLIGHT_PIN) #endif // // LED Lights // #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_GREEN) REPORT_NAME_DIGITAL(__LINE__, LED_GREEN_PIN) #endif #if PIN_EXISTS(LED_RED) REPORT_NAME_DIGITAL(__LINE__, LED_RED_PIN) #endif #if PIN_EXISTS(STAT_LED_BLUE) REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN) #endif #if PIN_EXISTS(STAT_LED_RED) REPORT_NAME_DIGITAL(__LINE__, STAT_LED_RED_PIN) #endif #if PIN_EXISTS(RGB_LED_R) REPORT_NAME_DIGITAL(__LINE__, RGB_LED_R_PIN) #endif #if PIN_EXISTS(RGB_LED_G) REPORT_NAME_DIGITAL(__LINE__, RGB_LED_G_PIN) #endif #if PIN_EXISTS(RGB_LED_B) REPORT_NAME_DIGITAL(__LINE__, RGB_LED_B_PIN) #endif #if PIN_EXISTS(RGB_LED_W) REPORT_NAME_DIGITAL(__LINE__, RGB_LED_W_PIN) #endif #if PIN_EXISTS(NEOPIXEL) REPORT_NAME_DIGITAL(__LINE__, NEOPIXEL_PIN) #endif #if PIN_EXISTS(NEOPIXEL2) REPORT_NAME_DIGITAL(__LINE__, NEOPIXEL2_PIN) #endif // // MAX7219 LED Matrix // #if PIN_EXISTS(MAX7219_CLK) REPORT_NAME_DIGITAL(__LINE__, MAX7219_CLK_PIN) #endif #if PIN_EXISTS(MAX7219_DIN) REPORT_NAME_DIGITAL(__LINE__, MAX7219_DIN_PIN) #endif #if PIN_EXISTS(MAX7219_LOAD) REPORT_NAME_DIGITAL(__LINE__, MAX7219_LOAD_PIN) #endif #if PIN_EXISTS(TEMP_0_CS) REPORT_NAME_DIGITAL(__LINE__, TEMP_0_CS_PIN) #endif #if PIN_EXISTS(TEMP_0_SCK) REPORT_NAME_DIGITAL(__LINE__, TEMP_0_SCK_PIN) #endif #if PIN_EXISTS(TEMP_0_MOSI) REPORT_NAME_DIGITAL(__LINE__, TEMP_0_MOSI_PIN) #endif #if PIN_EXISTS(TEMP_0_MISO) REPORT_NAME_DIGITAL(__LINE__, TEMP_0_MISO_PIN) #endif #if PIN_EXISTS(TEMP_1_CS) REPORT_NAME_DIGITAL(__LINE__, TEMP_1_CS_PIN) #endif #if PIN_EXISTS(TEMP_1_SCK) REPORT_NAME_DIGITAL(__LINE__, TEMP_1_SCK_PIN) #endif #if PIN_EXISTS(TEMP_1_MOSI) REPORT_NAME_DIGITAL(__LINE__, TEMP_1_MOSI_PIN) #endif #if PIN_EXISTS(TEMP_1_MISO) REPORT_NAME_DIGITAL(__LINE__, TEMP_1_MISO_PIN) #endif // // MOSFETs (RAMPS) // #if PIN_EXISTS(MOSFET_A) REPORT_NAME_DIGITAL(__LINE__, MOSFET_A_PIN) #endif #if PIN_EXISTS(MOSFET_B) REPORT_NAME_DIGITAL(__LINE__, MOSFET_B_PIN) #endif #if PIN_EXISTS(MOSFET_C) REPORT_NAME_DIGITAL(__LINE__, MOSFET_C_PIN) #endif #if PIN_EXISTS(MOSFET_D) REPORT_NAME_DIGITAL(__LINE__, MOSFET_D_PIN) #endif // // I2C // //#if _EXISTS(SCL) // REPORT_NAME_DIGITAL(__LINE__, SCL) //#endif #if PIN_EXISTS(I2C_SCL) REPORT_NAME_DIGITAL(__LINE__, I2C_SCL_PIN) #endif //#if _EXISTS(SDA) // REPORT_NAME_DIGITAL(__LINE__, SDA) //#endif #if PIN_EXISTS(I2C_SDA) REPORT_NAME_DIGITAL(__LINE__, I2C_SDA_PIN) #endif // // SPI / SD Card // //#if _EXISTS(MISO) // REPORT_NAME_DIGITAL(__LINE__, MISO) //#endif #if PIN_EXISTS(SD_MISO) REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN) #endif //#if _EXISTS(MOSI) // REPORT_NAME_DIGITAL(__LINE__, MOSI) //#endif #if PIN_EXISTS(SD_MOSI) REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN) #endif //#if _EXISTS(SCK) // REPORT_NAME_DIGITAL(__LINE__, SCK) //#endif #if PIN_EXISTS(SD_SCK) REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN) #endif #if _EXISTS(SDSS) REPORT_NAME_DIGITAL(__LINE__, SDSS) #endif #if PIN_EXISTS(SD_SS) REPORT_NAME_DIGITAL(__LINE__, SD_SS_PIN) #endif #if PIN_EXISTS(SD_DETECT) REPORT_NAME_DIGITAL(__LINE__, SD_DETECT_PIN) #endif #if PIN_EXISTS(SDPOWER) REPORT_NAME_DIGITAL(__LINE__, SDPOWER_PIN) #endif // // Motor Current PWM // #if PIN_EXISTS(MOTOR_CURRENT_PWM_X) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_X_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_Y) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_Y_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_XY) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_XY_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_Z) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_Z_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_I) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_I_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_J) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_J_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_K) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_K_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_U) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_U_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_V) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_V_PIN) #endif #if PIN_EXISTS(MOTOR_CURRENT_PWM_W) REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_W_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_FAULT) REPORT_NAME_DIGITAL(__LINE__, MOTOR_FAULT_PIN) #endif #if PIN_EXISTS(SLED) REPORT_NAME_DIGITAL(__LINE__, SLED_PIN) #endif // // Camera // #if PIN_EXISTS(CHDK) REPORT_NAME_DIGITAL(__LINE__, CHDK_PIN) #endif #if PIN_EXISTS(PHOTOGRAPH) REPORT_NAME_DIGITAL(__LINE__, PHOTOGRAPH_PIN) #endif #if PIN_EXISTS(PWM_1) REPORT_NAME_DIGITAL(__LINE__, PWM_1_PIN) #endif #if PIN_EXISTS(PWM_2) REPORT_NAME_DIGITAL(__LINE__, PWM_2_PIN) #endif // // Serial UART // #if PIN_EXISTS(RX_ENABLE) REPORT_NAME_DIGITAL(__LINE__, RX_ENABLE_PIN) #endif #if PIN_EXISTS(TX_ENABLE) REPORT_NAME_DIGITAL(__LINE__, TX_ENABLE_PIN) #endif //#if _EXISTS(SERVO0) // REPORT_NAME_DIGITAL(__LINE__, SERVO0) //#endif #if PIN_EXISTS(SERVO0) REPORT_NAME_DIGITAL(__LINE__, SERVO0_PIN) #endif #if PIN_EXISTS(SERVO1) REPORT_NAME_DIGITAL(__LINE__, SERVO1_PIN) #endif #if PIN_EXISTS(SERVO2) REPORT_NAME_DIGITAL(__LINE__, SERVO2_PIN) #endif #if PIN_EXISTS(SERVO3) REPORT_NAME_DIGITAL(__LINE__, SERVO3_PIN) #endif #if PIN_EXISTS(SHIFT_CLK) REPORT_NAME_DIGITAL(__LINE__, SHIFT_CLK_PIN) #endif #if PIN_EXISTS(SHIFT_EN) REPORT_NAME_DIGITAL(__LINE__, SHIFT_EN_PIN) #endif #if PIN_EXISTS(SHIFT_LD) REPORT_NAME_DIGITAL(__LINE__, SHIFT_LD_PIN) #endif #if PIN_EXISTS(SHIFT_OUT) REPORT_NAME_DIGITAL(__LINE__, SHIFT_OUT_PIN) #endif #if PIN_EXISTS(SLEEP_WAKE) REPORT_NAME_DIGITAL(__LINE__, SLEEP_WAKE_PIN) #endif #if PIN_EXISTS(SOL0) REPORT_NAME_DIGITAL(__LINE__, SOL0_PIN) #endif #if PIN_EXISTS(SOL1) REPORT_NAME_DIGITAL(__LINE__, SOL1_PIN) #endif #if PIN_EXISTS(SOL2) REPORT_NAME_DIGITAL(__LINE__, SOL2_PIN) #endif #if PIN_EXISTS(SOL3) REPORT_NAME_DIGITAL(__LINE__, SOL3_PIN) #endif #if PIN_EXISTS(SOL4) REPORT_NAME_DIGITAL(__LINE__, SOL4_PIN) #endif #if PIN_EXISTS(SOL5) REPORT_NAME_DIGITAL(__LINE__, SOL5_PIN) #endif #if PIN_EXISTS(SOL6) REPORT_NAME_DIGITAL(__LINE__, SOL6_PIN) #endif #if PIN_EXISTS(SOL7) REPORT_NAME_DIGITAL(__LINE__, SOL7_PIN) #endif #if _EXISTS(SPARE_IO) REPORT_NAME_DIGITAL(__LINE__, SPARE_IO) #endif #if PIN_EXISTS(SPI_EEPROM1_CS) REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM1_CS_PIN) #endif #if PIN_EXISTS(SPI_EEPROM2_CS) REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM2_CS_PIN) #endif #if PIN_EXISTS(SPI_FLASH_CS) REPORT_NAME_DIGITAL(__LINE__, SPI_FLASH_CS_PIN) #endif #if PIN_EXISTS(SPINDLE_DIR) REPORT_NAME_DIGITAL(__LINE__, SPINDLE_DIR_PIN) #endif #if PIN_EXISTS(SPINDLE_ENABLE) REPORT_NAME_DIGITAL(__LINE__, SPINDLE_ENABLE_PIN) #endif #if PIN_EXISTS(SPINDLE_LASER_ENA) REPORT_NAME_DIGITAL(__LINE__, SPINDLE_LASER_ENA_PIN) #endif #if PIN_EXISTS(SPINDLE_LASER_PWM) REPORT_NAME_DIGITAL(__LINE__, SPINDLE_LASER_PWM_PIN) #endif #if PIN_EXISTS(SR_CLK) REPORT_NAME_DIGITAL(__LINE__, SR_CLK_PIN) #endif #if PIN_EXISTS(SR_DATA) REPORT_NAME_DIGITAL(__LINE__, SR_DATA_PIN) #endif #if PIN_EXISTS(SR_STROBE) REPORT_NAME_DIGITAL(__LINE__, SR_STROBE_PIN) #endif #if PIN_EXISTS(STEPPER_RESET) REPORT_NAME_DIGITAL(__LINE__, STEPPER_RESET_PIN) #endif #if PIN_EXISTS(TLC_BLANK) REPORT_NAME_DIGITAL(__LINE__, TLC_BLANK_PIN) #endif #if PIN_EXISTS(TLC_CLOCK) REPORT_NAME_DIGITAL(__LINE__, TLC_CLOCK_PIN) #endif #if PIN_EXISTS(TLC_DATA) REPORT_NAME_DIGITAL(__LINE__, TLC_DATA_PIN) #endif #if PIN_EXISTS(TLC_XLAT) REPORT_NAME_DIGITAL(__LINE__, TLC_XLAT_PIN) #endif // // Generic Tool / PWM // #if PIN_EXISTS(TOOL_PWM) REPORT_NAME_DIGITAL(__LINE__, TOOL_PWM_PIN) #endif #if PIN_EXISTS(TOOL_0) REPORT_NAME_DIGITAL(__LINE__, TOOL_0_PIN) #endif #if PIN_EXISTS(TOOL_0_PWM) REPORT_NAME_DIGITAL(__LINE__, TOOL_0_PWM_PIN) #endif #if PIN_EXISTS(TOOL_1) REPORT_NAME_DIGITAL(__LINE__, TOOL_1_PIN) #endif #if PIN_EXISTS(TOOL_1_PWM) REPORT_NAME_DIGITAL(__LINE__, TOOL_1_PWM_PIN) #endif #if PIN_EXISTS(TOOL_2) REPORT_NAME_DIGITAL(__LINE__, TOOL_2_PIN) #endif #if PIN_EXISTS(TOOL_2_PWM) REPORT_NAME_DIGITAL(__LINE__, TOOL_2_PWM_PIN) #endif #if PIN_EXISTS(TOOL_3) REPORT_NAME_DIGITAL(__LINE__, TOOL_3_PIN) #endif #if PIN_EXISTS(TOOL_3_PWM) REPORT_NAME_DIGITAL(__LINE__, TOOL_3_PWM_PIN) #endif // // Tool Sensors // #if PIN_EXISTS(TOOL_SENSOR1) REPORT_NAME_DIGITAL(__LINE__, TOOL_SENSOR1_PIN) #endif #if PIN_EXISTS(TOOL_SENSOR2) REPORT_NAME_DIGITAL(__LINE__, TOOL_SENSOR2_PIN) #endif #if PIN_EXISTS(TOOL_SENSOR3) REPORT_NAME_DIGITAL(__LINE__, TOOL_SENSOR3_PIN) #endif // // UI // #if _EXISTS(UI1) REPORT_NAME_DIGITAL(__LINE__, UI1) #endif #if _EXISTS(UI2) REPORT_NAME_DIGITAL(__LINE__, UI2) #endif // // Limit Switches // #if PIN_EXISTS(X_MAX) REPORT_NAME_DIGITAL(__LINE__, X_MAX_PIN) #endif #if PIN_EXISTS(X_MIN) REPORT_NAME_DIGITAL(__LINE__, X_MIN_PIN) #endif #if PIN_EXISTS(X_STOP) REPORT_NAME_DIGITAL(__LINE__, X_STOP_PIN) #endif #if PIN_EXISTS(X2_MAX) REPORT_NAME_DIGITAL(__LINE__, X2_MAX_PIN) #endif #if PIN_EXISTS(X2_MIN) REPORT_NAME_DIGITAL(__LINE__, X2_MIN_PIN) #endif #if PIN_EXISTS(X2_STOP) REPORT_NAME_DIGITAL(__LINE__, X2_STOP_PIN) #endif #if PIN_EXISTS(Y_MAX) REPORT_NAME_DIGITAL(__LINE__, Y_MAX_PIN) #endif #if PIN_EXISTS(Y_MIN) REPORT_NAME_DIGITAL(__LINE__, Y_MIN_PIN) #endif #if PIN_EXISTS(Y_STOP) REPORT_NAME_DIGITAL(__LINE__, Y_STOP_PIN) #endif #if PIN_EXISTS(Y2_MAX) REPORT_NAME_DIGITAL(__LINE__, Y2_MAX_PIN) #endif #if PIN_EXISTS(Y2_MIN) REPORT_NAME_DIGITAL(__LINE__, Y2_MIN_PIN) #endif #if PIN_EXISTS(Y2_STOP) REPORT_NAME_DIGITAL(__LINE__, Y2_STOP_PIN) #endif #if PIN_EXISTS(Z_MAX) REPORT_NAME_DIGITAL(__LINE__, Z_MAX_PIN) #endif #if PIN_EXISTS(Z_MIN) REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PIN) #endif #if PIN_EXISTS(Z_STOP) REPORT_NAME_DIGITAL(__LINE__, Z_STOP_PIN) #endif #if PIN_EXISTS(Z2_MAX) REPORT_NAME_DIGITAL(__LINE__, Z2_MAX_PIN) #endif #if PIN_EXISTS(Z2_MIN) REPORT_NAME_DIGITAL(__LINE__, Z2_MIN_PIN) #endif #if PIN_EXISTS(Z2_STOP) REPORT_NAME_DIGITAL(__LINE__, Z2_STOP_PIN) #endif #if PIN_EXISTS(Z3_MAX) REPORT_NAME_DIGITAL(__LINE__, Z3_MAX_PIN) #endif #if PIN_EXISTS(Z3_MIN) REPORT_NAME_DIGITAL(__LINE__, Z3_MIN_PIN) #endif #if PIN_EXISTS(Z3_STOP) REPORT_NAME_DIGITAL(__LINE__, Z3_STOP_PIN) #endif #if PIN_EXISTS(Z4_MAX) REPORT_NAME_DIGITAL(__LINE__, Z4_MAX_PIN) #endif #if PIN_EXISTS(Z4_MIN) REPORT_NAME_DIGITAL(__LINE__, Z4_MIN_PIN) #endif #if PIN_EXISTS(Z4_STOP) REPORT_NAME_DIGITAL(__LINE__, Z4_STOP_PIN) #endif #if PIN_EXISTS(I_MAX) REPORT_NAME_DIGITAL(__LINE__, I_MAX_PIN) #endif #if PIN_EXISTS(I_MIN) REPORT_NAME_DIGITAL(__LINE__, I_MIN_PIN) #endif #if PIN_EXISTS(I_STOP) REPORT_NAME_DIGITAL(__LINE__, I_STOP_PIN) #endif #if PIN_EXISTS(J_MAX) REPORT_NAME_DIGITAL(__LINE__, J_MAX_PIN) #endif #if PIN_EXISTS(J_MIN) REPORT_NAME_DIGITAL(__LINE__, J_MIN_PIN) #endif #if PIN_EXISTS(J_STOP) REPORT_NAME_DIGITAL(__LINE__, J_STOP_PIN) #endif #if PIN_EXISTS(K_MAX) REPORT_NAME_DIGITAL(__LINE__, K_MAX_PIN) #endif #if PIN_EXISTS(K_MIN) REPORT_NAME_DIGITAL(__LINE__, K_MIN_PIN) #endif #if PIN_EXISTS(K_STOP) REPORT_NAME_DIGITAL(__LINE__, K_STOP_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_STOP) REPORT_NAME_DIGITAL(__LINE__, U_STOP_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_STOP) REPORT_NAME_DIGITAL(__LINE__, V_STOP_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_STOP) REPORT_NAME_DIGITAL(__LINE__, W_STOP_PIN) #endif #if PIN_EXISTS(E_STOP) REPORT_NAME_DIGITAL(__LINE__, E_STOP_PIN) #endif // // TMC Diagnostic - Sensorless Endstops // #if PIN_EXISTS(X_DIAG) REPORT_NAME_DIGITAL(__LINE__, X_DIAG_PIN) #endif #if PIN_EXISTS(X2_DIAG) REPORT_NAME_DIGITAL(__LINE__, X2_DIAG_PIN) #endif #if PIN_EXISTS(Y_DIAG) REPORT_NAME_DIGITAL(__LINE__, Y_DIAG_PIN) #endif #if PIN_EXISTS(Y2_DIAG) REPORT_NAME_DIGITAL(__LINE__, Y2_DIAG_PIN) #endif #if PIN_EXISTS(Z_DIAG) REPORT_NAME_DIGITAL(__LINE__, Z_DIAG_PIN) #endif #if PIN_EXISTS(Z2_DIAG) REPORT_NAME_DIGITAL(__LINE__, Z2_DIAG_PIN) #endif #if PIN_EXISTS(Z3_DIAG) REPORT_NAME_DIGITAL(__LINE__, Z3_DIAG_PIN) #endif #if PIN_EXISTS(Z4_DIAG) REPORT_NAME_DIGITAL(__LINE__, Z4_DIAG_PIN) #endif #if PIN_EXISTS(I_DIAG) REPORT_NAME_DIGITAL(__LINE__, I_DIAG_PIN) #endif #if PIN_EXISTS(J_DIAG) REPORT_NAME_DIGITAL(__LINE__, J_DIAG_PIN) #endif #if PIN_EXISTS(K_DIAG) REPORT_NAME_DIGITAL(__LINE__, K_DIAG_PIN) #endif #if PIN_EXISTS(U_DIAG) REPORT_NAME_DIGITAL(__LINE__, U_DIAG_PIN) #endif #if PIN_EXISTS(V_DIAG) REPORT_NAME_DIGITAL(__LINE__, V_DIAG_PIN) #endif #if PIN_EXISTS(W_DIAG) REPORT_NAME_DIGITAL(__LINE__, W_DIAG_PIN) #endif #if PIN_EXISTS(E0_DIAG) REPORT_NAME_DIGITAL(__LINE__, E0_DIAG_PIN) #endif #if PIN_EXISTS(E1_DIAG) REPORT_NAME_DIGITAL(__LINE__, E1_DIAG_PIN) #endif #if PIN_EXISTS(E2_DIAG) REPORT_NAME_DIGITAL(__LINE__, E2_DIAG_PIN) #endif #if PIN_EXISTS(E3_DIAG) REPORT_NAME_DIGITAL(__LINE__, E3_DIAG_PIN) #endif #if PIN_EXISTS(E4_DIAG) REPORT_NAME_DIGITAL(__LINE__, E4_DIAG_PIN) #endif #if PIN_EXISTS(E5_DIAG) REPORT_NAME_DIGITAL(__LINE__, E5_DIAG_PIN) #endif #if PIN_EXISTS(E6_DIAG) REPORT_NAME_DIGITAL(__LINE__, E6_DIAG_PIN) #endif #if PIN_EXISTS(E7_DIAG) REPORT_NAME_DIGITAL(__LINE__, E7_DIAG_PIN) #endif // // Probes // #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 // // Stepper Drivers // #if PIN_EXISTS(X_DIR) REPORT_NAME_DIGITAL(__LINE__, X_DIR_PIN) #endif #if PIN_EXISTS(X_ENABLE) REPORT_NAME_DIGITAL(__LINE__, X_ENABLE_PIN) #endif #if PIN_EXISTS(X_STEP) REPORT_NAME_DIGITAL(__LINE__, X_STEP_PIN) #endif #if PIN_EXISTS(X2_DIR) REPORT_NAME_DIGITAL(__LINE__, X2_DIR_PIN) #endif #if PIN_EXISTS(X2_ENABLE) REPORT_NAME_DIGITAL(__LINE__, X2_ENABLE_PIN) #endif #if PIN_EXISTS(X2_STEP) REPORT_NAME_DIGITAL(__LINE__, X2_STEP_PIN) #endif #if PIN_EXISTS(Y_DIR) REPORT_NAME_DIGITAL(__LINE__, Y_DIR_PIN) #endif #if PIN_EXISTS(Y_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Y_ENABLE_PIN) #endif #if PIN_EXISTS(Y_STEP) REPORT_NAME_DIGITAL(__LINE__, Y_STEP_PIN) #endif #if PIN_EXISTS(Y2_DIR) REPORT_NAME_DIGITAL(__LINE__, Y2_DIR_PIN) #endif #if PIN_EXISTS(Y2_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Y2_ENABLE_PIN) #endif #if PIN_EXISTS(Y2_STEP) REPORT_NAME_DIGITAL(__LINE__, Y2_STEP_PIN) #endif #if PIN_EXISTS(Z_DIR) REPORT_NAME_DIGITAL(__LINE__, Z_DIR_PIN) #endif #if PIN_EXISTS(Z_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Z_ENABLE_PIN) #endif #if PIN_EXISTS(Z_STEP) REPORT_NAME_DIGITAL(__LINE__, Z_STEP_PIN) #endif #if PIN_EXISTS(Z2_DIR) REPORT_NAME_DIGITAL(__LINE__, Z2_DIR_PIN) #endif #if PIN_EXISTS(Z2_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Z2_ENABLE_PIN) #endif #if PIN_EXISTS(Z2_STEP) REPORT_NAME_DIGITAL(__LINE__, Z2_STEP_PIN) #endif #if PIN_EXISTS(Z3_DIR) REPORT_NAME_DIGITAL(__LINE__, Z3_DIR_PIN) #endif #if PIN_EXISTS(Z3_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Z3_ENABLE_PIN) #endif #if PIN_EXISTS(Z3_STEP) REPORT_NAME_DIGITAL(__LINE__, Z3_STEP_PIN) #endif #if PIN_EXISTS(Z4_DIR) REPORT_NAME_DIGITAL(__LINE__, Z4_DIR_PIN) #endif #if PIN_EXISTS(Z4_ENABLE) REPORT_NAME_DIGITAL(__LINE__, Z4_ENABLE_PIN) #endif #if PIN_EXISTS(Z4_STEP) REPORT_NAME_DIGITAL(__LINE__, Z4_STEP_PIN) #endif #if PIN_EXISTS(I_DIR) REPORT_NAME_DIGITAL(__LINE__, I_DIR_PIN) #endif #if PIN_EXISTS(I_ENABLE) REPORT_NAME_DIGITAL(__LINE__, I_ENABLE_PIN) #endif #if PIN_EXISTS(I_STEP) REPORT_NAME_DIGITAL(__LINE__, I_STEP_PIN) #endif #if PIN_EXISTS(J_DIR) REPORT_NAME_DIGITAL(__LINE__, J_DIR_PIN) #endif #if PIN_EXISTS(J_ENABLE) REPORT_NAME_DIGITAL(__LINE__, J_ENABLE_PIN) #endif #if PIN_EXISTS(J_STEP) REPORT_NAME_DIGITAL(__LINE__, J_STEP_PIN) #endif #if PIN_EXISTS(K_DIR) REPORT_NAME_DIGITAL(__LINE__, K_DIR_PIN) #endif #if PIN_EXISTS(K_ENABLE) REPORT_NAME_DIGITAL(__LINE__, K_ENABLE_PIN) #endif #if PIN_EXISTS(K_STEP) REPORT_NAME_DIGITAL(__LINE__, K_STEP_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_STEP) REPORT_NAME_DIGITAL(__LINE__, U_STEP_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_STEP) REPORT_NAME_DIGITAL(__LINE__, V_STEP_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_STEP) REPORT_NAME_DIGITAL(__LINE__, W_STEP_PIN) #endif // // Digital Micro-steps // #if PIN_EXISTS(X_MS1) REPORT_NAME_DIGITAL(__LINE__, X_MS1_PIN) #endif #if PIN_EXISTS(X_MS2) REPORT_NAME_DIGITAL(__LINE__, X_MS2_PIN) #endif #if PIN_EXISTS(X_MS3) REPORT_NAME_DIGITAL(__LINE__, X_MS3_PIN) #endif #if PIN_EXISTS(X2_MS1) REPORT_NAME_DIGITAL(__LINE__, X2_MS1_PIN) #endif #if PIN_EXISTS(X2_MS2) REPORT_NAME_DIGITAL(__LINE__, X2_MS2_PIN) #endif #if PIN_EXISTS(X2_MS3) REPORT_NAME_DIGITAL(__LINE__, X2_MS3_PIN) #endif #if PIN_EXISTS(Y_MS1) REPORT_NAME_DIGITAL(__LINE__, Y_MS1_PIN) #endif #if PIN_EXISTS(Y_MS2) REPORT_NAME_DIGITAL(__LINE__, Y_MS2_PIN) #endif #if PIN_EXISTS(Y_MS3) REPORT_NAME_DIGITAL(__LINE__, Y_MS3_PIN) #endif #if PIN_EXISTS(Y2_MS1) REPORT_NAME_DIGITAL(__LINE__, Y2_MS1_PIN) #endif #if PIN_EXISTS(Y2_MS2) REPORT_NAME_DIGITAL(__LINE__, Y2_MS2_PIN) #endif #if PIN_EXISTS(Y2_MS3) REPORT_NAME_DIGITAL(__LINE__, Y2_MS3_PIN) #endif #if PIN_EXISTS(Z_MS1) REPORT_NAME_DIGITAL(__LINE__, Z_MS1_PIN) #endif #if PIN_EXISTS(Z_MS2) REPORT_NAME_DIGITAL(__LINE__, Z_MS2_PIN) #endif #if PIN_EXISTS(Z_MS3) REPORT_NAME_DIGITAL(__LINE__, Z_MS3_PIN) #endif #if PIN_EXISTS(Z2_MS1) REPORT_NAME_DIGITAL(__LINE__, Z2_MS1_PIN) #endif #if PIN_EXISTS(Z2_MS2) REPORT_NAME_DIGITAL(__LINE__, Z2_MS2_PIN) #endif #if PIN_EXISTS(Z2_MS3) REPORT_NAME_DIGITAL(__LINE__, Z2_MS3_PIN) #endif #if PIN_EXISTS(Z3_MS1) REPORT_NAME_DIGITAL(__LINE__, Z3_MS1_PIN) #endif #if PIN_EXISTS(Z3_MS2) REPORT_NAME_DIGITAL(__LINE__, Z3_MS2_PIN) #endif #if PIN_EXISTS(Z3_MS3) REPORT_NAME_DIGITAL(__LINE__, Z3_MS3_PIN) #endif #if PIN_EXISTS(Z4_MS1) REPORT_NAME_DIGITAL(__LINE__, Z4_MS1_PIN) #endif #if PIN_EXISTS(Z4_MS2) REPORT_NAME_DIGITAL(__LINE__, Z4_MS2_PIN) #endif #if PIN_EXISTS(Z4_MS3) REPORT_NAME_DIGITAL(__LINE__, Z4_MS3_PIN) #endif #if PIN_EXISTS(I_MS1) REPORT_NAME_DIGITAL(__LINE__, I_MS1_PIN) #endif #if PIN_EXISTS(I_MS2) REPORT_NAME_DIGITAL(__LINE__, I_MS2_PIN) #endif #if PIN_EXISTS(I_MS3) REPORT_NAME_DIGITAL(__LINE__, I_MS3_PIN) #endif #if PIN_EXISTS(J_MS1) REPORT_NAME_DIGITAL(__LINE__, J_MS1_PIN) #endif #if PIN_EXISTS(J_MS2) REPORT_NAME_DIGITAL(__LINE__, J_MS2_PIN) #endif #if PIN_EXISTS(J_MS3) REPORT_NAME_DIGITAL(__LINE__, J_MS3_PIN) #endif #if PIN_EXISTS(K_MS1) REPORT_NAME_DIGITAL(__LINE__, K_MS1_PIN) #endif #if PIN_EXISTS(K_MS2) REPORT_NAME_DIGITAL(__LINE__, K_MS2_PIN) #endif #if PIN_EXISTS(K_MS3) REPORT_NAME_DIGITAL(__LINE__, K_MS3_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(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(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(E0_MS1) REPORT_NAME_DIGITAL(__LINE__, E0_MS1_PIN) #endif #if PIN_EXISTS(E0_MS2) REPORT_NAME_DIGITAL(__LINE__, E0_MS2_PIN) #endif #if PIN_EXISTS(E0_MS3) REPORT_NAME_DIGITAL(__LINE__, E0_MS3_PIN) #endif #if PIN_EXISTS(E1_MS1) REPORT_NAME_DIGITAL(__LINE__, E1_MS1_PIN) #endif #if PIN_EXISTS(E1_MS2) REPORT_NAME_DIGITAL(__LINE__, E1_MS2_PIN) #endif #if PIN_EXISTS(E1_MS3) REPORT_NAME_DIGITAL(__LINE__, E1_MS3_PIN) #endif #if PIN_EXISTS(E2_MS1) REPORT_NAME_DIGITAL(__LINE__, E2_MS1_PIN) #endif #if PIN_EXISTS(E2_MS2) REPORT_NAME_DIGITAL(__LINE__, E2_MS2_PIN) #endif #if PIN_EXISTS(E2_MS3) REPORT_NAME_DIGITAL(__LINE__, E2_MS3_PIN) #endif #if PIN_EXISTS(E3_MS1) REPORT_NAME_DIGITAL(__LINE__, E3_MS1_PIN) #endif #if PIN_EXISTS(E3_MS2) REPORT_NAME_DIGITAL(__LINE__, E3_MS2_PIN) #endif #if PIN_EXISTS(E3_MS3) REPORT_NAME_DIGITAL(__LINE__, E3_MS3_PIN) #endif #if PIN_EXISTS(E4_MS1) REPORT_NAME_DIGITAL(__LINE__, E4_MS1_PIN) #endif #if PIN_EXISTS(E4_MS2) REPORT_NAME_DIGITAL(__LINE__, E4_MS2_PIN) #endif #if PIN_EXISTS(E4_MS3) REPORT_NAME_DIGITAL(__LINE__, E4_MS3_PIN) #endif #if PIN_EXISTS(E5_MS1) REPORT_NAME_DIGITAL(__LINE__, E5_MS1_PIN) #endif #if PIN_EXISTS(E5_MS2) REPORT_NAME_DIGITAL(__LINE__, E5_MS2_PIN) #endif #if PIN_EXISTS(E5_MS3) REPORT_NAME_DIGITAL(__LINE__, E5_MS3_PIN) #endif #if PIN_EXISTS(E6_MS1) REPORT_NAME_DIGITAL(__LINE__, E6_MS1_PIN) #endif #if PIN_EXISTS(E6_MS2) REPORT_NAME_DIGITAL(__LINE__, E6_MS2_PIN) #endif #if PIN_EXISTS(E6_MS3) REPORT_NAME_DIGITAL(__LINE__, E6_MS3_PIN) #endif #if PIN_EXISTS(E7_MS1) REPORT_NAME_DIGITAL(__LINE__, E7_MS1_PIN) #endif #if PIN_EXISTS(E7_MS2) REPORT_NAME_DIGITAL(__LINE__, E7_MS2_PIN) #endif #if PIN_EXISTS(E7_MS3) REPORT_NAME_DIGITAL(__LINE__, E7_MS3_PIN) #endif // // Stepper Standby // #if PIN_EXISTS(X_STDBY) REPORT_NAME_DIGITAL(__LINE__, X_STDBY_PIN) #endif #if PIN_EXISTS(X2_STDBY) REPORT_NAME_DIGITAL(__LINE__, X2_STDBY_PIN) #endif #if PIN_EXISTS(Y_STDBY) REPORT_NAME_DIGITAL(__LINE__, Y_STDBY_PIN) #endif #if PIN_EXISTS(Y2_STDBY) REPORT_NAME_DIGITAL(__LINE__, Y2_STDBY_PIN) #endif #if PIN_EXISTS(Z_STDBY) REPORT_NAME_DIGITAL(__LINE__, Z_STDBY_PIN) #endif #if PIN_EXISTS(Z2_STDBY) REPORT_NAME_DIGITAL(__LINE__, Z2_STDBY_PIN) #endif #if PIN_EXISTS(Z3_STDBY) REPORT_NAME_DIGITAL(__LINE__, Z3_STDBY_PIN) #endif #if PIN_EXISTS(Z4_STDBY) REPORT_NAME_DIGITAL(__LINE__, Z4_STDBY_PIN) #endif #if PIN_EXISTS(I_STDBY) REPORT_NAME_DIGITAL(__LINE__, I_STDBY_PIN) #endif #if PIN_EXISTS(J_STDBY) REPORT_NAME_DIGITAL(__LINE__, J_STDBY_PIN) #endif #if PIN_EXISTS(K_STDBY) REPORT_NAME_DIGITAL(__LINE__, K_STDBY_PIN) #endif #if PIN_EXISTS(U_STDBY) REPORT_NAME_DIGITAL(__LINE__, U_STDBY_PIN) #endif #if PIN_EXISTS(V_STDBY) REPORT_NAME_DIGITAL(__LINE__, V_STDBY_PIN) #endif #if PIN_EXISTS(W_STDBY) REPORT_NAME_DIGITAL(__LINE__, W_STDBY_PIN) #endif #if PIN_EXISTS(E0_STDBY) REPORT_NAME_DIGITAL(__LINE__, E0_STDBY_PIN) #endif #if PIN_EXISTS(E1_STDBY) REPORT_NAME_DIGITAL(__LINE__, E1_STDBY_PIN) #endif #if PIN_EXISTS(E2_STDBY) REPORT_NAME_DIGITAL(__LINE__, E2_STDBY_PIN) #endif #if PIN_EXISTS(E3_STDBY) REPORT_NAME_DIGITAL(__LINE__, E3_STDBY_PIN) #endif #if PIN_EXISTS(E4_STDBY) REPORT_NAME_DIGITAL(__LINE__, E4_STDBY_PIN) #endif #if PIN_EXISTS(E5_STDBY) REPORT_NAME_DIGITAL(__LINE__, E5_STDBY_PIN) #endif #if PIN_EXISTS(E6_STDBY) REPORT_NAME_DIGITAL(__LINE__, E6_STDBY_PIN) #endif #if PIN_EXISTS(E7_STDBY) REPORT_NAME_DIGITAL(__LINE__, E7_STDBY_PIN) #endif // // LV8731V Current Attenuation // #if PIN_EXISTS(X_ATT) REPORT_NAME_DIGITAL(__LINE__, X_ATT_PIN) #endif #if PIN_EXISTS(Y_ATT) REPORT_NAME_DIGITAL(__LINE__, Y_ATT_PIN) #endif #if PIN_EXISTS(E0_ATT) REPORT_NAME_DIGITAL(__LINE__, E0_ATT_PIN) #endif #if PIN_EXISTS(Z_ATT) REPORT_NAME_DIGITAL(__LINE__, Z_ATT_PIN) #endif #if PIN_EXISTS(I_ATT) REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN) #endif #if PIN_EXISTS(J_ATT) REPORT_NAME_DIGITAL(__LINE__, J_ATT_PIN) #endif #if PIN_EXISTS(K_ATT) REPORT_NAME_DIGITAL(__LINE__, K_ATT_PIN) #endif #if PIN_EXISTS(U_ATT) REPORT_NAME_DIGITAL(__LINE__, U_ATT_PIN) #endif #if PIN_EXISTS(V_ATT) REPORT_NAME_DIGITAL(__LINE__, V_ATT_PIN) #endif #if PIN_EXISTS(W_ATT) REPORT_NAME_DIGITAL(__LINE__, W_ATT_PIN) #endif // // TMC Serial UART // #if PIN_EXISTS(X_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, X_SERIAL_TX_PIN) #endif #if PIN_EXISTS(X_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, X_SERIAL_RX_PIN) #endif #if PIN_EXISTS(X2_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, X2_SERIAL_TX_PIN) #endif #if PIN_EXISTS(X2_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, X2_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Y_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Y_SERIAL_TX_PIN) #endif #if PIN_EXISTS(Y_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, Y_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Y2_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Y2_SERIAL_TX_PIN) #endif #if PIN_EXISTS(Y2_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, Y2_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Z_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Z_SERIAL_TX_PIN) #endif #if PIN_EXISTS(Z_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, Z_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Z2_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Z2_SERIAL_TX_PIN) #endif #if PIN_EXISTS(Z2_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, Z2_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Z3_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Z3_SERIAL_TX_PIN) #endif #if PIN_EXISTS(Z3_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, Z3_SERIAL_RX_PIN) #endif #if PIN_EXISTS(Z4_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, Z4_SERIAL_TX_PIN) #endif #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_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E0_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E0_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E0_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E1_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E1_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E1_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E1_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E2_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E2_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E2_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E2_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E3_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E3_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E3_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E3_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E4_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E4_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E4_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E4_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E5_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E5_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E5_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E5_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E6_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E6_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E6_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E6_SERIAL_RX_PIN) #endif #if PIN_EXISTS(E7_SERIAL_TX) REPORT_NAME_DIGITAL(__LINE__, E7_SERIAL_TX_PIN) #endif #if PIN_EXISTS(E7_SERIAL_RX) REPORT_NAME_DIGITAL(__LINE__, E7_SERIAL_RX_PIN) #endif // // Touch Screen // #if PIN_EXISTS(TOUCH_MISO) REPORT_NAME_DIGITAL(__LINE__, TOUCH_MISO_PIN) #endif #if PIN_EXISTS(TOUCH_MOSI) REPORT_NAME_DIGITAL(__LINE__, TOUCH_MOSI_PIN) #endif #if PIN_EXISTS(TOUCH_SCK) REPORT_NAME_DIGITAL(__LINE__, TOUCH_SCK_PIN) #endif #if PIN_EXISTS(TOUCH_CS) REPORT_NAME_DIGITAL(__LINE__, TOUCH_CS_PIN) #endif #if PIN_EXISTS(TOUCH_INT) REPORT_NAME_DIGITAL(__LINE__, TOUCH_INT_PIN) #endif // // USB // #if PIN_EXISTS(USB_CS) REPORT_NAME_DIGITAL(__LINE__, USB_CS_PIN) #endif #if PIN_EXISTS(USB_INTR) REPORT_NAME_DIGITAL(__LINE__, USB_INTR_PIN) #endif // // MMU2 // #if PIN_EXISTS(MMU2_RST) REPORT_NAME_DIGITAL(__LINE__, MMU2_RST_PIN) #endif // // G425 Axis Calibration // #if PIN_EXISTS(CALIBRATION) REPORT_NAME_DIGITAL(__LINE__, CALIBRATION_PIN) #endif // // Duet Smart Effector // #if PIN_EXISTS(SMART_EFFECTOR_MOD) REPORT_NAME_DIGITAL(__LINE__, SMART_EFFECTOR_MOD_PIN) #endif // // Closed Loop // #if PIN_EXISTS(CLOSED_LOOP_ENABLE) REPORT_NAME_DIGITAL(__LINE__, CLOSED_LOOP_ENABLE_PIN) #endif #if PIN_EXISTS(CLOSED_LOOP_MOVE_COMPLETE) REPORT_NAME_DIGITAL(__LINE__, CLOSED_LOOP_MOVE_COMPLETE_PIN) #endif // // ESP WiFi // #if PIN_EXISTS(ESP_WIFI_MODULE_RESET) REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_RESET_PIN) #endif #if PIN_EXISTS(ESP_WIFI_MODULE_ENABLE) REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_ENABLE_PIN) #endif #if PIN_EXISTS(ESP_WIFI_MODULE_GPIO0) REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_GPIO0_PIN) #endif #if PIN_EXISTS(ESP_WIFI_MODULE_GPIO2) REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_GPIO2_PIN) #endif // // TFT // #if PIN_EXISTS(TFT_CS) REPORT_NAME_DIGITAL(__LINE__, TFT_CS_PIN) #endif #if PIN_EXISTS(TFT_A0) REPORT_NAME_DIGITAL(__LINE__, TFT_A0_PIN) #endif #if PIN_EXISTS(TFT_DC) REPORT_NAME_DIGITAL(__LINE__, TFT_DC_PIN) #endif #if PIN_EXISTS(TFT_MISO) REPORT_NAME_DIGITAL(__LINE__, TFT_MISO_PIN) #endif #if PIN_EXISTS(TFT_BACKLIGHT) REPORT_NAME_DIGITAL(__LINE__, TFT_BACKLIGHT_PIN) #endif #if PIN_EXISTS(TFT_RESET) REPORT_NAME_DIGITAL(__LINE__, TFT_RESET_PIN) #endif // // Hardware UART // #if SERIAL_IN_USE(1) #if PIN_EXISTS(UART1_TX) REPORT_NAME_DIGITAL(__LINE__, UART1_TX_PIN) #endif #if PIN_EXISTS(UART1_RX) REPORT_NAME_DIGITAL(__LINE__, UART1_RX_PIN) #endif #endif #if SERIAL_IN_USE(2) #if PIN_EXISTS(UART2_TX) REPORT_NAME_DIGITAL(__LINE__, UART2_TX_PIN) #endif #if PIN_EXISTS(UART2_RX) REPORT_NAME_DIGITAL(__LINE__, UART2_RX_PIN) #endif #endif #if SERIAL_IN_USE(3) #if PIN_EXISTS(UART3_TX) REPORT_NAME_DIGITAL(__LINE__, UART3_TX_PIN) #endif #if PIN_EXISTS(UART3_RX) REPORT_NAME_DIGITAL(__LINE__, UART3_RX_PIN) #endif #endif #if SERIAL_IN_USE(4) #if PIN_EXISTS(UART4_TX) REPORT_NAME_DIGITAL(__LINE__, UART4_TX_PIN) #endif #if PIN_EXISTS(UART4_RX) REPORT_NAME_DIGITAL(__LINE__, UART4_RX_PIN) #endif #endif #if SERIAL_IN_USE(5) #if PIN_EXISTS(UART5_TX) REPORT_NAME_DIGITAL(__LINE__, UART5_TX_PIN) #endif #if PIN_EXISTS(UART5_RX) REPORT_NAME_DIGITAL(__LINE__, UART5_RX_PIN) #endif #endif #if SERIAL_IN_USE(6) #if PIN_EXISTS(UART6_TX) REPORT_NAME_DIGITAL(__LINE__, UART6_TX_PIN) #endif #if PIN_EXISTS(UART6_RX) REPORT_NAME_DIGITAL(__LINE__, UART6_RX_PIN) #endif #endif // // SDIO // #if PIN_EXISTS(SDIO_D0) REPORT_NAME_DIGITAL(__LINE__, SDIO_D0_PIN) #endif #if PIN_EXISTS(SDIO_D1) REPORT_NAME_DIGITAL(__LINE__, SDIO_D1_PIN) #endif #if PIN_EXISTS(SDIO_D2) REPORT_NAME_DIGITAL(__LINE__, SDIO_D2_PIN) #endif #if PIN_EXISTS(SDIO_D3) REPORT_NAME_DIGITAL(__LINE__, SDIO_D3_PIN) #endif #if PIN_EXISTS(SDIO_CK) REPORT_NAME_DIGITAL(__LINE__, SDIO_CK_PIN) #endif #if PIN_EXISTS(SDIO_CMD) REPORT_NAME_DIGITAL(__LINE__, SDIO_CMD_PIN) #endif // // Miscellaneous // #if _EXISTS(UNUSED_PWM) REPORT_NAME_DIGITAL(__LINE__, UNUSED_PWM) #endif
2301_81045437/Marlin
Marlin/src/pins/pinsDebug_list.h
C
agpl-3.0
55,870
/** * Marlin 3D Printer Firmware * Copyright (c) 2024 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 /** * pins_lcd.h - Define LCD pins based on the EXP connector / adapter */ /** * Certain displays use LCD_PINS_RS as LCD_RESET_PIN */ #if !defined(LCD_RESET_PIN) && ANY(MKS_12864OLED, MKS_12864OLED_SSD1306, FYSETC_242_OLED_12864, ZONESTAR_12864OLED, K3D_242_OLED_CONTROLLER) #define LCD_RESET_PIN LCD_PINS_RS #endif /** * Make sure DOGLCD_SCK and DOGLCD_MOSI are defined. */ #if HAS_MARLINUI_U8GLIB #ifndef DOGLCD_SCK #define DOGLCD_SCK SD_SCK_PIN #endif #ifndef DOGLCD_MOSI #define DOGLCD_MOSI SD_MOSI_PIN #endif #endif
2301_81045437/Marlin
Marlin/src/pins/pins_lcd.h
C
agpl-3.0
1,424
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // // File: pins/pins_postprocess.h // Post-process pins according to configured settings // // Define certain undefined pins #ifndef X_MS1_PIN #define X_MS1_PIN -1 #endif #ifndef X_MS2_PIN #define X_MS2_PIN -1 #endif #ifndef X_MS3_PIN #define X_MS3_PIN -1 #endif #ifndef Y_MS1_PIN #define Y_MS1_PIN -1 #endif #ifndef Y_MS2_PIN #define Y_MS2_PIN -1 #endif #ifndef Y_MS3_PIN #define Y_MS3_PIN -1 #endif #ifndef Z_MS1_PIN #define Z_MS1_PIN -1 #endif #ifndef Z_MS2_PIN #define Z_MS2_PIN -1 #endif #ifndef Z_MS3_PIN #define Z_MS3_PIN -1 #endif #ifndef E0_MS1_PIN #define E0_MS1_PIN -1 #endif #ifndef E0_MS2_PIN #define E0_MS2_PIN -1 #endif #ifndef E0_MS3_PIN #define E0_MS3_PIN -1 #endif #ifndef E1_MS1_PIN #define E1_MS1_PIN -1 #endif #ifndef E1_MS2_PIN #define E1_MS2_PIN -1 #endif #ifndef E1_MS3_PIN #define E1_MS3_PIN -1 #endif #ifndef E2_MS1_PIN #define E2_MS1_PIN -1 #endif #ifndef E2_MS2_PIN #define E2_MS2_PIN -1 #endif #ifndef E2_MS3_PIN #define E2_MS3_PIN -1 #endif #ifndef E3_MS1_PIN #define E3_MS1_PIN -1 #endif #ifndef E3_MS2_PIN #define E3_MS2_PIN -1 #endif #ifndef E3_MS3_PIN #define E3_MS3_PIN -1 #endif #ifndef E4_MS1_PIN #define E4_MS1_PIN -1 #endif #ifndef E4_MS2_PIN #define E4_MS2_PIN -1 #endif #ifndef E4_MS3_PIN #define E4_MS3_PIN -1 #endif #ifndef E5_MS1_PIN #define E5_MS1_PIN -1 #endif #ifndef E5_MS2_PIN #define E5_MS2_PIN -1 #endif #ifndef E5_MS3_PIN #define E5_MS3_PIN -1 #endif #ifndef E6_MS1_PIN #define E6_MS1_PIN -1 #endif #ifndef E6_MS2_PIN #define E6_MS2_PIN -1 #endif #ifndef E6_MS3_PIN #define E6_MS3_PIN -1 #endif #ifndef E7_MS1_PIN #define E7_MS1_PIN -1 #endif #ifndef E7_MS2_PIN #define E7_MS2_PIN -1 #endif #ifndef E7_MS3_PIN #define E7_MS3_PIN -1 #endif #ifndef E0_STEP_PIN #define E0_STEP_PIN -1 #endif #ifndef E0_DIR_PIN #define E0_DIR_PIN -1 #endif #ifndef E0_ENABLE_PIN #define E0_ENABLE_PIN -1 #endif #ifndef E1_STEP_PIN #define E1_STEP_PIN -1 #endif #ifndef E1_DIR_PIN #define E1_DIR_PIN -1 #endif #ifndef E1_ENABLE_PIN #define E1_ENABLE_PIN -1 #endif #ifndef E2_STEP_PIN #define E2_STEP_PIN -1 #endif #ifndef E2_DIR_PIN #define E2_DIR_PIN -1 #endif #ifndef E2_ENABLE_PIN #define E2_ENABLE_PIN -1 #endif #ifndef E3_STEP_PIN #define E3_STEP_PIN -1 #endif #ifndef E3_DIR_PIN #define E3_DIR_PIN -1 #endif #ifndef E3_ENABLE_PIN #define E3_ENABLE_PIN -1 #endif #ifndef E4_STEP_PIN #define E4_STEP_PIN -1 #endif #ifndef E4_DIR_PIN #define E4_DIR_PIN -1 #endif #ifndef E4_ENABLE_PIN #define E4_ENABLE_PIN -1 #endif #ifndef E5_STEP_PIN #define E5_STEP_PIN -1 #endif #ifndef E5_DIR_PIN #define E5_DIR_PIN -1 #endif #ifndef E5_ENABLE_PIN #define E5_ENABLE_PIN -1 #endif #ifndef E6_STEP_PIN #define E6_STEP_PIN -1 #endif #ifndef E6_DIR_PIN #define E6_DIR_PIN -1 #endif #ifndef E6_ENABLE_PIN #define E6_ENABLE_PIN -1 #endif #ifndef E7_STEP_PIN #define E7_STEP_PIN -1 #endif #ifndef E7_DIR_PIN #define E7_DIR_PIN -1 #endif #ifndef E7_ENABLE_PIN #define E7_ENABLE_PIN -1 #endif // // Destroy unused CS pins // #if !AXIS_HAS_SPI(X) #undef X_CS_PIN #endif #if !AXIS_HAS_SPI(Y) #undef Y_CS_PIN #endif #if !AXIS_HAS_SPI(Z) #undef Z_CS_PIN #endif #if !AXIS_HAS_SPI(I) #undef I_CS_PIN #endif #if !AXIS_HAS_SPI(J) #undef J_CS_PIN #endif #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 #if E_STEPPERS > 1 && !AXIS_HAS_SPI(E1) #undef E1_CS_PIN #endif #if E_STEPPERS > 2 && !AXIS_HAS_SPI(E2) #undef E2_CS_PIN #endif #if E_STEPPERS > 3 && !AXIS_HAS_SPI(E3) #undef E3_CS_PIN #endif #if E_STEPPERS > 4 && !AXIS_HAS_SPI(E4) #undef E4_CS_PIN #endif #if E_STEPPERS > 5 && !AXIS_HAS_SPI(E5) #undef E5_CS_PIN #endif #if E_STEPPERS > 6 && !AXIS_HAS_SPI(E6) #undef E6_CS_PIN #endif #if E_STEPPERS > 7 && !AXIS_HAS_SPI(E7) #undef E7_CS_PIN #endif #ifndef X_CS_PIN #define X_CS_PIN -1 #endif #ifndef Y_CS_PIN #define Y_CS_PIN -1 #endif #ifndef Z_CS_PIN #define Z_CS_PIN -1 #endif #ifndef I_CS_PIN #define I_CS_PIN -1 #endif #ifndef J_CS_PIN #define J_CS_PIN -1 #endif #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 #ifndef E1_CS_PIN #define E1_CS_PIN -1 #endif #ifndef E2_CS_PIN #define E2_CS_PIN -1 #endif #ifndef E3_CS_PIN #define E3_CS_PIN -1 #endif #ifndef E4_CS_PIN #define E4_CS_PIN -1 #endif #ifndef E5_CS_PIN #define E5_CS_PIN -1 #endif #ifndef E6_CS_PIN #define E6_CS_PIN -1 #endif #ifndef E7_CS_PIN #define E7_CS_PIN -1 #endif // // Destroy stepper driver RX and TX pins when set to -1 // #if !PIN_EXISTS(Z2_SERIAL_TX) #undef Z2_SERIAL_TX_PIN #endif #if !PIN_EXISTS(Z2_SERIAL_RX) #undef Z2_SERIAL_RX_PIN #endif #if !PIN_EXISTS(Z3_SERIAL_TX) #undef Z3_SERIAL_TX_PIN #endif #if !PIN_EXISTS(Z3_SERIAL_RX) #undef Z3_SERIAL_RX_PIN #endif #if !PIN_EXISTS(Z4_SERIAL_TX) #undef Z4_SERIAL_TX_PIN #endif #if !PIN_EXISTS(Z4_SERIAL_RX) #undef Z4_SERIAL_RX_PIN #endif #if !PIN_EXISTS(X2_SERIAL_TX) #undef X2_SERIAL_TX_PIN #endif #if !PIN_EXISTS(X2_SERIAL_RX) #undef X2_SERIAL_RX_PIN #endif #if !PIN_EXISTS(Y2_SERIAL_TX) #undef Y2_SERIAL_TX_PIN #endif #if !PIN_EXISTS(Y2_SERIAL_RX) #undef Y2_SERIAL_RX_PIN #endif #if !PIN_EXISTS(I_SERIAL_TX) #undef I_SERIAL_TX_PIN #endif #if !PIN_EXISTS(I_SERIAL_RX) #undef I_SERIAL_RX_PIN #endif #if !PIN_EXISTS(J_SERIAL_TX) #undef J_SERIAL_TX_PIN #endif #if !PIN_EXISTS(J_SERIAL_RX) #undef J_SERIAL_RX_PIN #endif #if !PIN_EXISTS(K_SERIAL_TX) #undef K_SERIAL_TX_PIN #endif #if !PIN_EXISTS(K_SERIAL_RX) #undef K_SERIAL_RX_PIN #endif #if !PIN_EXISTS(U_SERIAL_TX) #undef U_SERIAL_TX_PIN #endif #if !PIN_EXISTS(U_SERIAL_RX) #undef U_SERIAL_RX_PIN #endif #if !PIN_EXISTS(V_SERIAL_TX) #undef V_SERIAL_TX_PIN #endif #if !PIN_EXISTS(V_SERIAL_RX) #undef V_SERIAL_RX_PIN #endif #if !PIN_EXISTS(W_SERIAL_TX) #undef W_SERIAL_TX_PIN #endif #if !PIN_EXISTS(W_SERIAL_RX) #undef W_SERIAL_RX_PIN #endif #ifndef FAN0_PIN #define FAN0_PIN -1 #endif #ifndef FAN1_PIN #define FAN1_PIN -1 #endif #ifndef FAN2_PIN #define FAN2_PIN -1 #endif #ifndef CONTROLLER_FAN_PIN #define CONTROLLER_FAN_PIN -1 #endif #ifndef FANMUX0_PIN #define FANMUX0_PIN -1 #endif #ifndef FANMUX1_PIN #define FANMUX1_PIN -1 #endif #ifndef FANMUX2_PIN #define FANMUX2_PIN -1 #endif #ifndef HEATER_0_PIN #define HEATER_0_PIN -1 #endif #ifndef HEATER_1_PIN #define HEATER_1_PIN -1 #endif #ifndef HEATER_2_PIN #define HEATER_2_PIN -1 #endif #ifndef HEATER_3_PIN #define HEATER_3_PIN -1 #endif #ifndef HEATER_4_PIN #define HEATER_4_PIN -1 #endif #ifndef HEATER_5_PIN #define HEATER_5_PIN -1 #endif #ifndef HEATER_6_PIN #define HEATER_6_PIN -1 #endif #ifndef HEATER_7_PIN #define HEATER_7_PIN -1 #endif #ifndef HEATER_BED_PIN #define HEATER_BED_PIN -1 #endif #ifndef TEMP_0_PIN #define TEMP_0_PIN -1 #endif #ifndef TEMP_1_PIN #define TEMP_1_PIN -1 #endif #ifndef TEMP_2_PIN #define TEMP_2_PIN -1 #endif #ifndef TEMP_3_PIN #define TEMP_3_PIN -1 #endif #ifndef TEMP_4_PIN #define TEMP_4_PIN -1 #endif #ifndef TEMP_5_PIN #define TEMP_5_PIN -1 #endif #ifndef TEMP_6_PIN #define TEMP_6_PIN -1 #endif #ifndef TEMP_7_PIN #define TEMP_7_PIN -1 #endif #ifndef TEMP_BED_PIN #define TEMP_BED_PIN -1 #endif // Use ATEMP if TEMP_SOC_PIN is not defined #if !defined(TEMP_SOC_PIN) && defined(ATEMP) #define TEMP_SOC_PIN ATEMP #endif #ifndef SD_DETECT_PIN #define SD_DETECT_PIN -1 #endif #ifndef SDPOWER_PIN #define SDPOWER_PIN -1 #endif #ifndef SDSS #define SDSS -1 #endif #ifndef LED_PIN #define LED_PIN -1 #endif #if DISABLED(PSU_CONTROL) || !defined(PS_ON_PIN) #undef PS_ON_PIN #define PS_ON_PIN -1 #endif #if DISABLED(PSU_OFF_REDUNDANT) || !defined(PS_ON1_PIN) #undef PS_ON1_PIN #define PS_ON1_PIN -1 #endif #ifndef KILL_PIN #define KILL_PIN -1 #endif #ifndef SUICIDE_PIN #define SUICIDE_PIN -1 #endif #ifndef SUICIDE_PIN_STATE #define SUICIDE_PIN_STATE LOW #endif #if PIN_EXISTS(SERVO5) #define NUM_SERVO_PLUGS 6 #elif PIN_EXISTS(SERVO4) #define NUM_SERVO_PLUGS 5 #elif PIN_EXISTS(SERVO3) #define NUM_SERVO_PLUGS 4 #elif PIN_EXISTS(SERVO2) #define NUM_SERVO_PLUGS 3 #elif PIN_EXISTS(SERVO1) #define NUM_SERVO_PLUGS 2 #elif PIN_EXISTS(SERVO0) #define NUM_SERVO_PLUGS 1 #else #define NUM_SERVO_PLUGS 0 #endif // Only used within pins files #undef NEEDS_X_MINMAX #undef NEEDS_Y_MINMAX #undef NEEDS_Z_MINMAX // // Assign endstop pins, with handling for boards that have only 3 connectors // #if HAS_X_AXIS #ifdef X_STOP_PIN #if X_HOME_TO_MIN #define X_MIN_PIN X_STOP_PIN #elif X_HOME_TO_MAX #define X_MAX_PIN X_STOP_PIN #endif #elif X_HOME_TO_MIN #define X_STOP_PIN X_MIN_PIN #elif X_HOME_TO_MAX #define X_STOP_PIN X_MAX_PIN #endif #if !defined(X2_STOP_PIN) && ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X_STOP) #define X2_STOP_PIN X_STOP_PIN #endif #endif #if HAS_Y_AXIS #ifdef Y_STOP_PIN #if Y_HOME_TO_MIN #define Y_MIN_PIN Y_STOP_PIN #elif Y_HOME_TO_MAX #define Y_MAX_PIN Y_STOP_PIN #endif #elif Y_HOME_TO_MIN #define Y_STOP_PIN Y_MIN_PIN #elif X_HOME_TO_MAX #define Y_STOP_PIN Y_MAX_PIN #endif #if !defined(Y2_STOP_PIN) && ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y_STOP) #define Y2_STOP_PIN Y_STOP_PIN #endif #endif #if HAS_Z_AXIS #ifdef Z_STOP_PIN #if Z_HOME_TO_MIN #define Z_MIN_PIN Z_STOP_PIN #elif Z_HOME_TO_MAX #define Z_MAX_PIN Z_STOP_PIN #endif #elif Z_HOME_TO_MIN #define Z_STOP_PIN Z_MIN_PIN #elif Z_HOME_TO_MAX #define Z_STOP_PIN Z_MAX_PIN #endif #if ENABLED(Z_MULTI_ENDSTOPS) && PIN_EXISTS(Z_STOP) #ifndef Z2_STOP_PIN #define Z2_STOP_PIN Z_STOP_PIN #endif #if NUM_Z_STEPPERS >= 3 && !defined(Z3_STOP_PIN) #define Z3_STOP_PIN Z_STOP_PIN #endif #if NUM_Z_STEPPERS >= 4 && !defined(Z4_STOP_PIN) #define Z4_STOP_PIN Z_STOP_PIN #endif #endif #endif #if HAS_I_AXIS #ifdef I_STOP_PIN #if I_HOME_TO_MIN #define I_MIN_PIN I_STOP_PIN #elif I_HOME_TO_MAX #define I_MAX_PIN I_STOP_PIN #endif #elif I_HOME_TO_MIN #define I_STOP_PIN I_MIN_PIN #elif I_HOME_TO_MAX #define I_STOP_PIN I_MAX_PIN #endif #endif #if HAS_J_AXIS #ifdef J_STOP_PIN #if J_HOME_TO_MIN #define J_MIN_PIN J_STOP_PIN #elif J_HOME_TO_MAX #define J_MAX_PIN J_STOP_PIN #endif #elif J_HOME_TO_MIN #define J_STOP_PIN J_MIN_PIN #elif J_HOME_TO_MAX #define J_STOP_PIN J_MAX_PIN #endif #endif #if HAS_K_AXIS #ifdef K_STOP_PIN #if K_HOME_TO_MIN #define K_MIN_PIN K_STOP_PIN #elif K_HOME_TO_MAX #define K_MAX_PIN K_STOP_PIN #endif #elif K_HOME_TO_MIN #define K_STOP_PIN K_MIN_PIN #elif K_HOME_TO_MAX #define K_STOP_PIN K_MAX_PIN #endif #endif #if HAS_U_AXIS #ifdef U_STOP_PIN #if U_HOME_TO_MIN #define U_MIN_PIN U_STOP_PIN #elif U_HOME_TO_MAX #define U_MAX_PIN U_STOP_PIN #endif #elif U_HOME_TO_MIN #define U_STOP_PIN U_MIN_PIN #elif U_HOME_TO_MAX #define U_STOP_PIN U_MAX_PIN #endif #endif #if HAS_V_AXIS #ifdef V_STOP_PIN #if V_HOME_TO_MIN #define V_MIN_PIN V_STOP_PIN #elif V_HOME_TO_MAX #define V_MAX_PIN V_STOP_PIN #endif #elif V_HOME_TO_MIN #define V_STOP_PIN V_MIN_PIN #elif V_HOME_TO_MAX #define V_STOP_PIN V_MAX_PIN #endif #endif #if HAS_W_AXIS #ifdef W_STOP_PIN #if W_HOME_TO_MIN #define W_MIN_PIN W_STOP_PIN #elif W_HOME_TO_MAX #define W_MAX_PIN W_STOP_PIN #endif #elif W_HOME_TO_MIN #define W_STOP_PIN W_MIN_PIN #elif W_HOME_TO_MAX #define W_STOP_PIN W_MAX_PIN #endif #endif // Filament Sensor first pin alias #if HAS_FILAMENT_SENSOR #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 #undef LCD_PINS_DEFINED #ifndef LCD_PINS_D4 #define LCD_PINS_D4 -1 #endif #if HAS_MARLINUI_HD44780 || TOUCH_UI_ULTIPANEL #ifndef LCD_PINS_D5 #define LCD_PINS_D5 -1 #endif #ifndef LCD_PINS_D6 #define LCD_PINS_D6 -1 #endif #ifndef LCD_PINS_D7 #define LCD_PINS_D7 -1 #endif #endif // Utility macros to define extra axis pins in terms of E pins #define __EPIN(p,q) E##p##_##q##_PIN #define _EPIN(p,q) __EPIN(p,q) /** * Auto-Assignment for Dual X, Dual Y, Multi-Z Steppers * * By default X2 is assigned to the next open E plug * on the board, then in order, Y2, Z2, Z3. These can be * overridden in Configuration.h or Configuration_adv.h. */ #define _E_DIAG_EXISTS(p) PIN_EXISTS(E##p##_DIAG) #define E_DIAG_EXISTS(p) _E_DIAG_EXISTS(p) /** * For endstop auto-assignment some pins files pre-assign MIN/MAX endstops * to DIAG pins so those should be preferred over just using En_DIAG_PIN. * DIAG_REMAPPED(X2, X_MIN) ... PIN_EXISTS(X_MIN) && E(X2_E_INDEX)_DIAG_PIN == X_MIN_PIN */ #define DIAG_REMAPPED(p,q) (PIN_EXISTS(q) && _EPIN(p##_E_INDEX, DIAG) == q##_PIN) #define _En_DIAG_PIN(p) E##p##_DIAG_PIN // The E0/E1 steppers are always used for Dual E #if ENABLED(E_DUAL_STEPPER_DRIVERS) #ifndef E1_STEP_PIN #error "No E1 stepper available for E_DUAL_STEPPER_DRIVERS!" #endif #define X2_E_INDEX INCREMENT(E_STEPPERS) #else #define X2_E_INDEX E_STEPPERS #endif // X2 auto-assignment will use up an E stepper, but not if it's chained #if HAS_X2_STEPPER && !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 // 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) #define X2_ENABLE_PIN _EPIN(X2_E_INDEX, ENABLE) #if X2_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(X2_STEP) #error "No E stepper plug left for X2!" #else #define AUTO_ASSIGNED_X2_STEPPER 1 #endif #endif #ifndef X2_MS1_PIN #define X2_MS1_PIN _EPIN(X2_E_INDEX, MS1) #if PIN_EXISTS(X2_MS1) #define AUTO_ASSIGNED_X2_MS1 1 #endif #endif #ifndef X2_MS2_PIN #define X2_MS2_PIN _EPIN(X2_E_INDEX, MS2) #if PIN_EXISTS(X2_MS2) #define AUTO_ASSIGNED_X2_MS2 1 #endif #endif #ifndef X2_MS3_PIN #define X2_MS3_PIN _EPIN(X2_E_INDEX, MS3) #if PIN_EXISTS(X2_MS3) #define AUTO_ASSIGNED_X2_MS3 1 #endif #endif #if AXIS_HAS_SPI(X2) && !defined(X2_CS_PIN) #define X2_CS_PIN _EPIN(X2_E_INDEX, CS) #if PIN_EXISTS(X2_CS) #define AUTO_ASSIGNED_X2_CS 1 #endif #endif #if AXIS_HAS_UART(X2) #ifndef X2_SERIAL_TX_PIN #define X2_SERIAL_TX_PIN _EPIN(X2_E_INDEX, SERIAL_TX) #endif #ifndef X2_SERIAL_RX_PIN #define X2_SERIAL_RX_PIN _EPIN(X2_E_INDEX, SERIAL_RX) #endif #endif // // Auto-assign pins for stallGuard sensorless homing // #if !defined(X2_STOP_PIN) && defined(X2_STALL_SENSITIVITY) && ENABLED(X_DUAL_ENDSTOPS) && E_DIAG_EXISTS(X2_E_INDEX) #if DIAG_REMAPPED(X2, X_MIN) // If already remapped in the pins file... #define X2_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(X2, Y_MIN) #define X2_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(X2, Z_MIN) #define X2_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(X2, X_MAX) #define X2_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(X2, Y_MAX) #define X2_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(X2, Z_MAX) #define X2_STOP_PIN Z_MAX_PIN #else // Otherwise pick the next free En_DIAG_PIN directly #define X2_STOP_PIN _En_DIAG_PIN(X2_E_INDEX) #endif #define AUTO_ASSIGNED_X2_DIAG 1 #endif #endif #ifndef X2_CS_PIN #define X2_CS_PIN -1 #endif #ifndef X2_MS1_PIN #define X2_MS1_PIN -1 #endif #ifndef X2_MS2_PIN #define X2_MS2_PIN -1 #endif #ifndef X2_MS3_PIN #define X2_MS3_PIN -1 #endif // Y2 auto-assignment will use up an E stepper, but not if it's chained #if HAS_Y2_STEPPER && !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 // The Y2 axis, if any, should be the next open extruder port #if HAS_Y2_STEPPER #ifndef Y2_STEP_PIN #define Y2_STEP_PIN _EPIN(Y2_E_INDEX, STEP) #define Y2_DIR_PIN _EPIN(Y2_E_INDEX, DIR) #define Y2_ENABLE_PIN _EPIN(Y2_E_INDEX, ENABLE) #if Y2_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(Y2_STEP) #error "No E stepper plug left for Y2!" #else #define AUTO_ASSIGNED_Y2_STEPPER 1 #endif #endif #ifndef Y2_MS1_PIN #define Y2_MS1_PIN _EPIN(Y2_E_INDEX, MS1) #if PIN_EXISTS(Y2_MS1) #define AUTO_ASSIGNED_Y2_MS1 1 #endif #endif #ifndef Y2_MS2_PIN #define Y2_MS2_PIN _EPIN(Y2_E_INDEX, MS2) #if PIN_EXISTS(Y2_MS2) #define AUTO_ASSIGNED_Y2_MS2 1 #endif #endif #ifndef Y2_MS3_PIN #define Y2_MS3_PIN _EPIN(Y2_E_INDEX, MS3) #if PIN_EXISTS(Y2_MS3) #define AUTO_ASSIGNED_Y2_MS3 1 #endif #endif #if AXIS_HAS_SPI(Y2) && !defined(Y2_CS_PIN) #define Y2_CS_PIN _EPIN(Y2_E_INDEX, CS) #if PIN_EXISTS(Y2_CS) #define AUTO_ASSIGNED_Y2_CS 1 #endif #endif #if AXIS_HAS_UART(Y2) #ifndef Y2_SERIAL_TX_PIN #define Y2_SERIAL_TX_PIN _EPIN(Y2_E_INDEX, SERIAL_TX) #endif #ifndef Y2_SERIAL_RX_PIN #define Y2_SERIAL_RX_PIN _EPIN(Y2_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(Y2_STOP_PIN) && defined(Y2_STALL_SENSITIVITY) && ENABLED(Y_DUAL_ENDSTOPS) && E_DIAG_EXISTS(Y2_E_INDEX) #if DIAG_REMAPPED(Y2, X_MIN) #define Y2_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(Y2, Y_MIN) #define Y2_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(Y2, Z_MIN) #define Y2_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(Y2, X_MAX) #define Y2_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(Y2, Y_MAX) #define Y2_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(Y2, Z_MAX) #define Y2_STOP_PIN Z_MAX_PIN #else #define Y2_STOP_PIN _En_DIAG_PIN(Y2_E_INDEX) #endif #define AUTO_ASSIGNED_Y2_DIAG 1 #endif #endif #ifndef Y2_CS_PIN #define Y2_CS_PIN -1 #endif #ifndef Y2_MS1_PIN #define Y2_MS1_PIN -1 #endif #ifndef Y2_MS2_PIN #define Y2_MS2_PIN -1 #endif #ifndef Y2_MS3_PIN #define Y2_MS3_PIN -1 #endif // Z2 auto-assignment will use up an E stepper, but not if it's chained #if NUM_Z_STEPPERS >= 2 && !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 // 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) #define Z2_ENABLE_PIN _EPIN(Z2_E_INDEX, ENABLE) #if Z2_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(Z2_STEP) #error "No E stepper plug left for Z2!" #else #define AUTO_ASSIGNED_Z2_STEPPER 1 #endif #endif #ifndef Z2_MS1_PIN #define Z2_MS1_PIN _EPIN(Z2_E_INDEX, MS1) #if PIN_EXISTS(Z2_MS1) #define AUTO_ASSIGNED_Z2_MS1 1 #endif #endif #ifndef Z2_MS2_PIN #define Z2_MS2_PIN _EPIN(Z2_E_INDEX, MS2) #if PIN_EXISTS(Z2_MS2) #define AUTO_ASSIGNED_Z2_MS2 1 #endif #endif #ifndef Z2_MS3_PIN #define Z2_MS3_PIN _EPIN(Z2_E_INDEX, MS3) #if PIN_EXISTS(Z2_MS3) #define AUTO_ASSIGNED_Z2_MS3 1 #endif #endif #if AXIS_HAS_SPI(Z2) && !defined(Z2_CS_PIN) #define Z2_CS_PIN _EPIN(Z2_E_INDEX, CS) #if PIN_EXISTS(Z2_CS) #define AUTO_ASSIGNED_Z2_CS 1 #endif #endif #if AXIS_HAS_UART(Z2) #ifndef Z2_SERIAL_TX_PIN #define Z2_SERIAL_TX_PIN _EPIN(Z2_E_INDEX, SERIAL_TX) #endif #ifndef Z2_SERIAL_RX_PIN #define Z2_SERIAL_RX_PIN _EPIN(Z2_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(Z2_STOP_PIN) && defined(Z2_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && E_DIAG_EXISTS(Z2_E_INDEX) #if DIAG_REMAPPED(Z2, X_MIN) #define Z2_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(Z2, Y_MIN) #define Z2_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(Z2, Z_MIN) #define Z2_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(Z2, X_MAX) #define Z2_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(Z2, Y_MAX) #define Z2_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(Z2, Z_MAX) #define Z2_STOP_PIN Z_MAX_PIN #else #define Z2_STOP_PIN _En_DIAG_PIN(Z2_E_INDEX) #endif #define AUTO_ASSIGNED_Z2_DIAG 1 #endif #endif #ifndef Z2_CS_PIN #define Z2_CS_PIN -1 #endif #ifndef Z2_MS1_PIN #define Z2_MS1_PIN -1 #endif #ifndef Z2_MS2_PIN #define Z2_MS2_PIN -1 #endif #ifndef Z2_MS3_PIN #define Z2_MS3_PIN -1 #endif // Z3 auto-assignment will use up an E stepper, but not if it's chained #if NUM_Z_STEPPERS >= 3 && !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 // 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) #define Z3_ENABLE_PIN _EPIN(Z3_E_INDEX, ENABLE) #if Z3_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(Z3_STEP) #error "No E stepper plug left for Z3!" #else #define AUTO_ASSIGNED_Z3_STEPPER 1 #endif #endif #if AXIS_HAS_SPI(Z3) && !defined(Z3_CS_PIN) #define Z3_CS_PIN _EPIN(Z3_E_INDEX, CS) #if PIN_EXISTS(Z3_CS) #define AUTO_ASSIGNED_Z3_CS 1 #endif #endif #ifndef Z3_MS1_PIN #define Z3_MS1_PIN _EPIN(Z3_E_INDEX, MS1) #if PIN_EXISTS(Z3_MS1) #define AUTO_ASSIGNED_Z3_MS1 1 #endif #endif #ifndef Z3_MS2_PIN #define Z3_MS2_PIN _EPIN(Z3_E_INDEX, MS2) #if PIN_EXISTS(Z3_MS2) #define AUTO_ASSIGNED_Z3_MS2 1 #endif #endif #ifndef Z3_MS3_PIN #define Z3_MS3_PIN _EPIN(Z3_E_INDEX, MS3) #if PIN_EXISTS(Z3_MS3) #define AUTO_ASSIGNED_Z3_MS3 1 #endif #endif #if AXIS_HAS_UART(Z3) #ifndef Z3_SERIAL_TX_PIN #define Z3_SERIAL_TX_PIN _EPIN(Z3_E_INDEX, SERIAL_TX) #endif #ifndef Z3_SERIAL_RX_PIN #define Z3_SERIAL_RX_PIN _EPIN(Z3_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(Z3_STOP_PIN) && defined(Z3_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && E_DIAG_EXISTS(Z3_E_INDEX) #if DIAG_REMAPPED(Z3, X_MIN) #define Z3_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(Z3, Y_MIN) #define Z3_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(Z3, Z_MIN) #define Z3_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(Z3, X_MAX) #define Z3_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(Z3, Y_MAX) #define Z3_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(Z3, Z_MAX) #define Z3_STOP_PIN Z_MAX_PIN #else #define Z3_STOP_PIN _En_DIAG_PIN(Z3_E_INDEX) #endif #define AUTO_ASSIGNED_Z3_DIAG 1 #endif #endif #ifndef Z3_CS_PIN #define Z3_CS_PIN -1 #endif #ifndef Z3_MS1_PIN #define Z3_MS1_PIN -1 #endif #ifndef Z3_MS2_PIN #define Z3_MS2_PIN -1 #endif #ifndef Z3_MS3_PIN #define Z3_MS3_PIN -1 #endif // Z4 auto-assignment will use up an E stepper, but not if it's chained #if NUM_Z_STEPPERS >= 4 && !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 // 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) #define Z4_ENABLE_PIN _EPIN(Z4_E_INDEX, ENABLE) #if Z4_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(Z4_STEP) #error "No E stepper plug left for Z4!" #else #define AUTO_ASSIGNED_Z4_STEPPER 1 #endif #endif #if AXIS_HAS_SPI(Z4) && !defined(Z4_CS_PIN) #define Z4_CS_PIN _EPIN(Z4_E_INDEX, CS) #if PIN_EXISTS(Z4_CS) #define AUTO_ASSIGNED_Z4_CS 1 #endif #endif #ifndef Z4_MS1_PIN #define Z4_MS1_PIN _EPIN(Z4_E_INDEX, MS1) #if PIN_EXISTS(Z4_MS1) #define AUTO_ASSIGNED_Z4_MS1 1 #endif #endif #ifndef Z4_MS2_PIN #define Z4_MS2_PIN _EPIN(Z4_E_INDEX, MS2) #if PIN_EXISTS(Z4_MS2) #define AUTO_ASSIGNED_Z4_MS2 1 #endif #endif #ifndef Z4_MS3_PIN #define Z4_MS3_PIN _EPIN(Z4_E_INDEX, MS3) #if PIN_EXISTS(Z4_MS3) #define AUTO_ASSIGNED_Z4_MS3 1 #endif #endif #if AXIS_HAS_UART(Z4) #ifndef Z4_SERIAL_TX_PIN #define Z4_SERIAL_TX_PIN _EPIN(Z4_E_INDEX, SERIAL_TX) #endif #ifndef Z4_SERIAL_RX_PIN #define Z4_SERIAL_RX_PIN _EPIN(Z4_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(Z4_STOP_PIN) && defined(Z4_STALL_SENSITIVITY) && ENABLED(Z_MULTI_ENDSTOPS) && E_DIAG_EXISTS(Z4_E_INDEX) #if DIAG_REMAPPED(Z4, X_MIN) #define Z4_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(Z4, Y_MIN) #define Z4_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(Z4, Z_MIN) #define Z4_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(Z4, X_MAX) #define Z4_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(Z4, Y_MAX) #define Z4_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(Z4, Z_MAX) #define Z4_STOP_PIN Z_MAX_PIN #else #define Z4_STOP_PIN _En_DIAG_PIN(Z4_E_INDEX) #endif #define AUTO_ASSIGNED_Z4_DIAG 1 #endif #endif #ifndef Z4_CS_PIN #define Z4_CS_PIN -1 #endif #ifndef Z4_MS1_PIN #define Z4_MS1_PIN -1 #endif #ifndef Z4_MS2_PIN #define Z4_MS2_PIN -1 #endif #ifndef Z4_MS3_PIN #define Z4_MS3_PIN -1 #endif // I auto-assignment will use up an E stepper, but not if it's chained #if HAS_I_AXIS && !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 // 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) #define I_ENABLE_PIN _EPIN(I_E_INDEX, ENABLE) #if I_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(I_STEP) #error "No E stepper plug left for I!" #else #define AUTO_ASSIGNED_I_STEPPER 1 #endif #endif #if AXIS_HAS_SPI(I) && !defined(I_CS_PIN) #define I_CS_PIN _EPIN(I_E_INDEX, CS) #if PIN_EXISTS(I_CS) #define AUTO_ASSIGNED_I_CS 1 #endif #endif #ifndef I_MS1_PIN #define I_MS1_PIN _EPIN(I_E_INDEX, MS1) #if PIN_EXISTS(I_MS1) #define AUTO_ASSIGNED_I_MS1 1 #endif #endif #ifndef I_MS2_PIN #define I_MS2_PIN _EPIN(I_E_INDEX, MS2) #if PIN_EXISTS(I_MS2) #define AUTO_ASSIGNED_I_MS2 1 #endif #endif #ifndef I_MS3_PIN #define I_MS3_PIN _EPIN(I_E_INDEX, MS3) #if PIN_EXISTS(I_MS3) #define AUTO_ASSIGNED_I_MS3 1 #endif #endif #if AXIS_HAS_UART(I) #ifndef I_SERIAL_TX_PIN #define I_SERIAL_TX_PIN _EPIN(I_E_INDEX, SERIAL_TX) #endif #ifndef I_SERIAL_RX_PIN #define I_SERIAL_RX_PIN _EPIN(I_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(I_STOP_PIN) && defined(I_STALL_SENSITIVITY) && E_DIAG_EXISTS(I_E_INDEX) #if DIAG_REMAPPED(I, X_MIN) #define I_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(I, Y_MIN) #define I_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(I, Z_MIN) #define I_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(I, X_MAX) #define I_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(I, Y_MAX) #define I_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(I, Z_MAX) #define I_STOP_PIN Z_MAX_PIN #else #define I_STOP_PIN _En_DIAG_PIN(I_E_INDEX) #endif #define AUTO_ASSIGNED_I_DIAG 1 #endif #endif #ifndef I_CS_PIN #define I_CS_PIN -1 #endif #ifndef I_MS1_PIN #define I_MS1_PIN -1 #endif #ifndef I_MS2_PIN #define I_MS2_PIN -1 #endif #ifndef I_MS3_PIN #define I_MS3_PIN -1 #endif // J auto-assignment will use up an E stepper, but not if it's chained #if HAS_J_AXIS && !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 // 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) #define J_ENABLE_PIN _EPIN(J_E_INDEX, ENABLE) #if J_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(J_STEP) #error "No E stepper plug left for J!" #else #define AUTO_ASSIGNED_J_STEPPER 1 #endif #endif #if AXIS_HAS_SPI(J) && !defined(J_CS_PIN) #define J_CS_PIN _EPIN(J_E_INDEX, CS) #if PIN_EXISTS(J_CS) #define AUTO_ASSIGNED_J_CS 1 #endif #endif #ifndef J_MS1_PIN #define J_MS1_PIN _EPIN(J_E_INDEX, MS1) #if PIN_EXISTS(J_MS1) #define AUTO_ASSIGNED_J_MS1 1 #endif #endif #ifndef J_MS2_PIN #define J_MS2_PIN _EPIN(J_E_INDEX, MS2) #if PIN_EXISTS(J_MS2) #define AUTO_ASSIGNED_J_MS2 1 #endif #endif #ifndef J_MS3_PIN #define J_MS3_PIN _EPIN(J_E_INDEX, MS3) #if PIN_EXISTS(J_MS3) #define AUTO_ASSIGNED_J_MS3 1 #endif #endif #if AXIS_HAS_UART(J) #ifndef J_SERIAL_TX_PIN #define J_SERIAL_TX_PIN _EPIN(J_E_INDEX, SERIAL_TX) #endif #ifndef J_SERIAL_RX_PIN #define J_SERIAL_RX_PIN _EPIN(J_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(J_STOP_PIN) && defined(J_STALL_SENSITIVITY) && E_DIAG_EXISTS(J_E_INDEX) #if DIAG_REMAPPED(J, X_MIN) #define J_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(J, Y_MIN) #define J_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(J, Z_MIN) #define J_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(J, X_MAX) #define J_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(J, Y_MAX) #define J_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(I, Z_MAX) #define J_STOP_PIN Z_MAX_PIN #else #define J_STOP_PIN _En_DIAG_PIN(J_E_INDEX) #endif #define AUTO_ASSIGNED_J_DIAG 1 #endif #endif #ifndef J_CS_PIN #define J_CS_PIN -1 #endif #ifndef J_MS1_PIN #define J_MS1_PIN -1 #endif #ifndef J_MS2_PIN #define J_MS2_PIN -1 #endif #ifndef J_MS3_PIN #define J_MS3_PIN -1 #endif // K auto-assignment will use up an E stepper, but not if it's chained #if HAS_K_AXIS && !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 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) #define K_ENABLE_PIN _EPIN(K_E_INDEX, ENABLE) #if K_E_INDEX >= MAX_E_STEPPERS || !PIN_EXISTS(K_STEP) #error "No E stepper plug left for K!" #else #define AUTO_ASSIGNED_K_STEPPER 1 #endif #endif #if AXIS_HAS_SPI(K) && !defined(K_CS_PIN) #define K_CS_PIN _EPIN(K_E_INDEX, CS) #if PIN_EXISTS(K_CS) #define AUTO_ASSIGNED_K_CS 1 #endif #endif #ifndef K_MS1_PIN #define K_MS1_PIN _EPIN(K_E_INDEX, MS1) #if PIN_EXISTS(K_MS1) #define AUTO_ASSIGNED_K_MS1 1 #endif #endif #ifndef K_MS2_PIN #define K_MS2_PIN _EPIN(K_E_INDEX, MS2) #if PIN_EXISTS(K_MS2) #define AUTO_ASSIGNED_K_MS2 1 #endif #endif #ifndef K_MS3_PIN #define K_MS3_PIN _EPIN(K_E_INDEX, MS3) #if PIN_EXISTS(K_MS3) #define AUTO_ASSIGNED_K_MS3 1 #endif #endif #if AXIS_HAS_UART(K) #ifndef K_SERIAL_TX_PIN #define K_SERIAL_TX_PIN _EPIN(K_E_INDEX, SERIAL_TX) #endif #ifndef K_SERIAL_RX_PIN #define K_SERIAL_RX_PIN _EPIN(K_E_INDEX, SERIAL_RX) #endif #endif // Auto-assign pins for stallGuard sensorless homing #if !defined(K_STOP_PIN) && defined(K_STALL_SENSITIVITY) && E_DIAG_EXISTS(K_E_INDEX) #if DIAG_REMAPPED(K, X_MIN) #define K_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(K, Y_MIN) #define K_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(K, Z_MIN) #define K_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(K, X_MAX) #define K_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(K, Y_MAX) #define K_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(K, Z_MAX) #define K_STOP_PIN Z_MAX_PIN #else #define K_STOP_PIN _En_DIAG_PIN(K_E_INDEX) #endif #define AUTO_ASSIGNED_K_DIAG 1 #endif #endif #ifndef K_CS_PIN #define K_CS_PIN -1 #endif #ifndef K_MS1_PIN #define K_MS1_PIN -1 #endif #ifndef K_MS2_PIN #define K_MS2_PIN -1 #endif #ifndef K_MS3_PIN #define K_MS3_PIN -1 #endif // U auto-assignment will use up an E stepper, but not if it's chained #if HAS_U_AXIS && !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 U_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_STOP_PIN) && defined(U_STALL_SENSITIVITY) && E_DIAG_EXISTS(U_E_INDEX) #if DIAG_REMAPPED(U, X_MIN) #define U_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(U, Y_MIN) #define U_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(U, Z_MIN) #define U_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(U, X_MAX) #define U_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(U, Y_MAX) #define U_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(U, Z_MAX) #define U_STOP_PIN Z_MAX_PIN #else #define U_STOP_PIN _En_DIAG_PIN(U_E_INDEX) #endif #define AUTO_ASSIGNED_U_DIAG 1 #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 // V auto-assignment will use up an E stepper, but not if it's chained #if HAS_V_AXIS && !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_STOP_PIN) && defined(V_STALL_SENSITIVITY) && E_DIAG_EXISTS(V_E_INDEX) #if DIAG_REMAPPED(V, X_MIN) #define V_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(V, Y_MIN) #define V_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(V, Z_MIN) #define V_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(V, X_MAX) #define V_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(V, Y_MAX) #define V_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(V, Z_MAX) #define V_STOP_PIN Z_MAX_PIN #else #define V_STOP_PIN _En_DIAG_PIN(V_E_INDEX) #endif #define AUTO_ASSIGNED_V_DIAG 1 #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_STOP_PIN) && defined(W_STALL_SENSITIVITY) && E_DIAG_EXISTS(W_E_INDEX) #if DIAG_REMAPPED(W, X_MIN) #define W_STOP_PIN X_MIN_PIN #elif DIAG_REMAPPED(W, Y_MIN) #define W_STOP_PIN Y_MIN_PIN #elif DIAG_REMAPPED(W, Z_MIN) #define W_STOP_PIN Z_MIN_PIN #elif DIAG_REMAPPED(W, X_MAX) #define W_STOP_PIN X_MAX_PIN #elif DIAG_REMAPPED(W, Y_MAX) #define W_STOP_PIN Y_MAX_PIN #elif DIAG_REMAPPED(W, Z_MAX) #define W_STOP_PIN Z_MAX_PIN #else #define W_STOP_PIN _En_DIAG_PIN(W_E_INDEX) #endif #define AUTO_ASSIGNED_W_DIAG 1 #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 /** * X_DUAL_ENDSTOPS endstop reassignment */ #if ENABLED(X_DUAL_ENDSTOPS) && PIN_EXISTS(X2_STOP) #if X_HOME_TO_MAX && !defined(X2_MAX_PIN) #define X2_MAX_PIN X2_STOP_PIN #elif X_HOME_TO_MIN && !defined(X2_MIN_PIN) #define X2_MIN_PIN X2_STOP_PIN #endif #endif /** * Y_DUAL_ENDSTOPS endstop reassignment */ #if ENABLED(Y_DUAL_ENDSTOPS) && PIN_EXISTS(Y2_STOP) #if Y_HOME_TO_MAX && !defined(Y2_MAX_PIN) #define Y2_MAX_PIN Y2_STOP_PIN #elif Y_HOME_TO_MIN && !defined(Y2_MIN_PIN) #define Y2_MIN_PIN Y2_STOP_PIN #endif #endif /** * Z_MULTI_ENDSTOPS endstop reassignment */ #if ENABLED(Z_MULTI_ENDSTOPS) #if PIN_EXISTS(Z2_STOP) #if Z_HOME_TO_MAX && !defined(Z2_MAX_PIN) #define Z2_MAX_PIN Z2_STOP_PIN #elif Z_HOME_TO_MIN && !defined(Z2_MIN_PIN) #define Z2_MIN_PIN Z2_STOP_PIN #endif #endif #if NUM_Z_STEPPERS >= 3 && PIN_EXISTS(Z3_STOP) #if Z_HOME_TO_MAX && !defined(Z3_MAX_PIN) #define Z3_MAX_PIN Z3_STOP_PIN #elif Z_HOME_TO_MIN && !defined(Z3_MIN_PIN) #define Z3_MIN_PIN Z3_STOP_PIN #endif #endif #if NUM_Z_STEPPERS >= 4 && PIN_EXISTS(Z4_STOP) #if Z_HOME_TO_MAX && !defined(Z4_MAX_PIN) #define Z4_MAX_PIN Z4_STOP_PIN #elif Z_HOME_TO_MIN && !defined(Z4_MIN_PIN) #define Z4_MIN_PIN Z4_STOP_PIN #endif #endif #endif // // Default DOGLCD SPI delays // #if !IS_U8GLIB_ST7920 #undef ST7920_DELAY_1 #undef ST7920_DELAY_2 #undef ST7920_DELAY_3 #undef LCD_ST7920_DELAY_1 #undef LCD_ST7920_DELAY_2 #undef LCD_ST7920_DELAY_3 #undef BOARD_ST7920_DELAY_1 #undef BOARD_ST7920_DELAY_2 #undef BOARD_ST7920_DELAY_3 #undef CPU_ST7920_DELAY_1 #undef CPU_ST7920_DELAY_2 #undef CPU_ST7920_DELAY_3 #endif #if !NEED_CASE_LIGHT_PIN #undef CASE_LIGHT_PIN #endif #undef HAS_FREE_AUX2_PINS #undef DIAG_REMAPPED #undef _E_DIAG_EXISTS #undef E_DIAG_EXISTS // Get a NeoPixel pin from the LCD or board, if provided #ifndef NEOPIXEL_PIN #ifdef LCD_NEOPIXEL_PIN #define NEOPIXEL_PIN LCD_NEOPIXEL_PIN #elif defined(BOARD_NEOPIXEL_PIN) #define NEOPIXEL_PIN BOARD_NEOPIXEL_PIN #endif #endif
2301_81045437/Marlin
Marlin/src/pins/pins_postprocess.h
C
agpl-3.0
42,928
/** * 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/>. * */ #ifndef ENV_VALIDATE_H #define ENV_VALIDATE_H #if NOT_TARGET(__AVR_ATmega2560__) #error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'" #endif #endif
2301_81045437/Marlin
Marlin/src/pins/rambo/env_validate.h
C
agpl-3.0
1,032
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Einsy-Rambo pin assignments * Schematic: https://github.com/ultimachine/Einsy-Rambo/blob/1.1a/board/Project%20Outputs/Schematic%20Prints_Einsy%20Rambo_1.1a.PDF */ #include "env_validate.h" #define BOARD_INFO_NAME "Einsy Rambo" #define DEFAULT_MACHINE_NAME "Prusa MK3" //#define MK3_FAN_PINS // // TMC2130 Configuration_adv defaults for EinsyRambo // #if (HAS_X_AXIS && !AXIS_DRIVER_TYPE_X(TMC2130)) || (HAS_Y_AXIS && !AXIS_DRIVER_TYPE_Y(TMC2130)) || (HAS_Z_AXIS && !AXIS_DRIVER_TYPE_Z(TMC2130)) || (HAS_EXTRUDERS && !AXIS_DRIVER_TYPE_E0(TMC2130)) #error "For EinsyRambo you must set all *_DRIVER_TYPE to TMC2130 in Configuration.h." #endif // TMC2130 Diag Pins (currently just for reference) #define X_DIAG_PIN 64 #define Y_DIAG_PIN 69 #define Z_DIAG_PIN 68 #define E0_DIAG_PIN 65 // // Limit Switches // // Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers. // Otherwise use a physical endstop based configuration. // // SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING. // #if DISABLED(SENSORLESS_HOMING) #define X_STOP_PIN 12 #define Y_STOP_PIN 11 #define Z_STOP_PIN 10 #else #define X_STOP_PIN X_DIAG_PIN #define Y_STOP_PIN Y_DIAG_PIN #if ENABLED(BLTOUCH) #define Z_STOP_PIN 11 // Y-MIN #define SERVO0_PIN 10 // Z-MIN #else #define Z_STOP_PIN 10 #endif #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 10 #endif // // Filament Runout Sensor // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 62 #endif // // Steppers // #define X_STEP_PIN 37 #define X_DIR_PIN 49 #define X_ENABLE_PIN 29 #define X_CS_PIN 41 #define Y_STEP_PIN 36 #define Y_DIR_PIN 48 #define Y_ENABLE_PIN 28 #define Y_CS_PIN 39 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 #define Z_CS_PIN 67 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 #define E0_CS_PIN 66 // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input, Header J2 #define TEMP_1_PIN 1 // Analog Input, Header J3 #define TEMP_BED_PIN 2 // Analog Input, Header J6 #define TEMP_PROBE_PIN 3 // Analog Input, Header J15 #ifndef TEMP_BOARD_PIN #define TEMP_BOARD_PIN 91 // Onboard thermistor, 100k TDK NTCG104LH104JT1 #endif // // Heaters / Fans // #define HEATER_0_PIN 3 #define HEATER_BED_PIN 4 #ifndef FAN0_PIN #ifdef MK3_FAN_PINS #define FAN0_PIN 6 #else #define FAN0_PIN 8 #endif #endif #ifndef FAN1_PIN #ifdef MK3_FAN_PINS #define FAN1_PIN -1 #else #define FAN1_PIN 6 #endif #endif /** * ------ ------ ------ * 84 PH2 | 1 2 | PH6 9 50 MISO | 1 2 | SCK 52 62 PK0 | 1 2 | PJ5 76 * 61 PF7 | 3 4 | PD5 82 72 PJ2 | 3 4 | SDSS 77 20 SDA | 3 4 | GND * 59 PF5 | 5 6 PG4 70 14 TX3 | 5 6 MOSI 51 21 SCL | 5 6 RX2 16 * 85 PH7 | 7 8 | PG3 71 15 RX3 | 7 8 | RESET GND | 7 8 | TX2 17 * GND | 9 10 | 5V GND | 9 10 | PE3 5 5V | 9 10 | 5V * ------ ------ ------ * P1 P2 P3 */ #define EXP1_01_PIN 84 #define EXP1_02_PIN 9 #define EXP1_03_PIN 61 #define EXP1_04_PIN 82 #define EXP1_05_PIN 59 #define EXP1_06_PIN 70 #define EXP1_07_PIN 85 #define EXP1_08_PIN 71 #define EXP2_01_PIN 50 #define EXP2_02_PIN 52 #define EXP2_03_PIN 72 #define EXP2_04_PIN 77 #define EXP2_05_PIN 14 #define EXP2_06_PIN 51 #define EXP2_07_PIN 15 #define EXP2_08_PIN -1 // // Misc. Functions // #define SDSS EXP2_04_PIN #define LED_PIN 13 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN EXP1_02_PIN #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER // Use P1 connector for spindle pins #define SPINDLE_LASER_PWM_PIN EXP1_02_PIN // Hardware PWM #define SPINDLE_LASER_ENA_PIN 18 // Pullup! #define SPINDLE_DIR_PIN 19 #endif // // Průša i3 MK2 Multiplexer Support // #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 // #if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL #define KILL_PIN 32 #if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #if ENABLED(CR10_STOCKDISPLAY) #define LCD_PINS_RS EXP1_07_PIN #define LCD_PINS_EN EXP1_08_PIN #define LCD_PINS_D4 EXP1_06_PIN #define BTN_EN1 EXP1_03_PIN #define BTN_EN2 EXP1_05_PIN #else #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN EXP1_03_PIN #define LCD_PINS_D4 EXP1_05_PIN #define LCD_PINS_D5 EXP1_06_PIN #define LCD_PINS_D6 EXP1_07_PIN #define LCD_PINS_D7 EXP1_08_PIN #define BTN_EN1 EXP2_05_PIN #define BTN_EN2 EXP2_03_PIN #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif #define BTN_ENC EXP1_02_PIN // P1 #define BEEPER_PIN EXP1_01_PIN // P1 #define SD_DETECT_PIN EXP2_07_PIN #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #endif // HAS_WIRED_LCD #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 250 #define BOARD_ST7920_DELAY_3 0 #endif #undef MK3_FAN_PINS
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
C
agpl-3.0
8,237
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Einsy-Retro pin assignments * Schematic (1.0b): https://github.com/ultimachine/EinsyRetro/blob/master/board/Project%20Outputs/Schematic%20Prints_EinsyRetro_1.0b.PDF * Schematic (1.0c): https://github.com/ultimachine/EinsyRetro/blob/master/board/Project%20Outputs/Schematic%20Prints_EinsyRetro_1.0c.PDF */ #include "env_validate.h" #define BOARD_INFO_NAME "Einsy Retro" // // TMC2130 Configuration_adv defaults for EinsyRetro // #if !AXIS_DRIVER_TYPE_X(TMC2130) || !AXIS_DRIVER_TYPE_Y(TMC2130) || !AXIS_DRIVER_TYPE_Z(TMC2130) || !AXIS_DRIVER_TYPE_E0(TMC2130) #error "You must set ([XYZ]|E0)_DRIVER_TYPE to TMC2130 in Configuration.h for EinsyRetro." #endif // TMC2130 Diag Pins #define X_DIAG_PIN 64 #define Y_DIAG_PIN 69 #define Z_DIAG_PIN 68 #define E0_DIAG_PIN 65 // // Limit Switches // // Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers. // Otherwise use a physical endstop based configuration. // // SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING. // #if DISABLED(SENSORLESS_HOMING) #define X_MIN_PIN 12 // X- #define Y_MIN_PIN 11 // Y- #define X_MAX_PIN 81 // X+ #define Y_MAX_PIN 57 // Y+ #else #if X_HOME_TO_MIN #define X_MIN_PIN X_DIAG_PIN #define X_MAX_PIN 81 // X+ #else #define X_MIN_PIN 12 // X- #define X_MAX_PIN X_DIAG_PIN #endif #if Y_HOME_TO_MIN #define Y_MIN_PIN Y_DIAG_PIN #define Y_MAX_PIN 57 // Y+ #else #define Y_MIN_PIN 11 // Y- #define Y_MAX_PIN Y_DIAG_PIN #endif #if ENABLED(BLTOUCH) #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) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 10 #endif // // Steppers // #define X_STEP_PIN 37 #define X_DIR_PIN 49 #define X_ENABLE_PIN 29 #define X_CS_PIN 41 #define Y_STEP_PIN 36 #define Y_DIR_PIN 48 #define Y_ENABLE_PIN 28 #define Y_CS_PIN 39 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 #define Z_CS_PIN 67 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 #define E0_CS_PIN 66 // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input #define TEMP_BED_PIN 2 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 3 #define HEATER_BED_PIN 4 #ifndef FAN0_PIN #define FAN0_PIN 8 #endif #define FAN1_PIN 6 // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 9 #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER // Use P1 connector for spindle pins #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 18 // Pullup! #define SPINDLE_DIR_PIN 19 #endif // // Průša i3 MK2 Multiplexer Support // #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 // // EXP Headers // #define EXP1_01_PIN 84 // PH2 #define EXP1_02_PIN 9 // PH6 #define EXP1_03_PIN 18 // TX1 #define EXP1_04_PIN 82 // PD5 #define EXP1_05_PIN 19 // RX1 #define EXP1_06_PIN 70 // PG4 #define EXP1_07_PIN 85 // PH7 #define EXP1_08_PIN 71 // PG3 #define EXP2_01_PIN 50 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 72 // PJ2 #define EXP2_04_PIN 53 // SDSS #define EXP2_05_PIN 14 // TX3 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 15 // RX3 #define EXP2_08_PIN -1 // RESET #define EXP3_01_PIN 62 // PK0 (A8) #define EXP3_02_PIN 76 // PJ5 #define EXP3_03_PIN 20 // SDA #define EXP3_04_PIN -1 // GND #define EXP3_05_PIN 21 // SCL #define EXP3_06_PIN 16 // RX2 #define EXP3_07_PIN -1 // GND #define EXP3_08_PIN 17 // TX2 // // LCD / Controller // #if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE) #define KILL_PIN 32 #if ANY(IS_ULTIPANEL, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE) #if ENABLED(CR10_STOCKDISPLAY) #define LCD_PINS_RS EXP1_07_PIN #define LCD_PINS_EN EXP1_08_PIN #define LCD_PINS_D4 EXP1_06_PIN #define BTN_EN1 EXP1_03_PIN #define BTN_EN2 EXP1_05_PIN #else #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN EXP1_03_PIN // On 0.6b, use 61 #define LCD_PINS_D4 EXP1_05_PIN // On 0.6b, use 59 #define LCD_PINS_D5 EXP1_06_PIN #define LCD_PINS_D6 EXP1_07_PIN #define LCD_PINS_D7 EXP1_08_PIN #define BTN_EN1 EXP2_05_PIN #define BTN_EN2 EXP2_03_PIN #endif #define BTN_ENC EXP1_02_PIN // AUX-2 #define BEEPER_PIN EXP1_01_PIN // AUX-4 #define SD_DETECT_PIN EXP2_07_PIN #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE // Alter timing for graphical display #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 250 #define BOARD_ST7920_DELAY_3 0 #endif
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_EINSY_RETRO.h
C
agpl-3.0
8,244
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Mini-RAMBo pin assignments * Schematic (1.3a): https://github.com/ultimachine/Mini-Rambo/blob/1.3a/board/Project%20Outputs%20for%20Mini-Rambo/Mini-Rambo.PDF * Schematic (1.0a): https://github.com/ultimachine/Mini-Rambo/blob/v1.1b/board/Project%20Outputs%20for%20Mini-Rambo/Mini-Rambo.PDF */ #include "env_validate.h" #ifndef BOARD_INFO_NAME #if MB(MINIRAMBO_10A) #define BOARD_INFO_NAME "Mini RAMBo 1.0a" #else #define BOARD_INFO_NAME "Mini RAMBo" #endif #endif // // Limit Switches // #define X_MIN_PIN 12 #define X_MAX_PIN 30 #define Y_MIN_PIN 11 #define Y_MAX_PIN 24 #define Z_MIN_PIN 10 #define Z_MAX_PIN 23 #if HAS_I_AXIS #define I_STOP_PIN 30 // X_MAX (for now) #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 23 #endif // // Steppers // #define X_STEP_PIN 37 #define X_DIR_PIN 48 #define X_ENABLE_PIN 29 #define Y_STEP_PIN 36 #define Y_DIR_PIN 49 #define Y_ENABLE_PIN 28 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 // Microstepping pins #define X_MS1_PIN 40 #define X_MS2_PIN 41 #define Y_MS1_PIN 69 #define Y_MS2_PIN 39 #define Z_MS1_PIN 68 #define Z_MS2_PIN 67 #define E0_MS1_PIN 65 #define E0_MS2_PIN 66 #define MOTOR_CURRENT_PWM_XY_PIN 46 #define MOTOR_CURRENT_PWM_Z_PIN 45 #define MOTOR_CURRENT_PWM_E_PIN 44 // Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range #ifndef MOTOR_CURRENT_PWM_RANGE #define MOTOR_CURRENT_PWM_RANGE 2000 #endif #define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250} // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input #define TEMP_BED_PIN 2 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 3 #define HEATER_1_PIN 7 #if !MB(MINIRAMBO_10A) #define HEATER_2_PIN 6 #endif #define HEATER_BED_PIN 4 #ifndef FAN0_PIN #define FAN0_PIN 8 #endif #define FAN1_PIN 6 // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #if !MB(MINIRAMBO_10A) #define CASE_LIGHT_PIN 9 #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER // Use P1 connector for spindle pins #ifndef SPINDLE_LASER_PWM_PIN #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM #endif #ifndef SPINDLE_LASER_ENA_PIN #define SPINDLE_LASER_ENA_PIN 18 // Pullup! #endif #ifndef SPINDLE_DIR_PIN #define SPINDLE_DIR_PIN 19 #endif #endif // // Průša i3 MK2 Multiplexer Support // #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 // // LCD / Controller // #if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL #if !MB(MINIRAMBO_10A) #define KILL_PIN 32 #endif #if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #if MB(MINIRAMBO_10A) #define BEEPER_PIN 78 #define BTN_EN1 80 #define BTN_EN2 73 #define BTN_ENC 21 #define LCD_PINS_RS 38 #define LCD_PINS_EN 5 #define LCD_PINS_D4 14 #define LCD_PINS_D5 15 #define LCD_PINS_D6 32 #define LCD_PINS_D7 31 #define SD_DETECT_PIN 72 #else // !MINIRAMBO_10A // AUX-4 #define BEEPER_PIN 84 // AUX-2 #define BTN_EN1 14 #define BTN_EN2 72 #define BTN_ENC 9 #define LCD_PINS_RS 82 #define LCD_PINS_EN 18 #define LCD_PINS_D4 19 #define LCD_PINS_D5 70 #define LCD_PINS_D6 85 #define LCD_PINS_D7 71 #define SD_DETECT_PIN 15 #endif // !MINIRAMBO_10A #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 250 #define BOARD_ST7920_DELAY_3 0 #endif
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_MINIRAMBO.h
C
agpl-3.0
6,615
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * IMPORTANT NOTE: * Rambo users should be sure to compile Marlin using either the RAMBo * board type if using the Arduino IDE - available via the link below - or * the 'rambo' environment if using platformio, by specifying '-e rambo' on * the command line or by changing the value of the 'env_default' variable to * 'rambo' in the supplied platformio.ini. * * If you don't compile using the proper board type, the RAMBo's extended * pins will likely be unavailable and accessories/addons may not work. * * Instructions for installing the Arduino RAMBo board type for the * Arduino IDE are available at: * https://reprap.org/wiki/Rambo_firmware */ /** * Rambo pin assignments * Schematic (1.1b): https://www.reprap.org/wiki/File:Rambo1-1-schematic.png */ #include "env_validate.h" #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "Rambo" #endif // // Servos // #ifndef SERVO0_PIN #define SERVO0_PIN 22 // Motor header MX1 #endif #define SERVO1_PIN 23 // Motor header MX2 #ifndef SERVO2_PIN #define SERVO2_PIN 24 // Motor header MX3 #endif #define SERVO3_PIN 5 // PWM header pin 5 // // Limit Switches // #define X_MIN_PIN 12 #define X_MAX_PIN 24 #define Y_MIN_PIN 11 #define Y_MAX_PIN 23 #ifndef Z_MIN_PIN #define Z_MIN_PIN 10 #endif #define Z_MAX_PIN 30 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 30 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 5 #endif // // Steppers // #define X_STEP_PIN 37 #define X_DIR_PIN 48 #define X_ENABLE_PIN 29 #define Y_STEP_PIN 36 #define Y_DIR_PIN 49 #define Y_ENABLE_PIN 28 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 #define E1_STEP_PIN 33 #define E1_DIR_PIN 42 #define E1_ENABLE_PIN 25 // Microstepping pins - Mapping not from fastio.h (?) #define X_MS1_PIN 40 #define X_MS2_PIN 41 #define Y_MS1_PIN 69 #define Y_MS2_PIN 39 #define Z_MS1_PIN 68 #define Z_MS2_PIN 67 #define E0_MS1_PIN 65 #define E0_MS2_PIN 66 #define E1_MS1_PIN 63 #define E1_MS2_PIN 64 #define DIGIPOTSS_PIN 38 #define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // X Y Z E0 E1 digipot channels to stepper driver mapping #ifndef DIGIPOT_MOTOR_CURRENT #define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A) #endif // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input #define TEMP_BED_PIN 2 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 9 #define HEATER_1_PIN 7 #define HEATER_2_PIN 6 #define HEATER_BED_PIN 3 #ifndef FAN0_PIN #define FAN0_PIN 8 #endif #ifndef FAN1_PIN #define FAN1_PIN 6 #endif #ifndef FAN2_PIN #define FAN2_PIN 2 #endif // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #define PS_ON_PIN 4 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 46 #endif #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 3 // Analog Input #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 31 // Pullup! #define SPINDLE_DIR_PIN 32 #endif // // SPI for MAX Thermocouple // #ifndef TEMP_0_CS_PIN #define TEMP_0_CS_PIN 32 // SPINDLE_DIR_PIN / STAT_LED_BLUE_PIN #endif // // M7/M8/M9 - Coolant Control // #define COOLANT_MIST_PIN 22 #define COOLANT_FLOOD_PIN 44 // // Průša i3 MK2 Multiplexer Support // #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 // #if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL #define KILL_PIN 80 #if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL #define LCD_PINS_RS 70 #define LCD_PINS_EN 71 #define LCD_PINS_D4 72 #define LCD_PINS_D5 73 #define LCD_PINS_D6 74 #define LCD_PINS_D7 75 #if ANY(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 // diagram is actually pin 44, so this is correct. #define DOGLCD_A0 70 #define DOGLCD_CS 71 #define BTN_EN1 85 #define BTN_EN2 84 #define BTN_ENC 83 #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board #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 // AUX-2 #ifndef BTN_EN1 #define BTN_EN1 76 #endif #ifndef BTN_EN2 #define BTN_EN2 77 #endif #define BTN_ENC 78 #define SD_DETECT_PIN 81 #endif // !VIKI2 && !miniVIKI #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #else // !IS_NEWPANEL - old style panel with shift register // No Beeper added #define BEEPER_PIN 33 // 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 17 #define LCD_PINS_RS 75 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #endif // !IS_NEWPANEL #endif // HAS_WIRED_LCD // Alter timing for graphical display #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 0 #define BOARD_ST7920_DELAY_3 0 #endif
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_RAMBO.h
C
agpl-3.0
8,815
/** * 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 /** * Rambo ThinkerV2 pin assignments */ #define BOARD_INFO_NAME "Rambo ThinkerV2" #define SERVO0_PIN 4 // Motor header MX1 #define SERVO2_PIN -1 // Motor header MX3 #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 10 #endif // Support BLTouch and fixed probes #if ENABLED(BLTOUCH) #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) #define Z_MIN_PIN 22 #elif !defined(Z_MIN_PROBE_PIN) #define Z_MIN_PROBE_PIN 22 #endif #elif ENABLED(FIX_MOUNTED_PROBE) #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) #define Z_MIN_PIN 4 #elif !defined(Z_MIN_PROBE_PIN) #define Z_MIN_PROBE_PIN 4 #endif #endif // Eryone has the fan pins reversed #define FAN1_PIN 2 #define FAN2_PIN 6 // Encoder #define BTN_EN1 64 #define BTN_EN2 63 #include "pins_RAMBO.h"
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_RAMBO_THINKERV2.h
C
agpl-3.0
1,933
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /************************************************ * Rambo pin assignments MODIFIED FOR Scoovo X9H ************************************************/ #include "env_validate.h" #define BOARD_INFO_NAME "Scoovo X9H" // // Servos // #define SERVO0_PIN 22 // Motor header MX1 #define SERVO1_PIN 23 // Motor header MX2 #define SERVO2_PIN 24 // Motor header MX3 #define SERVO3_PIN 5 // PWM header pin 5 // // Limit Switches // #define X_MIN_PIN 12 #define X_MAX_PIN 24 #define Y_MIN_PIN 11 #define Y_MAX_PIN 23 #define Z_MIN_PIN 10 #define Z_MAX_PIN 30 // // Z Probe (when not Z_MIN_IN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 30 #endif // // Steppers // #define X_STEP_PIN 37 #define X_DIR_PIN 48 #define X_ENABLE_PIN 29 #define Y_STEP_PIN 36 #define Y_DIR_PIN 49 #define Y_ENABLE_PIN 28 #define Z_STEP_PIN 35 #define Z_DIR_PIN 47 #define Z_ENABLE_PIN 27 #define E0_STEP_PIN 34 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 26 #define E1_STEP_PIN 33 #define E1_DIR_PIN 42 #define E1_ENABLE_PIN 25 // Microstepping pins - Mapping not from fastio.h (?) #define X_MS1_PIN 40 #define X_MS2_PIN 41 #define Y_MS1_PIN 69 #define Y_MS2_PIN 39 #define Z_MS1_PIN 68 #define Z_MS2_PIN 67 #define E0_MS1_PIN 65 #define E0_MS2_PIN 66 #define E1_MS1_PIN 63 #define E1_MS2_PIN 64 #define DIGIPOTSS_PIN 38 #define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // X Y Z E0 E1 digipot channels to stepper driver mapping // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_BED_PIN 7 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 9 #define HEATER_1_PIN 7 #define HEATER_BED_PIN 3 #ifndef FAN0_PIN #define FAN0_PIN 8 #endif #define FAN1_PIN 6 #define FAN2_PIN 2 // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #define PS_ON_PIN 4 #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 3 // Analog Input #endif // // LCD / Controller // #define LCD_PINS_RS 70 // Ext2_5 #define LCD_PINS_EN 71 // Ext2_7 #define LCD_PINS_D4 72 // Ext2_9 ? #define LCD_PINS_D5 73 // Ext2_11 ? #define LCD_PINS_D6 74 // Ext2_13 #define LCD_PINS_D7 75 // Ext2_15 ? #define BEEPER_PIN -1 #define BTN_HOME 80 // Ext_16 #define BTN_CENTER 81 // Ext_14 #define BTN_ENC BTN_CENTER #define BTN_RIGHT 82 // Ext_12 #define BTN_LEFT 83 // Ext_10 #define BTN_UP 84 // Ext2_8 #define BTN_DOWN 85 // Ext2_6 #define HOME_PIN BTN_HOME #if ANY(VIKI2, miniVIKI) #define BEEPER_PIN 44 // Pins for DOGM SPI LCD Support #define DOGLCD_A0 70 #define DOGLCD_CS 71 #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board #define STAT_LED_RED_PIN 22 #define STAT_LED_BLUE_PIN 32 #define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270 #endif
2301_81045437/Marlin
Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
C
agpl-3.0
5,438
/** * 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/>. * */ #ifndef ENV_VALIDATE_H #define ENV_VALIDATE_H #if ENABLED(ALLOW_SAM3X8E) #if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__) #error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'" #endif #elif ENABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega2560__) #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'" #elif DISABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__) #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'" #endif #undef ALLOW_SAM3X8E #undef REQUIRE_MEGA2560 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/env_validate.h
C
agpl-3.0
1,476
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * 3DRAG (and K8200 / K8400) Arduino Mega with RAMPS v1.4 pin assignments * This may be compatible with the standalone Controller variant. * Schematic: https://reprap.org/wiki/File:Schema_base.jpg * ATmega2560, ATmega1280 */ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "3Drag" #endif #ifndef DEFAULT_MACHINE_NAME #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #endif #ifndef DEFAULT_SOURCE_CODE_URL #define DEFAULT_SOURCE_CODE_URL "3dprint.elettronicain.it" #endif // // Limit Switches // #define Z_STOP_PIN 18 // // Steppers // #if HAS_CUTTER #define Z_DIR_PIN 28 #define Z_ENABLE_PIN 24 #define Z_STEP_PIN 26 #else #define Z_ENABLE_PIN 63 #endif #if HAS_CUTTER && !HAS_EXTRUDERS #define E0_DIR_PIN -1 #define E0_ENABLE_PIN -1 #define E0_STEP_PIN -1 #endif // // Heaters / Fans // #define MOSFET_B_PIN 8 #define MOSFET_C_PIN 9 #define MOSFET_D_PIN 12 #define HEATER_2_PIN 6 // // Misc. Functions // #define SDSS 25 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header #endif /** * M3/M4/M5 - Spindle/Laser Control * * If you want to control the speed of your spindle then you'll have * have to sacrifce the Extruder and pull some signals off the Z stepper * driver socket. * * The following assumes: * - the Z stepper driver socket is empty * - the extruder driver socket has a driver board plugged into it * - the Z stepper wires are attached the the extruder connector * * If you want to keep the extruder AND don't have a LCD display then * you can still control the power on/off and spindle direction. * * Where to get spindle signals * * stepper signal socket name socket name * ------- * SPINDLE_LASER_ENA_PIN /ENABLE O| |O VMOT * MS1 O| |O GND * MS2 O| |O 2B * MS3 O| |O 2A * /RESET O| |O 1A * /SLEEP O| |O 1B * SPINDLE_LASER_PWM_PIN STEP O| |O VDD * SPINDLE_DIR_PIN DIR O| |O GND * ------- * * Note: Socket names vary from vendor to vendor */ #if HAS_CUTTER #if !HAS_EXTRUDERS #define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 62 // Pullup! #define SPINDLE_DIR_PIN 48 #elif !ALL(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 #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM #elif HAS_FREE_AUX2_PINS #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #endif #endif #endif // // LCD / Controller // #if HAS_WIRED_LCD && IS_NEWPANEL #undef BEEPER_PIN // TODO: Remap EXP1/2 based on adapter #define LCD_PINS_RS 27 #define LCD_PINS_EN 29 #define LCD_PINS_D4 37 #define LCD_PINS_D5 35 #define LCD_PINS_D6 33 #define LCD_PINS_D7 31 // Buttons #define BTN_EN1 16 #define BTN_EN2 17 #define BTN_ENC 23 #define LCD_PINS_DEFINED #else #define BEEPER_PIN 33 #endif // HAS_WIRED_LCD && IS_NEWPANEL #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 188 #define BOARD_ST7920_DELAY_3 0 #endif #define SD_DETECT_PIN 53 #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_3DRAG.h
C
agpl-3.0
5,238
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments * Schematic: http://files.panucatt.com/datasheets/azteegx3_designfiles.zip * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "Azteeg X3 supports up to 2 hotends / E steppers." #endif #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) #define CASE_LIGHT_PIN 6 // Define before RAMPS pins include #endif #define BOARD_INFO_NAME "Azteeg X3" // // Servos // #define SERVO0_PIN 44 // SERVO1 port #define SERVO1_PIN 55 // SERVO2 port #include "pins_RAMPS_13.h" // ... RAMPS // // LCD / Controller // #undef STAT_LED_RED_PIN #undef STAT_LED_BLUE_PIN #if ANY(VIKI2, miniVIKI) #undef DOGLCD_A0 #undef DOGLCD_CS #undef BTN_ENC #define DOGLCD_A0 31 #define DOGLCD_CS 32 #define BTN_ENC 12 #define STAT_LED_RED_PIN 64 #define STAT_LED_BLUE_PIN 63 #else #define STAT_LED_RED_PIN 6 #define STAT_LED_BLUE_PIN 11 #endif // // Misc // #if ENABLED(CASE_LIGHT_ENABLE) && PINS_EXIST(CASE_LIGHT, STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN #undef STAT_LED_RED_PIN #endif // // M3/M4/M5 - Spindle/Laser Control // #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board #undef SPINDLE_LASER_ENA_PIN #undef SPINDLE_DIR_PIN #if HAS_CUTTER #undef SDA // use EXP3 header #undef SCL #if SERVO0_PIN == 7 #undef SERVO0_PIN #define SERVO0_PIN 11 #endif #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 20 // Pullup! #define SPINDLE_DIR_PIN 21 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_AZTEEG_X3.h
C
agpl-3.0
2,832
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * AZTEEG_X3_PRO (Arduino Mega) pin assignments * Schematic: http://files.panucatt.com/datasheets/x3pro_sch_v1.0.zip * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 5 || E_STEPPERS > 5 #error "Azteeg X3 Pro supports up to 5 hotends / E steppers." #endif #define BOARD_INFO_NAME "Azteeg X3 Pro" // // RAMPS pins overrides // // // Servos // // Tested this pin with bed leveling on a Delta with 1 servo. // Physical wire attachment on EXT1: GND, 5V, D47. // #define SERVO0_PIN 47 // // Limit Switches // #define X_STOP_PIN 3 #define Y_STOP_PIN 14 #define Z_STOP_PIN 18 #ifndef FAN0_PIN #define FAN0_PIN 6 #endif #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) #define CASE_LIGHT_PIN 44 #endif // // Import RAMPS 1.4 pins // #include "pins_RAMPS.h" // DIGIPOT slave addresses #ifndef DIGIPOT_I2C_ADDRESS_A #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1) #endif #ifndef DIGIPOT_I2C_ADDRESS_B #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1) #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 18 #endif // // Steppers // #define E2_STEP_PIN 23 #define E2_DIR_PIN 25 #define E2_ENABLE_PIN 40 #define E3_STEP_PIN 27 #define E3_DIR_PIN 29 #define E3_ENABLE_PIN 41 #define E4_STEP_PIN 43 #define E4_DIR_PIN 37 #define E4_ENABLE_PIN 42 // // Temperature Sensors // #define TEMP_2_PIN 12 // Analog Input #define TEMP_3_PIN 11 // Analog Input #define TEMP_4_PIN 10 // Analog Input #define TC1 4 // Analog Input (Thermo couple on Azteeg X3Pro) #define TC2 5 // Analog Input (Thermo couple on Azteeg X3Pro) // // Heaters / Fans // #define HEATER_2_PIN 16 #define HEATER_3_PIN 17 #define HEATER_4_PIN 4 #define HEATER_5_PIN 5 #define HEATER_6_PIN 6 #define HEATER_7_PIN 11 #ifndef CONTROLLER_FAN_PIN #define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable) #endif // // Auto fans // #define AUTO_FAN_PIN 5 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E1_AUTO_FAN_PIN #define E1_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E2_AUTO_FAN_PIN #define E2_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E3_AUTO_FAN_PIN #define E3_AUTO_FAN_PIN AUTO_FAN_PIN #endif // // LCD / Controller // #undef BEEPER_PIN #define BEEPER_PIN 33 #if ANY(VIKI2, miniVIKI) #undef SD_DETECT_PIN #define SD_DETECT_PIN 49 // For easy adapter board #undef BEEPER_PIN #define BEEPER_PIN 12 // 33 isn't physically available to the LCD display #else #define STAT_LED_RED_PIN 32 #define STAT_LED_BLUE_PIN 35 #endif // // Misc. Functions // #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. #endif // // M3/M4/M5 - Spindle/Laser Control // #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board #undef SPINDLE_LASER_ENA_PIN #undef SPINDLE_DIR_PIN #if HAS_CUTTER // EXP2 header #if ANY(VIKI2, miniVIKI) #define BTN_EN2 31 // Pin 7 needed for Spindle PWM #endif #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 20 // Pullup! #define SPINDLE_DIR_PIN 21 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
C
agpl-3.0
5,589
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * BAM&DICE Due (Arduino Mega) pin assignments * Schematic: http://www.2printbeta.de/download/2PRINTBETA-BAM&DICE-DUE-V1.1-sch.pdf * ATmega2560, ATmega1280 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "2PrintBeta Due supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "2PrintBeta Due" // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown! #define SPINDLE_DIR_PIN 67 #endif // // Temperature Sensors // #define TEMP_0_PIN 9 // Analog Input #define TEMP_1_PIN 11 // Analog Input #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h
C
agpl-3.0
1,631
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * KFB 2.0 – Arduino Mega2560 with RAMPS v1.4 pin assignments * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "KFB 2.0 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "KFB 2.0" // // Heaters / Fans // #define MOSFET_D_PIN 7 #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_BIQU_KFB_2.h
C
agpl-3.0
1,196
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * bq ZUM Mega 3D board definition * Schematic: https://github.com/bq/zum/blob/master/zum-mega3d/Zum%20Mega%203D.PDF * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #define BOARD_INFO_NAME "ZUM Mega 3D" // // Limit Switches // #define X_MAX_PIN 79 // This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team // decided to ship the printer only with the probe and no additional Z-min // endstop and the instruction manual advises the user to connect the probe to // IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work. #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) #define Z_MIN_PIN 19 // IND_S_5V #define Z_MAX_PIN 18 // Z-MIN Label #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 19 // IND_S_5V #endif // // Steppers // #define Z_ENABLE_PIN 77 #define DIGIPOTSS_PIN 22 #define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // // Temperature Sensors // #define TEMP_1_PIN 14 // Analog Input #define TEMP_BED_PIN 15 // Analog Input // // Heaters / Fans // #define MOSFET_A_PIN 9 #define MOSFET_B_PIN 12 #define MOSFET_C_PIN 10 #define MOSFET_D_PIN 7 // // Auto fans // #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 11 #endif #ifndef E1_AUTO_FAN_PIN #define E1_AUTO_FAN_PIN 6 #endif #ifndef E2_AUTO_FAN_PIN #define E2_AUTO_FAN_PIN 6 #endif #ifndef E3_AUTO_FAN_PIN #define E3_AUTO_FAN_PIN 6 #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown! #define SPINDLE_DIR_PIN 42 #endif // // Misc. Functions // #define PS_ON_PIN 81 // External Power Supply #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 44 // Hardware PWM #endif // Alter timing for graphical display #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 0 #define BOARD_ST7920_DELAY_3 189 #endif // // Import RAMPS 1.3 pins // #include "pins_RAMPS_13.h" // ... RAMPS // // Hephestos 2 heated bed upgrade kit uses pin 8 // #if ENABLED(HEPHESTOS2_HEATED_BED_KIT) #undef HEATER_BED_PIN #define HEATER_BED_PIN 8 #define HEATER_BED_INVERTING true #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
C
agpl-3.0
3,645
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #define BOARD_INFO_NAME "Copymaster 3D RAMPS" #define Z_STEP_PIN 47 #define Y_MAX_PIN 14 #define FIL_RUNOUT_PIN 15 #define SD_DETECT_PIN 66 // // Import RAMPS 1.4 pins // #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
C
agpl-3.0
1,190
/** * Marlin 3D Printer Firmware * Copyright (c) 2024 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 #if HOTENDS > 2 || E_STEPPERS > 2 #error "Dagoma3D D6 supports up to 2 hotends / E-steppers." #endif #define BOARD_INFO_NAME "Dagoma3D D6" // // Trinamic Stallguard pins // #define X_DIAG_PIN 43 #define Y_DIAG_PIN 41 #define Z_DIAG_PIN 47 #define E0_DIAG_PIN 21 #define E1_DIAG_PIN 20 // // Endstops // #define X_STOP_PIN 2 #define Y_STOP_PIN 3 #define Z_STOP_PIN 15 // // Filament Runout Sensor // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 39 #endif #if EXTRUDERS > 1 && !defined(FIL_RUNOUT2_PIN) #define FIL_RUNOUT2_PIN 14 #endif // Alter timing for graphical display #if IS_U8GLIB_ST7920 #ifndef BOARD_ST7920_DELAY_1 #define BOARD_ST7920_DELAY_1 0 #endif #ifndef BOARD_ST7920_DELAY_2 #define BOARD_ST7920_DELAY_2 250 #endif #ifndef BOARD_ST7920_DELAY_3 #define BOARD_ST7920_DELAY_3 250 #endif #endif #define KILL_PIN -1 // NC #define LCD_CONTRAST_DEFAULT 255 // // Sensorless homing DIAG pin is not directly connected to the MCU. Close // the jumper next to the limit switch socket when using sensorless homing. // #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers */ #define X_SERIAL_RX_PIN 73 #define X_SERIAL_TX_PIN 73 #define Y_SERIAL_RX_PIN 73 #define Y_SERIAL_TX_PIN 73 #define Z_SERIAL_RX_PIN 73 #define Z_SERIAL_TX_PIN 73 #define E0_SERIAL_RX_PIN 73 #define E0_SERIAL_TX_PIN 73 #define E1_SERIAL_RX_PIN 12 #define E1_SERIAL_TX_PIN 12 // Default TMC slave addresses #ifndef X_SLAVE_ADDRESS #define X_SLAVE_ADDRESS 0 #endif #ifndef Y_SLAVE_ADDRESS #define Y_SLAVE_ADDRESS 1 #endif #ifndef Z_SLAVE_ADDRESS #define Z_SLAVE_ADDRESS 2 #endif #ifndef E0_SLAVE_ADDRESS #define E0_SLAVE_ADDRESS 3 #endif #ifndef E1_SLAVE_ADDRESS #define E1_SLAVE_ADDRESS 3 #endif static_assert(X_SLAVE_ADDRESS == 0, "X_SLAVE_ADDRESS must be 0 for BOARD_DAGOMA_D6."); static_assert(Y_SLAVE_ADDRESS == 1, "Y_SLAVE_ADDRESS must be 1 for BOARD_DAGOMA_D6."); static_assert(Z_SLAVE_ADDRESS == 2, "Z_SLAVE_ADDRESS must be 2 for BOARD_DAGOMA_D6."); static_assert(E0_SLAVE_ADDRESS == 3, "E0_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6."); static_assert(E1_SLAVE_ADDRESS == 3, "E1_SLAVE_ADDRESS must be 3 for BOARD_DAGOMA_D6."); #endif // // Import default RAMPS 1.4 pins // #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_DAGOMA_D6.h
C
agpl-3.0
3,810
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #if HOTENDS > 2 || E_STEPPERS > 2 #error "Dagoma3D F5 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Dagoma3D F5" // // Endstops // #define X_STOP_PIN 2 #define Y_STOP_PIN 3 #define Z_STOP_PIN 15 #define FIL_RUNOUT_PIN 39 #if EXTRUDERS > 1 #define FIL_RUNOUT2_PIN 14 #endif // Alter timing for graphical display #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 0 #define BOARD_ST7920_DELAY_2 250 #define BOARD_ST7920_DELAY_3 250 #endif // // DAC steppers // #define HAS_MOTOR_CURRENT_DAC 1 #define DAC_STEPPER_ORDER { 0, 1, 2, 3 } #define DAC_STEPPER_SENSE 0.11 #define DAC_STEPPER_ADDRESS 0 #define DAC_STEPPER_MAX 4096 #define DAC_STEPPER_VREF 1 #define DAC_STEPPER_GAIN 0 #define DAC_OR_ADDRESS 0x00 // // Import default RAMPS 1.4 pins // #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_DAGOMA_F5.h
C
agpl-3.0
1,894
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Wanhao Duplicator i3 Plus pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #define BOARD_INFO_NAME "Duplicator i3 Plus" // // Limit Switches // #define X_STOP_PIN 54 // PF0 / A0 #define Y_STOP_PIN 24 // PA2 / AD2 #define Z_MIN_PIN 23 // PA1 / AD1 #define Z_MAX_PIN 25 // PA3 / AD3 #define SERVO0_PIN 40 // PG1 / !RD // // Steppers // #define X_STEP_PIN 61 // PF7 / A7 #define X_DIR_PIN 62 // PK0 / A8 #define X_ENABLE_PIN 60 // PF6 / A6 #define Y_STEP_PIN 64 // PK2 / A10 #define Y_DIR_PIN 65 // PK3 / A11 #define Y_ENABLE_PIN 63 // PK1 / A9 #define Z_STEP_PIN 67 // PK5 / A13 #define Z_DIR_PIN 69 // PK7 / A15 #define Z_ENABLE_PIN 66 // PK4 / A12 #define Z_MIN_PROBE_PIN 25 // PA3 / AD3 #define E0_STEP_PIN 58 // PF4 / A4 #define E0_DIR_PIN 59 // PF5 / A5 #define E0_ENABLE_PIN 57 // PF3 / A3 // // Temperature Sensors // #define TEMP_0_PIN 1 // PF1 / A1 Analog #define TEMP_BED_PIN 14 // PK6 / A14 Analog // // Heaters / Fans // #define HEATER_0_PIN 4 // PG5 / PWM4 #define HEATER_BED_PIN 3 // PE5 / PWM3 #define FAN0_PIN 5 // PE3 / PWM5 // // Misc. Functions // #define SDSS 53 // PB0 / SS #define LED_PIN 13 // PB7 / PWM13 #define SD_MISO_PIN 50 // PB3 #define SD_MOSI_PIN 51 // PB2 #define SD_SCK_PIN 52 // PB1 // // LCD / Controller // #if HAS_WIRED_LCD #if ENABLED(ZONESTAR_LCD) #define LCD_PINS_RS 2 #define LCD_PINS_EN 36 #define LCD_PINS_D4 37 #define LCD_PINS_D5 34 #define LCD_PINS_D6 35 #define LCD_PINS_D7 32 #define ADC_KEYPAD_PIN 12 // Analog #endif #endif /** * == EXT connector == * * 2 4 6 8 10 * #---------------# * #2 | ° ° ° ° ° | * #1 | ° ° ° ° ° | * #---------------# * 1 3 5 7 9 * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 52 / PG1 (!RD) | 40 # * # 2 | 95 / PF2 (A2) | 56 # * # 3 | 54 / PC1 (A9) | 36 # * # 4 | 53 / PC0 (A8) | 37 # * # 5 | 56 / PC3 (A11) | 34 # * # 6 | 55 / PC2 (A10) | 35 # * # 7 | 58 / PC5 (A13) | 32 # * # 8 | 57 / PC4 (A12) | 33 # * # 9 | GND | - # * # 10 | VCC | + # * ################################## * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * == Z-probe connector == * * 1 2 3 * #---------# * | ° ° ° | * #---------# * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 24V or 5V | + # * # 2 | 75 / PA3 (AD3) | 25 # * # 3 | GND | - # * ################################## * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * == Y-endstop == == Z-endstop == == Bed temperature == * * 1 2 1 2 1 2 * #------# #------# #------# * | ° ° | | ° ° | | ° ° | * #------# #------# #------# * * ############### Y ################ ############### Z ################ ############## BED ############### * # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino # # Pin | ATMEGA2560 Pin | Arduino # * ################################## ################################## ################################## * # 1 | GND | - # # 1 | GND | - # # 1 | GND | - # * # 2 | 76 / PA2 (AD2) | 24 # # 2 | 77 / PA1 (AD1) | 23 # # 2 |83 / PK6 (ADC14)| 14 # * ################################## ################################## ################################## * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * == SPI connector == * * 5 3 1 * #---------# * | ° ° ° | * | ° ° ° | * #---------# * 6 4 2 * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 22 / PB3 (MISO)| 50 # * # 2 | VCC | + # * # 3 | 20 / PB1 (SCK) | 52 # * # 4 | 21 / PB2 (MOSI)| 51 # * # 5 | 30 / !RESET | RESET # * # 6 | GND | - # * ################################## * * Pictogram by Ludy https://github.com/Ludy87 * See: https://sebastien.andrivet.com/en/posts/wanhao-duplicator-i3-plus-3d-printer/ */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
C
agpl-3.0
6,630
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * FELIXprinters v2.0/3.0 (RAMPS v1.4) pin assignments * ATmega2560, ATmega1280 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "Felix 2.0+ supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Felix 2.0+" // // Heaters / Fans // #define MOSFET_D_PIN 7 #include "pins_RAMPS.h" // // Misc. Functions // #define SDPOWER_PIN 1 #define PS_ON_PIN 12 // // LCD / Controller // #if HAS_WIRED_LCD && IS_NEWPANEL #define SD_DETECT_PIN 6 #endif // // M3/M4/M5 - Spindle/Laser Control // #undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not valid with this board #undef SPINDLE_LASER_ENA_PIN #undef SPINDLE_DIR_PIN
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FELIX2.h
C
agpl-3.0
1,655
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Formbot Raptor pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 3 || E_STEPPERS > 3 #error "Formbot supports up to 3 hotends / E steppers." #endif #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "Formbot Raptor" #endif #ifndef DEFAULT_MACHINE_NAME #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #endif // // Servos // #define SERVO0_PIN 11 #define SERVO1_PIN 6 #define SERVO2_PIN 5 // // Limit Switches // #define X_MIN_PIN 3 #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #ifndef X_CS_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 49 #endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #ifndef Z_CS_PIN #define Z_CS_PIN 40 #endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #ifndef E0_CS_PIN #define E0_CS_PIN 42 #endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #ifndef E1_CS_PIN #define E1_CS_PIN 44 #endif #define E2_STEP_PIN 42 #define E2_DIR_PIN 43 #define E2_ENABLE_PIN 44 // // Temperature Sensors // #define TEMP_0_PIN 13 // Analog Input #define TEMP_1_PIN 15 // Analog Input #define TEMP_BED_PIN 14 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) #endif // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define HEATER_BED_PIN 8 #ifndef FAN0_PIN #define FAN0_PIN 9 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 57 #endif #if !HAS_FILAMENT_SENSOR #define FAN1_PIN 4 #endif // // Misc. Functions // #ifndef SDSS #define SDSS 53 #endif #define LED_PIN 13 #define LED4_PIN 5 // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector #define FILWIDTH_PIN 5 // Analog Input #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 5 #endif // // LCD / Controller // // Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER // #if IS_RRD_SC #define BEEPER_PIN 37 #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 #define SD_DETECT_PIN 49 #define KILL_PIN 41 #define LCD_PINS_RS 16 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
C
agpl-3.0
5,183
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Formbot Raptor 2 pin assignments * ATmega2560 */ #define BOARD_INFO_NAME "Formbot Raptor2" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #define FAN0_PIN 6 #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 22 #endif #include "pins_FORMBOT_RAPTOR.h" #define GREEDY_PANEL ANY(PANEL_ONE, VIKI2, miniVIKI, MINIPANEL, REPRAPWORLD_KEYPAD) // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA) #if !NUM_SERVOS // Try to use servo connector first #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown! #define SPINDLE_DIR_PIN 5 #elif !GREEDY_PANEL // Try to use AUX2 #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown! #define SPINDLE_DIR_PIN 65 #endif #endif #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) #if NUM_SERVOS <= 1 // Try to use servo connector first #define CASE_LIGHT_PIN 6 // Hardware PWM #elif !GREEDY_PANEL // Try to use AUX2 #define CASE_LIGHT_PIN 44 // Hardware PWM #endif #endif #undef GREEDY_PANEL #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
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h
C
agpl-3.0
2,694
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Formbot T-Rex 2+ pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "Formbot supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Formbot" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Servos // #define SERVO0_PIN 11 #define SERVO1_PIN -1 // was 6 #define SERVO2_PIN -1 // was 5 #define SERVO3_PIN -1 // // Limit Switches // #define X_MIN_PIN 3 #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #ifndef X_CS_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 49 #endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #ifndef Z_CS_PIN #define Z_CS_PIN 40 #endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #ifndef E0_CS_PIN #define E0_CS_PIN 42 #endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #ifndef E1_CS_PIN #define E1_CS_PIN 44 #endif #define E2_STEP_PIN 42 #define E2_DIR_PIN 43 #define E2_ENABLE_PIN 44 // // Temperature Sensors // #define TEMP_0_PIN 13 // Analog Input #define TEMP_1_PIN 15 // Analog Input #define TEMP_BED_PIN 3 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) #endif // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define HEATER_BED_PIN 58 #define FAN0_PIN 9 #if HAS_FILAMENT_SENSOR #define FIL_RUNOUT_PIN 4 //#define FIL_RUNOUT2_PIN -1 #else // Though defined as a fan pin, it is utilized as a dedicated laser pin by Formbot. #define FAN1_PIN 4 #endif // // Misc. Functions // #define SDSS 53 #ifndef LED_PIN #define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins. #endif // The Board's LED is a good place to connect the Max7219 Matrix. // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector #define FILWIDTH_PIN 5 // Analog Input #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 8 #endif // // LCD / Controller // // Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER // #if IS_RRD_SC #ifndef BEEPER_PIN #define BEEPER_PIN 37 #endif #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 #define SD_DETECT_PIN 49 // Allow MAX7219 to steal the KILL pin #if !defined(KILL_PIN) && MAX7219_CLK_PIN != 41 && MAX7219_DIN_PIN != 41 && MAX7219_LOAD_PIN != 41 #define KILL_PIN 41 #endif #define LCD_PINS_RS 16 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #endif // Alter timing for graphical display #if IS_U8GLIB_ST7920 #define BOARD_ST7920_DELAY_1 200 #define BOARD_ST7920_DELAY_2 200 #define BOARD_ST7920_DELAY_3 200 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
C
agpl-3.0
5,778
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Formbot T-Rex 3 pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "Formbot supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Formbot" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Servos // #define SERVO0_PIN 11 #define SERVO1_PIN -1 // was 6 #define SERVO2_PIN -1 #define SERVO3_PIN -1 // // Limit Switches // #define X_MIN_PIN 3 #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #ifndef X_CS_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 49 #endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #ifndef Z_CS_PIN #define Z_CS_PIN 40 #endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #ifndef E0_CS_PIN #define E0_CS_PIN 42 #endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #ifndef E1_CS_PIN #define E1_CS_PIN 44 #endif #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 // #define TEMP_0_PIN 13 // Analog Input #define TEMP_1_PIN 15 // Analog Input #define TEMP_BED_PIN 14 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) #endif // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define HEATER_BED_PIN 8 #define FAN0_PIN 9 #define FAN1_PIN 12 #define FIL_RUNOUT_PIN 22 #define FIL_RUNOUT2_PIN 21 // // Misc. Functions // #define SDSS 53 #ifndef LED_PIN #define LED_PIN 13 #endif #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 5 #endif #define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 4 // Pullup! // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector #define FILWIDTH_PIN 5 // Analog Input // // LCD / Controller // // Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER // #if IS_RRD_SC #define LCD_PINS_RS 16 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 #define SD_DETECT_PIN 49 #ifndef KILL_PIN #define KILL_PIN 41 #endif #ifndef BEEPER_PIN #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
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
C
agpl-3.0
5,551
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // // FYSETC F6 1.3 (and 1.4) pin assignments // Schematic: https://github.com/FYSETC/FYSETC-F6/blob/master/Hardware/V1.3/F6_V13.pdf // ATmega2560 // #if NOT_TARGET(__AVR_ATmega2560__) #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'" #endif #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "FYSETC F6 1.3" #endif #define RESET_PIN 30 #define SPI_FLASH_CS_PIN 83 // // Servos // #define SERVO0_PIN 13 #define SERVO1_PIN 11 // (PS_ON_PIN) #define SERVO2_PIN 10 // (FIL_RUNOUT_PIN) #define SERVO3_PIN 4 // (RGB_LED_G_PIN) // // Limit Switches // #define X_MIN_PIN 63 #define X_MAX_PIN 64 #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 12 #ifndef Z_MAX_PIN #define Z_MAX_PIN 9 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN SERVO2_PIN #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 9 // Servos pin #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #ifndef X_CS_PIN #define X_CS_PIN 70 #endif #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #ifndef Y_CS_PIN #define Y_CS_PIN 39 #endif #define Z_STEP_PIN 43 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 58 #ifndef Z_CS_PIN #define Z_CS_PIN 74 #endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #ifndef E0_CS_PIN #define E0_CS_PIN 47 #endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #ifndef E1_CS_PIN #define E1_CS_PIN 32 #endif #define E2_STEP_PIN 59 #define E2_DIR_PIN 57 #define E2_ENABLE_PIN 40 #ifndef E2_CS_PIN #define E2_CS_PIN 42 #endif // // Sensorless homing DIAG pin is not directly connected to the MCU. Close // the jumper next to the limit switch socket when using sensorless homing. // #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers * * Software serial communication pins. * At the moment, F6 rx pins are not pc interrupt pins */ #ifndef X_SERIAL_TX_PIN #define X_SERIAL_TX_PIN 72 #endif #ifndef X_SERIAL_RX_PIN #define X_SERIAL_RX_PIN -1 // 71 #endif #ifndef Y_SERIAL_TX_PIN #define Y_SERIAL_TX_PIN 75 #endif #ifndef Y_SERIAL_RX_PIN #define Y_SERIAL_RX_PIN -1 // 73 #endif #ifndef Z_SERIAL_TX_PIN #define Z_SERIAL_TX_PIN 79 #endif #ifndef Z_SERIAL_RX_PIN #define Z_SERIAL_RX_PIN -1 // 78 #endif #ifndef E0_SERIAL_TX_PIN #define E0_SERIAL_TX_PIN 77 #endif #ifndef E0_SERIAL_RX_PIN #define E0_SERIAL_RX_PIN -1 // 76 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN 81 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN -1 // 80 #endif #ifndef E2_SERIAL_TX_PIN #define E2_SERIAL_TX_PIN 82 #endif #ifndef E2_SERIAL_RX_PIN #define E2_SERIAL_RX_PIN -1 // 22 #endif #endif // // Temperature Sensors // #define TEMP_0_PIN 12 // Analog Input #define TEMP_1_PIN 13 // Analog Input #define TEMP_2_PIN 14 // Analog Input #define TEMP_BED_PIN 15 // Analog Input #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 9 // Analog Input on X+ endstop #endif // // Heaters / Fans // #define HEATER_0_PIN 5 #define HEATER_1_PIN 6 #define HEATER_2_PIN 7 #define HEATER_BED_PIN 8 #define FAN0_PIN 44 #define FAN1_PIN 45 #define FAN2_PIN 46 // // Misc. Functions // #define LED_PIN 13 #define KILL_PIN 41 #ifndef PS_ON_PIN #define PS_ON_PIN SERVO1_PIN #endif /** * ------ ------ * (BEEPER) D37 | 1 2 | D35 (BTN_ENC) (MISO) D50 | 1 2 | D52 (SCK) * (LCD_EN) D17 | 3 4 | D16 (LCD_RS) (BTN_EN1) D31 | 3 4 | D53 (SD_SS) * (LCD_D4) D23 5 6 | D25 (LCD_D5) (BTN_EN2) D33 5 6 | D51 (MOSI) * (LCD_D6) D27 | 7 8 | D29 (LCD_D7) (SD_DETECT) D49 | 7 8 | RESET * GND | 9 10 | 5V GND | 9 10 | 5V / D41 * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 37 // BEEPER #define EXP1_02_PIN 35 // ENC #define EXP1_03_PIN 17 // LCD_EN #define EXP1_04_PIN 16 // LCD_RS #define EXP1_05_PIN 23 // LCD_D4 #define EXP1_06_PIN 25 // LCD_D5 #define EXP1_07_PIN 27 // LCD_D6 #define EXP1_08_PIN 29 // LCD_D7 #define EXP2_01_PIN 50 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 31 // EN1 #define EXP2_04_PIN 53 // SD_SS #define EXP2_05_PIN 33 // EN2 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 49 // SD_DETECT #define EXP2_08_PIN -1 // RESET // // SD Card // #define SDSS EXP2_04_PIN #define SD_DETECT_PIN EXP2_07_PIN // // LCD / Controller // #if ENABLED(FYSETC_242_OLED_12864) #define BTN_EN1 EXP1_01_PIN #define BTN_EN2 EXP1_08_PIN #define BTN_ENC EXP1_02_PIN #define BEEPER_PIN EXP2_03_PIN #define LCD_PINS_DC EXP1_06_PIN #define LCD_PINS_RS EXP2_05_PIN #define DOGLCD_CS EXP1_04_PIN #define DOGLCD_MOSI EXP1_05_PIN #define DOGLCD_SCK EXP1_03_PIN #define DOGLCD_A0 LCD_PINS_DC #undef KILL_PIN #define BOARD_NEOPIXEL_PIN EXP1_07_PIN #else #define BEEPER_PIN EXP1_01_PIN #if ENABLED(FYSETC_MINI_12864) // // See https://wiki.fysetc.com/Mini12864_Panel/ // #define DOGLCD_A0 EXP1_04_PIN #define DOGLCD_CS EXP1_03_PIN #if ENABLED(FYSETC_GENERIC_12864_1_1) #define LCD_BACKLIGHT_PIN EXP1_07_PIN #endif #define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally. // Seems to work best if left open. #if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN EXP1_06_PIN #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN EXP1_07_PIN #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN EXP1_08_PIN #endif #elif ENABLED(FYSETC_MINI_12864_2_1) #define NEOPIXEL_PIN EXP1_06_PIN #endif #elif HAS_MARLINUI_U8GLIB || HAS_MARLINUI_HD44780 #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN EXP1_03_PIN #define LCD_PINS_D4 EXP1_05_PIN #define LCD_PINS_D5 EXP1_06_PIN #define LCD_PINS_D6 EXP1_07_PIN #define LCD_PINS_D7 EXP1_08_PIN #if ENABLED(MKS_MINI_12864) #define DOGLCD_CS EXP1_06_PIN #define DOGLCD_A0 EXP1_07_PIN #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif #if IS_NEWPANEL #define BTN_EN1 EXP2_03_PIN #define BTN_EN2 EXP2_05_PIN #define BTN_ENC EXP1_02_PIN #endif #endif #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN 3 #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN 4 #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN 9 #endif #ifndef RGB_LED_W_PIN #define RGB_LED_W_PIN -1 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
C
agpl-3.0
10,252
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // // FYSETC F6 v1.4 pin assignments // Schematic (1.4): https://github.com/FYSETC/FYSETC-F6/blob/master/Hardware/V1.4/F6%20V1.4%20Sch.pdf // ATmega2560 // #define BOARD_INFO_NAME "FYSETC F6 1.4" #define Z_MAX_PIN 2 #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers */ #define X_SERIAL_TX_PIN 71 #define X_SERIAL_RX_PIN 72 #define Y_SERIAL_TX_PIN 78 #define Y_SERIAL_RX_PIN 73 #define Z_SERIAL_TX_PIN 79 #define Z_SERIAL_RX_PIN 75 #define E0_SERIAL_TX_PIN 81 #define E0_SERIAL_RX_PIN 77 #define E1_SERIAL_TX_PIN 80 #define E1_SERIAL_RX_PIN 76 #define E2_SERIAL_TX_PIN 82 #define E2_SERIAL_RX_PIN 62 #endif #include "pins_FYSETC_F6_13.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
C
agpl-3.0
1,822
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * K8200 Arduino Mega with RAMPS v1.3 pin assignments * Identical to 3DRAG * Schematic: https://www.velleman.eu/images/tmp/K8200diagram.jpg * ATmega2560 */ #define BOARD_INFO_NAME "Velleman K8200" #define DEFAULT_MACHINE_NAME "K8200" #define DEFAULT_SOURCE_CODE_URL "github.com/CONSULitAS/Marlin-K8200" #include "pins_3DRAG.h" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_K8200.h
C
agpl-3.0
1,237
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Velleman K8400 (Vertex) * 3DRAG clone * Schematic: https://filimprimante3d.fr/documents/k8400-schema-electronique.jpg * ATmega2560, ATmega1280 * * K8400 has some minor differences over a normal 3Drag: * - No X/Y max endstops * - Second extruder step pin has moved * - No power supply control * - Second heater has moved pin */ #define BOARD_INFO_NAME "K8400" #define DEFAULT_MACHINE_NAME "Vertex" // // Steppers // #if HAS_CUTTER #define Z_STEP_PIN 32 #endif #define E1_STEP_PIN 32 // // Limit Switches // #define X_STOP_PIN 3 #define Y_STOP_PIN 14 // // Fans // #define FAN0_PIN 8 #if ANY(BLTOUCH, TOUCH_MI_PROBE, BIQU_MICROPROBE_V1, BIQU_MICROPROBE_V2) #define INVERTED_PROBE_STATE #endif #include "pins_3DRAG.h" // ... RAMPS // // Heaters // #undef HEATER_1_PIN #define HEATER_1_PIN 11 // // Misc. Functions // #undef PS_ON_PIN #undef KILL_PIN #undef SD_DETECT_PIN
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_K8400.h
C
agpl-3.0
1,950
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments. * ATmega2560, ATmega1280 */ #if HAS_MULTI_HOTEND #error "K8600 only supports 1 hotend / E stepper." #endif #define BOARD_INFO_NAME "K8600" #define DEFAULT_MACHINE_NAME "Vertex Nano" // // Limit Switches // #define X_MIN_PIN 3 #define Y_MAX_PIN 14 #define Z_STOP_PIN 18 // // Steppers // #define Z_ENABLE_PIN 63 // // Heaters / Fans // #define HEATER_BED_PIN -1 #define FAN0_PIN 8 // // Misc. Functions // #define SDSS 25 #define CASE_LIGHT_PIN 7 // // LCD / Controller // #if HAS_WIRED_LCD && IS_NEWPANEL #define LCD_PINS_RS 27 #define LCD_PINS_EN 29 #define LCD_PINS_D4 37 #define LCD_PINS_D5 35 #define LCD_PINS_D6 33 #define LCD_PINS_D7 31 // Buttons #define BTN_EN1 17 #define BTN_EN2 16 #define BTN_ENC 23 #define LCD_PINS_DEFINED #else #define BEEPER_PIN 33 #endif // // Other RAMPS pins // #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_K8600.h
C
agpl-3.0
2,286
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Velleman K8800 (Vertex) * Schematic: https://www.velleman.eu/downloads/files/vertex-delta/schematics/K8800-schematic-V1.4.pdf * ATmega2560, ATmega1280 */ #include "env_validate.h" #define BOARD_INFO_NAME "K8800" #define DEFAULT_MACHINE_NAME "Vertex Delta" // // Limit Switches // #define X_STOP_PIN 3 #define Y_STOP_PIN 14 #define Z_STOP_PIN 66 #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 68 #endif #define FIL_RUNOUT_PIN 69 // PK7 // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #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 63 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 // // Temperature Sensors // #define TEMP_0_PIN 13 // // Heaters / Fans // #define HEATER_0_PIN 10 #define FAN0_PIN 8 #define CONTROLLER_FAN_PIN 9 // // Misc. Functions // #define KILL_PIN 20 // PD1 #define CASE_LIGHT_PIN 7 // // SD Card // #define SDSS 25 #define SD_DETECT_PIN 21 // PD0 // // LCD / Controller // #define BEEPER_PIN 6 #if HAS_WIRED_LCD #define LCD_SDSS 53 #define DOGLCD_CS 29 #define DOGLCD_A0 27 #define LCD_PINS_RS 27 #define LCD_PINS_EN 29 #define LCD_PINS_D4 37 #define LCD_PINS_D5 35 #define LCD_PINS_D6 33 #define LCD_PINS_D7 31 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270 #if IS_NEWPANEL #define BTN_EN1 17 #define BTN_EN2 16 #define BTN_ENC 23 #endif #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_K8800.h
C
agpl-3.0
3,386
/** * Marlin 3D Printer Firmware * Copyright (c) 2023 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 /** * Kodama Bardo V1.x as found in the Kodama Trinus (MEGA2560) board pin assignments * * Ported from https://github.com/sambuls/MarlinOnTrinus * Board photo https://imgur.com/a/JbQH5SI */ #define BOARD_NAME "Kodama Bardo V1.x" #define DEFAULT_MACHINE_NAME "Kodama Trinus" #include "pins_PANOWIN_CUTLASS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_KODAMA_BARDO.h
C
agpl-3.0
1,191
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Longer3D LK1/LK4/LK5 Pro board pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #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 || SERIAL_PORT_3 == 1 #warning "Serial 1 is originally reserved for DGUS LCD." #endif #if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2 || SERIAL_PORT_3 == 2 || LCD_SERIAL_PORT == 2 #warning "Serial 2 has no connector. Hardware changes may be required to use it." #endif #if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3 || SERIAL_PORT_3 == 3 || LCD_SERIAL_PORT == 3 #warning "Serial 3 is originally reserved for Y limit switches. Hardware changes are required to use it." #define Y_STOP_PIN 37 #if MB(LONGER3D_LKx_PRO) #define Z_STOP_PIN 35 #endif #endif #define BOARD_INFO_NAME "LGT KIT V1.0" #if ENABLED(LONGER_LK5) #define DEFAULT_MACHINE_NAME "LONGER LK5" #else #define DEFAULT_MACHINE_NAME "LONGER 3D Printer" #endif // // Servos // #if MB(LONGER3D_LKx_PRO) #define SERVO0_PIN 7 #endif #define SERVO1_PIN -1 #define SERVO2_PIN -1 #define SERVO3_PIN -1 // // Limit Switches // #if ENABLED(LONGER_LK5) #define X_MIN_PIN 3 #define X_MAX_PIN 2 #else #define X_STOP_PIN 3 #endif #if !ANY_PIN(Y_MIN, Y_MAX, Y_STOP) #if ENABLED(LONGER_LK5) #define Y_STOP_PIN 14 #else #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #endif #endif #if !ANY_PIN(Z_MIN, Z_MAX, Z_STOP) #if MB(LONGER3D_LKx_PRO) #define Z_MIN_PIN 35 #else #define Z_MIN_PIN 11 #endif #define Z_MAX_PIN 37 #endif // // Z Probe (when not Z_MIN_PIN) // #define Z_MIN_PROBE_PIN -1 // // Steppers - No E1 pins // #define E1_STEP_PIN -1 #define E1_DIR_PIN -1 #define E1_ENABLE_PIN -1 #define E1_CS_PIN -1 // // Temperature Sensors // #define TEMP_1_PIN -1 // // Průša i3 MK2 Multiplexer Support // #if HAS_PRUSA_MMU1 #define E_MUX2_PIN -1 #endif // // Misc. Functions // #define SD_DETECT_PIN 49 #define FIL_RUNOUT_PIN 2 // ------------------ ---------------- --------------- ------------- // Aux-1 | D19 D18 GND 5V | J21 | D4 D5 D6 GND | J17 | D11 GND 24V | J18 | D7 GND 5V | // ------------------ ---------------- --------------- ------------- #if ALL(CR10_STOCKDISPLAY, LONGER_LK5) /** CR-10 Stock Display * ------ * BEEPER D11 | 1 2 | D15 ENC * EN1 D18 | 3 4 | GND * EN2 D19 5 6 | D6 LCD_D4 * LCD_RS D5 | 7 8 | D4 LCD_ENABLE * GND | 9 10 | 5V * ------ * Connected via provided custom cable to: * Aux-1, J21, J17 and Y-Max. */ #define LCD_PINS_RS 5 #define LCD_PINS_EN 4 #define LCD_PINS_D4 6 #define BTN_EN1 18 #define BTN_EN2 19 #define BTN_ENC 15 #define BEEPER_PIN 11 #define SDCARD_CONNECTION ONBOARD #define LCD_PINS_DEFINED #endif // // Other RAMPS 1.3 pins // #include "pins_RAMPS_13.h" // ... pins_RAMPS.h
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
C
agpl-3.0
4,681
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #define BOARD_INFO_NAME "MAKEboard Mini" // // Only 3 Limit Switch plugs on Micromake C1 // #define X_STOP_PIN 2 #define Y_STOP_PIN 15 #define Z_STOP_PIN 19 #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MAKEBOARD_MINI.h
C
agpl-3.0
1,156
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE 1.0 – Arduino Mega2560 with RAMPS v1.4 pin assignments * Schematics: * Schematic: https://reprap.org/wiki/File:MKS_Base_V1.0_source.zip * ATmega2560 * * Rev B - Override pin definitions for CASE_LIGHT and M3/M4/M5 spindle control */ #if HOTENDS > 2 || E_STEPPERS > 2 #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" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_10.h
C
agpl-3.0
1,354
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE v1.4 with A4982 stepper drivers and digital micro-stepping * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS BASE 1.4 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS BASE 1.4" #define MKS_BASE_VERSION 14 // Other Mods #define SERVO3_PIN 12 // PB6 ** Pin25 ** D12 #define PS_ON_PIN 2 // X+ // PE4 ** Pin6 ** PWM2 **MUST BE HARDWARE PWM #define FILWIDTH_PIN 15 // Y+ // PJ0 ** Pin63 ** USART3_RX **Pin should have a pullup! #define FIL_RUNOUT_PIN 19 // Z+ // PD2 ** Pin45 ** USART1_RX #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN 50 #endif #ifndef RGB_LED_R_PIN #define RGB_LED_G_PIN 51 #endif #ifndef RGB_LED_R_PIN #define RGB_LED_B_PIN 52 #endif #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11 #endif #include "pins_MKS_BASE_common.h" // ... RAMPS /* Available connectors on MKS BASE v1.4 ======= | 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 | ============ */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_14.h
C
agpl-3.0
5,151
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE v1.5 with A4982 stepper drivers and digital micro-stepping * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #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" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_15.h
C
agpl-3.0
1,190
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE v1.6 with A4982 stepper drivers and digital micro-stepping * Schematic: https://github.com/makerbase-mks/MKS-BASE/blob/master/hardware/MKS%20Base%20V1.6_004/MKS%20Base%20V1.6_004%20SCH.pdf * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS BASE 1.6 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS BASE 1.6" #define MKS_BASE_VERSION 16 // // Servos // #define SERVO1_PIN 12 // // Omitted RAMPS pins // #ifndef SERVO2_PIN #define SERVO2_PIN -1 #endif #ifndef SERVO3_PIN #define SERVO3_PIN -1 #endif #ifndef FILWIDTH_PIN #define FILWIDTH_PIN -1 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN -1 #endif #ifndef PS_ON_PIN #define PS_ON_PIN -1 #endif #include "pins_MKS_BASE_common.h" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_16.h
C
agpl-3.0
1,817
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE with Heroic HR4982 stepper drivers * ATmega2560 */ #include "pins_MKS_BASE_15.h" // ... MKS_BASE_common ... RAMPS /** * Some new boards use HR4982 (Heroic) instead of the A4982 (Allegro) stepper drivers. * Most the functionality is similar, the HR variant obviously doesn't work with diode * smoothers (no fast decay). And the Heroic has a 128 µStepping mode where the A4982 * is doing quarter steps (MS1=0, MS2=1). */ #define HEROIC_STEPPER_DRIVERS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_HEROIC.h
C
agpl-3.0
1,352
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS BASE – Arduino Mega2560 with RAMPS pin assignments * ATmega2560 */ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "MKS BASE" #endif #if MKS_BASE_VERSION >= 14 // // Heaters / Fans // #define MOSFET_B_PIN 7 #define FAN0_PIN 9 // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 2 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 15 // Pullup! #define SPINDLE_DIR_PIN 19 #endif #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 2 #endif // // Microstepping pins // |===== 1.4 =====|===== 1.5+ =====| #define X_MS1_PIN 5 // PE3 | Pin 5 | PWM5 | | D3 | SERVO2_PIN #define X_MS2_PIN 6 // PH3 | Pin 15 | PWM6 | Pin 14 | D6 | SERVO1_PIN #define Y_MS1_PIN 59 // PF5 | Pin 92 | A5 | | | #define Y_MS2_PIN 58 // PF4 | Pin 93 | A4 | | | #define Z_MS1_PIN 22 // PA0 | Pin 78 | D22 | | | #define Z_MS2_PIN 39 // PG2 | Pin 70 | D39 | | | #if MKS_BASE_VERSION == 14 #define E0_MS1_PIN 64 // PK2 | Pin 87 | A10 | | | #define E0_MS2_PIN 63 // PK1 | Pin 88 | A9 | | | #else #define E0_MS1_PIN 63 // PK1 | | | Pin 86 | A9 | #define E0_MS2_PIN 64 // PK2 | | | Pin 87 | A10 | #endif #define E1_MS1_PIN 57 // PF3 | Pin 94 | A3 | Pin 93 | A3 | #define E1_MS2_PIN 4 // PG5 | Pin 1 | PWM4 | | D4 | SERVO3_PIN #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_BASE_common.h
C
agpl-3.0
2,855
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.4 adjusted pin assignments * Schematic (1.4): https://github.com/makerbase-mks/MKS-GEN/blob/master/hardware/MKS%20GEN%20V1.4_004/MKS%20GEN%20V1.4_004%20SCH.pdf * ATmega2560, ATmega1280 * * MKS GEN v1.3 (Extruder, Fan, Bed) * MKS GEN v1.3 (Extruder, Extruder, Fan, Bed) * MKS GEN v1.4 (Extruder, Fan, Bed) * MKS GEN v1.4 (Extruder, Extruder, Fan, Bed) */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS GEN 1.3/1.4 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS GEN >= v1.3" // // Heaters / Fans // #define MOSFET_B_PIN 7 #define FAN0_PIN 9 // // PSU / SERVO // // If PSU_CONTROL is specified, always hijack Servo 3 // #if ENABLED(PSU_CONTROL) #define SERVO3_PIN -1 #define PS_ON_PIN 4 #endif #include "pins_RAMPS.h" #undef EXP2_08_PIN #define EXP2_08_PIN -1 // RESET // // LCD / Controller // #if ANY(VIKI2, miniVIKI) /** * VIKI2 Has two groups of wires with... * * +Vin + Input supply, requires 120ma for LCD and mSD card * GND Ground Pin * MOSI Data input for LCD and SD * MISO Data output for SD * SCK Clock for LCD and SD * AO Reg. Sel for LCD * LCS Chip Select for LCD * SDCS Chip Select for SD * SDCD Card Detect pin for SD * ENCA Encoder output A * ENCB Encoder output B * ENCBTN Encoder button switch * * BTN Panel mounted button switch * BUZZER Piezo buzzer * BLUE-LED Blue LED ring pin (3 to 5v, mosfet buffered) * RED-LED Red LED ring pin (3 to 5v, mosfet buffered) * * This configuration uses the following arrangement: * * ------ ------ * 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 */ #undef SD_DETECT_PIN #undef BTN_EN1 #undef BTN_EN2 #undef BTN_ENC #undef DOGLCD_A0 #undef DOGLCD_CS #undef BEEPER_PIN #undef KILL_PIN #undef STAT_LED_RED_PIN #undef STAT_LED_BLUE_PIN // // VIKI2 12-wire lead // #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_01_PIN gray MISO // EXP2_06_PIN yellow MOSI // EXP2_02_PIN orange SCK //#define SDSS EXP2_04_PIN // SDCS blue // // VIKI2 4-wire lead // #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
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_GEN_13.h
C
agpl-3.0
4,245
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS GEN L – Arduino Mega2560 with RAMPS v1.4 pin assignments * Schematic: https://github.com/makerbase-mks/MKS-GEN_L/blob/master/hardware/MKS%20Gen_L%20V1.0_008/MKS%20Gen_L%20V1.0_008%20SCH.pdf * ATmega2560, ATmega1280 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS GEN L supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS GEN L" // // Heaters / Fans // #define MOSFET_A_PIN 10 // HE0 #define MOSFET_B_PIN 7 // HE1 or FAN Hotend Cooling #define MOSFET_C_PIN 8 // HBED #define FAN0_PIN 9 // FAN Part Cooling // // CS Pins wired to avoid conflict with the LCD // See https://www.thingiverse.com/asset:66604 // #ifndef X_CS_PIN #define X_CS_PIN 59 #endif #ifndef Y_CS_PIN #define Y_CS_PIN 63 #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_GEN_L.h
C
agpl-3.0
1,814
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS GEN L V2 – Arduino Mega2560 with RAMPS v1.4 pin assignments * Schematic: https://github.com/makerbase-mks/MKS-GEN_L/blob/master/hardware/MKS%20Gen_L%20V2.0_001/MKS%20Gen_L%20V2.0_001%20SCH.pdf * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS GEN L V2 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS GEN L V2" // // Heaters / Fans // #define MOSFET_B_PIN 7 #define FAN0_PIN 9 // // CS Pins wired to avoid conflict with the LCD // See https://www.thingiverse.com/asset:66604 // #ifndef X_CS_PIN #define X_CS_PIN 63 #endif #ifndef Y_CS_PIN #define Y_CS_PIN 64 #endif #ifndef Z_CS_PIN #define Z_CS_PIN 65 #endif #ifndef E0_CS_PIN #define E0_CS_PIN 66 #endif #ifndef E1_CS_PIN #define E1_CS_PIN 21 #endif // TMC2130 Diag Pins (currently just for reference) #define X_DIAG_PIN 3 #define Y_DIAG_PIN 14 #define Z_DIAG_PIN 18 #define E0_DIAG_PIN 2 #define E1_DIAG_PIN 15 #ifndef SERVO1_PIN #define SERVO1_PIN 12 #endif #ifndef SERVO2_PIN #define SERVO2_PIN 39 #endif #ifndef SERVO3_PIN #define SERVO3_PIN 32 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN 20 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN 21 #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h
C
agpl-3.0
2,555
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * MKS GEN L V2 – Arduino Mega2560 with RAMPS v1.4 pin assignments * Schematic: https://github.com/makerbase-mks/MKS-GEN_L/blob/master/hardware/MKS%20Gen_L%20V2.1_001/MKS%20GEN_L%20V2.1_001%20SCH.pdf * ATmega2560 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "MKS GEN L V2.1 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "MKS GEN L V2.1" // // Heaters / Fans // #define MOSFET_B_PIN 7 #define FAN0_PIN 9 // // CS Pins wired to avoid conflict with the LCD // See https://www.thingiverse.com/asset:66604 // #ifndef X_CS_PIN #define X_CS_PIN 63 #endif #ifndef Y_CS_PIN #define Y_CS_PIN 64 #endif #ifndef Z_CS_PIN #define Z_CS_PIN 65 #endif #ifndef E0_CS_PIN #define E0_CS_PIN 66 #endif #ifndef E1_CS_PIN #define E1_CS_PIN 12 #endif // TMC2130 Diag Pins (currently just for reference) #define X_DIAG_PIN 3 #define Y_DIAG_PIN 14 #define Z_DIAG_PIN 18 #define E0_DIAG_PIN 2 #define E1_DIAG_PIN 15 #ifndef SERVO1_PIN #define SERVO1_PIN 21 #endif #ifndef SERVO2_PIN #define SERVO2_PIN 39 #endif #ifndef SERVO3_PIN #define SERVO3_PIN 32 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN 20 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN 12 #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_MKS_GEN_L_V21.h
C
agpl-3.0
2,555
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Ortur 4 Arduino Mega based on RAMPS v1.4 pin assignments * ATmega2560 */ #define BOARD_INFO_NAME "Ortur 4.3" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Servos // #define SERVO0_PIN 29 // // Limit Switches // #define X_MAX_PIN 18 #define Z_MIN_PIN 63 #define Z_MIN_PROBE_PIN 2 #define FIL_RUNOUT_PIN 59 // // Steppers // #define E0_STEP_PIN 36 #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 #define E0_CS_PIN 44 #define E1_STEP_PIN 26 #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 24 #define E1_CS_PIN 42 // // Temperature Sensors // #define TEMP_0_PIN 15 // Analog Input #define TEMP_1_PIN 13 // Analog Input #if HAS_TMC_UART #define X_SERIAL_TX_PIN 59 #define X_SERIAL_RX_PIN 63 #define Y_SERIAL_TX_PIN 64 #define Y_SERIAL_RX_PIN 40 #define Z_SERIAL_TX_PIN 44 #define Z_SERIAL_RX_PIN 42 #define E0_SERIAL_TX_PIN 66 #define E0_SERIAL_RX_PIN 65 #endif // // LCD / Controller // #if IS_RRD_FG_SC #define BEEPER_PIN 35 #define LCD_PINS_RS 27 #define LCD_PINS_EN 23 #define LCD_PINS_D4 37 #define LCD_SDSS 53 #define SD_DETECT_PIN 49 #define BTN_EN1 29 #define BTN_EN2 25 #define BTN_ENC 16 #define LCD_PINS_DEFINED #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ORTUR_4.h
C
agpl-3.0
2,872
/** * Marlin 3D Printer Firmware * Copyright (c) 2023 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 /** * Panowin V?.? as found in the Panowin F1 (MEGA2560) board pin assignments * * Ported from https://github.com/sambuls/MarlinOnTrinus * Board photo https://imgur.com/a/xvol1Bo */ #include "env_validate.h" #ifndef BOARD_NAME #define BOARD_NAME "Panowin Cutlass" #endif #ifndef DEFAULT_MACHINE_NAME #define DEFAULT_MACHINE_NAME "Panowin F1" #endif // // Limit Switches // #define X_STOP_PIN 71 // G3 #define Y_STOP_PIN 85 // H7 #define Z_STOP_PIN 13 // B7 // // Steppers // #define X_STEP_PIN 38 // D7 #define X_DIR_PIN 83 #define X_ENABLE_PIN 82 #define Y_STEP_PIN 37 #define Y_DIR_PIN 40 #define Y_ENABLE_PIN 41 #define Z_STEP_PIN 30 // C7 #define Z_DIR_PIN 32 // C5 #define Z_ENABLE_PIN 34 // C3 #define E0_STEP_PIN 42 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 44 // Microstepping mode pins #define X_MS1_PIN 19 // D2 #define X_MS2_PIN 18 // D3 #define X_MS3_PIN 81 // D4 #define Y_MS1_PIN 19 // D2 #define Y_MS2_PIN 18 // D3 #define Y_MS3_PIN 81 // D4 #define Z_MS1_PIN 73 // J3 #define Z_MS2_PIN 75 // J4 #define Z_MS3_PIN 76 // J5 #define E0_MS1_PIN 46 // L3 #define E0_MS2_PIN 47 // L2 #define E0_MS3_PIN 45 // L4 // // Temperature Sensors // #define TEMP_0_PIN 12 // Analog Input #define TEMP_BED_PIN 14 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 9 // H6 #define HEATER_BED_PIN 8 #define FAN0_PIN 62 // K0 #define FAN_SOFT_PWM_REQUIRED // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_ENA_PIN 74 // J7 #endif // // SD Card // #define SD_DETECT_PIN 28 // A6 Onboard SD // // Misc. Functions // #define BEEPER_PIN 24 // A2 // // Onboard (bright!) RGB LED // #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN 64 // K2 #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN 65 // K3 #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN 63 // K1 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_PANOWIN_CUTLASS.h
C
agpl-3.0
3,728
/** * 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 * ATmega2560 */ #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"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_PXMALION_CORE_I3.h
C
agpl-3.0
2,313
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.4 (or v1.3) pin assignments * ATmega2560, ATmega1280 * * Applies to the following boards: * * RAMPS_14_EFB (Hotend, Fan, Bed) * RAMPS_14_EEB (Hotend0, Hotend1, Bed) * RAMPS_14_EFF (Hotend, Fan0, Fan1) * RAMPS_14_EEF (Hotend0, Hotend1, Fan) * RAMPS_14_SF (Spindle, Controller Fan) * * RAMPS_13_EFB (Hotend, Fan, Bed) * RAMPS_13_EEB (Hotend0, Hotend1, Bed) * RAMPS_13_EFF (Hotend, Fan0, Fan1) * RAMPS_13_EEF (Hotend0, Hotend1, Fan) * RAMPS_13_SF (Spindle, Controller Fan) * * Other pins_MYBOARD.h files may override these defaults * * Differences between * RAMPS_13 | RAMPS_14 * 7 | 11 */ #if ENABLED(AZSMZ_12864) && DISABLED(ALLOW_SAM3X8E) #error "No pins defined for RAMPS with AZSMZ_12864." #endif #include "env_validate.h" // Custom flags and defines for the build //#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "RAMPS 1.4" #endif // // Servos // #ifndef SERVO0_PIN #ifdef IS_RAMPS_13 #define SERVO0_PIN 7 #else #define SERVO0_PIN 11 #endif #endif #ifndef SERVO1_PIN #define SERVO1_PIN 6 #endif #ifndef SERVO2_PIN #define SERVO2_PIN 5 #endif #ifndef SERVO3_PIN #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 // Z- #endif #ifndef J_STOP_PIN #define J_STOP_PIN 19 // Z+ #endif #endif // // Limit Switches // #ifndef X_STOP_PIN #ifndef X_MIN_PIN #define X_MIN_PIN 3 // X- #endif #ifndef X_MAX_PIN #define X_MAX_PIN 2 // X+ #endif #endif #ifndef Y_STOP_PIN #ifndef Y_MIN_PIN #define Y_MIN_PIN 14 // Y- #endif #ifndef Y_MAX_PIN #define Y_MAX_PIN 15 // Y+ #endif #endif #ifndef Z_STOP_PIN #ifndef Z_MIN_PIN #define Z_MIN_PIN 18 // Z- #endif #ifndef Z_MAX_PIN #define Z_MAX_PIN 19 // Z+ #endif #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 54 // (A0) #define X_DIR_PIN 55 // (A1) #define X_ENABLE_PIN 38 #ifndef X_CS_PIN #define X_CS_PIN AUX3_06 #endif #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 // (A2) #ifndef Y_CS_PIN #define Y_CS_PIN AUX3_02 #endif #ifndef Z_STEP_PIN #define Z_STEP_PIN 46 #endif #ifndef Z_DIR_PIN #define Z_DIR_PIN 48 #endif #ifndef Z_ENABLE_PIN #define Z_ENABLE_PIN 62 #endif #ifndef Z_CS_PIN #define Z_CS_PIN AUX2_06 #endif #ifndef E0_STEP_PIN #define E0_STEP_PIN 26 #endif #ifndef E0_DIR_PIN #define E0_DIR_PIN 28 #endif #ifndef E0_ENABLE_PIN #define E0_ENABLE_PIN 24 #endif #ifndef E0_CS_PIN #define E0_CS_PIN AUX2_08 #endif #ifndef E1_STEP_PIN #define E1_STEP_PIN 36 #endif #ifndef E1_DIR_PIN #define E1_DIR_PIN 34 #endif #ifndef E1_ENABLE_PIN #define E1_ENABLE_PIN 30 #endif #ifndef E1_CS_PIN #define E1_CS_PIN AUX2_07 #endif // // Temperature Sensors // #ifndef TEMP_0_PIN #define TEMP_0_PIN 13 // Analog Input #endif #ifndef TEMP_1_PIN #define TEMP_1_PIN 15 // Analog Input #endif #ifndef TEMP_BED_PIN #define TEMP_BED_PIN 14 // Analog Input #endif // // SPI for MAX Thermocouple // #ifndef TEMP_0_CS_PIN #define TEMP_0_CS_PIN AUX2_09 // Don't use 53 if using Display/SD card (SDSS) or 49 (SD_DETECT_PIN) #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 #define HEATER_0_PIN MOSFET_A_PIN #if FET_ORDER_EFB // Hotend, Fan, Bed #ifndef HEATER_BED_PIN #define HEATER_BED_PIN MOSFET_C_PIN #endif #elif FET_ORDER_EEF // Hotend, Hotend, Fan #define HEATER_1_PIN MOSFET_B_PIN #elif FET_ORDER_EEB // Hotend, Hotend, Bed #define HEATER_1_PIN MOSFET_B_PIN #ifndef HEATER_BED_PIN #define HEATER_BED_PIN MOSFET_C_PIN #endif #elif FET_ORDER_EFF // Hotend, Fan, Fan #ifndef FAN1_PIN #define FAN1_PIN MOSFET_C_PIN #endif #elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE") #ifndef HEATER_BED_PIN #define HEATER_BED_PIN MOSFET_C_PIN #endif #if ANY(HAS_MULTI_HOTEND, HEATERS_PARALLEL) #define HEATER_1_PIN MOSFET_D_PIN #else #define FAN1_PIN MOSFET_D_PIN #endif #endif #ifndef FAN0_PIN #if ANY(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan #define FAN0_PIN MOSFET_B_PIN #elif ANY(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan #define FAN0_PIN MOSFET_C_PIN #elif FET_ORDER_EEB // Hotend, Hotend, Bed #define FAN0_PIN 4 // IO pin. Buffer needed #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE") #define FAN0_PIN MOSFET_B_PIN #endif #endif // // Misc. Functions // #ifndef SDSS #define SDSS AUX3_06 #endif #define LED_PIN 13 #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 5 // (A5) Analog Input AUX2_03 #endif // RAMPS 1.4 DIO 4 on the servos connector #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 4 #endif #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN) #if NUM_SERVOS <= 1 // Prefer the servo connector #define CASE_LIGHT_PIN 6 // Hardware PWM #elif HAS_FREE_AUX2_PINS #define CASE_LIGHT_PIN AUX2_07 // Hardware PWM #endif #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN) #if NUM_SERVOS < 2 // Use servo connector if possible #ifndef SPINDLE_LASER_PWM_PIN #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM #endif #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown! #define SPINDLE_DIR_PIN 5 #elif HAS_FREE_AUX2_PINS #define SPINDLE_LASER_PWM_PIN AUX2_07 // Hardware PWM #define SPINDLE_LASER_ENA_PIN AUX2_06 // Pullup or pulldown! #define SPINDLE_DIR_PIN AUX2_10 #else #error "No auto-assignable Spindle/Laser pins available." #endif #endif // // TMC SPI // #if HAS_TMC_SPI #if ENABLED(TMC_USE_SW_SPI) #ifndef TMC_SPI_MOSI #define TMC_SPI_MOSI AUX2_09 #endif #ifndef TMC_SPI_MISO #define TMC_SPI_MISO AUX2_07 #endif #ifndef TMC_SPI_SCK #define TMC_SPI_SCK AUX2_05 #endif #else #ifndef TMC_SPI_MOSI #define TMC_SPI_MOSI AUX3_04 #endif #ifndef TMC_SPI_MISO #define TMC_SPI_MISO AUX3_03 #endif #ifndef TMC_SPI_SCK #define TMC_SPI_SCK AUX3_05 #endif #endif #endif #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers * * Hardware serial communication ports. * If undefined software serial is used according to the pins below * * Serial1 -- TX1 = D18 RX1 = D19 (Z-MIN and Z-MAX on RAMPS) * Serial2 -- TX2 = D16 RX2 = D17 (AUX4-18 and AUX4-17) * Serial3 -- TX3 = D14 RX3 = D15 (Available on some RAMPS-like boards) */ //#define X_HARDWARE_SERIAL Serial1 //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1 #ifndef X_SERIAL_TX_PIN #define X_SERIAL_TX_PIN AUX2_06 #endif #ifndef X_SERIAL_RX_PIN #define X_SERIAL_RX_PIN AUX2_04 #endif #ifndef X2_SERIAL_TX_PIN #define X2_SERIAL_TX_PIN -1 #endif #ifndef X2_SERIAL_RX_PIN #define X2_SERIAL_RX_PIN -1 #endif #ifndef Y_SERIAL_TX_PIN #define Y_SERIAL_TX_PIN AUX2_03 #endif #ifndef Y_SERIAL_RX_PIN #define Y_SERIAL_RX_PIN AUX2_05 #endif #ifndef Y2_SERIAL_TX_PIN #define Y2_SERIAL_TX_PIN -1 #endif #ifndef Y2_SERIAL_RX_PIN #define Y2_SERIAL_RX_PIN -1 #endif #ifndef Z_SERIAL_TX_PIN #define Z_SERIAL_TX_PIN AUX2_08 #endif #ifndef Z_SERIAL_RX_PIN #define Z_SERIAL_RX_PIN AUX2_10 #endif #ifndef Z2_SERIAL_TX_PIN #define Z2_SERIAL_TX_PIN -1 #endif #ifndef Z2_SERIAL_RX_PIN #define Z2_SERIAL_RX_PIN -1 #endif #ifndef E0_SERIAL_TX_PIN #define E0_SERIAL_TX_PIN AUX2_07 #endif #ifndef E0_SERIAL_RX_PIN #define E0_SERIAL_RX_PIN AUX2_09 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN -1 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN -1 #endif #ifndef E2_SERIAL_TX_PIN #define E2_SERIAL_TX_PIN -1 #endif #ifndef E2_SERIAL_RX_PIN #define E2_SERIAL_RX_PIN -1 #endif #ifndef E3_SERIAL_TX_PIN #define E3_SERIAL_TX_PIN -1 #endif #ifndef E3_SERIAL_RX_PIN #define E3_SERIAL_RX_PIN -1 #endif #ifndef E4_SERIAL_TX_PIN #define E4_SERIAL_TX_PIN -1 #endif #ifndef E4_SERIAL_RX_PIN #define E4_SERIAL_RX_PIN -1 #endif #ifndef E5_SERIAL_TX_PIN #define E5_SERIAL_TX_PIN -1 #endif #ifndef E5_SERIAL_RX_PIN #define E5_SERIAL_RX_PIN -1 #endif #ifndef E6_SERIAL_TX_PIN #define E6_SERIAL_TX_PIN -1 #endif #ifndef E6_SERIAL_RX_PIN #define E6_SERIAL_RX_PIN -1 #endif #ifndef E7_SERIAL_TX_PIN #define E7_SERIAL_TX_PIN -1 #endif #ifndef E7_SERIAL_RX_PIN #define E7_SERIAL_RX_PIN -1 #endif #endif // // Průša i3 MK2 Multiplexer Support // #if HAS_PRUSA_MMU1 #ifndef E_MUX0_PIN #define E_MUX0_PIN AUX2_06 // Z_CS_PIN #endif #ifndef E_MUX1_PIN #define E_MUX1_PIN AUX2_08 // E0_CS_PIN #endif #ifndef E_MUX2_PIN #define E_MUX2_PIN AUX2_07 // E1_CS_PIN #endif #endif // // AUX1 5V GND D2 D1 // 2 4 6 8 // 1 3 5 7 // 5V GND A3 A4 // #define AUX1_05 57 // (A3) #define AUX1_06 2 #define AUX1_07 58 // (A4) #define AUX1_08 1 // // AUX2 GND A9 D40 D42 A11 // 2 4 6 8 10 // 1 3 5 7 9 // VCC A5 A10 D44 A12 // #define AUX2_03 59 // (A5) #define AUX2_04 63 // (A9) #define AUX2_05 64 // (A10) #define AUX2_06 40 #define AUX2_07 44 #define AUX2_08 42 #define AUX2_09 66 // (A12) #define AUX2_10 65 // (A11) // // AUX3 GND D52 D50 5V // 7 5 3 1 // 8 6 4 2 // NC D53 D51 D49 // #define AUX3_02 49 #define AUX3_03 50 #define AUX3_04 51 #define AUX3_05 52 #define AUX3_06 53 // // AUX4 5V GND D32 D47 D45 D43 D41 D39 D37 D35 D33 D31 D29 D27 D25 D23 D17 D16 // #define AUX4_03 32 #define AUX4_04 47 #define AUX4_05 45 #define AUX4_06 43 #define AUX4_07 41 #define AUX4_08 39 #define AUX4_09 37 #define AUX4_10 35 #define AUX4_11 33 #define AUX4_12 31 #define AUX4_13 29 #define AUX4_14 27 #define AUX4_15 25 #define AUX4_16 23 #define AUX4_17 17 #define AUX4_18 16 /** * LCD adapters come in different variants. The socket keys can be * on either side, and may be backwards on some boards / displays. */ #ifndef EXP1_08_PIN #define EXP1_03_PIN AUX4_17 // 17 #define EXP1_04_PIN AUX4_18 // 16 #define EXP1_05_PIN AUX4_16 // 23 #define EXP1_06_PIN AUX4_15 // 25 #define EXP1_07_PIN AUX4_14 // 27 #define EXP1_08_PIN AUX4_13 // 29 #define EXP2_01_PIN AUX3_03 // 50 (MISO) #define EXP2_02_PIN AUX3_05 // 52 #define EXP2_04_PIN AUX3_06 // 53 #define EXP2_06_PIN AUX3_04 // 51 #define EXP2_07_PIN AUX3_02 // 49 #if ENABLED(G3D_PANEL) /** Gadgets3D Smart Adapter * ------ ------ * 33 4-11 | 1 2 | 4-12 31 (MISO) 50 3-03 | 1 2 | 3-05 52 (SCK) * 17 4-17 | 3 4 | 4-18 16 35 4-10 | 3 4 | 3-06 53 * 23 4-16 5 6 | 4-15 25 37 4-09 5 6 | 3-04 51 (MOSI) * 27 4-14 | 7 8 | 4-13 29 49 3-02 | 7 8 | 4-07 41 * (GND) 4-02 | 9 10 | 4-01 (5V) -- | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN AUX4_11 // 33 #define EXP1_02_PIN AUX4_12 // 31 #define EXP2_03_PIN AUX4_10 // 35 #define EXP2_05_PIN AUX4_09 // 37 #define EXP2_08_PIN AUX4_07 // 41 #else /** Smart Adapter (c) RRD * ------ ------ * 37 4-09 | 1 2 | 4-10 (MISO) 3-03 | 1 2 | 3-05 52 (SCK) * 17 4-17 | 3 4 | 4-18 31 4-12 | 3 4 | 3-06 53 * 23 4-16 5 6 | 4-15 33 4-11 5 6 | 3-04 51 (MOSI) * 27 4-14 | 7 8 | 4-13 49 3-02 | 7 8 | 4-07 41 * (GND) 3-07 | 9 10 | 3-01 (5V) (GND) 3-07 | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN AUX4_09 // 37 #define EXP1_02_PIN AUX4_10 // 35 #if ALL(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050) #define EXP2_03_PIN AUX4_11 // 33 #define EXP2_05_PIN AUX4_12 // 31 #define EXP2_08_PIN -1 // RESET #else #define EXP2_03_PIN AUX4_12 // 31 #define EXP2_05_PIN AUX4_11 // 33 #define EXP2_08_PIN AUX4_07 // 41 #endif #endif #endif // // LCD / Controller // #ifdef LCD_PINS_DEFINED // LCD pins already defined by including header #elif HAS_WIRED_LCD //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270 // // LCD Display output pins // #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #define LCD_PINS_RS EXP2_07_PIN // CS chip select /SS chip slave select #define LCD_PINS_EN EXP2_06_PIN // SID (MOSI) #define LCD_PINS_D4 EXP2_02_PIN // SCK (CLK) clock #elif ALL(IS_NEWPANEL, PANEL_ONE) #define LCD_PINS_RS AUX2_06 #define LCD_PINS_EN AUX2_08 #define LCD_PINS_D4 AUX2_10 #define LCD_PINS_D5 AUX2_09 #define LCD_PINS_D6 AUX2_07 #define LCD_PINS_D7 AUX2_05 #elif ENABLED(TFTGLCD_PANEL_SPI) #define TFTGLCD_CS EXP2_05_PIN #else #if ENABLED(CR10_STOCKDISPLAY) #define LCD_PINS_RS EXP1_07_PIN #define LCD_PINS_EN EXP1_08_PIN #define LCD_PINS_D4 EXP1_06_PIN #if !IS_NEWPANEL #define BEEPER_PIN EXP1_01_PIN #endif #elif ENABLED(ZONESTAR_LCD) #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 #define LCD_PINS_EN AUX2_07 #define LCD_PINS_D4 AUX2_04 #define LCD_PINS_D5 AUX2_06 #define LCD_PINS_D6 AUX2_08 #define LCD_PINS_D7 AUX2_10 #elif ENABLED(AZSMZ_12864) // Pins only defined for RAMPS_SMART currently #else #if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306) #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_04_PIN #define DOGLCD_MOSI EXP1_03_PIN #define DOGLCD_SCK EXP1_05_PIN #else #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN 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_08_PIN #if !IS_NEWPANEL #define BEEPER_PIN EXP2_05_PIN #endif #endif #if !IS_NEWPANEL // Buttons attached to a shift register // Not wired yet //#define SHIFT_CLK_PIN 38 //#define SHIFT_LD_PIN AUX2_08 //#define SHIFT_OUT_PIN AUX2_06 //#define SHIFT_EN_PIN EXP1_03_PIN #endif #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif // // LCD Display input pins // #if IS_NEWPANEL #if IS_RRD_SC #if ENABLED(CR10_STOCKDISPLAY) #define BTN_EN1 EXP1_03_PIN #define BTN_EN2 EXP1_05_PIN #else #define BTN_EN1 EXP2_03_PIN #define BTN_EN2 EXP2_05_PIN #endif #define BTN_ENC EXP1_02_PIN #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #ifndef KILL_PIN #define KILL_PIN EXP2_08_PIN #endif #if ENABLED(BQ_LCD_SMART_CONTROLLER) #define LCD_BACKLIGHT_PIN AUX4_08 #endif #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #define BTN_EN1 AUX2_05 #define BTN_EN2 AUX2_03 #define BTN_ENC AUX2_04 #ifndef SD_DETECT_PIN #define SD_DETECT_PIN AUX2_08 #endif #elif ENABLED(LCD_I2C_PANELOLU2) #define BTN_EN1 AUX4_04 #define BTN_EN2 AUX4_06 #define BTN_ENC AUX4_03 #define LCD_SDSS SDSS #define KILL_PIN EXP2_08_PIN #elif ENABLED(LCD_I2C_VIKI) #define BTN_EN1 AUX2_06 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains AUX2-06 and AUX2-08. #define BTN_EN2 AUX2_08 #define BTN_ENC -1 #define LCD_SDSS SDSS #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #elif ANY(VIKI2, miniVIKI) #define DOGLCD_CS AUX4_05 #define DOGLCD_A0 AUX2_07 #define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270 #ifndef BEEPER_PIN #define BEEPER_PIN EXP2_05_PIN #endif #define STAT_LED_RED_PIN AUX4_03 #define STAT_LED_BLUE_PIN EXP1_02_PIN #define BTN_EN1 22 #define BTN_EN2 7 #define BTN_ENC AUX4_08 #ifndef SD_DETECT_PIN #define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board #endif #define KILL_PIN EXP2_03_PIN #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) #define DOGLCD_CS EXP1_08_PIN #define DOGLCD_A0 EXP1_07_PIN #ifndef BEEPER_PIN #define BEEPER_PIN EXP1_05_PIN #endif #define LCD_BACKLIGHT_PIN EXP2_05_PIN #define BTN_EN1 EXP1_02_PIN #define BTN_EN2 EXP1_01_PIN #define BTN_ENC EXP2_03_PIN #define LCD_SDSS SDSS #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #define KILL_PIN EXP2_08_PIN #elif ANY(MKS_MINI_12864, FYSETC_MINI_12864) #define BTN_ENC EXP1_02_PIN #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #ifndef KILL_PIN #define KILL_PIN EXP2_08_PIN #endif #if ENABLED(MKS_MINI_12864) #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_03_PIN #define BTN_EN2 EXP2_05_PIN #elif ENABLED(FYSETC_MINI_12864) // From https://wiki.fysetc.com/Mini12864_Panel/ #define DOGLCD_A0 EXP1_04_PIN #define DOGLCD_CS EXP1_03_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_05_PIN // Must be high or open for LCD to operate normally. #if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN EXP1_06_PIN #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN EXP1_07_PIN #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN EXP1_08_PIN #endif #elif ENABLED(FYSETC_MINI_12864_2_1) #define NEOPIXEL_PIN EXP1_06_PIN #endif #endif #elif ENABLED(MINIPANEL) #ifndef BEEPER_PIN #define BEEPER_PIN AUX2_08_PIN #endif #define LCD_BACKLIGHT_PIN AUX2_10 #define DOGLCD_A0 AUX2_07 #define DOGLCD_CS AUX2_09 #define BTN_EN1 AUX2_06 #define BTN_EN2 AUX2_04 #define BTN_ENC AUX2_03 #ifndef SD_DETECT_PIN #define SD_DETECT_PIN AUX3_02 #endif #define KILL_PIN AUX2_05 #elif ENABLED(ZONESTAR_LCD) #define ADC_KEYPAD_PIN 12 #elif ENABLED(AZSMZ_12864) // Pins only defined for RAMPS_SMART currently #elif ENABLED(G3D_PANEL) #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #define KILL_PIN 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 #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #else #ifndef BEEPER_PIN #define BEEPER_PIN EXP2_05_PIN #endif #if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2 #define BTN_EN1 AUX2_03 #define BTN_EN2 AUX2_04 #define BTN_ENC AUX3_02 #else #define BTN_EN1 EXP1_01_PIN #define BTN_EN2 EXP1_02_PIN #define BTN_ENC EXP2_03_PIN #endif #endif #endif // IS_NEWPANEL #ifndef BEEPER_PIN #define BEEPER_PIN EXP1_01_PIN // Most common mapping #endif #endif // HAS_WIRED_LCD && !LCD_PINS_DEFINED #if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS #define SHIFT_OUT_PIN AUX2_06 #define SHIFT_CLK_PIN AUX2_07 #define SHIFT_LD_PIN AUX2_08 #ifndef BTN_EN1 #define BTN_EN1 AUX2_05 #endif #ifndef BTN_EN2 #define BTN_EN2 AUX2_03 #endif #ifndef BTN_ENC #define BTN_ENC AUX2_04 #endif #endif #if ALL(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050) #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 * ------ ------ * (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 <--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_01_PIN #ifndef SD_DETECT_PIN #define SD_DETECT_PIN EXP2_07_PIN #endif #define CLCD_MOD_RESET EXP2_05_PIN #define CLCD_SPI_CS EXP2_03_PIN #endif // TOUCH_UI_FTDI_EVE && LCD_FYSETC_TFT81050
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS.h
C
agpl-3.0
30,200
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.3 pin assignments * ATmega2560, ATmega1280 * * Applies to the following boards: * * RAMPS_13_EFB (Extruder, Fan, Bed) * RAMPS_13_EEB (Extruder, Extruder, Bed) * RAMPS_13_EFF (Extruder, Fan, Fan) * RAMPS_13_EEF (Extruder, Extruder, Fan) * RAMPS_13_SF (Spindle, Controller Fan) */ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "RAMPS 1.3" #endif #define IS_RAMPS_13 #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_13.h
C
agpl-3.0
1,321
/** * Marlin 3D Printer Firmware * Copyright (c) 2023 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 /** * Arduino Mega with RAMPS BTT v1.6+ * Schematic: https://github.com/bigtreetech/ramps-1.6/blob/master/Ramps1.6/hardware/R6%2B-SCH.pdf * * Differences from RAMPS v1.4: * - SPI Stepper drivers use AVR hardware SPI pins * - SPI Stepper CS pins are different */ #include "env_validate.h" #define BOARD_INFO_NAME "RAMPS BTT 1.6+" #if HAS_TMC_SPI && DISABLED(TMC_USE_SW_SPI) #define TMC_SPI_MOSI MOSI // 51 #define TMC_SPI_MISO MISO // 50 #define TMC_SPI_SCK SCK // 52 #endif #define X_CS_PIN 63 // A0 #define Y_CS_PIN 40 #define Z_CS_PIN 42 #define E0_CS_PIN 65 // A11 #define E1_CS_PIN 66 // A12 #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_BTT_16_PLUS.h
C
agpl-3.0
1,730
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #if HOTENDS > 2 || E_STEPPERS > 2 #error "Creality RAMPS supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Creality3D RAMPS" // // Heaters / Fans // #define MOSFET_B_PIN 7 #define FAN0_PIN 9 #define FIL_RUNOUT_PIN 2 #if NUM_RUNOUT_SENSORS >= 2 #define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors #endif #ifndef SD_DETECT_PIN #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 #define PS_ON_PIN 40 // Used by CR2020 Industrial series #endif #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) #define CASE_LIGHT_PIN 65 #endif #define SERVO1_PIN 12 #include "pins_RAMPS.h" #ifndef BEEPER_PIN #define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI #endif #define EXP1_PIN 65 // A11 - Used by CR2020 Industrial series for case #define EXP2_PIN 66 // A12 #define EXP3_PIN 11 // SERVO0_PIN #define EXP4_PIN 12 // PS_ON_PIN #define SUICIDE_PIN 12 // Used by CR2020 Industrial series #ifndef SUICIDE_PIN_STATE #define SUICIDE_PIN_STATE HIGH #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
C
agpl-3.0
2,519
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #if HAS_MULTI_HOTEND || E_STEPPERS > 1 #error "Ender-4 only supports 1 hotend / E stepper." #endif #define BOARD_INFO_NAME "Ender-4" #include "pins_RAMPS.h" // The board only has one PWM fan connector. The others are 12V always-on. // The default config uses this pin to control the brightness of the LED // band (case light). Thus the hotend and controller fans are always-on. #if ENABLED(CASE_LIGHT_ENABLE) #undef FAN0_PIN #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN MOSFET_B_PIN #endif #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_ENDER_4.h
C
agpl-3.0
1,405
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.0, v1.1, v1.2 pin assignments * ATmega2560, ATmega1280 */ #include "env_validate.h" #define BOARD_INFO_NAME "RAMPS <1.2" // Uncomment the following line for RAMPS v1.0 //#define RAMPS_V_1_0 // // Limit Switches // #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_MIN_PIN 16 #define Y_MAX_PIN 17 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 19 #endif // // Steppers // #define X_STEP_PIN 26 #define X_DIR_PIN 28 #define X_ENABLE_PIN 24 #define Y_STEP_PIN 38 #define Y_DIR_PIN 40 #define Y_ENABLE_PIN 36 #define Z_STEP_PIN 44 #define Z_DIR_PIN 46 #define Z_ENABLE_PIN 42 #define E0_STEP_PIN 32 #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 // // Temperature Sensors // #define TEMP_0_PIN 2 // Analog Input #define TEMP_BED_PIN 1 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) #endif // // Heaters / Fans // #if ENABLED(RAMPS_V_1_0) #define HEATER_0_PIN 12 #define HEATER_BED_PIN -1 #ifndef FAN0_PIN #define FAN0_PIN 11 #endif #else // RAMPS_V_1_1 or RAMPS_V_1_2 #define HEATER_0_PIN 10 #define HEATER_BED_PIN 8 #ifndef FAN0_PIN #define FAN0_PIN 9 #endif #endif // // Misc. Functions // #define SDPOWER_PIN 48 #define SDSS 53 #define LED_PIN 13 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 45 // Hardware PWM #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown! #define SPINDLE_DIR_PIN 43 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_OLD.h
C
agpl-3.0
3,511
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.4Plus, aka 3DYMY version * ATmega2560, ATmega1280 * * Applies to the following boards: * * RAMPS_PLUS_EFB (Extruder, Fan, Bed) * RAMPS_PLUS_EEB (Extruder, Extruder, Bed) * 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 MOSFET_A_PIN 8 #define MOSFET_C_PIN 10 // // Steppers // #define X_CS_PIN -1 #define Y_CS_PIN -1 #define Z_CS_PIN -1 // Swap E0 / E1 on 3DYMY #define E0_STEP_PIN 36 #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 #define E0_CS_PIN -1 #define E1_STEP_PIN 26 #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 24 #define E1_CS_PIN -1 /** 3DYMY Expansion Headers * ------ ------ * (BEEP) 37 | 1 2 | 35 (ENC) (MISO) 50 | 1 2 | 52 (SCK) * (LCD_EN) 31 | 3 4 | 41 (LCD_RS) (EN1) 29 | 3 4 | 53 (SDSS) * (LCD_D4) 33 5 6 | 23 (LCD_D5) (EN2) 25 5 6 | 51 (MOSI) * (LCD_D6) 42 | 7 8 | 44 (LCD_D7) (SD_DET) 49 | 7 8 | 27 (KILL) * GND | 9 10 | 5V GND | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 37 // BEEPER #define EXP1_02_PIN 35 // ENC #define EXP1_03_PIN 31 // LCD_EN #define EXP1_04_PIN 41 // LCD_RS #define EXP1_05_PIN 33 // LCD_D4 #define EXP1_06_PIN 23 // LCD_D5 #define EXP1_07_PIN 42 // LCD_D6 #define EXP1_08_PIN 44 // LCD_D7 #define EXP2_01_PIN 50 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 29 // EN1 #define EXP2_04_PIN 53 // SDSS #define EXP2_05_PIN 25 // EN2 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 49 // SD_DET #define EXP2_08_PIN 27 // KILL #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
C
agpl-3.0
3,668
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS-S v1.2 by Sakul.cz pin assignments * Written by Michal Rábek <rabek33@gmail.com> * ATmega2560 * * Applies to the following boards: * * BOARD_RAMPS_S_12_EEFB Ramps S 1.2 (Hotend0, Hotend1, Fan, Bed) * BOARD_RAMPS_S_12_EEEB Ramps S 1.2 (Hotend0, Hotend1, Hotend2, Bed) * BOARD_RAMPS_S_12_EFFB Ramps S 1.2 (Hotend, Fan0, Fan1, Bed) * * Other pins_MYBOARD.h files may override these defaults */ #include "env_validate.h" // Custom flags and defines for the build //#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "RAMPS S 1.2" #endif // // Servos // #ifndef SERVO0_PIN #define SERVO0_PIN 10 #endif #ifndef SERVO1_PIN #define SERVO1_PIN 11 #endif #ifndef SERVO2_PIN #define SERVO2_PIN 12 #endif #ifndef SERVO3_PIN #define SERVO3_PIN 44 #endif // // Limit Switches // #ifndef X_STOP_PIN #ifndef X_MIN_PIN #define X_MIN_PIN 37 #endif #ifndef X_MAX_PIN #define X_MAX_PIN 36 #endif #endif #ifndef Y_STOP_PIN #ifndef Y_MIN_PIN #define Y_MIN_PIN 35 #endif #ifndef Y_MAX_PIN #define Y_MAX_PIN 34 #endif #endif #ifndef Z_STOP_PIN #ifndef Z_MIN_PIN #define Z_MIN_PIN 33 #endif #ifndef Z_MAX_PIN #define Z_MAX_PIN 32 #endif #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 5 #endif // // Filament Runout Sensor // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 44 // RAMPS_S S3 on the servos connector #endif // // Steppers // #define X_STEP_PIN 17 #define X_DIR_PIN 16 #define X_ENABLE_PIN 48 #define Y_STEP_PIN 54 #define Y_DIR_PIN 47 #define Y_ENABLE_PIN 55 #ifndef Z_STEP_PIN #define Z_STEP_PIN 57 #endif #define Z_DIR_PIN 56 #define Z_ENABLE_PIN 62 #define E0_STEP_PIN 23 #define E0_DIR_PIN 22 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN 26 #define E1_DIR_PIN 25 #define E1_ENABLE_PIN 27 #define E2_STEP_PIN 29 #define E2_DIR_PIN 28 #define E2_ENABLE_PIN 39 // // Temperature Sensors // #ifndef TEMP_0_PIN #define TEMP_0_PIN 15 // Analog Input #endif #ifndef TEMP_1_PIN #define TEMP_1_PIN 14 // Analog Input #endif #ifndef TEMP_2_PIN #define TEMP_2_PIN 13 // Analog Input #endif #ifndef TEMP_3_PIN #define TEMP_3_PIN 12 // Analog Input #endif #ifndef TEMP_BED_PIN #define TEMP_BED_PIN 11 // Analog Input #endif // // Heaters / Fans // #ifndef MOSFET_D_PIN #define MOSFET_D_PIN -1 #endif #ifndef RAMPS_S_HE_0 #define RAMPS_S_HE_0 2 #endif #ifndef RAMPS_S_HE_1 #define RAMPS_S_HE_1 3 #endif #ifndef RAMPS_S_HE_2 #define RAMPS_S_HE_2 6 #endif #define HEATER_BED_PIN 9 #define HEATER_0_PIN RAMPS_S_HE_0 #if MB(RAMPS_S_12_EEFB) // Hotend0, Hotend1, Fan, Bed #define HEATER_1_PIN RAMPS_S_HE_1 #define FAN0_PIN RAMPS_S_HE_2 #elif MB(RAMPS_S_12_EEEB) // Hotend0, Hotend1, Hotend2, Bed #define HEATER_1_PIN RAMPS_S_HE_1 #define HEATER_2_PIN RAMPS_S_HE_2 #elif MB(RAMPS_S_12_EFFB) // Hotend, Fan0, Fan1, Bed #define FAN0_PIN RAMPS_S_HE_1 #define FAN1_PIN RAMPS_S_HE_2 #endif // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #ifndef KILL_PIN #define KILL_PIN 46 #endif #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 60 // Analog Input on EXTEND #endif #ifndef PS_ON_PIN #define PS_ON_PIN 12 // RAMPS_S S2 on the servos connector #endif #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN) #if NUM_SERVOS <= 1 // Prefer the servo connector #define CASE_LIGHT_PIN 12 // Hardware PWM (RAMPS_S S1 on the servos connector) #elif HAS_FREE_AUX2_PINS #define CASE_LIGHT_PIN 44 // Hardware PWM #endif #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN) #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown! #define SPINDLE_DIR_PIN 5 #endif // // TMC software SPI // #ifndef TMC_SPI_MOSI #define TMC_SPI_MOSI 51 #endif #ifndef TMC_SPI_MISO #define TMC_SPI_MISO 50 #endif #ifndef TMC_SPI_SCK #define TMC_SPI_SCK 53 #endif // // Průša i3 MK2 Multiplexer Support // #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 // // LCD / Controller // #if HAS_WIRED_LCD #define BEEPER_PIN 45 #define LCD_PINS_RS 19 #define LCD_PINS_EN 49 #define LCD_PINS_D4 18 #define LCD_PINS_D5 30 #define LCD_PINS_D6 41 #define LCD_PINS_D7 31 #ifndef SD_DETECT_PIN #define SD_DETECT_PIN 38 #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // // LCD Display input pins // #if IS_NEWPANEL #define BTN_EN1 40 #define BTN_EN2 42 #define BTN_ENC 43 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RAMPS_S_12.h
C
agpl-3.0
7,608
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RIGIDBOARD Arduino Mega with RAMPS v1.4 pin assignments * ATmega2560, ATmega1280 */ #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "RigidBoard" #endif // // Steppers // RigidBot swaps E0 / E1 plugs vs RAMPS 1.3 // #define E0_STEP_PIN 36 #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 #define E1_STEP_PIN 26 #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 24 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 19 // Z-MAX pin J14 End Stops #endif // // MOSFET changes // #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" #define STEPPER_RESET_PIN 41 // Stepper drivers have a reset on RigidBot // // Temperature Sensors // #undef TEMP_0_PIN #undef TEMP_1_PIN #undef TEMP_BED_PIN #define TEMP_0_PIN 14 // Analog Input #define TEMP_1_PIN 13 // Analog Input #define TEMP_BED_PIN 15 // Analog Input // SPI for MAX Thermocouple #undef TEMP_0_CS_PIN #if !HAS_MEDIA #define TEMP_0_CS_PIN 53 // Don't use pin 53 if there is even the remote possibility of using Display/SD card #else #define TEMP_0_CS_PIN 49 // Don't use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present #endif // // Heaters / Fans // #undef HEATER_BED_PIN #define HEATER_BED_PIN 10 #ifndef FAN0_PIN #define FAN0_PIN 8 // Same as RAMPS_13_EEF #endif // // Misc. Functions // #undef PS_ON_PIN // // LCD / Controller // // LCD Panel options for the RigidBoard #if ENABLED(RIGIDBOT_PANEL) #undef BEEPER_PIN #define BEEPER_PIN -1 // Direction buttons #define BTN_UP 37 #define BTN_DOWN 35 #define BTN_LEFT 33 #define BTN_RIGHT 32 // 'R' button #undef BTN_ENC #define BTN_ENC 31 // Disable encoder #undef BTN_EN1 #undef BTN_EN2 #undef SD_DETECT_PIN #define SD_DETECT_PIN 22 #elif IS_RRD_SC #undef SD_DETECT_PIN #define SD_DETECT_PIN 22 #undef KILL_PIN #define KILL_PIN 32 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RIGIDBOARD.h
C
agpl-3.0
3,561
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RIGIDBOARD V2 Arduino Mega with RAMPS v1.4 pin assignments * ATmega2560, ATmega1280 */ #define BOARD_INFO_NAME "RigidBoard V2" #include "pins_RIGIDBOARD.h" // ... RAMPS // // Steppers // // I2C based DAC like on the Printrboard REVF #define HAS_MOTOR_CURRENT_DAC 1 // Channels available for DAC, For Rigidboard there are 4 #define DAC_STEPPER_ORDER { 0, 1, 2, 3 } #define DAC_STEPPER_SENSE 0.05 // sense resistors on rigidboard stepper chips are .05 value #define DAC_STEPPER_ADDRESS 0 #define DAC_STEPPER_MAX 4096 // was 5000 but max allowable value is actually 4096 #define DAC_STEPPER_VREF 1 // internal Vref, gain 2x = 4.096V #define DAC_STEPPER_GAIN 1 // value of 1 here sets gain of 2 #define DAC_DISABLE_PIN 42 // set low to enable DAC #define DAC_OR_ADDRESS 0x01 #ifndef DAC_MOTOR_CURRENT_DEFAULT #define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h
C
agpl-3.0
1,915
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Rapide Lite 200 v1 (RUMBA clone) pin assignments. Has slightly different assignment for * extruder motors due to dual Z motors. Pinout therefore based on pins_RUMBA.h. * ATmega2560 */ #define BOARD_INFO_NAME "RL200" #define DEFAULT_MACHINE_NAME "Rapide Lite 200" #if HOTENDS > 2 || E_STEPPERS > 2 #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 #define E0_STEP_PIN 26 // (RUMBA E1 pins) #define E0_DIR_PIN 25 #define E0_ENABLE_PIN 27 #define E1_STEP_PIN 29 // (RUMBA E2 pins) #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 39 #define Z2_STEP_PIN 23 // (RUMBA E0 pins) #define Z2_DIR_PIN 22 #define Z2_ENABLE_PIN 24 #include "pins_RUMBA.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RL200.h
C
agpl-3.0
2,154
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RUMBA pin assignments * Schematic: https://reprap.org/wiki/File:RRD-RUMBA_SCHEMATICS.png * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 3 || E_STEPPERS > 3 #error "RUMBA supports up to 3 hotends / E steppers." #endif #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "Rumba" #endif #ifndef DEFAULT_MACHINE_NAME #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #endif // // Servos // #define SERVO0_PIN 5 // // Limit Switches // #ifndef X_MIN_PIN #define X_MIN_PIN 37 #endif #ifndef X_MAX_PIN #define X_MAX_PIN 36 #endif #ifndef Y_MIN_PIN #define Y_MIN_PIN 35 #endif #ifndef Y_MAX_PIN #define Y_MAX_PIN 34 #endif #ifndef Z_MIN_PIN #define Z_MIN_PIN 33 #endif #ifndef Z_MAX_PIN #define Z_MAX_PIN 32 #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 17 #define X_DIR_PIN 16 #define X_ENABLE_PIN 48 #define Y_STEP_PIN 54 #define Y_DIR_PIN 47 #define Y_ENABLE_PIN 55 #define Z_STEP_PIN 57 #define Z_DIR_PIN 56 #define Z_ENABLE_PIN 62 #ifndef E0_STEP_PIN #define E0_STEP_PIN 23 #define E0_DIR_PIN 22 #define E0_ENABLE_PIN 24 #endif #ifndef E1_STEP_PIN #define E1_STEP_PIN 26 #define E1_DIR_PIN 25 #define E1_ENABLE_PIN 27 #endif #if E1_STEP_PIN != 29 #define E2_STEP_PIN 29 #define E2_DIR_PIN 28 #define E2_ENABLE_PIN 39 #endif // // Temperature Sensors // #ifndef TEMP_0_PIN #if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 6 // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used) #else #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used) #endif #endif #ifndef TEMP_1_PIN #if TEMP_SENSOR_1 == -1 #define TEMP_1_PIN 5 // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used) #else #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used) #endif #endif #if TEMP_SENSOR_2 == -1 #define TEMP_2_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_BED is defined as thermocouple) #else #define TEMP_2_PIN 13 // Analog Input (default connector for thermistor *T2* on rumba board is used) #endif // Optional for extruder 4 or chamber: //#define TEMP_X_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used) #ifndef TEMP_CHAMBER_PIN //#define TEMP_CHAMBER_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used) #endif #if TEMP_SENSOR_BED == -1 #define TEMP_BED_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_2 is defined as thermocouple) #else #define TEMP_BED_PIN 11 // Analog Input (default connector for thermistor *THB* on rumba board is used) #endif // // Heaters / Fans // #define HEATER_0_PIN 2 #define HEATER_1_PIN 3 #define HEATER_2_PIN 6 #define HEATER_3_PIN 8 #define HEATER_BED_PIN 9 #ifndef FAN0_PIN #define FAN0_PIN 7 #endif #ifndef FAN1_PIN #define FAN1_PIN 8 #endif // // Misc. Functions // #define LED_PIN 13 #define PS_ON_PIN 45 #define KILL_PIN 46 #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 45 #endif // // M3/M4/M5 - Spindle/Laser Control // #ifndef SPINDLE_LASER_PWM_PIN #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM. Pin 4 interrupts OC0* and OC1* always in use? #endif #ifndef SPINDLE_LASER_ENA_PIN #define SPINDLE_LASER_ENA_PIN 14 // Pullup! #endif #ifndef SPINDLE_DIR_PIN #define SPINDLE_DIR_PIN 15 #endif // // LCD / Controller // #if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306) #define LCD_PINS_DC 38 // Set as output on init #define LCD_PINS_RS 41 // Pull low for 1s to init // DOGM SPI LCD Support #define DOGLCD_CS 19 #define DOGLCD_MOSI 42 #define DOGLCD_SCK 18 #define DOGLCD_A0 LCD_PINS_DC #elif ENABLED(FYSETC_MINI_12864) #define DOGLCD_CS 42 #define DOGLCD_A0 19 #define DOGLCD_MOSI 51 #define DOGLCD_SCK 52 //#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 18 // Must be high or open for LCD to operate normally. #if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN 41 #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN 38 #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN 40 #endif #elif ENABLED(FYSETC_MINI_12864_2_1) #define NEOPIXEL_PIN 38 #endif #else #define LCD_PINS_RS 19 #define LCD_PINS_EN 42 #define LCD_PINS_D4 18 #define LCD_PINS_D5 38 #define LCD_PINS_D6 41 #endif #define LCD_PINS_D7 40 // // Beeper, SD Card, Encoder // #define BEEPER_PIN 44 #if HAS_MEDIA #define SDSS 53 #define SD_DETECT_PIN 49 #endif #if IS_NEWPANEL #define BTN_EN1 11 #define BTN_EN2 12 #define BTN_ENC 43 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RUMBA.h
C
agpl-3.0
7,786
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 // ATmega2560 #define BOARD_INFO_NAME "Raise3D Rumba" #define DEFAULT_MACHINE_NAME "Raise3D N Series" // Raise3D uses thermocouples on the standard input pins #define TEMP_0_PIN 15 // Analog Input #define TEMP_1_PIN 14 // Analog Input #include "pins_RUMBA.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_RUMBA_RAISE3D.h
C
agpl-3.0
1,199
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Sainsmart 2-in-1 pin assignments * ATmega2560, ATmega1280 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "Sainsmart 2-in-1 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Sainsmart 2-in-1" // // Heaters / Fans // #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"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_SAINSMART_2IN1.h
C
agpl-3.0
1,422
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * BIQU Tango pin assignments * Schematic: https://github.com/bigtreetech/Tango-3D-Printer-Motherboard/blob/master/Schematic/Tango%20V1.0.SchDoc * ATmega2560 */ #define BOARD_INFO_NAME "Tango" #define FAN0_PIN 8 #define FAN1_PIN -1 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 7 #endif #ifndef TEMP_0_PIN #if TEMP_SENSOR_0 == -1 #define TEMP_0_PIN 10 // Analog Input (connector *K1* on Tango thermocouple ADD ON is used) #else #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used) #endif #endif #ifndef TEMP_1_PIN #if TEMP_SENSOR_1 == -1 #define TEMP_1_PIN 9 // Analog Input (connector *K2* on Tango thermocouple ADD ON is used) #else #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used) #endif #endif #include "pins_RUMBA.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TANGO.h
C
agpl-3.0
1,920
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Tenlog D3 Hero pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "Tenlog supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Tenlog D3 Hero" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Servos // #define SERVO0_PIN 11 #define SERVO1_PIN 6 #define SERVO2_PIN -1 // Original pin 5 used for hotend fans #define SERVO3_PIN 4 // // Limit Switches // #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_MIN_PIN 14 //#define Y_MAX_PIN 15 // Connected to "DJ" plug on extruder heads #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 15 // Ramps is normally 32 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 //#ifndef X_CS_PIN //#define X_CS_PIN 53 //#endif #define X2_STEP_PIN 36 #define X2_DIR_PIN 34 #define X2_ENABLE_PIN 30 //#ifndef X2_CS_PIN //#define X2_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 49 //#endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 //#ifndef Z_CS_PIN //#define Z_CS_PIN 40 //#endif #define Z2_STEP_PIN 65 #define Z2_DIR_PIN 66 #define Z2_ENABLE_PIN 64 //#ifndef Z2_CS_PIN //#define Z2_CS_PIN 40 //#endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 //#ifndef E0_CS_PIN //define E0_CS_PIN 42 //#endif #define E1_STEP_PIN 57 #define E1_DIR_PIN 58 #define E1_ENABLE_PIN 59 //#ifndef E1_CS_PIN //define E1_CS_PIN 44 //#endif //#define E2_STEP_PIN 42 //#define E2_DIR_PIN 43 //#define E2_ENABLE_PIN 44 // // Temperature Sensors // #define TEMP_0_PIN 13 // Analog Input #define TEMP_1_PIN 15 // Analog Input #define TEMP_BED_PIN 14 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN -1 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN -1 // Don't use 49 (SD_DETECT_PIN) #endif // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 11 #define HEATER_BED_PIN 8 #define FAN0_PIN 9 #define FAN1_PIN 5 // Normally this would be a servo pin // XXX Runout support unknown? //#define NUM_RUNOUT_SENSORS 0 //#define FIL_RUNOUT_PIN 22 //#define FIL_RUNOUT2_PIN 21 // // 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 //#define LED_PIN 13 //#endif //#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM //#define SPINDLE_LASER_ENA_PIN 4 // Pullup! // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector //#define FILWIDTH_PIN 5 // Analog Input // // LCD / Controller // //#if IS_RRD_SC #define LCD_PINS_RS -1 #define LCD_PINS_EN -1 #define LCD_PINS_D4 -1 #define LCD_PINS_D5 -1 #define LCD_PINS_D6 -1 #define LCD_PINS_D7 -1 //#define BTN_EN1 31 //#define BTN_EN2 33 //#define BTN_ENC 35 #define SD_DETECT_PIN 49 //#ifndef KILL_PIN //#define KILL_PIN 41 //#endif //#ifndef BEEPER_PIN #define BEEPER_PIN -1 //#endif //#endif // IS_RRD_SC
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TENLOG_D3_HERO.h
C
agpl-3.0
5,888
/** * 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 /** * Tenlog MB1 V2.3 pin assignments * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "Tenlog supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "Tenlog MB1 V2.3" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Limit Switches // #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_MIN_PIN 14 //#define Y_MAX_PIN 15 // Connected to "DJ" plug on extruder heads #define Z_MIN_PIN 18 #if ENABLED(BLTOUCH) #define SERVO0_PIN 19 #else #define Z_MAX_PIN 19 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X2_STEP_PIN 36 #define X2_DIR_PIN 34 #define X2_ENABLE_PIN 30 #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 Z2_STEP_PIN 65 #define Z2_DIR_PIN 66 #define Z2_ENABLE_PIN 64 #define E0_STEP_PIN 57 #define E0_DIR_PIN 58 #define E0_ENABLE_PIN 59 #define E1_STEP_PIN 26 #define E1_DIR_PIN 28 #define E1_ENABLE_PIN 24 // // Temperature Sensors // #define TEMP_0_PIN 15 // Analog Input #define TEMP_1_PIN 13 // Analog Input #define TEMP_BED_PIN 14 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 11 #define HEATER_1_PIN 10 #define HEATER_BED_PIN 8 #define FAN0_PIN 9 #define FAN2_PIN 5 // Normally this would be a servo pin //#define NUM_RUNOUT_SENSORS 0 #define FIL_RUNOUT_PIN 15 //#define FIL_RUNOUT2_PIN 21 // // PSU and Powerloss Recovery // #if ENABLED(PSU_CONTROL) #define PS_ON_PIN 40 // The M80/M81 PSU pin for boards v2.1-2.3 #endif // // Misc. Functions // //#define CASE_LIGHT_PIN 5 //#ifndef LED_PIN // #define LED_PIN 13 //#endif #if HAS_CUTTER //#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM //#define SPINDLE_LASER_ENA_PIN 4 // Pullup! #endif // Use the RAMPS 1.4 Analog input 5 on the AUX2 connector //#define FILWIDTH_PIN 5 // Analog Input #define SDSS 53 #define SD_DETECT_PIN 49 // // LCD / Controller // //#if IS_RRD_SC //#ifndef BEEPER_PIN // #define BEEPER_PIN -1 //#endif #define LCD_PINS_RS -1 #define LCD_PINS_EN -1 #define LCD_PINS_D4 -1 #define LCD_PINS_D5 -1 #define LCD_PINS_D6 -1 #define LCD_PINS_D7 -1 //#define BTN_EN1 31 //#define BTN_EN2 33 //#define BTN_ENC 35 //#ifndef KILL_PIN // #define KILL_PIN 41 //#endif //#endif // IS_RRD_SC
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TENLOG_MB1_V23.h
C
agpl-3.0
4,719
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.3 for Anycubic * ATmega2560 */ #define BOARD_INFO_NAME "Anycubic RAMPS 1.3" #define MOSFET_B_PIN 44 #define E1_STEP_PIN -1 #define E1_DIR_PIN -1 #define E1_ENABLE_PIN -1 #define E1_CS_PIN -1 #define FAN2_PIN 9 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 9 #endif #include "pins_RAMPS_13.h" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TRIGORILLA_13.h
C
agpl-3.0
1,408
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega with RAMPS v1.4 for Anycubic * ATmega2560 */ #define BOARD_INFO_NAME "Anycubic RAMPS 1.4" // // Servos // #if MB(TRIGORILLA_14_11) #define SERVO0_PIN 5 #define SERVO1_PIN 4 #define SERVO2_PIN 11 #define SERVO3_PIN 6 #endif // // PWM FETS // #define MOSFET_B_PIN 45 // HEATER1 // // Heaters / Fans // #define FAN0_PIN 9 // FAN0 #define FAN1_PIN 7 // FAN1 #define FAN2_PIN 44 // FAN2 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN FAN2_PIN #endif /** * Trigorilla Plugs (oriented with stepper plugs at the top) * * SENSORS : GND GND GND GND * A12 A15 A14 A13 * (D66 D69 D68 D67) * * AUX : D42 GND 5V (Chiron Y-STOP) * D43 GND 5V (Chiron Z-STOP) * * UART3 : GND D15 D14 5V * (RX3 TX3) * * IIC : 12V GND D21 D20 GND 5V * (SCL SDA) * * TX2 RX2 RX3 TX3 * END STOPS : D19 D18 D15 D14 D2 D3 * GND GND GND GND GND GND * 5V 5V 5V 5V 5V 5V */ /** Expansion Headers * ------ ------ * (BEEP) 37 | 1 2 | 35 (ENC) (MISO) 50 | 1 2 | 52 (SCK) * (LCD_EN) 17 | 3 4 | 16 (LCD_RS) (EN1) 31 | 3 4 | 53 (SDSS) * (LCD_D4) 23 5 6 | 25 (LCD_D5) (EN2) 33 5 6 | 51 (MOSI) * (LCD_D6) 27 | 7 8 | 29 (LCD_D7) (SD_DET) 49 | 7 8 | 41 (KILL) * GND | 9 10 | 5V GND | 9 10 | RESET * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 37 // BEEPER #define EXP1_02_PIN 35 // ENC #define EXP1_03_PIN 17 // LCD_EN #define EXP1_04_PIN 16 // LCD_RS #define EXP1_05_PIN 23 // LCD_D4 #define EXP1_06_PIN 25 // LCD_D5 #define EXP1_07_PIN 27 // LCD_D6 #define EXP1_08_PIN 29 // LCD_D7 #define EXP2_01_PIN 50 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 31 // EN1 #define EXP2_04_PIN 53 // SDSS #define EXP2_05_PIN 33 // EN2 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 49 // SD_DET #define EXP2_08_PIN 41 // KILL // // AnyCubic pin mappings // // Define the appropriate mapping option in Configuration.h: // - TRIGORILLA_MAPPING_CHIRON // - TRIGORILLA_MAPPING_I3MEGA // //#define ANYCUBIC_4_MAX_PRO_ENDSTOPS #if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS) #define X_MAX_PIN 43 // AUX (2) #define Y_STOP_PIN 19 // Z+ #elif ANY(TRIGORILLA_MAPPING_CHIRON, TRIGORILLA_MAPPING_I3MEGA) // Chiron uses AUX header for Y and Z endstops #define Y_STOP_PIN 42 // AUX (1) #define Z_STOP_PIN 43 // AUX (2) #ifndef Z2_STOP_PIN #define Z2_STOP_PIN 18 // Z- #endif #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 2 // X+ #endif #define CONTROLLER_FAN_PIN FAN1_PIN #if ENABLED(POWER_LOSS_RECOVERY) #define OUTAGETEST_PIN 79 #define OUTAGECON_PIN 58 #endif #if ENABLED(TRIGORILLA_MAPPING_CHIRON) #if ENABLED(ANYCUBIC_LCD_CHIRON) && !defined(FIL_RUNOUT_PIN) #define FIL_RUNOUT_PIN EXP2_05_PIN // Chiron Standard Adapter #endif #define HEATER_BED_PIN MOSFET_B_PIN // HEATER1 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 19 // Z+ #endif #if ANY(TRIGORILLA_MAPPING_CHIRON, SWAP_Z_MOTORS) // Chiron and some Anycubic i3 MEGAs swap Z steppers #define Z_STEP_PIN 36 #define Z_DIR_PIN 34 #define Z_ENABLE_PIN 30 #define Z_CS_PIN 44 #define Z2_STEP_PIN 46 #define Z2_DIR_PIN 48 #define Z2_ENABLE_PIN 62 #define Z2_CS_PIN 40 #endif #endif #if ANY(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA) #ifndef BEEPER_PIN #define BEEPER_PIN EXP2_03_PIN // Chiron Standard Adapter #endif #define SD_DETECT_PIN EXP2_07_PIN // Chiron Standard Adapter #endif #if HAS_TMC_UART #ifndef X_SERIAL_TX_PIN #define X_SERIAL_TX_PIN SERVO1_PIN #endif #ifndef Y_SERIAL_TX_PIN #define Y_SERIAL_TX_PIN SERVO0_PIN #endif #ifndef Z_SERIAL_TX_PIN #define Z_SERIAL_TX_PIN SERVO3_PIN #endif #ifndef E0_SERIAL_TX_PIN #define E0_SERIAL_TX_PIN SERVO2_PIN #endif #endif #include "pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TRIGORILLA_14.h
C
agpl-3.0
6,085
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega for Tronxy X5S-2E, etc. * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 2 || E_STEPPERS > 2 #error "TRONXY-V3-1.0 supports up to 2 hotends/E steppers." #endif #define BOARD_INFO_NAME "TRONXY-V3-1.0" // // Servos // #define SERVO1_PIN 12 // 2560 PIN 25/PB6 // // Import RAMPS 1.4 pins // #include "pins_RAMPS.h" /** * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== AUX-1 connector ===== * * 2 4 6 8 * #----------------# * #2 | ° ° ° ° | * #1 | ° ° ° ° | * NOTCH #------ ------# * 1 3 5 7 * * ################################### * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | VCC | + # * # 2 | VCC | + # * # 3 | GND | - # * # 4 | GND | - # * # 5 | N/C | # * # 6 | 3 / PE1 (TXD0) | D1 # * # 7 | N/C | # * # 8 | 2 / PE0 (RXD0) | D0 # * ################################### * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== Limit Switch connectors ===== * * ############## X+ ################# * X+ # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 6 / PE4 (INT4) | D2 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * ############## X- ################# * X- # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 7 / PE5 (INT5) | D3 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * ############## Y+ ################# * Y+ # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 63/PJ0 (PCINT9) | D15 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * ############## Y- ################# * Y- # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 64/PJ1 (PCINT10)| D14 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * ############## Z+ ################# * Z+ # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 45 / PD2 (INT2) | D19 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * ############## Z- ################# * Z- # Pin | ATMEGA2560 Pin | Arduino # * 1 2 3 ################################### * #- --- -# # 1 | 46 / PD3 (INT3) | D18 # * | ° ° ° | # 2 | GND | - # * #-------# # 3 | VCC | + # * ################################### * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== EXP1/EXP2 connectors ===== * * (NOTE ORDER) EXP2 EXP1 * 2 4 6 8 10 2 4 6 8 10 * #-------------------# #-------------------# * #2 | ° ° ° ° ° | #2 | ° ° ° ° ° | * #1 | ° ° ° ° ° | #1 | ° ° ° ° ° | * NOTCH #-------- -------# NOTCH #-------- -------# * 1 3 5 7 9 1 3 5 7 9 * * ############# EXP1 ################ * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | 53 / PC0 | D37 # * # 2 | 55 / PC2 | D35 # * # 3 | 12 / PH0 (RXD2) | D17 # * # 4 | 13 / PH1 (TXD2) | D16 # * # 5 | 77 / PA1 | D23 # * # 6 | 75 / PA3 | D25 # * # 7 | 73 / PA5 | D27 # * # 8 | 71 / PA7 | D29 # * # 9 | GND | - # * # 10 | VCC | + # * ################################### * * ############# EXP2 ################ * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | 22 / PB3 (MISO) | D50 # * # 2 | 20 / PB1 (SCK) | D52 # * # 3 | 59 / PC6 | D31 # * # 4 | N/C | # * # 5 | 57 / PC4 | D33 # * # 6 | 21 / PB2 (MOSI) | D51 # * # 7 | N/C | # * # 8 | 30 / !RESET | RESET # * # 9 | GND | - # * # 10 | 51 / PG0 | D41 # * ################################### * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== ICSP connector ===== * * 2 4 6 * #---------# * | ° ° ° | * | ° ° ° | * #---------# * 1 3 5 * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 22 / PB3 (MISO)| 50 # * # 2 | VCC | + # * # 3 | 20 / PB1 (SCK) | 52 # * # 4 | 21 / PB2 (MOSI)| 51 # * # 5 | 30 / !RESET | RESET # * # 6 | GND | - # * ################################## * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== SERVOS connector ===== * * 2 4 6 * #---------# * | ° ° ° | * | ° ° ° | * #---------# * 1 3 5 * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 25 / PB6 (OC1B)| D12 # * # 2 | 24 / PB5 (OC1A)| D11 # * # 3 | GND | - # * # 4 | GND | - # * # 5 | VCC | + # * # 6 | VCC | + # * ################################## * * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs. * * NOTE: Check servo wiring before connecting, for example: * + Airtronics (non-Z) use: Red = +; Black = -; Black & White, White or Orange = signal. * + Airtronics-Z use: Red = +; Black = -; Blue = signal. * + Futaba use: Red = +; Black = -; White = signal. * + Hitec use: Red = +; Black = -; Yellow = signal. * + JR use: Red = +; Brown = -; Orange = signal. * * NOTE: Test your servo limits: * Due to effects of component tolerances and/or age, the usable range of S-values for individual servos may be less than the settable 0-255 range. For example: * 1. One servo may have a fully usable range of M280 P0 S0 through M280 P0 S255. * 2. A different servo (of the same brand and model) may have a usable range of only M280 P0 S0 through M280 P0 S165 after which you experience binding. * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== Thermistor connectors ===== * * (NOTE ORDER) TH2 TH1 TB * 1 2 1 2 1 2 * #- -# #- -# #- -# * | ° ° | | ° ° | | ° ° | * #-----# #-----# #-----# * * ############## TB ################# * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | GND | - # * # 2 | 83 / PK6 (ADC14)| A14 # * ################################### * * ############## TH1 ################ * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | GND | - # * # 2 | 84 / PK5 (ADC13)| A13 # * ################################### * * ############## TH2 ################ * # Pin | ATMEGA2560 Pin | Arduino # * ################################### * # 1 | GND | - # * # 2 | 82 / PK7 (ADC15)| A15 # * ################################### * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * * ===== XS3 connector ===== * * 2 4 6 * #---------# * | ° ° ° | * | ° ° ° | * #---------# * 1 3 5 * * ################################## * # Pin | ATMEGA2560 Pin | Arduino # * ################################## * # 1 | 85 / ADC12 | A12 # * # 2 | 86 / ADC11 | A11 # * # 3 | GND | - # * # 4 | GND | - # * # 5 | VCC | + # * # 6 | VCC | + # * ################################## * * NOTE: Pins 1 and 2 are the ones closest to the "L" and "PWR" LEDs. * * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TRONXY_V3_1_0.h
C
agpl-3.0
10,048
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * TT OSCAR by YM Tech.LTD * * ATmega2560 */ #include "env_validate.h" #if HOTENDS > 5 || E_STEPPERS > 5 #error "TT OSCAR supports up to 5 hotends / E steppers." #endif #define BOARD_INFO_NAME "TT OSCAR" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME // // Servos // #define SERVO0_PIN 11 #define SERVO1_PIN 12 #define SERVO2_PIN 5 #define SERVO3_PIN 4 // // Limit Switches // #define X_MIN_PIN 3 #define X_MAX_PIN 2 #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN SERVO3_PIN #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #define X_CS_PIN 57 #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #define Y_CS_PIN 58 #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #define Z_CS_PIN 53 // EXP2-4 #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #define E0_CS_PIN 49 // EXP2-7 #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #define E1_CS_PIN E0_CS_PIN #define E2_STEP_PIN 63 #define E2_DIR_PIN 22 #define E2_ENABLE_PIN 59 #define E2_CS_PIN E0_CS_PIN #define E3_STEP_PIN 32 #define E3_DIR_PIN 40 #define E3_ENABLE_PIN 39 #define E3_CS_PIN E0_CS_PIN #define E4_STEP_PIN 43 #define E4_DIR_PIN 42 #define E4_ENABLE_PIN 47 #define E4_CS_PIN E0_CS_PIN #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers * * Hardware serial communication ports. * If undefined software serial is used according to the pins below */ //#define X_HARDWARE_SERIAL Serial1 //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 #define X_SERIAL_TX_PIN -1 // 59 #define X_SERIAL_RX_PIN -1 // 63 #define X2_SERIAL_TX_PIN -1 #define X2_SERIAL_RX_PIN -1 #define Y_SERIAL_TX_PIN -1 // 64 #define Y_SERIAL_RX_PIN -1 // 40 #define Y2_SERIAL_TX_PIN -1 #define Y2_SERIAL_RX_PIN -1 #define Z_SERIAL_TX_PIN -1 // 44 #define Z_SERIAL_RX_PIN -1 // 42 #define Z2_SERIAL_TX_PIN -1 #define Z2_SERIAL_RX_PIN -1 #define E0_SERIAL_TX_PIN -1 // 66 #define E0_SERIAL_RX_PIN -1 // 65 #define E1_SERIAL_TX_PIN -1 #define E1_SERIAL_RX_PIN -1 #define E2_SERIAL_TX_PIN -1 #define E2_SERIAL_RX_PIN -1 #define E3_SERIAL_TX_PIN -1 #define E3_SERIAL_RX_PIN -1 #define E4_SERIAL_TX_PIN -1 #define E4_SERIAL_RX_PIN -1 #define E5_SERIAL_RX_PIN -1 #define E6_SERIAL_RX_PIN -1 #define E7_SERIAL_RX_PIN -1 #endif // // Default pins for TMC software SPI // //#ifndef TMC_SPI_MOSI // #define TMC_SPI_MOSI 66 //#endif //#ifndef TMC_SPI_MISO // #define TMC_SPI_MISO 44 //#endif //#ifndef TMC_SPI_SCK // #define TMC_SPI_SCK 64 //#endif // // Temperature Sensors // #define TEMP_0_PIN 13 #define TEMP_1_PIN 15 #define TEMP_2_PIN 10 #define TEMP_3_PIN 11 #define TEMP_BED_PIN 14 #if TEMP_SENSOR_CHAMBER > 0 #define TEMP_CHAMBER_PIN 12 #else #define TEMP_4_PIN 12 #endif // SPI for MAX Thermocouple //#if !HAS_MEDIA // #define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card //#else // #define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN) //#endif // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define HEATER_2_PIN 44 #define HEATER_BED_PIN 8 #define FAN0_PIN 9 #if EXTRUDERS >= 5 #define HEATER_4_PIN 6 #else #define FAN1_PIN 6 #endif #if EXTRUDERS >= 4 #define HEATER_3_PIN 45 #else #define FAN2_PIN 45 #endif // // Misc. Functions // #define SDSS 53 // EXP2-4 #define LED_PIN 13 //#ifndef FILWIDTH_PIN // #define FILWIDTH_PIN 5 // Analog Input //#endif // DIO 4 (Servos plug) for the runout sensor. //#define FIL_RUNOUT_PIN SERVO3_PIN #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA) #if !NUM_SERVOS // Prefer the servo connector #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown! #define SPINDLE_DIR_PIN 5 #elif HAS_FREE_AUX2_PINS // Try to use AUX 2 #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown! #define SPINDLE_DIR_PIN 65 #endif #endif // // Case Light // #if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENA_PIN) #if !NUM_SERVOS // Prefer the servo connector #define CASE_LIGHT_PIN 6 // Hardware PWM #elif HAS_FREE_AUX2_PINS // Try to use AUX 2 #define CASE_LIGHT_PIN 44 // Hardware PWM #endif #endif // // Průša i3 MK2 Multiplexer Support // #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 // EXP2-4 #endif #ifndef E_MUX2_PIN #define E_MUX2_PIN 49 // EXP2-7 #endif #endif /** TT OSCAR Expansion Headers * ------ * -- | 1 2 | -- * -- 3 4 | -- * -- 5 6 | -- * 49 | 7 8 | -- * ------ * AUX1 * * ------ ------ * 37 | 1 2 | 35 (MISO) 44 | 1 2 | 52 (SCK) * 17 | 3 4 | 41? 35 | 3 4 | 53 * 23 5 6 | 25 31 5 6 | 51 (MOSI) * 27 | 7 8 | 29 49 | 7 8 | 41 * GND | 9 10 | 5V GND | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 37 // BEEPER #define EXP1_02_PIN 35 // ENC #define EXP1_03_PIN 17 // ENC1 #define EXP1_04_PIN 41 // RESET #define EXP1_05_PIN 23 // ENC2 #define EXP1_06_PIN 25 // D4 #define EXP1_07_PIN 27 // RS #define EXP1_08_PIN 29 // EN #define EXP2_01_PIN 44 // MISO #define EXP2_02_PIN 52 // SCK #define EXP2_03_PIN 35 // EN2 / EN1 #define EXP2_04_PIN 53 // SDSS #define EXP2_05_PIN 31 // EN1 / EN2 #define EXP2_06_PIN 51 // MOSI #define EXP2_07_PIN 49 // SD_DET #define EXP2_08_PIN 41 // KILL / RESET // // LCD / Controller // #if HAS_WIRED_LCD // // LCD Display output pins // #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #define LCD_PINS_RS EXP2_07_PIN // CS chip select /SS chip slave select #define LCD_PINS_EN EXP2_06_PIN // SID (MOSI) #define LCD_PINS_D4 EXP2_02_PIN // SCK (CLK) clock #elif ALL(IS_NEWPANEL, PANEL_ONE) #define LCD_PINS_RS 40 #define LCD_PINS_EN 42 #define LCD_PINS_D4 65 #define LCD_PINS_D5 66 #define LCD_PINS_D6 44 #define LCD_PINS_D7 64 #elif ENABLED(ZONESTAR_LCD) #define LCD_PINS_RS 64 #define LCD_PINS_EN 44 #define LCD_PINS_D4 63 #define LCD_PINS_D5 40 #define LCD_PINS_D6 42 #define LCD_PINS_D7 65 #define ADC_KEYPAD_PIN 12 #else #if ENABLED(CR10_STOCKDISPLAY) #define LCD_PINS_RS 27 #define LCD_PINS_EN 29 #define LCD_PINS_D4 25 #if !IS_NEWPANEL #define BEEPER_PIN 37 #endif #else #if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306) #define LCD_PINS_DC 25 // Set as output on init #define LCD_PINS_RS 27 // Pull low for 1s to init // DOGM SPI LCD Support #define DOGLCD_CS 16 #define DOGLCD_MOSI 17 #define DOGLCD_SCK 23 #define DOGLCD_A0 LCD_PINS_DC #else #define LCD_PINS_RS 16 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #endif #define LCD_PINS_D7 29 #if !IS_NEWPANEL #define BEEPER_PIN 33 #endif #endif #if !IS_NEWPANEL // 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 17 #endif #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif // // LCD Display input pins // #if IS_NEWPANEL #if IS_RRD_SC #define BEEPER_PIN 37 #if ENABLED(CR10_STOCKDISPLAY) #define BTN_EN1 17 #define BTN_EN2 23 #else #define BTN_EN1 31 #define BTN_EN2 33 #endif #define BTN_ENC 35 #define SD_DETECT_PIN EXP2_07_PIN //#define KILL_PIN 41 #if ENABLED(BQ_LCD_SMART_CONTROLLER) #define LCD_BACKLIGHT_PIN 39 #endif #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #define BTN_EN1 64 #define BTN_EN2 59 #define BTN_ENC 63 #define SD_DETECT_PIN 42 #elif ENABLED(LCD_I2C_PANELOLU2) #define BTN_EN1 47 #define BTN_EN2 43 #define BTN_ENC 32 #define LCD_SDSS EXP2_04_PIN //#define KILL_PIN 41 #elif ENABLED(LCD_I2C_VIKI) #define BTN_EN1 22 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42. #define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13. #define BTN_ENC -1 #define LCD_SDSS EXP2_04_PIN #define SD_DETECT_PIN EXP2_07_PIN #elif ANY(VIKI2, miniVIKI) #define DOGLCD_CS 45 #define DOGLCD_A0 44 #define BEEPER_PIN 33 #define STAT_LED_RED_PIN 32 #define STAT_LED_BLUE_PIN 35 #define BTN_EN1 22 #define BTN_EN2 7 #define BTN_ENC 39 #define SDSS EXP2_04_PIN #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 #define DOGLCD_A0 27 #define BEEPER_PIN 23 #define LCD_BACKLIGHT_PIN 33 #define BTN_EN1 35 #define BTN_EN2 37 #define BTN_ENC 31 #define LCD_SDSS EXP2_04_PIN #define SD_DETECT_PIN EXP2_07_PIN //#define KILL_PIN 41 #elif ENABLED(MKS_MINI_12864) #define DOGLCD_A0 27 #define DOGLCD_CS 25 #define BEEPER_PIN 37 #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65 #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 //#define SDSS EXP2_04_PIN #define SD_DETECT_PIN EXP2_07_PIN //#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 // not connected to a pin #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65 #define DOGLCD_A0 44 #define DOGLCD_CS 66 #define BTN_EN1 40 #define BTN_EN2 63 #define BTN_ENC 59 #define SDSS EXP2_04_PIN #define SD_DETECT_PIN EXP2_07_PIN //#define KILL_PIN 64 //#define LCD_CONTRAST_INIT 190 //#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270 #else // Beeper on AUX-4 #define BEEPER_PIN 33 // Buttons are directly attached to AUX-2 #if IS_RRW_KEYPAD #define SHIFT_OUT_PIN 40 #define SHIFT_CLK_PIN 44 #define SHIFT_LD_PIN 42 #define BTN_EN1 64 #define BTN_EN2 59 #define BTN_ENC 63 #elif ENABLED(PANEL_ONE) #define BTN_EN1 59 // AUX2 PIN 3 #define BTN_EN2 63 // AUX2 PIN 4 #define BTN_ENC 49 // AUX3 PIN 7 #else #define BTN_EN1 37 #define BTN_EN2 35 #define BTN_ENC 31 #endif #if ENABLED(G3D_PANEL) #define SD_DETECT_PIN EXP2_07_PIN //#define KILL_PIN 41 #endif #endif #endif // IS_NEWPANEL #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_TT_OSCAR.h
C
agpl-3.0
18,016
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Ultiboard v2.0 pin assignments * Schematics (2.1.4): * Origins (2.1.4): * - https://github.com/Ultimaker/Ultimaker2/blob/master/1546%20ultimainboard%20V2.1.4/schema1.SchDoc * - https://github.com/Ultimaker/Ultimaker2/blob/master/1546%20ultimainboard%20V2.1.4/schema2.SchDoc * - https://github.com/Ultimaker/Ultimaker2/blob/master/1546%20ultimainboard%20V2.1.4/schema3.SchDoc * - https://github.com/Ultimaker/Ultimaker2/blob/master/1546%20ultimainboard%20V2.1.4/schema4.SchDoc * - https://github.com/Ultimaker/Ultimaker2/blob/master/1546%20ultimainboard%20V2.1.4/schema5.SchDoc * Schematics (Original+): * Schematic (Original+): https://github.com/Ultimaker/Ultimaker-Original-Plus/blob/master/1091_Main_board_v2.1.1_(x1)/Ultimainboard%20rev.%202.1.1%20altium.zip * ATmega2560 */ /** * Rev B 2 JAN 2017 * * Added pin definitions for: * M3, M4 & M5 spindle control commands * case light */ #define REQUIRE_MEGA2560 #include "env_validate.h" #define BOARD_INFO_NAME "Ultimaker 2.x" #define DEFAULT_MACHINE_NAME "Ultimaker" #define DEFAULT_SOURCE_CODE_URL "github.com/Ultimaker/Marlin" // // Limit Switches // #define X_STOP_PIN 22 #define Y_STOP_PIN 26 #define Z_STOP_PIN 29 // // Steppers // #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 32 #define Y_DIR_PIN 33 #define Y_ENABLE_PIN 31 #define Z_STEP_PIN 35 #define Z_DIR_PIN 36 #define Z_ENABLE_PIN 34 #define E0_STEP_PIN 42 #define E0_DIR_PIN 43 #define E0_ENABLE_PIN 37 #define E1_STEP_PIN 49 #define E1_DIR_PIN 47 #define E1_ENABLE_PIN 48 #define MOTOR_CURRENT_PWM_XY_PIN 44 #define MOTOR_CURRENT_PWM_Z_PIN 45 #define MOTOR_CURRENT_PWM_E_PIN 46 // Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range #ifndef MOTOR_CURRENT_PWM_RANGE #define MOTOR_CURRENT_PWM_RANGE 2000 #endif #define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250} // // Temperature Sensors // #define TEMP_0_PIN 8 // Analog Input #define TEMP_1_PIN 9 // Analog Input #define TEMP_BED_PIN 10 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 2 #define HEATER_1_PIN 3 #define HEATER_BED_PIN 4 #ifndef FAN0_PIN #define FAN0_PIN 7 #endif #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 77 #endif // // Misc. Functions // #define SDSS 53 #define SD_DETECT_PIN 39 #define LED_PIN 8 //#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered //#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider. // // LCD / Controller // #define BEEPER_PIN 18 #define LCD_PINS_RS 20 #define LCD_PINS_EN 15 #define LCD_PINS_D4 14 #define LCD_PINS_D5 21 #define LCD_PINS_D6 5 #define LCD_PINS_D7 6 // Buttons are directly attached #define BTN_EN1 40 #define BTN_EN2 41 #define BTN_ENC 19 // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER // use the LED_PIN for spindle speed control or case light #undef LED_PIN #define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 17 // Pullup! #define SPINDLE_DIR_PIN 16 #else #undef LED_PIN #define CASE_LIGHT_PIN 8 #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
C
agpl-3.0
5,237
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Ultimaker pin assignments * ATmega2560, ATmega1280 */ /** * Rev B 2 JAN 2017 * * Added pin definitions for: * M3, M4 & M5 spindle control commands * case light */ #include "env_validate.h" #define BOARD_INFO_NAME "Ultimaker" #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME #define DEFAULT_SOURCE_CODE_URL "github.com/Ultimaker/Marlin" // // Servos // #define SERVO0_PIN 11 // // Limit Switches // #define X_MIN_PIN 22 #define X_MAX_PIN 24 #define Y_MIN_PIN 26 #define Y_MAX_PIN 28 #define Z_MIN_PIN 30 #define Z_MAX_PIN 32 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 31 #define Y_DIR_PIN 33 #define Y_ENABLE_PIN 29 #define Z_STEP_PIN 37 #define Z_DIR_PIN 39 #define Z_ENABLE_PIN 35 #define E0_STEP_PIN 43 #define E0_DIR_PIN 45 #define E0_ENABLE_PIN 41 #define E1_STEP_PIN 49 #define E1_DIR_PIN 47 #define E1_ENABLE_PIN 48 // // Temperature Sensors // #define TEMP_0_PIN 8 // Analog Input #define TEMP_1_PIN 9 // Analog Input #define TEMP_BED_PIN 10 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 2 #define HEATER_1_PIN 3 #define HEATER_BED_PIN 4 #ifndef FAN0_PIN #define FAN0_PIN 7 #endif // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #define PS_ON_PIN 12 #define SUICIDE_PIN 54 // PIN that has to be turned on right after start, to keep power flowing. #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN 8 #endif // // LCD / Controller // #if HAS_WIRED_LCD #define BEEPER_PIN 18 #if IS_NEWPANEL #define LCD_PINS_RS 20 #define LCD_PINS_EN 17 #define LCD_PINS_D4 16 #define LCD_PINS_D5 21 #define LCD_PINS_D6 5 #define LCD_PINS_D7 6 // Buttons directly attached #define BTN_EN1 40 #define BTN_EN2 42 #define BTN_ENC 19 #define SD_DETECT_PIN 38 #else // !IS_NEWPANEL - Old style panel with shift register // Buttons attached to a shift register #define SHIFT_CLK_PIN 38 #define SHIFT_LD_PIN 42 #define SHIFT_OUT_PIN 40 #define SHIFT_EN_PIN 17 #define LCD_PINS_RS 16 #define LCD_PINS_EN 5 #define LCD_PINS_D4 6 #define LCD_PINS_D5 21 #define LCD_PINS_D6 20 #define LCD_PINS_D7 19 #define SD_DETECT_PIN -1 #endif // !IS_NEWPANEL #endif // HAS_WIRED_LCD // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 10 // Pullup! #define SPINDLE_DIR_PIN 11 // use the EXP3 PWM header #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ULTIMAKER.h
C
agpl-3.0
4,969
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Ultimaker pin assignments (Old electronics) * ATmega2560, ATmega1280 */ /** * Rev B 3 JAN 2017 * * Details on pin definitions for M3, M4 & M5 spindle control commands and for * the CASE_LIGHT_PIN are at the end of this file. * * This started out as an attempt to add pin definitions for M3, M4 & M5 spindle * control commands but quickly turned into a head scratcher as the sources for * the revisions provided inconsistent information. * * As best I can determine: * 1.5.3 boards should use the pins_ULTIMAKER.h file which means the BOARD_INFO_NAME * define in this file should say 1.5.3 rather than 1.5.4 * This file is meant for 1.1 - 1.3 boards. * The endstops for the 1.0 boards use different definitions than on the 1.1 - 1.3 * boards. * * I've added sections that have the 1.0 and 1.5.3 + endstop definitions so you can * easily switch if needed. I've also copied over the 1.5.3 + LCD definitions. * * To be 100% sure of the board you have: * 1. In Configuration_adv.h enable "PINS_DEBUGGING" * 2. Compile & uploade * 3. Enter the command "M43 W1 I1". This command will report that pin nmumber and * name of any pin that changes state. * 4. Using a 1k (approximately) resistor pull the endstops and some of the LCD pins * to ground and see what is reported. * 5. If the reported pin doesn't match the file then try a different board revision * and repeat steps 2 - 5 */ #define BOARD_REV_1_1_TO_1_3 //#define BOARD_REV_1_0 //#define BOARD_REV_1_5 #include "env_validate.h" #ifdef BOARD_REV_1_1_TO_1_3 #define BOARD_INFO_NAME "Ultimaker 1.1-1.3" #elif defined(BOARD_REV_1_0) #define BOARD_INFO_NAME "Ultimaker 1.0" #elif defined(BOARD_REV_1_5) #define BOARD_INFO_NAME "Ultimaker 1.5" #else #define BOARD_INFO_NAME "Ultimaker 1.5.4+" #endif #define DEFAULT_MACHINE_NAME "Ultimaker" #define DEFAULT_SOURCE_CODE_URL "github.com/Ultimaker/Marlin" // // Limit Switches // #if ENABLED(BOARD_REV_1_1_TO_1_3) #define X_MIN_PIN 15 // SW1 #define X_MAX_PIN 14 // SW2 #define Y_MIN_PIN 17 // SW3 #define Y_MAX_PIN 16 // SW4 #define Z_MIN_PIN 19 // SW5 #define Z_MAX_PIN 18 // SW6 #endif #if ENABLED(BOARD_REV_1_0) #if HAS_CUTTER #define X_STOP_PIN 13 // SW1 (didn't change) - also has a useable hardware PWM #define Y_STOP_PIN 12 // SW2 #define Z_STOP_PIN 11 // SW3 #else #define X_MIN_PIN 13 // SW1 #define X_MAX_PIN 12 // SW2 #define Y_MIN_PIN 11 // SW3 #define Y_MAX_PIN 10 // SW4 #define Z_MIN_PIN 9 // SW5 #define Z_MAX_PIN 8 // SW6 #endif #endif #if ENABLED(BOARD_REV_1_5) #define X_MIN_PIN 22 #define X_MAX_PIN 24 #define Y_MIN_PIN 26 #define Y_MAX_PIN 28 #define Z_MIN_PIN 30 #define Z_MAX_PIN 32 #endif // // Z Probe (when not Z_MIN_PIN) // #if !defined(Z_MIN_PROBE_PIN) && !ALL(HAS_CUTTER, BOARD_REV_1_0) #define Z_MIN_PROBE_PIN Z_MAX_PIN #endif // // Steppers // #define X_STEP_PIN 25 #define X_DIR_PIN 23 #define X_ENABLE_PIN 27 #define Y_STEP_PIN 31 #define Y_DIR_PIN 33 #define Y_ENABLE_PIN 29 #define Z_STEP_PIN 37 #define Z_DIR_PIN 39 #define Z_ENABLE_PIN 35 #if ALL(HAS_CUTTER, BOARD_REV_1_1_TO_1_3) && EXTRUDERS == 1 // Move E0 to the spare and get Spindle/Laser signals from E0 #define E0_STEP_PIN 49 #define E0_DIR_PIN 47 #define E0_ENABLE_PIN 48 #else #define E0_STEP_PIN 43 #define E0_DIR_PIN 45 #define E0_ENABLE_PIN 41 #define E1_STEP_PIN 49 #define E1_DIR_PIN 47 #define E1_ENABLE_PIN 48 #endif // // Temperature Sensors // #define TEMP_0_PIN 8 // Analog Input #define TEMP_1_PIN 1 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 2 //#define HEATER_1_PIN 3 // used for case light Rev A said "1" #define HEATER_BED_PIN 4 // // LCD / Controller // #if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3) #define LCD_PINS_RS 24 #define LCD_PINS_EN 22 #define LCD_PINS_D4 36 #define LCD_PINS_D5 34 #define LCD_PINS_D6 32 #define LCD_PINS_D7 30 #elif ALL(BOARD_REV_1_5, HAS_WIRED_LCD) #define BEEPER_PIN 18 #if IS_NEWPANEL #define LCD_PINS_RS 20 #define LCD_PINS_EN 17 #define LCD_PINS_D4 16 #define LCD_PINS_D5 21 #define LCD_PINS_D6 5 #define LCD_PINS_D7 6 // Buttons directly attached #define BTN_EN1 40 #define BTN_EN2 42 #define BTN_ENC 19 #define SD_DETECT_PIN 38 #else // !IS_NEWPANEL - Old style panel with shift register // Buttons attached to a shift register #define SHIFT_CLK_PIN 38 #define SHIFT_LD_PIN 42 #define SHIFT_OUT_PIN 40 #define SHIFT_EN_PIN 17 #define LCD_PINS_RS 16 #define LCD_PINS_EN 5 #define LCD_PINS_D4 6 #define LCD_PINS_D5 21 #define LCD_PINS_D6 20 #define LCD_PINS_D7 19 #endif // !IS_NEWPANEL #endif // // case light - see spindle section for more info on available hardware PWMs // #if !PIN_EXISTS(CASE_LIGHT) && ENABLED(BOARD_REV_1_5) #define CASE_LIGHT_PIN 7 // use PWM - MUST BE HARDWARE PWM #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #if ANY(BOARD_REV_1_0, BOARD_REV_1_5) // Use the last three SW positions #define SPINDLE_LASER_PWM_PIN 9 // 1.0: SW5 1.5: EXP3-7 ( "9") .. MUST BE HARDWARE PWM #define SPINDLE_LASER_ENA_PIN 8 // 1.0: SW6 1.5: EXP3-8 ( "8") .. Pin should have a pullup! #define SPINDLE_DIR_PIN 10 // 1.0: SW4 1.5: EXP3-6 ("10") #elif ENABLED(BOARD_REV_1_1_TO_1_3) /** * Only four hardware PWMs physically connected to anything on these boards: * * HEATER_0_PIN 2 silkscreen varies - usually "PWM 1" or "HEATER1" * HEATER_1_PIN 3 silkscreen varies - usually "PWM 2" or "HEATER2" * HEATER_BED_PIN 4 silkscreen varies - usually "PWM 3" or "HEATED BED" * E0_DIR_PIN 45 * * If one of the heaters is used then special precautions will usually be needed. * They have an LED and resistor pullup to +24V which could damage 3.3V-5V ICs. */ #if EXTRUDERS == 1 #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 41 // Pullup! #define SPINDLE_DIR_PIN 43 #elif TEMP_SENSOR_BED == 0 // Can't use E0 so see if HEATER_BED_PIN is available #undef HEATER_BED_PIN #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM - Special precautions usually needed. #define SPINDLE_LASER_ENA_PIN 40 // Pullup! (Probably pin 6 on the 10-pin #define SPINDLE_DIR_PIN 38 // Probably pin 4 on 10 pin connector closest to the E0 socket // connector closest to the E0 socket) #endif #endif #endif /** * Where to get the spindle signals on the E0 socket * * spindle signal socket name socket name * ------- * SPINDLE_LASER_ENA_PIN /ENABLE *| |O VMOT * MS1 O| |O GND * MS2 O| |O 2B * MS3 O| |O 2A * /RESET O| |O 1A * /SLEEP O| |O 1B * SPINDLE_DIR_PIN STEP O| |O VDD * SPINDLE_LASER_PWM_PIN DIR O| |O GND * ------- * * - pin closest to MS1, MS2 & MS3 jumpers on the board * * Note: Socket names vary from vendor to vendor. */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
C
agpl-3.0
10,204
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * VORON Design v2 pin assignments * See https://github.com/mzbotreprap/VORON/blob/master/Firmware/Marlin/pins_RAMPS_VORON.h * ATmega2560 */ #define BOARD_INFO_NAME "VORON Design v2" // // Heaters / Fans // #define MOSFET_C_PIN 11 #define FAN0_PIN 5 // Using the pin for the controller fan since controller fan is always on. #define CONTROLLER_FAN_PIN 8 // // Auto fans // #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan #endif #ifndef E1_AUTO_FAN_PIN #define E1_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan (same pin for both extruders since it's the same fan) #endif #include "pins_RAMPS.h" // // LCD / Controller // #undef BEEPER_PIN
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_VORON.h
C
agpl-3.0
1,675
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * ZONESTAR ZRIB V2.0 & V3.0 pin assignments * V2 and V3 Boards only differ in USB controller, nothing affecting the pins. * Schematic (2.0): https://github.com/ZONESTAR3D/Control-Board/blob/main/8bit/ZRIB/ZRIB_V2/ZRIB_V2_Schematic.pdf * Schematic (3.0): https://github.com/ZONESTAR3D/Control-Board/blob/main/8bit/ZRIB/ZRIB_V3/ZRIB_V3_Schematic.pdf * ATmega2560, ATmega1280 */ #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 11 // Analog Input #endif // // Auto fans // #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 6 // Fan #endif #ifndef E1_AUTO_FAN_PIN #define E1_AUTO_FAN_PIN 6 #endif #ifndef E2_AUTO_FAN_PIN #define E2_AUTO_FAN_PIN 6 #endif #ifndef E3_AUTO_FAN_PIN #define E3_AUTO_FAN_PIN 6 #endif #if ENABLED(ZONESTAR_LCD) #define LCD_PINS_RS 16 #define LCD_PINS_EN 17 #define LCD_PINS_D4 23 #define LCD_PINS_D5 25 #define LCD_PINS_D6 27 #define LCD_PINS_D7 29 #define ADC_KEYPAD_PIN 10 // Analog Input #define BEEPER_PIN 37 #define LCD_PINS_DEFINED #endif #include "pins_MKS_GEN_13.h" // ... RAMPS
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ZRIB_V20.h
C
agpl-3.0
2,219
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * ZONESTAR ZRIB V5.2 Based on MKS BASE v1.4 with A4982 stepper drivers and digital micro-stepping * Schematic: https://github.com/ZONESTAR3D/Control-Board/blob/main/8bit/ZRIB/ZRIB_V5/ZRIB_V52_Schematic.pdf * ATmega2560, ATmega1280 */ #if HOTENDS > 2 || E_STEPPERS > 2 #error "ZRIB V5.2 supports up to 2 hotends / E steppers." #endif #define BOARD_INFO_NAME "ZRIB V5.2" #define MKS_BASE_VERSION 14 // // Heaters / Fans // #define FAN1_PIN 6 // // Extra Extruder / Stepper for V5.2 // #define E2_STEP_PIN 4 #define E2_DIR_PIN 5 #define E2_ENABLE_PIN 22 // // Servos / XS3 Connector // #ifndef SERVO0_PIN #define SERVO0_PIN 65 // PWM #endif #ifndef SERVO1_PIN #define SERVO1_PIN 66 // PWM #endif #include "pins_MKS_BASE_common.h" // ... RAMPS /** * 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 | * ========== * * Servos / XS3 Connector * ================= * | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11 * |----|-----|----| * | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12 * ================= * * 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 | * ============ */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ZRIB_V52.h
C
agpl-3.0
4,980
/** * 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 /** * ZONESTAR ZRIB V5.3 Based on MKS BASE v1.4 with A4982 stepper drivers and digital micro-stepping * ATmega2560, ATmega1280 */ #include "env_validate.h" #if HOTENDS > 2 #error "ZRIB V5.3 supports up to 2 hotends." #elif E_STEPPERS > 3 #error "ZRIB V5.3 supports up to 3 E steppers." #endif #define BOARD_INFO_NAME "ZRIB V5.3" // // PIN 12 Connector // #define PIN_12_PIN 12 // // XS1 Connector // #define XS1_01_PIN 42 #define XS1_03_PIN 43 #define XS1_05_PIN 44 #define XS1_07_PIN 45 #define XS1_08_PIN 47 // // XS6 Connector // #define XS6_01_PIN 20 #define XS6_03_PIN 52 #define XS6_05_PIN 51 #define XS6_07_PIN 50 #define XS6_08_PIN 21 // // Servos / XS3 Connector // #ifndef SERVO0_PIN #define SERVO0_PIN 65 // PWM #endif #ifndef SERVO1_PIN #define SERVO1_PIN 66 // PWM #endif // // Limit Switches // #ifndef X_STOP_PIN #ifndef X_MIN_PIN #define X_MIN_PIN 3 #endif #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif #endif #ifndef Y_STOP_PIN #ifndef Y_MIN_PIN #define Y_MIN_PIN 14 #endif #ifndef Y_MAX_PIN #define Y_MAX_PIN 15 #endif #endif #ifndef Z_STOP_PIN #ifndef Z_MIN_PIN #define Z_MIN_PIN 18 #endif #ifndef Z_MAX_PIN #define Z_MAX_PIN 19 #endif #endif // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 19 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #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 #if NUM_Z_STEPPERS == 2 #define Z2_STEP_PIN 26 // E0 connector #define Z2_DIR_PIN 28 #define Z2_ENABLE_PIN 24 #define E0_STEP_PIN 36 // E1 connector #define E0_DIR_PIN 34 #define E0_ENABLE_PIN 30 #define E1_STEP_PIN 4 // E2 connector #define E1_DIR_PIN 5 #define E1_ENABLE_PIN 22 #else #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #define E2_STEP_PIN 4 #define E2_DIR_PIN 5 #define E2_ENABLE_PIN 22 #endif // // Temperature Sensors // #ifndef TEMP_0_PIN #define TEMP_0_PIN 13 // Analog Input #endif #ifndef TEMP_1_PIN #define TEMP_1_PIN 15 // Analog Input #endif #ifndef TEMP_BED_PIN #define TEMP_BED_PIN 14 // Analog Input #endif // // Heaters / Fans Connectors // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define FAN0_PIN 9 #define HEATER_BED_PIN 8 #define FAN1_PIN 6 // // Misc. Functions // #ifndef SDSS #define SDSS 53 #endif #define LED_PIN 13 #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN XS1_01_PIN #endif #ifndef PS_ON_PIN #define PS_ON_PIN XS1_03_PIN #endif #if HAS_TMC_UART /** * TMC2209 stepper drivers * * Hardware serial communication ports. * If undefined software serial is used according to the pins below * * Serial2 -- AUX-4 Pin 18 (D16 TX2) and AUX-4 Pin 17 (D17 RX2) * Serial1 -- Pins D18 and D19 are used for Z-MIN and Z-MAX */ //#define X_HARDWARE_SERIAL Serial1 //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1 #ifndef X_SERIAL_TX_PIN #define X_SERIAL_TX_PIN XS1_08_PIN #endif #ifndef X_SERIAL_RX_PIN #define X_SERIAL_RX_PIN PIN_12_PIN #endif #ifndef X2_SERIAL_TX_PIN #define X2_SERIAL_TX_PIN -1 #endif #ifndef X2_SERIAL_RX_PIN #define X2_SERIAL_RX_PIN -1 #endif #ifndef Y_SERIAL_TX_PIN #define Y_SERIAL_TX_PIN XS1_08_PIN #endif #ifndef Y_SERIAL_RX_PIN #define Y_SERIAL_RX_PIN PIN_12_PIN #endif #ifndef Y2_SERIAL_TX_PIN #define Y2_SERIAL_TX_PIN -1 #endif #ifndef Y2_SERIAL_RX_PIN #define Y2_SERIAL_RX_PIN -1 #endif #ifndef Z_SERIAL_TX_PIN #define Z_SERIAL_TX_PIN XS1_08_PIN #endif #ifndef Z_SERIAL_RX_PIN #define Z_SERIAL_RX_PIN PIN_12_PIN #endif #ifndef Z2_SERIAL_TX_PIN #define Z2_SERIAL_TX_PIN XS1_08_PIN #endif #ifndef Z2_SERIAL_RX_PIN #define Z2_SERIAL_RX_PIN PIN_12_PIN #endif #ifndef E0_SERIAL_TX_PIN #define E0_SERIAL_TX_PIN -1 #endif #ifndef E0_SERIAL_RX_PIN #define E0_SERIAL_RX_PIN -1 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN -1 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN -1 #endif #ifndef E2_SERIAL_TX_PIN #define E2_SERIAL_TX_PIN -1 #endif #ifndef E2_SERIAL_RX_PIN #define E2_SERIAL_RX_PIN -1 #endif #ifndef E3_SERIAL_TX_PIN #define E3_SERIAL_TX_PIN -1 #endif #ifndef E3_SERIAL_RX_PIN #define E3_SERIAL_RX_PIN -1 #endif #ifndef E4_SERIAL_TX_PIN #define E4_SERIAL_TX_PIN -1 #endif #ifndef E4_SERIAL_RX_PIN #define E4_SERIAL_RX_PIN -1 #endif #ifndef E5_SERIAL_TX_PIN #define E5_SERIAL_TX_PIN -1 #endif #ifndef E5_SERIAL_RX_PIN #define E5_SERIAL_RX_PIN -1 #endif #ifndef E6_SERIAL_TX_PIN #define E6_SERIAL_TX_PIN -1 #endif #ifndef E6_SERIAL_RX_PIN #define E6_SERIAL_RX_PIN -1 #endif #ifndef E7_SERIAL_TX_PIN #define E7_SERIAL_TX_PIN -1 #endif #ifndef E7_SERIAL_RX_PIN #define E7_SERIAL_RX_PIN -1 #endif #endif /** * LCD adapter. NOTE: These come in two variants. The socket keys can be * on either side, and may be backwards on some displays. * ------ ------ * D37 | 1 2 | D35 (MISO) D50 | 1 2 | D52 (SCK) * D17 | 3 4 | D16 D31 | 3 4 | D53 * D23 6 5 D25 D33 6 5 D51 (MOSI) * D27 | 7 8 | D29 D49 | 7 8 | D41 * GND | 9 10 | 5V GND | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #ifndef EXP1_08_PIN #define EXP1_01_PIN 37 #define EXP1_02_PIN 35 #define EXP1_03_PIN 17 #define EXP1_04_PIN 16 #define EXP1_05_PIN 23 #define EXP1_06_PIN 25 #define EXP1_07_PIN 27 #define EXP1_08_PIN 29 #define EXP2_01_PIN XS6_07_PIN #define EXP2_02_PIN XS6_03_PIN #define EXP2_03_PIN 31 #define EXP2_04_PIN 53 #define EXP2_05_PIN 33 #define EXP2_06_PIN XS6_05_PIN #define EXP2_07_PIN 49 #define EXP2_08_PIN 41 #endif // // LCD / Controller // #if ENABLED(ZONESTAR_12864LCD) #define LCDSCREEN_NAME "ZONESTAR LCD12864" #define LCD_SDSS 16 #define LCD_PINS_RS 16 // ST7920 CS (LCD-4) #define LCD_PINS_EN 23 // ST7920 DAT LCD-R/W (LCD-5) #define LCD_PINS_D4 17 // ST7920 CLK LCD-ENA (LCD-6) #define BTN_EN2 25 #define BTN_EN1 27 #define BTN_ENC 29 #define BEEPER_PIN 37 #define KILL_PIN 35 #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define LCDSCREEN_NAME "Reprap LCD12864" // Use EXP1 & EXP2 connector #define LCD_PINS_RS 16 // ST7920 CS #define LCD_PINS_EN 17 // ST7920 DAT #define LCD_PINS_D4 23 // ST7920 CLK LCD-R/W #define BTN_EN1 31 #define BTN_EN2 33 #define BTN_ENC 35 #define BEEPER_PIN 37 #define KILL_PIN 41 #endif //================================================================================ // OLED 128x64 //================================================================================ #if ANY(ZONESTAR_12864OLED, ZONESTAR_12864OLED_SSD1306) #define LCDSCREEN_NAME "ZONESTAR 12864OLED" #define LCD_SDSS 16 #define LCD_PINS_RS 23 // RESET Pull low for 1s to init #define LCD_PINS_DC 17 #define DOGLCD_CS 16 // CS #define BTN_EN2 25 #define BTN_EN1 27 #define BTN_ENC 29 #define BEEPER_PIN -1 #define KILL_PIN -1 #if ANY(OLED_HW_IIC, OLED_HW_SPI) #error "Oops! You must choose SW SPI for ZRIB V53 board and connect the OLED screen to EXP1 connector." #else // SW_SPI #define DOGLCD_A0 LCD_PINS_DC #define DOGLCD_MOSI 35 // SDA #define DOGLCD_SCK 37 // SCK #endif #endif // OLED 128x64 //================================================================================ // LCD 2004 KEYPAD //================================================================================ #if ENABLED(ZONESTAR_LCD) #define LCDSCREEN_NAME "LCD2004 ADCKEY" #define LCD_PINS_RS EXP1_04_PIN #define LCD_PINS_EN EXP1_03_PIN #define LCD_PINS_D4 EXP1_05_PIN #define LCD_PINS_D5 EXP1_06_PIN #define LCD_PINS_D6 EXP1_07_PIN #define LCD_PINS_D7 EXP1_08_PIN #define ADC_KEYPAD_PIN 10 // A10 for ADCKEY #define BEEPER_PIN EXP1_01_PIN #endif /** * ZRIB V5.3 Main Board * * Available connectors on ZRIB V5.3 * * ======= * | 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 | * ========== * Servos / XS3 Connector * ================= * | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11 * |----|-----|----| * | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12 * ================= * ICSP * ================= * | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI * |----|----|-----| * | 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO * ================= (52) PB1 ** Pin20 ** SPI_SCK * XS6 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 * XS1 Connector * ====================== * | 5V | GND | NC | 47 | (47) PL2 ** Pin37 ** D47 * |----|-----|----|----| * | 42 | 43 | 44 | 45 | (45) PL4 ** Pin39 ** D45 * ====================== (44) PL5 ** Pin40 ** D44 * (43) PL6 ** Pin41 ** D43 * (42) PL7 ** Pin42 ** D42 * 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 | * ============ * * PIN 12 * ====== * | 12 | (12) PB6 ** Pin25 ** D12 * ====== */
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_ZRIB_V53.h
C
agpl-3.0
16,080
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Z-Bolt X Series board – based on Arduino Mega2560 * ATmega2560 */ #define REQUIRE_MEGA2560 #include "env_validate.h" #if HOTENDS > 4 || E_STEPPERS > 4 #error "Z-Bolt X Series supports up to 4 hotends / E steppers." #endif #define BOARD_INFO_NAME "Z-Bolt X Series" // // Servos // #ifndef SERVO0_PIN #define SERVO0_PIN 11 #endif #ifndef SERVO3_PIN #define SERVO3_PIN 4 #endif // // Limit Switches // #define X_MIN_PIN 3 #ifndef X_MAX_PIN #define X_MAX_PIN 2 #endif #define Y_MIN_PIN 14 #define Y_MAX_PIN 15 #define Z_MIN_PIN 18 #define Z_MAX_PIN 19 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 54 #define X_DIR_PIN 55 #define X_ENABLE_PIN 38 #ifndef X_CS_PIN #define X_CS_PIN -1 #endif #define Y_STEP_PIN 60 #define Y_DIR_PIN 61 #define Y_ENABLE_PIN 56 #ifndef Y_CS_PIN #define Y_CS_PIN -1 #endif #define Z_STEP_PIN 46 #define Z_DIR_PIN 48 #define Z_ENABLE_PIN 62 #ifndef Z_CS_PIN #define Z_CS_PIN -1 #endif #define E0_STEP_PIN 26 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 24 #ifndef E0_CS_PIN #define E0_CS_PIN -1 #endif #define E1_STEP_PIN 36 #define E1_DIR_PIN 34 #define E1_ENABLE_PIN 30 #ifndef E1_CS_PIN #define E1_CS_PIN -1 #endif // Red #define E2_STEP_PIN 42 #define E2_DIR_PIN 40 #define E2_ENABLE_PIN 65 #ifndef E2_CS_PIN #define E2_CS_PIN -1 #endif // Black #define E3_STEP_PIN 44 #define E3_DIR_PIN 64 #define E3_ENABLE_PIN 66 #ifndef E3_CS_PIN #define E3_CS_PIN -1 #endif // // Temperature Sensors // #define TEMP_0_PIN 13 // Analog Input #define TEMP_1_PIN 15 // Analog Input #define TEMP_2_PIN 5 // Analog Input (BLACK) #define TEMP_3_PIN 9 // Analog Input (RED) #define TEMP_BED_PIN 14 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 10 #define HEATER_1_PIN 7 #define HEATER_2_PIN 6 #define HEATER_3_PIN 5 #define HEATER_BED_PIN 8 #define FAN0_PIN 9 // // Misc. Functions // #define SDSS 53 #define LED_PIN 13 #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 5 // Analog Input on AUX2 #endif // Оn the servos connector #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 4 #endif #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif #if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN) #if NUM_SERVOS <= 1 // Prefer the servo connector #define CASE_LIGHT_PIN 6 // Hardware PWM #elif HAS_FREE_AUX2_PINS #define CASE_LIGHT_PIN 44 // Hardware PWM #endif #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA) #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown! #define SPINDLE_DIR_PIN 5 #elif HAS_FREE_AUX2_PINS #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown! #define SPINDLE_DIR_PIN 65 #endif #endif // // TMC software SPI // #ifndef TMC_SPI_MOSI #define TMC_SPI_MOSI 66 #endif #ifndef TMC_SPI_MISO #define TMC_SPI_MISO 44 #endif #ifndef TMC_SPI_SCK #define TMC_SPI_SCK 64 #endif #if HAS_TMC_UART /** * TMC220x stepper drivers * * Hardware serial communication ports. * If undefined software serial is used according to the pins below */ //#define X_HARDWARE_SERIAL Serial1 //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1 #ifndef X_SERIAL_TX_PIN #define X_SERIAL_TX_PIN 40 #endif #ifndef X_SERIAL_RX_PIN #define X_SERIAL_RX_PIN 63 #endif #ifndef X2_SERIAL_TX_PIN #define X2_SERIAL_TX_PIN -1 #endif #ifndef X2_SERIAL_RX_PIN #define X2_SERIAL_RX_PIN -1 #endif #ifndef Y_SERIAL_TX_PIN #define Y_SERIAL_TX_PIN 59 #endif #ifndef Y_SERIAL_RX_PIN #define Y_SERIAL_RX_PIN 64 #endif #ifndef Y2_SERIAL_TX_PIN #define Y2_SERIAL_TX_PIN -1 #endif #ifndef Y2_SERIAL_RX_PIN #define Y2_SERIAL_RX_PIN -1 #endif #ifndef Z_SERIAL_TX_PIN #define Z_SERIAL_TX_PIN 42 #endif #ifndef Z_SERIAL_RX_PIN #define Z_SERIAL_RX_PIN 65 #endif #ifndef Z2_SERIAL_TX_PIN #define Z2_SERIAL_TX_PIN -1 #endif #ifndef Z2_SERIAL_RX_PIN #define Z2_SERIAL_RX_PIN -1 #endif #ifndef E0_SERIAL_TX_PIN #define E0_SERIAL_TX_PIN 44 #endif #ifndef E0_SERIAL_RX_PIN #define E0_SERIAL_RX_PIN 66 #endif #ifndef E1_SERIAL_TX_PIN #define E1_SERIAL_TX_PIN -1 #endif #ifndef E1_SERIAL_RX_PIN #define E1_SERIAL_RX_PIN -1 #endif #ifndef E2_SERIAL_TX_PIN #define E2_SERIAL_TX_PIN -1 #endif #ifndef E2_SERIAL_RX_PIN #define E2_SERIAL_RX_PIN -1 #endif #ifndef E3_SERIAL_TX_PIN #define E3_SERIAL_TX_PIN -1 #endif #ifndef E3_SERIAL_RX_PIN #define E3_SERIAL_RX_PIN -1 #endif #ifndef E4_SERIAL_TX_PIN #define E4_SERIAL_TX_PIN -1 #endif #ifndef E4_SERIAL_RX_PIN #define E4_SERIAL_RX_PIN -1 #endif #ifndef E5_SERIAL_TX_PIN #define E5_SERIAL_TX_PIN -1 #endif #ifndef E5_SERIAL_RX_PIN #define E5_SERIAL_RX_PIN -1 #endif #ifndef E6_SERIAL_TX_PIN #define E6_SERIAL_TX_PIN -1 #endif #ifndef E6_SERIAL_RX_PIN #define E6_SERIAL_RX_PIN -1 #endif #ifndef E7_SERIAL_TX_PIN #define E7_SERIAL_TX_PIN -1 #endif #ifndef E7_SERIAL_RX_PIN #define E7_SERIAL_RX_PIN -1 #endif #endif
2301_81045437/Marlin
Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h
C
agpl-3.0
8,665
/** * 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/>. * */ #ifndef ENV_VALIDATE_H #define ENV_VALIDATE_H #if ALL(ALLOW_MEGA1280, ALLOW_MEGA2560) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__, __AVR_ATmega2560__) #error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'" #elif ENABLED(ALLOW_MEGA2560) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__) #error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'" #elif ENABLED(ALLOW_MEGA1280) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__) #error "Oops! Select 'Arduino Due' in 'Tools > Board.'" #endif #undef ALLOW_MEGA1280 #undef ALLOW_MEGA2560 #endif
2301_81045437/Marlin
Marlin/src/pins/sam/env_validate.h
C
agpl-3.0
1,420
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino DUE Shield Kit (ADSK) pin assignments */ #define BOARD_INFO_NAME "ADSK" #define ALLOW_MEGA1280 #define ALLOW_MEGA2560 #include "env_validate.h" /* CNC shield modifications: FROM THE BOTTOM CUT THE 5V PIN THAT GOES TO ARDUINO!!! On the top put jumper between 5V and 3V3 pins, jumper between D12 and A.STEP, jumper between D13 and A.DIR */ /* CNC shield 3D printer connections: X,Y,Z steppers as normal A stepper for E0 extruder (X-)&(GND) - X limit (Y-)&(GND) - Y limit (Z-)&(GND) - Z limit (Abort)&(GND) - Extruder thermistor (also require pullup resistor 4.7K between "Abort" and Vcc (now "5V" on the board but actual 3.3V because of jumper)) (Hold)&(GND) - Bed thermistor (also require pullup resistor 4.7K between "Hold" and Vcc (now "5V" on the board but actual 3.3V because of jumper)) (CoolEn) - 3.3v signal to control extruder heater MOSFET (Resume) - 3.3v signal to control heatbed MOSFET (SDA) - 3.3v signal to control extruder fan (SCL) - 3.3v signal to control extruder cooling fan */ /* CNC Shield pinout "Name on the board": DUE pin "Abort": Analog pin 0 or Digital pin 54 "Hold": Analog pin 1 or Digital pin 55 "Resume": Analog pin 2 or Digital pin 56 "CoolEn": Analog pin 3 or Digital pin 57 "SDA": Analog pin 4 or Digital pin 58 "SCL": Analog pin 5 or Digital pin 59 "E-STOP": Reset pin "RX": Digital pin 0 "TX": Digital pin 1 "X.STEP": Digital pin 2 "Y.STEP": Digital pin 3 "Z.STEP": Digital pin 4 "X.DIR": Digital pin 5 "Y.DIR": Digital pin 6 "Z.DIR": Digital pin 7 "EN": Digital pin 8 "X+","X-": Digital pin 9 "Y+","Y-": Digital pin 10 "Z+","Z-": Digital pin 11 "SpinEn": Digital pin 12 -> will be connected to A.STEP with jumper "SpinDir": Digital pin 13 -> will be connected to A.DIR with jumper */ // // Servos // #define SERVO0_PIN 61 // Analog pin 7, Digital pin 61 // // Limit Switches // #define X_STOP_PIN 9 #define Y_STOP_PIN 10 #define Z_STOP_PIN 11 #define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62 // // Steppers // #define X_STEP_PIN 2 #define X_DIR_PIN 5 #define X_ENABLE_PIN 8 #define Y_STEP_PIN 3 #define Y_DIR_PIN 6 #define Y_ENABLE_PIN 8 #define Z_STEP_PIN 4 #define Z_DIR_PIN 7 #define Z_ENABLE_PIN 8 #define E0_STEP_PIN 12 #define E0_DIR_PIN 13 #define E0_ENABLE_PIN 8 // // Heaters / Fans // #define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55 #define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57 #define FAN0_PIN 54 // "Abort": Analog pin 0, Digital pin 54 #undef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56 // // Temperature Sensors // #define TEMP_0_PIN 4 // "SDA": Analog pin 4, Digital pin 58 #define TEMP_BED_PIN 5 // "SCL": Analog pin 5, Digital pin 59 // // Misc. Functions // #define SDSS 52 #if ENABLED(ZONESTAR_LCD) /** * The 2004 LCD should be powered with 5V. * The next LCD pins RS,D4,D5,D6,D7 have internal pull-ups to 5V and as result the 5V will be on these pins. * Luckily these internal pull-ups have really high resistance and adding 33K pull-down resistors will create * simple voltage divider that will bring the voltage down just slightly below 3.3V. * * This LCD also has buttons that connected to the same ADC pin with different voltage divider combinations. * On the LCD panel there is internal pull-up resistor of the 4.7K connected to 5V. * Connecting another 4.7K pull-down resistor between ADC pin and the GND * will result in scaled values for voltage dividers and will bring them down to be always below 3.3V. * * For 2004 LCD to work with 3.3V board like Arduino DUE the next required: * Pull-down resistors of 33K between each of LCD pins RS,D4,D5,D6,D7 and the GND. * Pull-down resistor of 4.7K between ADC_KEYPAD_PIN and the GND * * All these modifications will still work with 5V based boards but require proper scaled ADC values */ #ifdef __SAM3X8E__ #define AREF_VOLTS 3.3 #else #define AREF_VOLTS 5.0 #endif // // LCD / Controller // #define LCD_PINS_EN 14 #define LCD_PINS_RS 15 #define LCD_PINS_D4 16 #define LCD_PINS_D5 17 #define LCD_PINS_D6 18 #define LCD_PINS_D7 19 #define ADC_KEYPAD_PIN 6 //60 // Analog pin 6, Digital pin 60 /** * The below defines will scale all the values to work properly on both * 5V (Mega) and 3.3V (DUE) boards with all pull-up resistors added for 3.3V */ #define ADC_BUTTONS_VALUE_SCALE (5.0/AREF_VOLTS) // The LCD module pullup voltage is 5.0V but ADC reference voltage is 3.3V #define ADC_BUTTONS_R_PULLDOWN 4.7 // Moves voltage down to be below 3.3V instead of 5V // the resistors values will be scaled because of 4.7K pulldown parallel resistor #define _ADC_BUTTONS_R_SCALED(R) ((R) * (ADC_BUTTONS_R_PULLDOWN) / ((R) + ADC_BUTTONS_R_PULLDOWN)) // buttons pullup resistor #define ADC_BUTTONS_R_PULLUP 4.7 // the resistor on the 2004 LCD panel // buttons resistors with scaled values because of parallel pulldown resistor #define ADC_BUTTONS_LEFT_R_PULLDOWN _ADC_BUTTONS_R_SCALED(0.47) #define ADC_BUTTONS_RIGHT_R_PULLDOWN _ADC_BUTTONS_R_SCALED(4.7) #define ADC_BUTTONS_UP_R_PULLDOWN _ADC_BUTTONS_R_SCALED(1.0) #define ADC_BUTTONS_DOWN_R_PULLDOWN _ADC_BUTTONS_R_SCALED(10.0) #define ADC_BUTTONS_MIDDLE_R_PULLDOWN _ADC_BUTTONS_R_SCALED(2.2) #endif // ZONESTAR_LCD /** * RJ45 8 pins extruder connector * * 1 - GND (Please do not connect to the same GND as extruder heater to prevent ground offset voltage) * 2 - thermistor * 3 - SERVO PWM * 4 - extruder heater * 5 - FAN (print cooling) * 6 - FAN (extruder cooling) * 7 - Probe signal * 8 - 5V * * Standard ethernet pairs: 1&2, 3&6, 4&5, 7&8 * Use CAT7 cable to have all pairs shielded */
2301_81045437/Marlin
Marlin/src/pins/sam/pins_ADSK.h
C
agpl-3.0
7,608
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Alligator Board R2 * https://reprap.org/wiki/Alligator_Board */ #include "env_validate.h" #define BOARD_INFO_NAME "Alligator Board R2" // // Servos // #define SERVO0_PIN 36 #define SERVO1_PIN 40 #define SERVO2_PIN 41 #define SERVO3_PIN -1 // // Limit Switches // #define X_MIN_PIN 33 // PC1 #define X_MAX_PIN 34 // PC2 #define Y_MIN_PIN 35 // PC3 #define Y_MAX_PIN 37 // PC5 #define Z_MIN_PIN 38 // PC6 #define Z_MAX_PIN 39 // PC7 // // Steppers // #define X_STEP_PIN 96 // PB24 #define X_DIR_PIN 2 // PB25 #define X_ENABLE_PIN 24 // PA15, motor RESET pin #define Y_STEP_PIN 94 // PB22 #define Y_DIR_PIN 95 // PB23 #define Y_ENABLE_PIN 24 // PA15, motor RESET pin #define Z_STEP_PIN 98 // PC27 #define Z_DIR_PIN 3 // PC28 #define Z_ENABLE_PIN 24 // PA15, motor RESET pin #define E0_STEP_PIN 5 // PC25 #define E0_DIR_PIN 4 // PC26 #define E0_ENABLE_PIN 24 // PA15, motor RESET pin #define E1_STEP_PIN 28 // PD3 on piggy #define E1_DIR_PIN 27 // PD2 on piggy #define E1_ENABLE_PIN 24 // PA15, motor RESET pin #define E2_STEP_PIN 11 // PD7 on piggy #define E2_DIR_PIN 29 // PD6 on piggy #define E2_ENABLE_PIN 24 // PA15, motor RESET pin #define E3_STEP_PIN 30 // PD9 on piggy #define E3_DIR_PIN 12 // PD8 on piggy #define E3_ENABLE_PIN 24 // PA15, motor RESET pin // Microstepping pins - Mapping not from fastio.h (?) #define X_MS1_PIN 99 // PC10 #define Y_MS1_PIN 10 // PC29 #define Z_MS1_PIN 44 // PC19 #define E0_MS1_PIN 45 // PC18 #ifndef MICROSTEP16 #define MICROSTEP16 LOW,LOW,LOW #endif #ifndef MICROSTEP32 #define MICROSTEP32 HIGH,HIGH,LOW #endif //#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT // // Temperature Sensors // #define TEMP_0_PIN 1 // Analog Input (PA24) #define TEMP_1_PIN 2 // Analog Input (PA23 on piggy) #define TEMP_2_PIN 3 // Analog Input (PA22 on piggy) #define TEMP_3_PIN 4 // Analog Input (PA6 on piggy) #define TEMP_BED_PIN 0 // Analog Input (PA16) // // Heaters / Fans // // Note that on the Due pin A0 on the board is channel 2 on the ARM chip #define HEATER_0_PIN 68 // PA1 #define HEATER_1_PIN 8 // PC22 on piggy #define HEATER_2_PIN 9 // PC21 on piggy #define HEATER_3_PIN 97 // PC20 on piggy #define HEATER_BED_PIN 69 // PA0 #ifndef FAN0_PIN #define FAN0_PIN 92 // PA5 #endif #define FAN1_PIN 31 // PA7 // // Misc. Functions // #define SDSS 77 // PA28 #define SD_DETECT_PIN 87 // PA29 #define LED_RED_PIN 40 // PC8 #define LED_GREEN_PIN 41 // PC9 #define EXP_VOLTAGE_LEVEL_PIN 65 #define SPI_CHAN_DAC 1 #define DAC0_SYNC_PIN 53 // PB14 #define DAC1_SYNC_PIN 6 // PC24 // 64K SPI EEPROM #define SPI_EEPROM #define SPI_CHAN_EEPROM1 2 #define SPI_EEPROM1_CS_PIN 25 // PD0 // 2K SPI EEPROM #define SPI_EEPROM2_CS_PIN 26 // PD1 // FLASH SPI // 32Mb #define SPI_FLASH_CS_PIN 23 // PA14 // // LCD / Controller // #if IS_RRD_FG_SC #define LCD_PINS_RS 18 #define LCD_PINS_EN 15 #define LCD_PINS_D4 19 #define BEEPER_PIN 64 #define UI_VOLTAGE_LEVEL 1 #endif #if IS_NEWPANEL #define BTN_EN1 14 #define BTN_EN2 16 #define BTN_ENC 17 #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_ALLIGATOR_R2.h
C
agpl-3.0
5,728
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * ARCHIM1 pin assignment * * The Archim 1.0 board requires Arduino Archim addons installed. * * - Add the following URL to Arduino IDE's Additional Board Manager URLs: * https://raw.githubusercontent.com/ultimachine/ArduinoAddons/master/package_ultimachine_index.json * * - In the Arduino IDE Board Manager search for Archim and install the package. * * - Change your target board to "Archim". * * Further information on the UltiMachine website... * https://github.com/ultimachine/Archim/wiki */ #if NOT_TARGET(__SAM3X8E__) #error "Oops! Select 'Archim' in 'Tools > Board.'" #endif #define BOARD_INFO_NAME "Archim 1.0" // // Timers // #define MF_TIMER_STEP 3 #define HAL_STEP_TIMER_ISR() void TC3_Handler() // // Items marked * have been altered from Archim v1.0 // // // Servos // #define SERVO0_PIN 20 // D20 PB12 (Header J20 20) #define SERVO1_PIN 21 // D21 PB13 (Header J20 19) // // Limit Switches // #define X_MIN_PIN 14 // PD4 MIN ES1 #define X_MAX_PIN 32 // PD10 MAX ES1 #define Y_MIN_PIN 29 // PD6 MIN ES2 #define Y_MAX_PIN 15 // PD5 MAX ES2 #define Z_MIN_PIN 31 // PA7 MIN ES3 #define Z_MAX_PIN 30 // PD9 MAX ES3 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15) #endif #ifndef FIL_RUNOUT2_PIN #define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16) #endif // // Steppers // #define X_STEP_PIN 40 // PC8 STEP1 * #define X_DIR_PIN 59 // PA4 DIR1 * #define X_ENABLE_PIN 41 // PC9 EN1 #define Y_STEP_PIN 49 // PC14 STEP2 * #define Y_DIR_PIN 47 // PC16 DIR2 * #define Y_ENABLE_PIN 48 // PC15 EN2 * #define Z_STEP_PIN 36 // PC4 STEP Z * #define Z_DIR_PIN 107 // PB10 DIR Z * #define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns * #define E0_STEP_PIN 78 // PB23 STEP3 * #define E0_DIR_PIN 22 // PB26 DIR3 * #define E0_ENABLE_PIN 97 // PB24 EN3 -Addons * #define E1_STEP_PIN 26 // PD1 STEP4 * #define E1_DIR_PIN 27 // PD2 DIR4 * #define E1_ENABLE_PIN 28 // PD3 EN4 * // Microstepping mode pins * #define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic #define X_MS2_PIN 38 // PC6 MOD1E1 #define X_MS3_PIN 37 // PC5 MOD2E1 #define Y_MS1_PIN 50 // PC13 MODE0E2 #define Y_MS2_PIN 51 // PC12 MODE1E2 #define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns #define Z_MS1_PIN 44 // PC19 MOD0E Z #define Z_MS2_PIN 45 // PC18 MOD1E Z #define Z_MS3_PIN 46 // PC17 MOD2E Z #define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns #define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns #define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns #define E1_MS1_PIN 25 // PD0 MOD0E4 #define E1_MS2_PIN 18 // PA11 MOD1E4 #define E1_MS3_PIN 19 // PA10 MOD2E4 // Motor current PWM pins * #define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2 #define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8 #define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7 #define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7 #define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8 #define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref) #define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } //, 1000, 1000} // X Y Z E0 E1, 1000 = 1000mAh // // Temperature Sensors // #define TEMP_0_PIN 10 // D10 PB19 THERM AN1 * #define TEMP_1_PIN 9 // D9 PB18 THERM AN2 * #define TEMP_2_PIN 8 // D8 PB17 THERM AN4 * #define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 * // // Heaters / Fans // #define HEATER_0_PIN 6 // D6 PC24 FET_PWM3 #define HEATER_1_PIN 7 // D7 PC23 FET_PWM4 #define HEATER_2_PIN 8 // D8 PC22 FET_PWM5 #define HEATER_BED_PIN 9 // D9 PC21 BED_PWM #ifndef FAN0_PIN #define FAN0_PIN 4 // D4 PC26 FET_PWM1 #endif #define FAN1_PIN 5 // D5 PC25 FET_PWM2 // // Misc. Functions // // Internal MicroSD card reader on the PCB #define INT_SCK_PIN 42 // D42 PA19/MCCK #define INT_MISO_PIN 43 // D43 PA20/MCCDA #define INT_MOSI_PIN 73 // D73 PA21/MCDA0 #define INT_SDSS 55 // D55 PA24/MCDA3 // External SD card reader on SC2 #define SD_SCK_PIN 76 // D76 PA27 #define SD_MISO_PIN 74 // D74 PA25 #define SD_MOSI_PIN 75 // D75 PA26 #define SDSS 87 // D87 PA29 // 2MB SPI Flash #define SPI_FLASH_SS 52 // D52 PB21 // // LCD / Controller // #if HAS_WIRED_LCD #define BEEPER_PIN 23 // D24 PA15_CTS1 #define LCD_PINS_RS 17 // D17 PA12_RXD1 #define LCD_PINS_EN 24 // D23 PA14_RTS1 #define LCD_PINS_D4 69 // D69 PA0_CANTX0 #define LCD_PINS_D5 54 // D54 PA16_SCK1 #define LCD_PINS_D6 68 // D68 PA1_CANRX0 #define LCD_PINS_D7 34 // D34 PC2_PWML0 #define SD_DETECT_PIN 2 // D2 PB25_TIOA0 #if IS_NEWPANEL // Buttons on AUX-2 #define BTN_EN1 60 // D60 PA3_TIOB1 #define BTN_EN2 13 // D13 PB27_TIOB0 #define BTN_ENC 16 // D16 PA13_TXD1 #endif // IS_NEWPANEL #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/sam/pins_ARCHIM1.h
C
agpl-3.0
7,836
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * ARCHIM2 pin assignment * * The Archim 2.0 board requires Arduino Archim addons installed. * * - Add the following URL to Arduino IDE's Additional Board Manager URLs: * https://raw.githubusercontent.com/ultimachine/ArduinoAddons/master/package_ultimachine_index.json * * - In the Arduino IDE Board Manager search for Archim and install the package. * * - Change your target board to "Archim". * * Further information on the UltiMachine website... * https://github.com/ultimachine/Archim/wiki */ #if NOT_TARGET(__SAM3X8E__) #error "Oops! Select 'Archim' in 'Tools > Board.'" #elif DISABLED(TMC_USE_SW_SPI) #error "Archim2 requires Software SPI. Enable TMC_USE_SW_SPI in Configuration_adv.h." #endif #define BOARD_INFO_NAME "Archim 2.0" // // Items marked * have been altered from Archim v1.0 // // // Servos // #define SERVO0_PIN 20 // D20 PB12 (Header J20 20) #define SERVO1_PIN 21 // D21 PB13 (Header J20 19) // // Limit Switches // #if ENABLED(SENSORLESS_HOMING) // Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers. // Otherwise use a physical endstop based configuration. // TMC2130 Diag Pins #define X_DIAG_PIN 59 // PA4 #define Y_DIAG_PIN 48 // PC15 #define Z_DIAG_PIN 36 // PC4 #define E0_DIAG_PIN 78 // PB23 #define E1_DIAG_PIN 25 // PD0 #if X_HOME_TO_MIN #define X_MIN_PIN X_DIAG_PIN #define X_MAX_PIN 32 #else #define X_MIN_PIN 14 #define X_MAX_PIN X_DIAG_PIN #endif #if Y_HOME_TO_MIN #define Y_MIN_PIN Y_DIAG_PIN #define Y_MAX_PIN 15 #else #define Y_MIN_PIN 29 #define Y_MAX_PIN Y_DIAG_PIN #endif #else #define X_MIN_PIN 14 // PD4 MIN ES1 #define X_MAX_PIN 32 // PD10 MAX ES1 #define Y_MIN_PIN 29 // PD6 MIN ES2 #define Y_MAX_PIN 15 // PD5 MAX ES2 #endif #define Z_MIN_PIN 31 // PA7 MIN ES3 #define Z_MAX_PIN 30 // PD9 MAX ES3 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 32 #endif // // Steppers // #define X_STEP_PIN 38 // PC6 X-STEP * #define X_DIR_PIN 37 // PC5 X-DIR * #define X_ENABLE_PIN 41 // PC9 EN1 #ifndef X_CS_PIN #define X_CS_PIN 39 // PC7 X_nCS #endif #define Y_STEP_PIN 51 // PC12 Y-STEP * #define Y_DIR_PIN 92 // PC11 Y-DIR -AddOns * #define Y_ENABLE_PIN 49 // PC14 Y-EN * #ifndef Y_CS_PIN #define Y_CS_PIN 50 // PC13 Y_nCS #endif #define Z_STEP_PIN 46 // PC17 Z-STEP * #define Z_DIR_PIN 47 // PC16 Z-DIR * #define Z_ENABLE_PIN 44 // PC19 Z-END * #ifndef Z_CS_PIN #define Z_CS_PIN 45 // PC18 Z_nCS #endif #define E0_STEP_PIN 107 // PB10 E1-STEP -AddOns * #define E0_DIR_PIN 96 // PC10 E1-DIR -AddOns * #define E0_ENABLE_PIN 105 // PB22 E1-EN -AddOns * #ifndef E0_CS_PIN #define E0_CS_PIN 104 // PC20 E1_nCS -AddOns * #endif #define E1_STEP_PIN 22 // PB26 E2_STEP * #define E1_DIR_PIN 97 // PB24 E2_DIR -AddOns * #define E1_ENABLE_PIN 18 // PA11 E2-EN #ifndef E1_CS_PIN #define E1_CS_PIN 19 // PA10 E2_nCS #endif // // SPI pins for TMC2130 stepper drivers. // Required for the Archim2 board. // #ifndef TMC_SPI_MOSI #define TMC_SPI_MOSI 28 // PD3 #endif #ifndef TMC_SPI_MISO #define TMC_SPI_MISO 26 // PD1 #endif #ifndef TMC_SPI_SCK #define TMC_SPI_SCK 27 // PD2 #endif // // Temperature Sensors // #define TEMP_0_PIN 10 // D10 PB19 THERM AN1 * #define TEMP_1_PIN 9 // D9 PB18 THERM AN2 * #define TEMP_2_PIN 8 // D8 PB17 THERM AN4 * #define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 * // // Heaters / Fans // #define HEATER_0_PIN 6 // D6 PC24 FET_PWM3 #define HEATER_1_PIN 7 // D7 PC23 FET_PWM4 #define HEATER_2_PIN 8 // D8 PC22 FET_PWM5 #define HEATER_BED_PIN 9 // D9 PC21 BED_PWM #ifndef FAN0_PIN #define FAN0_PIN 4 // D4 PC26 FET_PWM1 #endif #define FAN1_PIN 5 // D5 PC25 FET_PWM2 // // Misc. Functions // // Internal MicroSD card reader on the PCB #define INT_SCK_PIN 42 // D42 PA19/MCCK #define INT_MISO_PIN 43 // D43 PA20/MCCDA #define INT_MOSI_PIN 73 // D73 PA21/MCDA0 #define INT_SDSS 55 // D55 PA24/MCDA3 // External SD card reader on SC2 #define SD_SCK_PIN 76 // D76 PA27 #define SD_MISO_PIN 74 // D74 PA25 #define SD_MOSI_PIN 75 // D75 PA26 #define SDSS 87 // D87 PA29 // Unused Digital GPIO J20 Pins #define GPIO_PB1_J20_5 94 // D94 PB1 (Header J20 5) #define GPIO_PB0_J20_6 95 // D95 PB0 (Header J20 6) #define GPIO_PB3_J20_7 103 // D103 PB3 (Header J20 7) #define GPIO_PB2_J20_8 93 // D93 PB2 (Header J20 8) #define GPIO_PB6_J20_9 99 // D99 PB6 (Header J20 9) #define GPIO_PB5_J20_10 101 // D101 PB5 (Header J20 10) #define GPIO_PB8_J20_11 100 // D100 PB8 (Header J20 11) #define GPIO_PB4_J20_12 102 // D102 PB4 (Header J20 12) #define GPIO_PB9_J20_13 108 // D108 PB9 (Header J20 13) #define GPIO_PB7_J20_14 98 // D98 PB7 (Header J20 14) #define GPIO_PB15_J20_15 66 // D66 PB15 (Header J20 15) #define GPIO_PB16_J20_16 67 // D67 PB16 (Header J20 16) #define GPIO_PB14_J20_17 53 // D53 PB14 (Header J20 17) #define GPIO_PA18_J20_21 71 // D71 PA17 (Header J20 21) #define GPIO_PA17_J20_22 70 // D70 PA17 (Header J20 22) // Case Light #ifndef CASE_LIGHT_PIN #define CASE_LIGHT_PIN GPIO_PB1_J20_5 #endif // 2MB SPI Flash #define SPI_FLASH_SS 52 // D52 PB21 // // Filament Runout Sensor // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN GPIO_PB15_J20_15 #endif #ifndef FIL_RUNOUT2_PIN #define FIL_RUNOUT2_PIN GPIO_PB16_J20_16 #endif // // LCD / Controller // #if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE) #define BEEPER_PIN 23 // D24 PA15_CTS1 #define LCD_PINS_RS 17 // D17 PA12_RXD1 #define LCD_PINS_EN 24 // D23 PA14_RTS1 #define LCD_PINS_D4 69 // D69 PA0_CANTX0 #define LCD_PINS_D5 54 // D54 PA16_SCK1 #define LCD_PINS_D6 68 // D68 PA1_CANRX0 #define LCD_PINS_D7 34 // D34 PC2_PWML0 #endif #if ANY(IS_ULTIPANEL, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE) // Buttons on AUX-2 #define BTN_EN1 60 // D60 PA3_TIOB1 #define BTN_EN2 13 // D13 PB27_TIOB0 #define BTN_ENC 16 // D16 PA13_TXD1 // the click #endif #if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE, USB_FLASH_DRIVE_SUPPORT) #define SD_DETECT_PIN 2 // D2 PB25_TIOA0 #if ENABLED(USB_FLASH_DRIVE_SUPPORT) #define DISABLE_DUE_SD_MMC #endif #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_ARCHIM2.h
C
agpl-3.0
9,315
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * CNControls V15 for HMS434 with DUE pin assignments */ #include "env_validate.h" #define BOARD_INFO_NAME "CN Controls V15D" // // Servos // #define SERVO0_PIN 6 // // Limit Switches // #define X_STOP_PIN 34 #define Y_STOP_PIN 39 #define Z_STOP_PIN 62 #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 49 #endif // // Steppers // #define X_STEP_PIN 14 #define X_DIR_PIN 25 #define X_ENABLE_PIN 26 #define Y_STEP_PIN 11 #define Y_DIR_PIN 12 #define Y_ENABLE_PIN 15 #define Z_STEP_PIN 24 #define Z_DIR_PIN 27 #define Z_ENABLE_PIN 28 #define E0_STEP_PIN 64 #define E0_DIR_PIN 65 #define E0_ENABLE_PIN 63 #define E1_STEP_PIN 8 #define E1_DIR_PIN 7 #define E1_ENABLE_PIN 29 // // Temperature Sensors // Analog Inputs // #define TEMP_0_PIN 1 #define TEMP_1_PIN 2 #define TEMP_BED_PIN 4 #ifndef TEMP_CHAMBER_PIN #define TEMP_CHAMBER_PIN 5 #endif // // Heaters // #define HEATER_0_PIN 3 #define HEATER_1_PIN 4 #define HEATER_BED_PIN 32 #define HEATER_CHAMBER_PIN 33 // // Fans // //#define FAN0_PIN 8 // // Auto fans // #define AUTO_FAN_PIN 30 #ifndef E0_AUTO_FAN_PIN #define E0_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E1_AUTO_FAN_PIN #define E1_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E2_AUTO_FAN_PIN #define E2_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef E3_AUTO_FAN_PIN #define E3_AUTO_FAN_PIN AUTO_FAN_PIN #endif #ifndef CHAMBER_AUTO_FAN_PIN #define CHAMBER_AUTO_FAN_PIN 10 #endif // // SD card // #define SD_SCK_PIN 76 #define SD_MISO_PIN 74 #define SD_MOSI_PIN 75 #define SDSS 53 #define SD_DETECT_PIN 40 // Common I/O //#define PWM_1_PIN 6 // probe //#define PWM_2_PIN 13 //#define SPARE_IO 17 #define BEEPER_PIN 13 #define STAT_LED_BLUE_PIN -1 #define STAT_LED_RED_PIN 31 // G425 CALIBRATION_GCODE default pin #ifndef CALIBRATION_PIN #define CALIBRATION_PIN 66 #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_CNCONTROLS_15D.h
C
agpl-3.0
3,816
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * DUE3DOM pin assignments */ #include "env_validate.h" #define BOARD_INFO_NAME "DUE3DOM" // // Servos // #define SERVO0_PIN 5 #define SERVO1_PIN 6 #define SERVO2_PIN 13 #define SERVO3_PIN -1 // // Limit Switches // #define X_MIN_PIN 38 #define X_MAX_PIN 36 #define Y_MIN_PIN 34 #define Y_MAX_PIN 32 #define Z_MIN_PIN 30 #define Z_MAX_PIN 28 // // Steppers // #define X_STEP_PIN 2 #define X_DIR_PIN 3 #define X_ENABLE_PIN 22 #define Y_STEP_PIN 17 #define Y_DIR_PIN 16 #define Y_ENABLE_PIN 26 #define Z_STEP_PIN 61 // Z1 STP #define Z_DIR_PIN 60 // Z1 DIR #define Z_ENABLE_PIN 15 // Z1 ENA #define E0_STEP_PIN 64 // Z2 STP #define E0_DIR_PIN 63 // Z2 DIR #define E0_ENABLE_PIN 62 // Z2 ENA #define E1_STEP_PIN 51 // E1 STP #define E1_DIR_PIN 53 // E1 DIR #define E1_ENABLE_PIN 65 // E1 ENA #define E2_STEP_PIN 24 // E2 STP #define E2_DIR_PIN 23 // E2 DIR #define E2_ENABLE_PIN 49 // E2 ENA // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor) #define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor) #define TEMP_2_PIN 5 // Analog Input (unused) #define TEMP_BED_PIN 1 // Analog Input (BED thermistor) // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN -1 #else #define TEMP_0_CS_PIN -1 #endif // // Heaters / Fans // #define HEATER_0_PIN 7 // HOTEND0 MOSFET #define HEATER_1_PIN 8 // HOTEND1 MOSFET #define HEATER_BED_PIN 39 // BED MOSFET #ifndef FAN0_PIN #define FAN0_PIN 11 // FAN1 header on board - PRINT FAN #endif #define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN #define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN // // Misc. Functions // #define SDSS 4 #define PS_ON_PIN 40 // // LCD / Controller // #if HAS_WIRED_LCD #define LCD_PINS_RS 42 #define LCD_PINS_EN 43 #define LCD_PINS_D4 44 #define LCD_PINS_D5 45 #define LCD_PINS_D6 46 #define LCD_PINS_D7 47 #if IS_RRD_SC #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define SD_DETECT_PIN 14 #elif ENABLED(RADDS_DISPLAY) #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BTN_BACK 71 #define SD_DETECT_PIN 14 #elif HAS_U8GLIB_I2C_OLED #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BEEPER_PIN 41 #define LCD_SDSS 4 #define SD_DETECT_PIN 14 #elif ENABLED(SPARK_FULL_GRAPHICS) #define LCD_PINS_D4 29 #define LCD_PINS_EN 27 #define LCD_PINS_RS 25 #define BTN_EN1 35 #define BTN_EN2 33 #define BTN_ENC 37 #define BEEPER_PIN -1 #endif // SPARK_FULL_GRAPHICS #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/sam/pins_DUE3DOM.h
C
agpl-3.0
5,561
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * DUE3DOM MINI pin assignments */ #include "env_validate.h" #define BOARD_INFO_NAME "DUE3DOM MINI" // // Servos // #define SERVO0_PIN 5 #define SERVO1_PIN 6 #define SERVO2_PIN 8 // 4-pin header FAN0 #define SERVO3_PIN -1 // // Limit Switches // #define X_STOP_PIN 38 #define Y_STOP_PIN 34 #define Z_STOP_PIN 30 // // Steppers // #define X_STEP_PIN 17 #define X_DIR_PIN 16 #define X_ENABLE_PIN 22 #define Y_STEP_PIN 2 #define Y_DIR_PIN 3 #define Y_ENABLE_PIN 26 #define Z_STEP_PIN 64 #define Z_DIR_PIN 63 #define Z_ENABLE_PIN 15 #define E0_STEP_PIN 61 #define E0_DIR_PIN 60 #define E0_ENABLE_PIN 62 // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor) #define TEMP_1_PIN 2 // Analog Input (unused) #define TEMP_BED_PIN 1 // Analog Input (BED thermistor) #ifndef TEMP_BOARD_PIN #define TEMP_BOARD_PIN 5 // Analog Input (OnBoard thermistor beta 3950) #endif // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 53 #else #define TEMP_0_CS_PIN 53 #endif // // Heaters / Fans // #define HEATER_0_PIN 13 // HOTEND0 MOSFET #define HEATER_BED_PIN 7 // BED MOSFET #ifndef FAN0_PIN #define FAN0_PIN 11 // FAN1 header on board - PRINT FAN #endif #define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN #define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN //#define FAN3_PIN 8 // FAN0 4-pin header on board // // Misc. Functions // #define SDSS 4 #define PS_ON_PIN 40 // // LCD / Controller // #if HAS_WIRED_LCD #define LCD_PINS_RS 42 #define LCD_PINS_EN 43 #define LCD_PINS_D4 44 #define LCD_PINS_D5 45 #define LCD_PINS_D6 46 #define LCD_PINS_D7 47 #if IS_RRD_SC #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #define SD_DETECT_PIN 14 #elif ENABLED(RADDS_DISPLAY) #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BTN_BACK 71 #define SD_DETECT_PIN 14 #elif HAS_U8GLIB_I2C_OLED #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BEEPER_PIN 41 #define LCD_SDSS SDSS #define SD_DETECT_PIN 14 #elif ENABLED(SPARK_FULL_GRAPHICS) #define LCD_PINS_D4 29 #define LCD_PINS_EN 27 #define LCD_PINS_RS 25 #define BTN_EN1 35 #define BTN_EN2 33 #define BTN_ENC 37 #define BEEPER_PIN -1 #elif ENABLED(MINIPANEL) #define BTN_EN1 52 #define BTN_EN2 50 #define BTN_ENC 48 #define LCD_SDSS SDSS #define SD_DETECT_PIN 14 #define BEEPER_PIN 41 #define DOGLCD_A0 46 #define DOGLCD_CS 45 #endif #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
C
agpl-3.0
5,474
/** * 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 /** * KRATOS32 */ #include "env_validate.h" #define BOARD_INFO_NAME "K.3D KRATOS32" // // EEPROM // #if ANY(NO_EEPROM_SELECTED, I2C_EEPROM) #define I2C_EEPROM #define MARLIN_EEPROM_SIZE 0x1F400 // 16K #endif // // Servos // #define SERVO0_PIN 6 #define SERVO1_PIN 5 #define SERVO2_PIN 39 #define SERVO3_PIN 40 // CAMERA_PIN (extended to the top of the LCD module) #define SERVO4_PIN 45 // FIL_RUNOUT_PIN // // Limit Switches // #define X_MIN_PIN 28 #define X_MAX_PIN 34 #define Y_MIN_PIN 30 #define Y_MAX_PIN 36 #define Z_MIN_PIN 32 #define Z_MAX_PIN 38 // // Steppers // #define X_STEP_PIN 24 #define X_DIR_PIN 23 #define X_ENABLE_PIN 26 #ifndef X_CS_PIN #define X_CS_PIN 25 #endif #define Y_STEP_PIN 17 #define Y_DIR_PIN 16 #define Y_ENABLE_PIN 22 #ifndef Y_CS_PIN #define Y_CS_PIN 27 #endif #define Z_STEP_PIN 2 #define Z_DIR_PIN 3 #define Z_ENABLE_PIN 15 #ifndef Z_CS_PIN #define Z_CS_PIN 29 #endif #define E0_STEP_PIN 61 #define E0_DIR_PIN 60 #define E0_ENABLE_PIN 62 #ifndef E0_CS_PIN #define E0_CS_PIN 31 #endif #define E1_STEP_PIN 64 #define E1_DIR_PIN 63 #define E1_ENABLE_PIN 65 #ifndef E1_CS_PIN #define E1_CS_PIN 37 #endif #define E2_STEP_PIN 68 #define E2_DIR_PIN 67 #define E2_ENABLE_PIN 69 #ifndef E2_CS_PIN #define E2_CS_PIN 35 #endif #define E3_STEP_PIN 51 #define E3_DIR_PIN 53 #define E3_ENABLE_PIN 49 #ifndef E3_CS_PIN #define E3_CS_PIN 33 #endif // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input #define TEMP_2_PIN 2 // Analog Input #define TEMP_3_PIN 3 // Analog Input #define TEMP_BED_PIN 4 // Analog Input // // Heaters / Fans // #define HEATER_0_PIN 13 #define HEATER_1_PIN 12 #define HEATER_2_PIN 11 #define HEATER_3_PIN 10 #define HEATER_BED_PIN 7 // BED #ifndef FAN0_PIN #define FAN0_PIN 9 #endif #define FAN1_PIN 8 // // Misc. Functions // #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 45 // SERVO4_PIN #endif #ifndef PS_ON_PIN #define PS_ON_PIN 59 #endif // // LCD / Controller // #if HAS_WIRED_LCD #define BTN_EN1 48 #define BTN_EN2 50 #define BTN_ENC 46 #define SDSS 4 #define SD_DETECT_PIN 14 #define BEEPER_PIN 41 #define KILL_PIN 66 #if IS_RRD_FG_SC #define LCD_PINS_RS 42 #define LCD_PINS_EN 43 #define LCD_PINS_D4 44 #define BTN_BACK 52 #elif ENABLED(K3D_242_OLED_CONTROLLER) #define LCD_PINS_DC 44 #define LCD_PINS_RS 42 #define DOGLCD_CS 52 #define DOGLCD_MOSI 43 #define DOGLCD_SCK 47 #define DOGLCD_A0 LCD_PINS_DC #endif #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/sam/pins_KRATOS32.h
C
agpl-3.0
5,268
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * PRINTRBOARD_G2 */ #include "env_validate.h" #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "Printrboard G2" #endif // // Servos // //#define SERVO0_PIN -1 //#define SERVO1_PIN -1 // // Limit Switches // #define X_STOP_PIN 22 // PB26 #define Y_STOP_PIN 18 // PA11 #define Z_STOP_PIN 19 // PA10 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 22 #endif #ifndef FIL_RUNOUT_PIN //#define FIL_RUNOUT_PIN 57 // PA22 #endif #ifndef FIL_RUNOUT2_PIN //#define FIL_RUNOUT2_PIN 21 // PB13 #endif // // LED defines // //#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h) //#define BOARD_NEOPIXEL_PIN 20 // LED driving pin on motherboard //#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip //#define SDA0 20 // PB12 NeoPixel pin I2C data //#define SCL0 21 // PB13 I2C clock // D0_12 #REF! (INDICATOR_LED) // B28 JTAG-CLK // B31 JTAG_TMS /SWD_DIO //A18 INTERRUPT_OUT //A12 USART_RX not used //A13 USART_TX not used //A14 UART_RTS //A15 UART_CTS //PB2 Unassigned //PB4 to PB9 Unassigned //#define UART_RX_PIN 0 // PA8 "RX0" //#define UART_TX_PIN 1 // PA9 "TX0" //#define UART_RTS_PIN 23 // PA14 //#define UART_CTS_PIN 24 // PA15 // // Steppers // #define Z_STEP_PIN 73 // PA21 MOTOR 1 #define Z_DIR_PIN 75 // PA26 #define Z_ENABLE_PIN 74 // PA25 #define X_STEP_PIN 66 // PB15 MOTOR 2 #define X_DIR_PIN 54 // PA16 #define X_ENABLE_PIN 67 // PB16 #define Y_STEP_PIN 34 // PA29 MOTOR 3 #define Y_DIR_PIN 35 // PB1 #define Y_ENABLE_PIN 36 // PB0 #define E0_STEP_PIN 53 // PB14 MOTOR 4 #define E0_DIR_PIN 78 // PB23 #define E0_ENABLE_PIN 37 // PB22 // Microstepping mode pins #define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1 #define Z_MS2_PIN 52 // PB21 MODE1 #define Z_MS3_PIN 65 // PB20 MODE2 #define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2 #define X_MS2_PIN 43 // PA20 MODE1 #define X_MS3_PIN 42 // PA19 MODE2 #define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3 #define Y_MS2_PIN 77 // PA28 MODE1 #define Y_MS3_PIN 76 // PA27 MODE2 #define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4 #define E0_MS2_PIN 38 // PB11 MODE1 #define E0_MS3_PIN 39 // PB10 MODE2 // Motor current PWM pins #define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1 #define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2 #define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3 #define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4 #define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000} // XY Z E0, 1000 = 1000mAh // // Temperature Sensors // #define TEMP_0_PIN 2 // digital 56 PA23 #define TEMP_BED_PIN 5 // digital 59 PA4 // // Heaters / Fans // #define HEATER_0_PIN 40 // PA5 #define HEATER_BED_PIN 41 // PB24 #ifndef FAN0_PIN #define FAN0_PIN 13 // PB27 Fan1A #endif #define FAN1_PIN 58 // PA6 Fan1B #define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off #define FET_SAFETY_DELAY 50 // 50 mS delay between pulses #define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS ///////////////////////////////////////////////////////// #define SD_MISO_PIN 68 // set to unused pins for now #define SD_MOSI_PIN 69 // set to unused pins for now #define SD_SCK_PIN 70 // set to unused pins for now #define SDSS 71 // set to unused pins for now /** * G2 uses 8 pins that are not available in the DUE environment: * 34 PA29 - Y_STEP_PIN * 35 PB1 - Y_DIR_PIN * 36 PB0 - Y_ENABLE_PIN * 37 PB22 - E0_ENABLE_PIN * 38 PB11 - E0_MS1_PIN - normally used by the USB native port * 39 PB10 - E0_MS3_PIN - normally used by the USB native port * 40 PA5 - HEATER_0_PIN * 41 PB24 - HEATER_BED_PIN * * None of these are in the arduino_due_x variant so digitalWrite and digitalRead can't be used on them. * * They can be accessed via FASTIO functions WRITE, READ, OUT_WRITE, OUTPUT, ... */
2301_81045437/Marlin
Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
C
agpl-3.0
6,262
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RADDS */ #include "env_validate.h" #define BOARD_INFO_NAME "RADDS" // // EEPROM // #if ANY(NO_EEPROM_SELECTED, I2C_EEPROM) #define I2C_EEPROM #define MARLIN_EEPROM_SIZE 0x2000 // 8K #endif // // Servos // #if !HAS_CUTTER #define SERVO0_PIN 5 #endif #define SERVO1_PIN 6 #define SERVO2_PIN 39 #define SERVO3_PIN 40 // // Limit Switches // #define X_MIN_PIN 28 #define X_MAX_PIN 34 #define Y_MIN_PIN 30 #define Y_MAX_PIN 36 #define Z_MIN_PIN 32 #define Z_MAX_PIN 38 // // Z Probe (when not Z_MIN_PIN) // #ifndef Z_MIN_PROBE_PIN #define Z_MIN_PROBE_PIN 38 #endif // // Steppers // #define X_STEP_PIN 24 #define X_DIR_PIN 23 #define X_ENABLE_PIN 26 #ifndef X_CS_PIN #define X_CS_PIN 25 #endif #define Y_STEP_PIN 17 #define Y_DIR_PIN 16 #define Y_ENABLE_PIN 22 #ifndef Y_CS_PIN #define Y_CS_PIN 27 #endif #define Z_STEP_PIN 2 #define Z_DIR_PIN 3 #define Z_ENABLE_PIN 15 #ifndef Z_CS_PIN #define Z_CS_PIN 29 #endif #define E0_STEP_PIN 61 #define E0_DIR_PIN 60 #define E0_ENABLE_PIN 62 #ifndef E0_CS_PIN #define E0_CS_PIN 31 #endif #define E1_STEP_PIN 64 #define E1_DIR_PIN 63 #define E1_ENABLE_PIN 65 #ifndef E1_CS_PIN #define E1_CS_PIN 33 #endif #define E2_STEP_PIN 51 #define E2_DIR_PIN 53 #define E2_ENABLE_PIN 49 #ifndef E2_CS_PIN #define E2_CS_PIN 35 #endif /** * RADDS Extension Board V2 / V3 * http://doku.radds.org/dokumentation/extension-board */ //#define RADDS_EXTENSION 2 #if RADDS_EXTENSION >= 2 #define E3_DIR_PIN 33 #define E3_STEP_PIN 35 #define E3_ENABLE_PIN 37 #ifndef E3_CS_PIN #define E3_CS_PIN 6 #endif #if RADDS_EXTENSION == 3 #define E4_DIR_PIN 27 #define E4_STEP_PIN 29 #define E4_ENABLE_PIN 31 #ifndef E4_CS_PIN #define E4_CS_PIN 39 #endif #define E5_DIR_PIN 66 #define E5_STEP_PIN 67 #define E5_ENABLE_PIN 68 #ifndef E5_CS_PIN #define E5_CS_PIN 6 #endif #define RADDS_EXT_MSI_PIN 69 #define BOARD_INIT() OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH) #else #define E4_DIR_PIN 27 #define E4_STEP_PIN 29 #define E4_ENABLE_PIN 31 #ifndef E4_CS_PIN #define E4_CS_PIN 39 #endif // E3 and E4 share the same MSx pins #define E3_MS1_PIN 67 #define E4_MS1_PIN 67 #define E3_MS2_PIN 68 #define E4_MS2_PIN 68 #define E3_MS3_PIN 69 #define E4_MS3_PIN 69 #define RADDS_EXT_VDD2_PIN 66 #define BOARD_INIT() do{ OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH); OUT_WRITE(RADDS_EXT_VDD2_PIN, HIGH); }while(0) #endif #define RADDS_EXT_VDD_PIN 25 #endif // // Temperature Sensors // #define TEMP_0_PIN 0 // Analog Input #define TEMP_1_PIN 1 // Analog Input #define TEMP_2_PIN 2 // Analog Input #define TEMP_3_PIN 3 // Analog Input #define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled #define TEMP_BED_PIN 4 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 53 #else #define TEMP_0_CS_PIN 49 #endif // // Heaters / Fans // #define HEATER_0_PIN 13 #define HEATER_1_PIN 12 #define HEATER_2_PIN 11 #if !HAS_CUTTER #define HEATER_BED_PIN 7 // BED #endif #ifndef FAN0_PIN #define FAN0_PIN 9 #endif #define FAN1_PIN 8 // // Misc. Functions // #define SD_DETECT_PIN 14 #define PS_ON_PIN 40 // SERVO3_PIN #ifndef FIL_RUNOUT_PIN #define FIL_RUNOUT_PIN 39 // SERVO2_PIN #endif // // M3/M4/M5 - Spindle/Laser Control // #if HAS_CUTTER #if !NUM_SERVOS #define SPINDLE_LASER_PWM_PIN 5 // SERVO0_PIN #endif #define SPINDLE_LASER_ENA_PIN 7 // HEATER_BED_PIN - Pullup/down! #endif // // LCD / Controller // #if HAS_WIRED_LCD #if ENABLED(RADDS_DISPLAY) #define LCD_PINS_RS 42 #define LCD_PINS_EN 43 #define LCD_PINS_D4 44 #define LCD_PINS_D5 45 #define LCD_PINS_D6 46 #define LCD_PINS_D7 47 #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BTN_BACK 71 #define SDSS 10 #define SD_DETECT_PIN 14 #elif IS_RRD_FG_SC // The REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER requires // an adapter such as https://www.thingiverse.com/thing:1740725 #define LCD_PINS_RS 42 #define LCD_PINS_EN 43 #define LCD_PINS_D4 44 #define BEEPER_PIN 41 #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define SDSS 10 #define SD_DETECT_PIN 14 #elif HAS_U8GLIB_I2C_OLED #define BTN_EN1 50 #define BTN_EN2 52 #define BTN_ENC 48 #define BEEPER_PIN 41 #define LCD_SDSS 10 #define SD_DETECT_PIN 14 #elif ENABLED(SPARK_FULL_GRAPHICS) #define LCD_PINS_D4 29 #define LCD_PINS_EN 27 #define LCD_PINS_RS 25 #define BTN_EN1 35 #define BTN_EN2 33 #define BTN_ENC 37 #endif // SPARK_FULL_GRAPHICS #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN 47 // Detect the presence of the encoder #endif #endif // HAS_WIRED_LCD #ifndef SDSS #define SDSS 4 #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_RADDS.h
C
agpl-3.0
8,650
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega or Due with RAMPS4DUE pin assignments * * Applies to the following boards: * * RAMPS4DUE_EFB (Hotend, Fan, Bed) * RAMPS4DUE_EEB (Hotend0, Hotend1, Bed) * RAMPS4DUE_EFF (Hotend, Fan0, Fan1) * RAMPS4DUE_EEF (Hotend0, Hotend1, Fan) * RAMPS4DUE_SF (Spindle, Controller Fan) * * Differences between * RAMPS_14 | RAMPS4DUE * A13 | A9/D63 (shares the same pin with AUX2_4PIN) * A14 | A10/D64 (shares the same pin with AUX2_5PIN) * A15 | NC */ #define ALLOW_SAM3X8E #define BOARD_INFO_NAME "RAMPS4DUE" // // Temperature Sensors // #define TEMP_0_PIN 9 // Analog Input #define TEMP_1_PIN -1 // Analog Input #define TEMP_BED_PIN 10 // Analog Input #include "../ramps/pins_RAMPS.h"
2301_81045437/Marlin
Marlin/src/pins/sam/pins_RAMPS4DUE.h
C
agpl-3.0
1,694
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * Arduino Mega or Due with RAMPS Duo pin assignments * * Applies to the following boards: * * RAMPS_DUO_EFB (Hotend, Fan, Bed) * RAMPS_DUO_EEB (Hotend0, Hotend1, Bed) * RAMPS_DUO_EFF (Hotend, Fan0, Fan1) * RAMPS_DUO_EEF (Hotend0, Hotend1, Fan) * RAMPS_DUO_SF (Spindle, Controller Fan) * * Differences between * RAMPS_14 | RAMPS_DUO * A9/D63 | A12/D66 * A10/D64 | A13/D67 * A11/D65 | A14/D68 * A12/D66 | A15/D69 * A13 | A9 * A14 | A10 * A15 | A11 */ #define BOARD_INFO_NAME "RAMPS Duo" // // Temperature Sensors // #define TEMP_0_PIN 9 // Analog Input #define TEMP_1_PIN 11 // Analog Input #define TEMP_BED_PIN 10 // Analog Input #define ALLOW_SAM3X8E #include "../ramps/pins_RAMPS.h" // SPI for MAX Thermocouple #undef TEMP_0_CS_PIN #if !HAS_MEDIA #define TEMP_0_CS_PIN 69 // Don't use 53 if using Display/SD card #else #define TEMP_0_CS_PIN 69 // Don't use 49 (SD_DETECT_PIN) #endif // // LCD / Controller // #if HAS_WIRED_LCD #if ALL(IS_NEWPANEL, PANEL_ONE) #undef LCD_PINS_D4 #define LCD_PINS_D4 68 #undef LCD_PINS_D5 #define LCD_PINS_D5 69 #undef LCD_PINS_D7 #define LCD_PINS_D7 67 #endif #if IS_NEWPANEL #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD) #undef BTN_EN1 #define BTN_EN1 67 #undef BTN_ENC #define BTN_ENC 66 #elif ENABLED(MINIPANEL) #undef DOGLCD_CS #define DOGLCD_CS 69 #undef LCD_BACKLIGHT_PIN #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68 #undef KILL_PIN #define KILL_PIN 67 #undef BTN_EN2 #define BTN_EN2 66 #else #if IS_RRW_KEYPAD #undef BTN_EN1 #define BTN_EN1 67 // encoder #undef BTN_ENC #define BTN_ENC 66 // enter button #elif ENABLED(PANEL_ONE) #undef BTN_EN2 #define BTN_EN2 66 // AUX2 PIN 4 #endif #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // IS_NEWPANEL #endif // HAS_WIRED_LCD
2301_81045437/Marlin
Marlin/src/pins/sam/pins_RAMPS_DUO.h
C
agpl-3.0
3,390
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RAMPS-FD * * No EEPROM * Use 4k7 thermistor tables */ #include "env_validate.h" #ifndef BOARD_INFO_NAME #define BOARD_INFO_NAME "RAMPS-FD v1" #endif #define INVERTED_HEATER_PINS #define INVERTED_BED_PINS #define INVERTED_FAN_PINS // // Servos // #define SERVO0_PIN 7 #define SERVO1_PIN 6 #define SERVO2_PIN 5 #define SERVO3_PIN 3 // // Limit Switches // #define X_MIN_PIN 22 #define X_MAX_PIN 30 #define Y_MIN_PIN 24 #define Y_MAX_PIN 38 #define Z_MIN_PIN 26 #define Z_MAX_PIN 34 // // Steppers // #define X_STEP_PIN 63 #define X_DIR_PIN 62 #define X_ENABLE_PIN 48 #ifndef X_CS_PIN #define X_CS_PIN 68 #endif #define Y_STEP_PIN 65 #define Y_DIR_PIN 64 #define Y_ENABLE_PIN 46 #ifndef Y_CS_PIN #define Y_CS_PIN 60 #endif #define Z_STEP_PIN 67 #define Z_DIR_PIN 66 #define Z_ENABLE_PIN 44 #ifndef Z_CS_PIN #define Z_CS_PIN 58 #endif #define E0_STEP_PIN 36 #define E0_DIR_PIN 28 #define E0_ENABLE_PIN 42 #ifndef E0_CS_PIN #define E0_CS_PIN 67 #endif #define E1_STEP_PIN 43 #define E1_DIR_PIN 41 #define E1_ENABLE_PIN 39 #ifndef E1_CS_PIN #define E1_CS_PIN 61 #endif #define E2_STEP_PIN 32 #define E2_DIR_PIN 47 #define E2_ENABLE_PIN 45 #ifndef E2_CS_PIN #define E2_CS_PIN 59 #endif // // Temperature Sensors // #define TEMP_0_PIN 1 // Analog Input #define TEMP_1_PIN 2 // Analog Input #define TEMP_2_PIN 3 // Analog Input #define TEMP_BED_PIN 0 // Analog Input // SPI for MAX Thermocouple #if !HAS_MEDIA #define TEMP_0_CS_PIN 53 #else #define TEMP_0_CS_PIN 49 #endif // // Heaters / Fans // #define HEATER_0_PIN 9 #define HEATER_1_PIN 10 #define HEATER_2_PIN 11 #define HEATER_BED_PIN 8 #ifndef FAN0_PIN #define FAN0_PIN 12 #endif // // Misc. Functions // #define SDSS 4 #define LED_PIN 13 /** * RAMPS-FD LCD adapter * ------ ------ * 37 | 1 2 | 35 (MISO) 50 | 1 2 | 76 (SCK) * 29 | 3 4 | 27 (EN2) 31 | 3 4 | 4 (SD_SS) * 25 5 6 | 23 (EN1) 33 5 6 | 75 (MOSI) * 16 | 7 8 | 17 (SDD) 49 | 7 8 | RESET * GND | 9 10 | 5V GND | 9 10 | -- * ------ ------ * EXP1 EXP2 */ #define EXP1_01_PIN 37 #define EXP1_02_PIN 35 #define EXP1_03_PIN 29 #define EXP1_04_PIN 27 #define EXP1_05_PIN 25 #define EXP1_06_PIN 23 #define EXP1_07_PIN 16 #define EXP1_08_PIN 17 #define EXP2_01_PIN 74 #define EXP2_02_PIN 76 #define EXP2_03_PIN 31 #define EXP2_04_PIN 4 #define EXP2_05_PIN 33 #define EXP2_06_PIN 75 #define EXP2_07_PIN 49 #define EXP2_08_PIN -1 // // LCD / Controller // #if HAS_WIRED_LCD #define BEEPER_PIN EXP1_01_PIN #define BTN_ENC EXP1_02_PIN #define BTN_EN2 EXP2_03_PIN #define BTN_EN1 EXP2_05_PIN #define SD_DETECT_PIN EXP2_07_PIN #if IS_NEWPANEL #define LCD_PINS_RS EXP1_07_PIN #define LCD_PINS_EN EXP1_08_PIN #endif #if ENABLED(FYSETC_MINI_12864) #define DOGLCD_CS EXP1_08_PIN #define DOGLCD_A0 EXP1_07_PIN #define DOGLCD_SCK EXP2_02_PIN #define DOGLCD_MOSI EXP2_06_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. #if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) #ifndef RGB_LED_R_PIN #define RGB_LED_R_PIN EXP1_05_PIN #endif #ifndef RGB_LED_G_PIN #define RGB_LED_G_PIN EXP1_04_PIN #endif #ifndef RGB_LED_B_PIN #define RGB_LED_B_PIN EXP1_03_PIN #endif #elif ENABLED(FYSETC_MINI_12864_2_1) #define NEOPIXEL_PIN EXP1_05_PIN #endif #elif IS_NEWPANEL #define LCD_PINS_D4 EXP1_06_PIN #define LCD_PINS_D5 EXP1_05_PIN #define LCD_PINS_D6 EXP1_04_PIN #define LCD_PINS_D7 EXP1_03_PIN #if ENABLED(MINIPANEL) #define DOGLCD_CS EXP1_05_PIN #define DOGLCD_A0 EXP1_04_PIN #endif #endif #if ANY(VIKI2, miniVIKI) #define DOGLCD_A0 EXP1_07_PIN #define KILL_PIN 51 #define STAT_LED_BLUE_PIN EXP1_03_PIN #define STAT_LED_RED_PIN EXP1_06_PIN #define DOGLCD_CS EXP1_08_PIN #define DOGLCD_SCK EXP2_02_PIN // SCK_PIN - Required for DUE Hardware SPI #define DOGLCD_MOSI EXP2_06_PIN // MOSI_PIN #define DOGLCD_MISO EXP2_01_PIN // MISO_PIN #endif #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder #endif #endif // HAS_WIRED_LCD #if HAS_TMC_UART /** * TMC2208/TMC2209 stepper drivers * * Hardware serial communication ports. * If undefined software serial is used according to the pins below */ //#define X_HARDWARE_SERIAL Serial1 //#define X2_HARDWARE_SERIAL Serial1 //#define Y_HARDWARE_SERIAL Serial1 //#define Y2_HARDWARE_SERIAL Serial1 //#define Z_HARDWARE_SERIAL Serial1 //#define Z2_HARDWARE_SERIAL Serial1 //#define E0_HARDWARE_SERIAL Serial1 //#define E1_HARDWARE_SERIAL Serial1 //#define E2_HARDWARE_SERIAL Serial1 //#define E3_HARDWARE_SERIAL Serial1 //#define E4_HARDWARE_SERIAL Serial1 #endif // // M3/M4/M5 - Spindle/Laser Control // #if HOTENDS < 3 && HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA) #define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM #define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA #define SPINDLE_DIR_PIN 47 // Use E2 DIR #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
C
agpl-3.0
8,487
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 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 /** * RAMPS-FD v2 * * EEPROM supported * Use 1k thermistor tables */ #define BOARD_INFO_NAME "RAMPS-FD v2" #ifndef E0_CS_PIN #define E0_CS_PIN 69 // moved from A13 to A15 on v2.2, if not earlier #endif #include "pins_RAMPS_FD_V1.h" #undef INVERTED_HEATER_PINS #undef INVERTED_BED_PINS #undef INVERTED_FAN_PINS #define I2C_EEPROM #define MARLIN_EEPROM_SIZE 0x10000 // 64K in a 24C512 #ifndef PS_ON_PIN #define PS_ON_PIN 12 #endif #ifndef FILWIDTH_PIN #define FILWIDTH_PIN 5 // Analog Input on AUX2 #endif
2301_81045437/Marlin
Marlin/src/pins/sam/pins_RAMPS_FD_V2.h
C
agpl-3.0
1,476