Merge upstream changes from Marlin 2.1.1

This commit is contained in:
Stefan Kalscheuer
2022-09-03 09:23:32 +02:00
parent 626283aadb
commit 986e416c7f
1610 changed files with 73839 additions and 40857 deletions

View File

@@ -62,8 +62,8 @@
//
// Heaters / Fans
//
#define RAMPS_D8_PIN 9
#define RAMPS_D9_PIN 8
#define MOSFET_B_PIN 8
#define MOSFET_C_PIN 9
#define MOSFET_D_PIN 12
//
@@ -111,7 +111,7 @@
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 62 // Pullup!
#define SPINDLE_DIR_PIN 48
#elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
#elif !BOTH(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
#define SPINDLE_DIR_PIN 17
#if !NUM_SERVOS // Use servo connector if possible
@@ -135,7 +135,7 @@
//
// LCD / Controller
//
#if IS_ULTRA_LCD && IS_NEWPANEL
#if HAS_WIRED_LCD && IS_NEWPANEL
#undef BEEPER_PIN
// TODO: Remap EXP1/2 based on adapter
@@ -164,9 +164,9 @@
#define BEEPER_PIN 33
#endif // IS_ULTRA_LCD && IS_NEWPANEL
#endif // HAS_WIRED_LCD && IS_NEWPANEL
#if ENABLED(U8GLIB_ST7920)
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 0
#define BOARD_ST7920_DELAY_2 188
#define BOARD_ST7920_DELAY_3 0

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Azteeg X3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Azteeg X3 supports up to 2 hotends / E steppers."
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
@@ -43,7 +43,7 @@
#define SERVO0_PIN 44 // SERVO1 port
#define SERVO1_PIN 55 // SERVO2 port
#include "pins_RAMPS_13.h"
#include "pins_RAMPS_13.h" // ... RAMPS
//
// LCD / Controller
@@ -51,7 +51,7 @@
#undef STAT_LED_RED_PIN
#undef STAT_LED_BLUE_PIN
#if ANY(VIKI2, miniVIKI)
#if EITHER(VIKI2, miniVIKI)
#undef DOGLCD_A0
#undef DOGLCD_CS

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 5 || E_STEPPERS > 5
#error "Azteeg X3 Pro supports up to 5 hotends / E-steppers. Comment out this line to continue."
#error "Azteeg X3 Pro supports up to 5 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Azteeg X3 Pro"
@@ -142,7 +142,7 @@
#undef BEEPER_PIN
#define BEEPER_PIN 33
#if ANY(VIKI2, miniVIKI)
#if EITHER(VIKI2, miniVIKI)
#undef SD_DETECT_PIN
#define SD_DETECT_PIN 49 // For easy adapter board
#undef BEEPER_PIN
@@ -158,7 +158,7 @@
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
#undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
#define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
// as the wiring diagram uses pin 44 for DOGLCD_A0
// as the wiring diagram uses pin 44 for DOGLCD_A0.
#endif
//
@@ -169,7 +169,7 @@
#undef SPINDLE_DIR_PIN
#if HAS_CUTTER // EXP2 header
#if ANY(VIKI2, miniVIKI)
#if EITHER(VIKI2, miniVIKI)
#define BTN_EN2 31 // Pin 7 needed for Spindle PWM
#endif
#define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "2PrintBeta Due supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "2PrintBeta Due supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "2PrintBeta Due"

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "KFB 2.0 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "KFB 2.0 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "KFB 2.0"

View File

@@ -68,9 +68,9 @@
//
// Heaters / Fans
//
#define RAMPS_D8_PIN 10
#define RAMPS_D9_PIN 12
#define RAMPS_D10_PIN 9
#define MOSFET_A_PIN 9
#define MOSFET_B_PIN 12
#define MOSFET_C_PIN 10
#define MOSFET_D_PIN 7
//
@@ -106,7 +106,7 @@
#endif
// Alter timing for graphical display
#if ENABLED(U8GLIB_ST7920)
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 0
#define BOARD_ST7920_DELAY_2 0
#define BOARD_ST7920_DELAY_3 189
@@ -115,7 +115,7 @@
//
// Import RAMPS 1.3 pins
//
#include "pins_RAMPS_13.h"
#include "pins_RAMPS_13.h" // ... RAMPS
//
// Used by the Hephestos 2 heated bed upgrade kit

View File

@@ -22,7 +22,7 @@
#pragma once
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Dagoma3D F5 supports only 2 hotends / E-steppers. Comment out this line to continue."
#error "Dagoma3D F5 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Dagoma3D F5"
@@ -40,7 +40,7 @@
#endif
// Alter timing for graphical display
#if ENABLED(U8GLIB_ST7920)
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 0
#define BOARD_ST7920_DELAY_2 250
#define BOARD_ST7920_DELAY_3 250

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Felix 2.0+ supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Felix 2.0+ supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Felix 2.0+"
@@ -49,7 +49,7 @@
//
// LCD / Controller
//
#if IS_ULTRA_LCD && IS_NEWPANEL
#if HAS_WIRED_LCD && IS_NEWPANEL
#define SD_DETECT_PIN 6

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "Formbot supports up to 3 hotends / E-steppers. Comment out this line to continue."
#error "Formbot supports up to 3 hotends / E steppers."
#endif
#ifndef BOARD_INFO_NAME
@@ -121,23 +121,6 @@
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
// Augmentation for auto-assigning RAMPS plugs
//
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
#if HAS_MULTI_HOTEND
#if TEMP_SENSOR_BED
#define IS_RAMPS_EEB
#else
#define IS_RAMPS_EEF
#endif
#elif TEMP_SENSOR_BED
#define IS_RAMPS_EFB
#else
#define IS_RAMPS_EFF
#endif
#endif
//
// Heaters / Fans
//

View File

@@ -66,3 +66,9 @@
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && (CASE_LIGHT_PIN == SPINDLE_LASER_ENA_PIN || CASE_LIGHT_PIN == SPINDLE_LASER_PWM_PIN)
#error "CASE_LIGHT_PIN conflicts with a Spindle / Laser pin."
#endif
#if HAS_MARLINUI_U8GLIB
#define BOARD_ST7920_DELAY_1 125
#define BOARD_ST7920_DELAY_2 125
#define BOARD_ST7920_DELAY_3 125
#endif

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Formbot supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Formbot"
@@ -118,23 +118,6 @@
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
// Augmentation for auto-assigning RAMPS plugs
//
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
#if HAS_MULTI_HOTEND
#if TEMP_SENSOR_BED
#define IS_RAMPS_EEB
#else
#define IS_RAMPS_EEF
#endif
#elif TEMP_SENSOR_BED
#define IS_RAMPS_EFB
#else
#define IS_RAMPS_EFF
#endif
#endif
//
// Heaters / Fans
//
@@ -199,7 +182,7 @@
#endif
// Alter timing for graphical display
#if ENABLED(U8GLIB_ST7920)
#if IS_U8GLIB_ST7920
#define BOARD_ST7920_DELAY_1 200
#define BOARD_ST7920_DELAY_2 200
#define BOARD_ST7920_DELAY_3 200

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Formbot supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Formbot"
@@ -100,9 +100,15 @@
#define E1_CS_PIN 44
#endif
#define E2_STEP_PIN 42
#define E2_DIR_PIN 43
#define E2_ENABLE_PIN 44
#if HAS_X2_STEPPER
#define X2_STEP_PIN 42
#define X2_DIR_PIN 43
#define X2_ENABLE_PIN 44
#else
#define E2_STEP_PIN 42
#define E2_DIR_PIN 43
#define E2_ENABLE_PIN 44
#endif
//
// Temperature Sensors
@@ -128,7 +134,6 @@
#define FAN_PIN 9
#define FAN1_PIN 12
#define NUM_RUNOUT_SENSORS 2
#define FIL_RUNOUT_PIN 22
#define FIL_RUNOUT2_PIN 21
@@ -174,3 +179,9 @@
#define BEEPER_PIN 37
#endif
#endif
#if HAS_MARLINUI_U8GLIB
#define BOARD_ST7920_DELAY_1 125
#define BOARD_ST7920_DELAY_2 125
#define BOARD_ST7920_DELAY_3 125
#endif

View File

@@ -234,7 +234,7 @@
#if ENABLED(FYSETC_MINI_12864)
//
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
// See https://wiki.fysetc.com/Mini12864_Panel/
//
#define DOGLCD_A0 16
#define DOGLCD_CS 17

View File

@@ -30,4 +30,4 @@
#define DEFAULT_MACHINE_NAME "K8200"
#define DEFAULT_SOURCE_CODE_URL "github.com/CONSULitAS/Marlin-K8200"
#include "pins_3DRAG.h"
#include "pins_3DRAG.h" // ... RAMPS

View File

@@ -50,7 +50,7 @@
#define X_STOP_PIN 3
#define Y_STOP_PIN 14
#include "pins_3DRAG.h"
#include "pins_3DRAG.h" // ... RAMPS
//
// Heaters / Fans

View File

@@ -25,8 +25,8 @@
* VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.
*/
#if HOTENDS > 1
#error "Only 1 hotend is supported for Vertex Nano."
#if HAS_MULTI_HOTEND
#error "K8600 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "K8600"
@@ -59,7 +59,6 @@
//
// Other RAMPS pins
//
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
#include "pins_RAMPS.h"
//
@@ -70,7 +69,7 @@
//
// LCD / Controller
//
#if IS_ULTRA_LCD && IS_NEWPANEL
#if HAS_WIRED_LCD && IS_NEWPANEL
#undef BEEPER_PIN
#undef LCD_PINS_RS

View File

@@ -30,8 +30,6 @@
#define BOARD_INFO_NAME "K8800"
#define DEFAULT_MACHINE_NAME "Vertex Delta"
//#define LCD_SCREEN_ROT_180
//
// Limit Switches
//
@@ -107,9 +105,7 @@
#define LCD_PINS_D6 33
#define LCD_PINS_D7 31
#define LCD_CONTRAST_MIN 0
#define LCD_CONTRAST_MAX 100
#define DEFAULT_LCD_CONTRAST 30
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#if IS_NEWPANEL
#define BTN_EN1 17

View File

@@ -28,17 +28,17 @@
#define REQUIRE_MEGA2560
#include "env_validate.h"
#if HOTENDS > 1 || E_STEPPERS > 1
#error "Longer3D LGT KIT V1.0 board only supports one hotend / E-stepper. Comment out this line to continue."
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Longer3D LGT KIT V1.0 only supports 1 hotend / E stepper."
#endif
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1 || SERIAL_PORT_3 == 1
#warning "Serial 1 is originally reserved to DGUS LCD."
#endif
#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2
#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2 || SERIAL_PORT_3 == 2 || LCD_SERIAL_PORT == 2
#warning "Serial 2 has no connector. Hardware changes may be required to use it."
#endif
#if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3
#if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3 || SERIAL_PORT_3 == 3 || LCD_SERIAL_PORT == 3
#define CHANGE_Y_LIMIT_PINS
#warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
#endif
@@ -105,7 +105,9 @@
//
// Průša i3 MK2 Multiplexer Support
//
#define E_MUX2_PIN -1
#if HAS_PRUSA_MMU1
#define E_MUX2_PIN -1
#endif
//
// Misc. Functions
@@ -116,5 +118,4 @@
//
// Other RAMPS 1.3 pins
//
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
#include "pins_RAMPS_13.h"
#include "pins_RAMPS_13.h" // ... RAMPS

View File

@@ -28,10 +28,10 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS BASE 1.0 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS BASE 1.0 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS BASE 1.0"
#define MKS_BASE_VERSION 10
#include "pins_MKS_BASE_common.h"
#include "pins_MKS_BASE_common.h" // ... RAMPS

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS BASE 1.4 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS BASE 1.4 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS BASE 1.4"
@@ -58,7 +58,7 @@
#define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11
#endif
#include "pins_MKS_BASE_common.h"
#include "pins_MKS_BASE_common.h" // ... RAMPS
/*
Available connectors on MKS BASE v1.4

View File

@@ -26,10 +26,10 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS BASE 1.5 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS BASE 1.5 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS BASE 1.5"
#define MKS_BASE_VERSION 15
#include "pins_MKS_BASE_common.h"
#include "pins_MKS_BASE_common.h" // ... RAMPS

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS BASE 1.6 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS BASE 1.6 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS BASE 1.6"
@@ -56,4 +56,4 @@
#define PS_ON_PIN -1
#endif
#include "pins_MKS_BASE_common.h"
#include "pins_MKS_BASE_common.h" // ... RAMPS

View File

@@ -25,7 +25,7 @@
* MKS BASE with Heroic HR4982 stepper drivers
*/
#include "pins_MKS_BASE_15.h"
#include "pins_MKS_BASE_15.h" // ... MKS_BASE_common ... RAMPS
/**
* Some new boards use HR4982 (Heroic) instead of the A4982 (Allegro) stepper drivers.

View File

@@ -31,7 +31,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS GEN 1.3/1.4 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS GEN 1.3/1.4 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS GEN >= v1.3"
@@ -54,13 +54,13 @@
#include "pins_RAMPS.h"
#undef EXP2_03_PIN
#define EXP2_03_PIN -1 // RESET
#undef EXP2_08_PIN
#define EXP2_08_PIN -1 // RESET
//
// LCD / Controller
//
#if ANY(VIKI2, miniVIKI)
#if EITHER(VIKI2, miniVIKI)
/**
* VIKI2 Has two groups of wires with...
*
@@ -85,11 +85,11 @@
* This configuration uses the following arrangement:
*
* ------ ------
* ENCB |10 9 | ENCA MISO |10 9 | SCK
* BLUE_LED | 8 7 | RED_LED ENCBTN | 8 7 | SDCS
* KILL 6 5 | BEEPER 6 5 | MOSI
* A0 | 4 3 | LCD_CS SDCD | 4 3 |
* GND | 2 1 | 5V GND | 2 1 | NC
* ENCB | 1 2 | ENCA MISO | 1 2 | SCK
* BLUE_LED | 3 4 | RED_LED ENCBTN | 3 4 | SDCS
* KILL 5 6 | BEEPER 5 6 | MOSI
* A0 | 7 8 | LCD_CS SDCD | 7 8 |
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
@@ -107,24 +107,24 @@
//
// VIKI2 12-wire lead
//
#define SD_DETECT_PIN EXP2_04_PIN // SDCD orange/white
#define BTN_EN1 EXP1_09_PIN // ENCA white
#define BTN_EN2 EXP1_10_PIN // ENCB green
#define BTN_ENC EXP2_08_PIN // ENCBTN purple
#define DOGLCD_A0 EXP1_04_PIN // A0 brown
#define DOGLCD_CS EXP1_03_PIN // LCS green/white
#define SD_DETECT_PIN EXP2_07_PIN // SDCD orange/white
#define BTN_EN1 EXP1_02_PIN // ENCA white
#define BTN_EN2 EXP1_01_PIN // ENCB green
#define BTN_ENC EXP2_03_PIN // ENCBTN purple
#define DOGLCD_A0 EXP1_07_PIN // A0 brown
#define DOGLCD_CS EXP1_08_PIN // LCS green/white
// EXP2_10_PIN gray MISO
// EXP2_05_PIN yellow MOSI
// EXP2_09_PIN orange SCK
// EXP2_01_PIN gray MISO
// EXP2_06_PIN yellow MOSI
// EXP2_02_PIN orange SCK
//#define SDSS EXP2_07_PIN // SDCS blue
//#define SDSS EXP2_04_PIN // SDCS blue
//
// VIKI2 4-wire lead
//
#define KILL_PIN EXP1_06_PIN // BTN blue
#define BEEPER_PIN EXP1_05_PIN // BUZZER green
#define STAT_LED_RED_PIN EXP1_07_PIN // RED-LED yellow
#define STAT_LED_BLUE_PIN EXP1_08_PIN // BLUE-LED white
#define KILL_PIN EXP1_05_PIN // BTN blue
#define BEEPER_PIN EXP1_06_PIN // BUZZER green
#define STAT_LED_RED_PIN EXP1_04_PIN // RED-LED yellow
#define STAT_LED_BLUE_PIN EXP1_03_PIN // BLUE-LED white
#endif

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS GEN L supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS GEN L supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS GEN L"
@@ -37,6 +37,12 @@
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
// Hotend, Hotend, Bed + Fan on D9
#if FET_ORDER_EEB
#define MOSFET_B_PIN 7
#define FAN_PIN 9
#endif
//
// CS Pins wired to avoid conflict with the LCD
// See https://www.thingiverse.com/asset:66604

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS GEN L V2 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS GEN L V2 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS GEN L V2"

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "MKS GEN L V2.1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "MKS GEN L V2.1 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "MKS GEN L V2.1"

View File

@@ -0,0 +1,86 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
/**
* Pxmalion Core i3 - https://github.com/Pxmalion
*/
#include "env_validate.h"
#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "Core i3"
#endif
//
// Servos
//
#define SERVO0_PIN 51
#define SERVO1_PIN -1
#define SERVO2_PIN -1
#define SERVO3_PIN -1
//
// Limit Switches
//
#define X_STOP_PIN 3
#define Y_STOP_PIN 2
#define Z_MIN_PIN 19
#define Z_MAX_PIN 18
// TODO: Filament Runout Sensor
#ifndef FIL_RUNOUT_PIN
#define FIL_RUNOUT_PIN -1
#endif
//
// Steppers
//
#define X_CS_PIN -1
#define Y_CS_PIN -1
#define Z_CS_PIN -1
#define E0_CS_PIN -1
#define E1_CS_PIN -1
//
// Heaters / Fans
//
#define FET_ORDER_EFB
#ifndef MOSFET_A_PIN
#define MOSFET_A_PIN 8
#endif
#ifndef MOSFET_B_PIN
#define MOSFET_B_PIN 7
#endif
#ifndef MOSFET_C_PIN
#define MOSFET_C_PIN 9
#endif
//
// Misc. Functions
//
#ifndef FILWIDTH_PIN
#define FILWIDTH_PIN -1 // Analog Input
#endif
#define PS_ON_PIN 11
#include "pins_RAMPS.h"

View File

@@ -78,6 +78,31 @@
#define SERVO3_PIN 4
#endif
//
// Foam Cutter requirements
//
#if ENABLED(FOAMCUTTER_XYUV)
#ifndef MOSFET_C_PIN
#define MOSFET_C_PIN -1
#endif
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN) && NUM_SERVOS < 2
#define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM
#endif
#ifndef Z_MIN_PIN
#define Z_MIN_PIN -1
#endif
#ifndef Z_MAX_PIN
#define Z_MAX_PIN -1
#endif
#ifndef I_STOP_PIN
#define I_STOP_PIN 18
#endif
#ifndef J_STOP_PIN
#define J_STOP_PIN 19
#endif
#endif
//
// Limit Switches
//
@@ -120,14 +145,14 @@
#define X_DIR_PIN 55
#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
#define X_CS_PIN AUX3_03_PIN
#define X_CS_PIN 53
#endif
#define Y_STEP_PIN 60
#define Y_DIR_PIN 61
#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
#define Y_CS_PIN AUX3_07_PIN
#define Y_CS_PIN 49
#endif
#ifndef Z_STEP_PIN
@@ -189,52 +214,35 @@
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card (SDSS) or 49 (SD_DETECT_PIN)
#endif
//
// Augmentation for auto-assigning RAMPS plugs
//
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
#if HAS_MULTI_HOTEND
#if TEMP_SENSOR_BED
#define IS_RAMPS_EEB
#else
#define IS_RAMPS_EEF
#endif
#elif TEMP_SENSOR_BED
#define IS_RAMPS_EFB
#else
#define IS_RAMPS_EFF
#endif
#endif
//
// Heaters / Fans
//
#ifndef MOSFET_A_PIN
#define MOSFET_A_PIN 10
#endif
#ifndef MOSFET_B_PIN
#define MOSFET_B_PIN 9
#endif
#ifndef MOSFET_C_PIN
#define MOSFET_C_PIN 8
#endif
#ifndef MOSFET_D_PIN
#define MOSFET_D_PIN -1
#endif
#ifndef RAMPS_D8_PIN
#define RAMPS_D8_PIN 8
#endif
#ifndef RAMPS_D9_PIN
#define RAMPS_D9_PIN 9
#endif
#ifndef RAMPS_D10_PIN
#define RAMPS_D10_PIN 10
#endif
#define HEATER_0_PIN RAMPS_D10_PIN
#define HEATER_0_PIN MOSFET_A_PIN
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
#define HEATER_BED_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
#define HEATER_1_PIN RAMPS_D9_PIN
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
#define HEATER_1_PIN RAMPS_D9_PIN
#define HEATER_BED_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
#define FAN1_PIN RAMPS_D8_PIN
#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
#define HEATER_BED_PIN RAMPS_D8_PIN
#if FET_ORDER_EFB // Hotend, Fan, Bed
#define HEATER_BED_PIN MOSFET_C_PIN
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
#define HEATER_1_PIN MOSFET_B_PIN
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
#define HEATER_1_PIN MOSFET_B_PIN
#define HEATER_BED_PIN MOSFET_C_PIN
#elif FET_ORDER_EFF // Hotend, Fan, Fan
#define FAN1_PIN MOSFET_C_PIN
#elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
#define HEATER_BED_PIN MOSFET_C_PIN
#if EITHER(HAS_MULTI_HOTEND, HEATERS_PARALLEL)
#define HEATER_1_PIN MOSFET_D_PIN
#else
@@ -243,14 +251,14 @@
#endif
#ifndef FAN_PIN
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
#define FAN_PIN RAMPS_D9_PIN
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
#define FAN_PIN RAMPS_D8_PIN
#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
#define FAN_PIN MOSFET_B_PIN
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
#define FAN_PIN MOSFET_C_PIN
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
#define FAN_PIN 4 // IO pin. Buffer needed
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
#define FAN_PIN RAMPS_D9_PIN
#define FAN_PIN MOSFET_B_PIN
#endif
#endif
@@ -258,7 +266,7 @@
// Misc. Functions
//
#ifndef SDSS
#define SDSS AUX3_03_PIN
#define SDSS AUX3_06_PIN
#endif
#define LED_PIN 13
@@ -293,9 +301,11 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
#if !NUM_SERVOS // Use servo connector if possible
#if NUM_SERVOS < 2 // Use servo connector if possible
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
#ifndef SPINDLE_LASER_PWM_PIN
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
#endif
#define SPINDLE_DIR_PIN 5
#elif HAS_FREE_AUX2_PINS
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
@@ -435,30 +445,59 @@
//
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#endif
#endif
//
// AUX3 : GND D52 D50 5V
// NC D53 D51 D49
#define AUX3_03_PIN 53
#define AUX3_04_PIN 52
#define AUX3_05_PIN 51
#define AUX3_06_PIN 50
#define AUX3_07_PIN 49
// AUX1 5V GND D2 D1
// 2 4 6 8
// 1 3 5 7
// 5V GND A3 A4
//
#define AUX1_05_PIN 57 // (A3)
#define AUX1_06_PIN 2
#define AUX1_07_PIN 58 // (A4)
#define AUX1_08_PIN 1
//
// AUX4 : D16 D17 D23 D25 D27 D29 D31 D33 D35 D37 D39 D41 D43 D45 D47 D32 GND 5V
// AUX2 GND A9 D40 D42 A11
// 2 4 6 8 10
// 1 3 5 7 9
// VCC A5 A10 D44 A12
//
#define AUX2_03_PIN 59 // (A5)
#define AUX2_04_PIN 63 // (A9)
#define AUX2_05_PIN 64 // (A10)
#define AUX2_06_PIN 40
#define AUX2_07_PIN 44
#define AUX2_08_PIN 42
#define AUX2_09_PIN 66 // (A12)
#define AUX2_10_PIN 65 // (A11)
//
// AUX3 GND D52 D50 5V
// 7 5 3 1
// 8 6 4 2
// NC D53 D51 D49
//
#define AUX3_02_PIN 49
#define AUX3_03_PIN 50
#define AUX3_04_PIN 51
#define AUX3_05_PIN 52
#define AUX3_06_PIN 53
//
// AUX4 5V GND D32 D47 D45 D43 D41 D39 D37 D35 D33 D31 D29 D27 D25 D23 D17 D16
//
#define AUX4_03_PIN 32
#define AUX4_04_PIN 47
#define AUX4_05_PIN 45
@@ -477,35 +516,69 @@
#define AUX4_18_PIN 16
/**
* LCD adapter. NOTE: These come in two variants. The socket keys can be
* LCD adapters come in different variants. The socket keys can be
* on either side, and may be backwards on some boards / displays.
* ------ ------
* D37 |10 9 | D35 (MISO) D50 |10 9 | D52 (SCK)
* D17 | 8 7 | D16 D31 | 8 7 | D53
* D23 6 5 D25 D33 6 5 D51 (MOSI)
* D27 | 4 3 | D29 D49 | 4 3 | D41
* GND | 2 1 | 5V GND | 2 1 | NC
* ------ ------
* EXP1 EXP2
*/
#ifndef EXP1_03_PIN
#define EXP1_03_PIN AUX4_13_PIN
#define EXP1_04_PIN AUX4_14_PIN
#define EXP1_05_PIN AUX4_15_PIN
#define EXP1_06_PIN AUX4_16_PIN
#define EXP1_07_PIN AUX4_18_PIN
#define EXP1_08_PIN AUX4_17_PIN
#define EXP1_09_PIN AUX4_10_PIN
#define EXP1_10_PIN AUX4_09_PIN
#ifndef EXP1_08_PIN
#define EXP1_03_PIN AUX4_17_PIN
#define EXP1_04_PIN AUX4_18_PIN
#define EXP1_05_PIN AUX4_16_PIN
#define EXP1_06_PIN AUX4_15_PIN
#define EXP1_07_PIN AUX4_14_PIN
#define EXP1_08_PIN AUX4_13_PIN
#define EXP2_01_PIN AUX3_03_PIN
#define EXP2_02_PIN AUX3_05_PIN
#define EXP2_04_PIN AUX3_06_PIN
#define EXP2_06_PIN AUX3_04_PIN
#define EXP2_07_PIN AUX3_02_PIN
#if ENABLED(G3D_PANEL)
/** Gadgets3D Smart Adapter
* ------ ------
* 4-11 | 1 2 | 4-12 (MISO) 3-03 | 1 2 | 3-05 (SCK)
* 4-17 | 3 4 | 4-18 4-10 | 3 4 | 3-06
* 4-16 5 6 | 4-15 4-09 5 6 | 3-04 (MOSI)
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
* (GND) 4-02 | 9 10 | 4-01 (5V) -- | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN AUX4_11_PIN
#define EXP1_02_PIN AUX4_12_PIN
#define EXP2_03_PIN AUX4_10_PIN
#define EXP2_05_PIN AUX4_09_PIN
#define EXP2_08_PIN AUX4_07_PIN
#else
/** Smart Adapter (c) RRD
* ------ ------
* 4-09 | 1 2 | 4-10 (MISO) 3-03 | 1 2 | 3-05 (SCK)
* 4-17 | 3 4 | 4-18 4-12 | 3 4 | 3-06
* 4-16 5 6 | 4-15 4-11 5 6 | 3-04 (MOSI)
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
* (GND) 3-07 | 9 10 | 3-01 (5V) (GND) 3-07 | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN AUX4_09_PIN
#define EXP1_02_PIN AUX4_10_PIN
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#define EXP2_03_PIN AUX4_11_PIN
#define EXP2_05_PIN AUX4_12_PIN
#define EXP2_08_PIN -1 // RESET
#else
#define EXP2_03_PIN AUX4_12_PIN
#define EXP2_05_PIN AUX4_11_PIN
#define EXP2_08_PIN AUX4_07_PIN
#endif
#endif
#define EXP2_03_PIN AUX4_07_PIN
#define EXP2_04_PIN AUX3_07_PIN
#define EXP2_05_PIN AUX3_05_PIN
#define EXP2_06_PIN AUX4_11_PIN
#define EXP2_07_PIN AUX3_03_PIN
#define EXP2_08_PIN AUX4_12_PIN
#define EXP2_09_PIN AUX3_04_PIN
#define EXP2_10_PIN AUX3_06_PIN
#endif
//////////////////////////
@@ -514,77 +587,81 @@
#if HAS_WIRED_LCD
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
//
// LCD Display output pins
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define LCD_PINS_RS EXP2_04_PIN // CS chip select /SS chip slave select
#define LCD_PINS_ENABLE EXP2_05_PIN // SID (MOSI)
#define LCD_PINS_D4 EXP2_09_PIN // SCK (CLK) clock
#define LCD_PINS_RS EXP2_07_PIN // CS chip select /SS chip slave select
#define LCD_PINS_ENABLE EXP2_06_PIN // SID (MOSI)
#define LCD_PINS_D4 EXP2_02_PIN // SCK (CLK) clock
#elif BOTH(IS_NEWPANEL, PANEL_ONE)
#define LCD_PINS_RS 40
#define LCD_PINS_ENABLE 42
#define LCD_PINS_D4 65
#define LCD_PINS_D5 66
#define LCD_PINS_D6 44
#define LCD_PINS_D7 64
#define LCD_PINS_RS AUX2_06_PIN
#define LCD_PINS_ENABLE AUX2_08_PIN
#define LCD_PINS_D4 AUX2_10_PIN
#define LCD_PINS_D5 AUX2_09_PIN
#define LCD_PINS_D6 AUX2_07_PIN
#define LCD_PINS_D7 AUX2_05_PIN
#elif ENABLED(TFTGLCD_PANEL_SPI)
#define TFTGLCD_CS EXP2_06_PIN
#define TFTGLCD_CS EXP2_05_PIN
#else
#if ENABLED(CR10_STOCKDISPLAY)
#define LCD_PINS_RS EXP1_04_PIN
#define LCD_PINS_ENABLE EXP1_03_PIN
#define LCD_PINS_D4 EXP1_05_PIN
#define LCD_PINS_RS EXP1_07_PIN
#define LCD_PINS_ENABLE EXP1_08_PIN
#define LCD_PINS_D4 EXP1_06_PIN
#if !IS_NEWPANEL
#define BEEPER_PIN EXP1_10_PIN
#define BEEPER_PIN EXP1_01_PIN
#endif
#elif ENABLED(ZONESTAR_LCD)
#error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. It plugs into AUX2 but GND and 5V need to be swapped. Comment out this line to continue."
#define LCD_PINS_RS 64
#define LCD_PINS_ENABLE 44
#define LCD_PINS_D4 63
#define LCD_PINS_D5 40
#define LCD_PINS_D6 42
#define LCD_PINS_D7 65
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. It plugs into AUX2 but GND and 5V need to be swapped. See 'pins_RAMPS.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
#define LCD_PINS_RS AUX2_05_PIN
#define LCD_PINS_ENABLE AUX2_07_PIN
#define LCD_PINS_D4 AUX2_04_PIN
#define LCD_PINS_D5 AUX2_06_PIN
#define LCD_PINS_D6 AUX2_08_PIN
#define LCD_PINS_D7 AUX2_10_PIN
#elif ENABLED(AZSMZ_12864)
// Pins only defined for RAMPS_SMART currently
#else
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
#define LCD_PINS_DC EXP1_05_PIN // Set as output on init
#define LCD_PINS_RS EXP1_04_PIN // Pull low for 1s to init
#define LCD_PINS_DC EXP1_06_PIN // Set as output on init
#define LCD_PINS_RS EXP1_07_PIN // Pull low for 1s to init
// DOGM SPI LCD Support
#define DOGLCD_A0 LCD_PINS_DC
#define DOGLCD_CS EXP1_07_PIN
#define DOGLCD_MOSI EXP1_08_PIN
#define DOGLCD_SCK EXP1_06_PIN
#define DOGLCD_CS EXP1_04_PIN
#define DOGLCD_MOSI EXP1_03_PIN
#define DOGLCD_SCK EXP1_05_PIN
#else
#define LCD_PINS_RS EXP1_07_PIN
#define LCD_PINS_ENABLE EXP1_08_PIN
#define LCD_PINS_D4 EXP1_06_PIN
#define LCD_PINS_D5 EXP1_05_PIN
#define LCD_PINS_D6 EXP1_04_PIN
#define LCD_PINS_RS EXP1_04_PIN
#define LCD_PINS_ENABLE EXP1_03_PIN
#define LCD_PINS_D4 EXP1_05_PIN
#define LCD_PINS_D5 EXP1_06_PIN
#define LCD_PINS_D6 EXP1_07_PIN
#endif
#define LCD_PINS_D7 EXP1_03_PIN
#define LCD_PINS_D7 EXP1_08_PIN
#if !IS_NEWPANEL
#define BEEPER_PIN EXP2_06_PIN
#define BEEPER_PIN EXP2_05_PIN
#endif
#endif
@@ -593,9 +670,9 @@
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK_PIN 38
//#define SHIFT_LD_PIN 42
//#define SHIFT_OUT_PIN 40
//#define SHIFT_EN_PIN EXP1_08_PIN
//#define SHIFT_LD_PIN AUX2_08_PIN
//#define SHIFT_OUT_PIN AUX2_06_PIN
//#define SHIFT_EN_PIN EXP1_03_PIN
#endif
#endif
@@ -611,22 +688,22 @@
#if IS_RRD_SC
#define BEEPER_PIN EXP1_10_PIN
#define BEEPER_PIN EXP1_01_PIN
#if ENABLED(CR10_STOCKDISPLAY)
#define BTN_EN1 EXP1_08_PIN
#define BTN_EN2 EXP1_06_PIN
#define BTN_EN1 EXP1_03_PIN
#define BTN_EN2 EXP1_05_PIN
#else
#define BTN_EN1 EXP2_08_PIN
#define BTN_EN2 EXP2_06_PIN
#define BTN_EN1 EXP2_03_PIN
#define BTN_EN2 EXP2_05_PIN
#endif
#define BTN_ENC EXP1_09_PIN
#define BTN_ENC EXP1_02_PIN
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#endif
#ifndef KILL_PIN
#define KILL_PIN EXP2_03_PIN
#define KILL_PIN EXP2_08_PIN
#endif
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
@@ -635,10 +712,10 @@
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define BTN_EN1 64
#define BTN_EN2 59
#define BTN_ENC 63
#define SD_DETECT_PIN 42
#define BTN_EN1 AUX2_05_PIN
#define BTN_EN2 AUX2_03_PIN
#define BTN_ENC AUX2_04_PIN
#define SD_DETECT_PIN AUX2_08_PIN
#elif ENABLED(LCD_I2C_PANELOLU2)
@@ -646,119 +723,118 @@
#define BTN_EN2 AUX4_06_PIN
#define BTN_ENC AUX4_03_PIN
#define LCD_SDSS SDSS
#define KILL_PIN EXP2_03_PIN
#define KILL_PIN EXP2_08_PIN
#elif ENABLED(LCD_I2C_VIKI)
#define BTN_EN1 40 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
#define BTN_EN2 42
#define BTN_EN1 AUX2_06_PIN // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains AUX2-06 and AUX2-08.
#define BTN_EN2 AUX2_08_PIN
#define BTN_ENC -1
#define LCD_SDSS SDSS
#define SD_DETECT_PIN EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#elif ANY(VIKI2, miniVIKI)
#elif EITHER(VIKI2, miniVIKI)
#define DOGLCD_CS 45
#define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
#define DOGLCD_CS AUX4_05_PIN
#define DOGLCD_A0 AUX2_07_PIN
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#define BEEPER_PIN EXP2_06_PIN
#define STAT_LED_RED_PIN 32
#define STAT_LED_BLUE_PIN EXP1_09_PIN
#define BEEPER_PIN EXP2_05_PIN
#define STAT_LED_RED_PIN AUX4_03_PIN
#define STAT_LED_BLUE_PIN EXP1_02_PIN
#define BTN_EN1 22
#define BTN_EN2 7
#define BTN_ENC 39
#define BTN_ENC AUX4_08_PIN
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
#define KILL_PIN EXP2_08_PIN
#define KILL_PIN EXP2_03_PIN
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define DOGLCD_CS EXP1_03_PIN
#define DOGLCD_A0 EXP1_04_PIN
#define DOGLCD_CS EXP1_08_PIN
#define DOGLCD_A0 EXP1_07_PIN
#define BEEPER_PIN EXP1_06_PIN
#define LCD_BACKLIGHT_PIN EXP2_06_PIN
#define BEEPER_PIN EXP1_05_PIN
#define LCD_BACKLIGHT_PIN EXP2_05_PIN
#define BTN_EN1 EXP1_09_PIN
#define BTN_EN2 EXP1_10_PIN
#define BTN_ENC EXP2_08_PIN
#define BTN_EN1 EXP1_02_PIN
#define BTN_EN2 EXP1_01_PIN
#define BTN_ENC EXP2_03_PIN
#define LCD_SDSS SDSS
#define SD_DETECT_PIN EXP2_04_PIN
#define KILL_PIN EXP2_03_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#define KILL_PIN EXP2_08_PIN
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
#define BEEPER_PIN EXP1_10_PIN
#define BTN_ENC EXP1_09_PIN
#define BEEPER_PIN EXP1_01_PIN
#define BTN_ENC EXP1_02_PIN
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#endif
#ifndef KILL_PIN
#define KILL_PIN EXP2_03_PIN
#define KILL_PIN EXP2_08_PIN
#endif
#if ENABLED(MKS_MINI_12864)
#define DOGLCD_A0 EXP1_04_PIN
#define DOGLCD_CS EXP1_05_PIN
#define DOGLCD_A0 EXP1_07_PIN
#define DOGLCD_CS EXP1_06_PIN
// not connected to a pin
#define LCD_BACKLIGHT_PIN -1 // 65 (MKS mini12864 can't adjust backlight by software!)
#define BTN_EN1 EXP2_08_PIN
#define BTN_EN2 EXP2_06_PIN
#define BTN_EN1 EXP2_03_PIN
#define BTN_EN2 EXP2_05_PIN
#elif ENABLED(FYSETC_MINI_12864)
// From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
// From https://wiki.fysetc.com/Mini12864_Panel/
#define DOGLCD_A0 EXP1_07_PIN
#define DOGLCD_CS EXP1_08_PIN
#define DOGLCD_A0 EXP1_04_PIN
#define DOGLCD_CS EXP1_03_PIN
#define BTN_EN1 EXP2_06_PIN
#define BTN_EN2 EXP2_08_PIN
#define BTN_EN1 EXP2_05_PIN
#define BTN_EN2 EXP2_03_PIN
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
// results in LCD soft SPI mode 3, SD soft SPI mode 0
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
#define RGB_LED_R_PIN EXP1_05_PIN
#define RGB_LED_R_PIN EXP1_06_PIN
#endif
#ifndef RGB_LED_G_PIN
#define RGB_LED_G_PIN EXP1_04_PIN
#define RGB_LED_G_PIN EXP1_07_PIN
#endif
#ifndef RGB_LED_B_PIN
#define RGB_LED_B_PIN EXP1_03_PIN
#define RGB_LED_B_PIN EXP1_08_PIN
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN EXP1_05_PIN
#define NEOPIXEL_PIN EXP1_06_PIN
#endif
#endif
#elif ENABLED(MINIPANEL)
#define BEEPER_PIN 42
// not connected to a pin
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
#define BEEPER_PIN AUX2_08_PIN
#define LCD_BACKLIGHT_PIN AUX2_10_PIN
#define DOGLCD_A0 44
#define DOGLCD_CS 66
#define DOGLCD_A0 AUX2_07_PIN
#define DOGLCD_CS AUX2_09_PIN
#define BTN_EN1 40
#define BTN_EN2 63
#define BTN_ENC 59
#define BTN_EN1 AUX2_06_PIN
#define BTN_EN2 AUX2_04_PIN
#define BTN_ENC AUX2_03_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#define KILL_PIN 64
#define SD_DETECT_PIN AUX3_02_PIN
#define KILL_PIN AUX2_05_PIN
#elif ENABLED(ZONESTAR_LCD)
@@ -770,32 +846,31 @@
#elif ENABLED(G3D_PANEL)
#define BEEPER_PIN EXP2_06_PIN
#define BEEPER_PIN EXP1_01_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#define KILL_PIN EXP2_03_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#define KILL_PIN EXP2_08_PIN
#define BTN_EN1 EXP1_10_PIN
#define BTN_EN2 EXP1_09_PIN
#define BTN_ENC EXP2_08_PIN
#define BTN_EN1 EXP2_05_PIN
#define BTN_EN2 EXP2_03_PIN
#define BTN_ENC EXP1_02_PIN
#elif IS_TFTGLCD_PANEL
#define SD_DETECT_PIN EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#else
#define BEEPER_PIN EXP2_06_PIN
#define BEEPER_PIN EXP2_05_PIN
// Buttons are directly attached to AUX-2
#if ENABLED(PANEL_ONE)
#define BTN_EN1 59 // AUX2 PIN 3
#define BTN_EN2 63 // AUX2 PIN 4
#define BTN_ENC EXP2_04_PIN
#if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2
#define BTN_EN1 AUX2_03_PIN
#define BTN_EN2 AUX2_04_PIN
#define BTN_ENC AUX3_02_PIN
#else
#define BTN_EN1 EXP1_10_PIN
#define BTN_EN2 EXP1_09_PIN
#define BTN_ENC EXP2_08_PIN
#define BTN_EN1 EXP1_01_PIN
#define BTN_EN2 EXP1_02_PIN
#define BTN_ENC EXP2_03_PIN
#endif
#endif
@@ -804,60 +879,63 @@
#endif // HAS_WIRED_LCD
#if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS
#define SHIFT_OUT_PIN 40
#define SHIFT_CLK_PIN 44
#define SHIFT_LD_PIN 42
#define SHIFT_OUT_PIN AUX2_06_PIN
#define SHIFT_CLK_PIN AUX2_07_PIN
#define SHIFT_LD_PIN AUX2_08_PIN
#ifndef BTN_EN1
#define BTN_EN1 64
#define BTN_EN1 AUX2_05_PIN
#endif
#ifndef BTN_EN2
#define BTN_EN2 59
#define BTN_EN2 AUX2_03_PIN
#endif
#ifndef BTN_ENC
#define BTN_ENC 63
#define BTN_ENC AUX2_04_PIN
#endif
#endif
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_RAMPS.h' for details. Comment out this line to continue."
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_RAMPS.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
/**
* FYSETC TFT-81050 display pinout
*
* Board Display
* ----- -----
* (SCK) D52 | 1 2 | D50 (MISO) MISO | 1 2 | SCK
* (SD_CS) D53 | 3 4 | D33 (BNT_EN2) (BNT_EN2) MOD_RESET | 3 4 | SD_CS
* (MOSI) D51 | 5 6 D31 (BNT_EN1) (BNT_EN1) LCD_CS | 5 6 MOSI
* RESET | 7 8 | D49 (SD_DET) SD_DET | 7 8 | RESET
* NC | 9 10| GND GND | 9 10| 5V
* ----- -----
* EXP2 EXP1
* Board Display
* ------ ------
* (MISO) 50 | 1 2 | 52 (SCK) 5V |10 9 | GND
* (LCD_CS) 33 | 3 4 | 53 (SD_CS) RESET | 8 7 | (SD_DET)
* 31 5 6 | 51 (MOSI) (MOSI) 6 5 | (LCD_CS)
* (SD_DET) 49 | 7 8 | RESET (SD_CS) | 4 3 | (MOD_RESET)
* GND | 9 10 | -- (SCK) | 2 1 | (MISO)
* ------ ------
* EXP2 EXP1
*
* Needs custom cable:
*
* Board Adapter Display
* _________
* EXP2-1 ----------- EXP1-10
* EXP2-2 ----------- EXP1-9
* EXP2-4 ----------- EXP1-8
* EXP2-4 ----------- EXP1-7
* EXP2-3 ----------- EXP1-6
* EXP2-6 ----------- EXP1-5
* EXP2-7 ----------- EXP1-4
* EXP2-8 ----------- EXP1-3
* EXP2-1 ----------- EXP1-2
* EXP1-10 ---------- EXP1-1
* ----------------------------------
* EXP2-1 <--diode--- EXP1-1 MISO
* EXP2-2 ----------- EXP1-2 SCK
* EXP2-4 ----------- EXP1-3 MOD_RST
* EXP2-4 ----------- EXP1-4 SD_CS
* EXP2-3 ----------- EXP1-5 LCD_CS
* EXP2-6 ----------- EXP1-6 MOSI
* EXP2-7 ----------- EXP1-7 SD DET
* EXP2-8 ----------- EXP1-8 RESET
* EXP2-1 ----------- EXP1-9 MISO->GND
* EXP1-10 ---------- EXP1-10 5V
*
* NOTE: The MISO pin should not get a 5V signal.
* To fix, insert a 1N4148 diode in the MISO line.
*/
#define BEEPER_PIN EXP1_10_PIN
#define BEEPER_PIN EXP1_01_PIN
#define SD_DETECT_PIN EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#define CLCD_MOD_RESET EXP2_05_PIN
#define CLCD_SPI_CS EXP2_03_PIN
#define CLCD_MOD_RESET EXP2_08_PIN
#define CLCD_SPI_CS EXP2_06_PIN
#endif // TOUCH_UI_FTDI_EVE && LCD_FYSETC_TFT81050

View File

@@ -22,7 +22,7 @@
#pragma once
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Creality3D RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue."
#error "Creality RAMPS supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Creality3D RAMPS"
@@ -30,9 +30,8 @@
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#define MOSFET_B_PIN 7 // For HEATER_1_PIN ("EEF" or "EEB")
#define FAN_PIN 9
#define FIL_RUNOUT_PIN 2
#if NUM_RUNOUT_SENSORS >= 2
@@ -40,7 +39,12 @@
#endif
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN 49 // Always define onboard SD detect
#if SD_CONNECTION_IS(ONBOARD)
//#define HAS_ONBOARD_SD_DETECT // If the SD_DETECT_PIN is wired up
#endif
#if ENABLED(HAS_ONBOARD_SD_DETECT) || !SD_CONNECTION_IS(ONBOARD)
#define SD_DETECT_PIN 49
#endif
#endif
#ifndef PS_ON_PIN

View File

@@ -1,40 +0,0 @@
/**
* 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 <http://www.gnu.org/licenses/>.
*
*/
#pragma once
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Dagoma3D F5 RAMPS supports only 2 hotends / E-steppers. Comment out this line to continue."
#endif
#define BOARD_INFO_NAME "Dagoma3D F5 RAMPS"
#define X_STOP_PIN 2
#define Y_STOP_PIN 3
#define Z_STOP_PIN 15
#define FIL_RUNOUT_PIN 39
#define ORIG_E0_AUTO_FAN_PIN 7
//
// Import RAMPS 1.4 pins
//
#include "pins_RAMPS.h"

View File

@@ -21,8 +21,8 @@
*/
#pragma once
#if HOTENDS > 1 || E_STEPPERS > 1
#error "Ender-4 only supports one hotend / E-stepper. Comment out this line to continue."
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
#error "Ender-4 only supports 1 hotend / E stepper."
#endif
#define BOARD_INFO_NAME "Ender-4"
@@ -36,6 +36,6 @@
#if ENABLED(CASE_LIGHT_ENABLE)
#undef FAN_PIN
#ifndef CASE_LIGHT_PIN
#define CASE_LIGHT_PIN RAMPS_D9_PIN
#define CASE_LIGHT_PIN MOSFET_B_PIN
#endif
#endif

View File

@@ -23,10 +23,6 @@
/**
* Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
* The differences to the RAMPS v1.4 are:
* - Swap heater E0 with E1
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
* - Change pins 16->42, 17->44 and 29->53 used for display.
*
* Applies to the following boards:
*
@@ -35,14 +31,19 @@
* RAMPS_PLUS_EFF (Extruder, Fan, Fan)
* RAMPS_PLUS_EEF (Extruder, Extruder, Fan)
* RAMPS_PLUS_SF (Spindle, Controller Fan)
*
* Differences from RAMPS v1.4:
* - Swap heater E0 with E1
* - Swap pins 8 and 10. Bed/Fan/Hotend as labeled on the board are on pins 8/9/10.
* - Change EXP1/2 pins
*/
#include "env_validate.h"
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"
#define RAMPS_D8_PIN 10
#define RAMPS_D10_PIN 8
#define MOSFET_A_PIN 8
#define MOSFET_C_PIN 10
//
// Steppers
@@ -62,15 +63,32 @@
#define E1_ENABLE_PIN 24
#define E1_CS_PIN -1
#include "pins_RAMPS.h"
/** 3DYMY Expansion Headers
* ------ ------
* 37 | 1 2 | 35 (MISO) 50 | 1 2 | 52 (SCK)
* 31 | 3 4 | 41 29 | 3 4 | 53
* 33 5 6 | 23 25 5 6 | 51 (MOSI)
* 42 | 7 8 | 44 49 | 7 8 | 27
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN 37
#define EXP1_02_PIN 35
#define EXP1_03_PIN 31
#define EXP1_04_PIN 41
#define EXP1_05_PIN 33
#define EXP1_06_PIN 23
#define EXP1_07_PIN 42
#define EXP1_08_PIN 44
#if IS_ULTRA_LCD && NONE(REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(IS_NEWPANEL, PANEL_ONE)
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
#undef LCD_PINS_RS
#define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
#undef LCD_PINS_ENABLE
#define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
#endif
#undef LCD_PINS_D7
#define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
#endif
#define EXP2_01_PIN 50
#define EXP2_02_PIN 52
#define EXP2_03_PIN 29
#define EXP2_04_PIN 53
#define EXP2_05_PIN 25
#define EXP2_06_PIN 51
#define EXP2_07_PIN 49
#define EXP2_08_PIN 27
#include "pins_RAMPS.h"

View File

@@ -233,14 +233,16 @@
//
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 29 // E2_STEP_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 28 // E2_DIR_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 29 // E2_STEP_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 28 // E2_DIR_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 39 // E2_ENABLE_PIN
#endif
#endif
//////////////////////////

View File

@@ -51,8 +51,8 @@
//
// MOSFET changes
//
#define RAMPS_D9_PIN 8 // FAN (by default)
#define RAMPS_D10_PIN 9 // EXTRUDER 1
#define MOSFET_A_PIN 9 // EXTRUDER 1
#define MOSFET_B_PIN 8 // FAN (by default)
#define MOSFET_D_PIN 12 // EXTRUDER 2 or FAN
#include "pins_RAMPS.h"

View File

@@ -27,7 +27,7 @@
#define BOARD_INFO_NAME "RigidBoard V2"
#include "pins_RIGIDBOARD.h"
#include "pins_RIGIDBOARD.h" // ... RAMPS
//
// Steppers

View File

@@ -30,9 +30,9 @@
#define DEFAULT_MACHINE_NAME "Rapide Lite 200"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "RL200v1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#elif NUM_Z_STEPPER_DRIVERS != 2
#error "RL200 uses dual Z stepper motors. Set NUM_Z_STEPPER_DRIVERS to 2 or comment out this line to continue."
#error "RL200v1 supports up to 2 hotends / E steppers."
#elif NUM_Z_STEPPERS != 2
#error "RL200 uses dual Z stepper motors. Z_DRIVER_TYPE and Z2_DRIVER_TYPE must be defined."
#elif !(AXIS_DRIVER_TYPE_X(DRV8825) && AXIS_DRIVER_TYPE_Y(DRV8825) && AXIS_DRIVER_TYPE_Z(DRV8825) && AXIS_DRIVER_TYPE_Z2(DRV8825) && AXIS_DRIVER_TYPE_E0(DRV8825))
#error "You must set ([XYZ]|Z2|E0)_DRIVER_TYPE to DRV8825 in Configuration.h for RL200."
#endif

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 3 || E_STEPPERS > 3
#error "RUMBA supports up to 3 hotends / E-steppers. Comment out this line to continue."
#error "RUMBA supports up to 3 hotends / E steppers."
#endif
#ifndef BOARD_INFO_NAME
@@ -220,7 +220,7 @@
#define RGB_LED_B_PIN 40
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
#define NEOPIXEL_PIN 25
#define NEOPIXEL_PIN 38
#endif
#else

View File

@@ -26,7 +26,7 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Sainsmart 2-in-1 supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Sainsmart 2-in-1 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Sainsmart"
@@ -34,9 +34,9 @@
//
// Heaters / Fans
//
#define RAMPS_D10_PIN 9 // E
#define RAMPS_D9_PIN 7 // F PART FAN in front of board next to Extruder heat
// RAMPS_D8_PIN 8 // B
#define MOSFET_D_PIN 10 // F / E
#define MOSFET_A_PIN 9 // E
#define MOSFET_B_PIN 7 // F PART FAN in front of board next to Extruder heat
// MOSFET_C_PIN 8 // B
#define MOSFET_D_PIN 10 // F / E
#include "pins_RAMPS.h"

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Tenlog supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "Tenlog supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Tenlog D3 Hero"
@@ -148,6 +148,7 @@
//
// Misc. Functions
//
//#define PS_ON_PIN 40 // The M80/M81 PSU pin for boards v2.1-2.3
//#define CASE_LIGHT_PIN 5
#define SDSS 53
//#ifndef LED_PIN

View File

@@ -27,8 +27,7 @@
#define BOARD_INFO_NAME "Anycubic RAMPS 1.3"
#define IS_RAMPS_EFB
#define RAMPS_D9_PIN 44
#define MOSFET_B_PIN 44
#define E1_STEP_PIN -1
#define E1_DIR_PIN -1
@@ -41,4 +40,4 @@
#define E0_AUTO_FAN_PIN 9
#endif
#include "pins_RAMPS_13.h"
#include "pins_RAMPS_13.h" // ... RAMPS

View File

@@ -16,7 +16,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
@@ -38,60 +38,78 @@
#endif
//
// Custom Limit Switches
// PWM FETS
//
#if EITHER(FET_ORDER_EEF, FET_ORDER_EEB)
#define MOSFET_B_PIN 45 // HEATER1
#elif FET_ORDER_EFB
#define MOSFET_B_PIN 9 // FAN0
#else
#define MOSFET_B_PIN 7 // FAN1
#endif
#if FET_ORDER_EEB
#define MOSFET_C_PIN 8 // BED
#elif FET_ORDER_EFB
#if DISABLED(ANYCUBIC_LCD_CHIRON)
#define MOSFET_C_PIN 8
#else
#define MOSFET_C_PIN 45
#endif
#else // EEF, EFF
#define MOSFET_C_PIN 9
#endif
#if FET_ORDER_EEB
#define FAN_PIN 9 // Override pin 4 in pins_RAMPS.h
#endif
//
// Heaters / Fans
//
#if ANY(FET_ORDER_EEF, FET_ORDER_EEB, FET_ORDER_EFB)
#define FAN1_PIN 7
#endif
#define FAN2_PIN 44
#ifndef E0_AUTO_FAN_PIN
#define E0_AUTO_FAN_PIN 44 // Used in Anycubic Kossel example config
#endif
#if ENABLED(ANYCUBIC_LCD_I3MEGA)
#define CONTROLLER_FAN_PIN 7
#endif
//
// AnyCubic standard pin mappings
//
// On most printers, endstops are NOT all wired to the appropriate pins on the Trigorilla board.
// For instance, on a Chiron, Y axis goes to an aux connector.
// There are also other things that have been wired in creative ways.
// To enable PIN definitions for a specific printer model, #define the appropriate symbol after
// MOTHERBOARD in Configuration.h
//
// Limit Switches
//
//#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
#if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
#define X_MAX_PIN 43
#define Y_MIN_PIN 19
#endif
// Labeled pins
#define TG_HEATER_BED_PIN 8
#define TG_HEATER_0_PIN 10
#define TG_HEATER_1_PIN 45 // Anycubic Kossel: Unused
#define TG_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
#define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
#define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
#define CONTROLLER_FAN_PIN TG_FAN1_PIN
#define FIL_RUNOUT_PIN 19
#define BEEPER_PIN 31
#define SDSS 53
#define LED_PIN 13
#define SD_DETECT_PIN 49
// Remap MOSFET pins to common usages:
#define RAMPS_D10_PIN TG_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
#if HOTENDS > 1 // EEF and EEB
#define RAMPS_D9_PIN TG_HEATER_1_PIN
#if !TEMP_SENSOR_BED
// EEF
#define RAMPS_D8_PIN TG_FAN0_PIN
#else
// EEB
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
#define FAN_PIN TG_FAN0_PIN // Override pin 4 in pins_RAMPS.h
#define Y_STOP_PIN 19
#elif EITHER(ANYCUBIC_LCD_CHIRON, ANYCUBIC_LCD_I3MEGA)
#define Y_STOP_PIN 42
#define Z2_MIN_PIN 43
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 2
#endif
#elif TEMP_SENSOR_BED
// EFB (Anycubic Kossel default)
#define RAMPS_D9_PIN TG_FAN0_PIN
#define RAMPS_D8_PIN TG_HEATER_BED_PIN
#else
// EFF
#define RAMPS_D9_PIN TG_FAN1_PIN
#define RAMPS_D8_PIN TG_FAN0_PIN
#endif
#if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
#define FAN1_PIN TG_FAN1_PIN
#endif
#define FAN2_PIN TG_FAN2_PIN
#ifdef POWER_OUTAGE_TEST
#define OUTAGETEST_PIN 79
#define OUTAGECON_PIN 58
#ifndef FIL_RUNOUT_PIN
#if ENABLED(ANYCUBIC_LCD_CHIRON)
#define FIL_RUNOUT_PIN 33
#else
#define FIL_RUNOUT_PIN 19
#endif
#endif
#define BEEPER_PIN 31
#define SD_DETECT_PIN 49
#endif
#include "pins_RAMPS.h"
@@ -100,17 +118,17 @@
// AnyCubic made the following changes to 1.1.0-RC8
// If these are appropriate for your LCD let us know.
//
#if 0 && HAS_SPI_LCD
#if 0 && HAS_WIRED_LCD
// LCD Display output pins
#if BOTH(NEWPANEL, PANEL_ONE)
#if BOTH(IS_NEWPANEL, PANEL_ONE)
#undef LCD_PINS_D6
#define LCD_PINS_D6 57
#endif
// LCD Display input pins
#if ENABLED(NEWPANEL)
#if ANY(VIKI2, miniVIKI)
#if IS_NEWPANEL
#if EITHER(VIKI2, miniVIKI)
#undef DOGLCD_A0
#define DOGLCD_A0 23
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
@@ -126,4 +144,4 @@
#define DOGLCD_A0 42
#endif
#endif // HAS_SPI_LCD
#endif // HAS_WIRED_LCD

View File

@@ -137,4 +137,4 @@
#define DOGLCD_A0 42
#endif
#endif // HAS_SPI_LCD
#endif // HAS_SPI_LCD

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 2 || E_STEPPERS > 2
#error "TRONXY-V3-1.0 supports only 2 hotends/E-steppers. Comment out this line to continue."
#error "TRONXY-V3-1.0 supports up to 2 hotends/E steppers."
#endif
#define BOARD_INFO_NAME "TRONXY-V3-1.0"

View File

@@ -24,7 +24,7 @@
#include "env_validate.h"
#if HOTENDS > 5 || E_STEPPERS > 5
#error "TTOSCAR supports up to 5 hotends / E-steppers. Comment out this line to continue."
#error "TTOSCAR supports up to 5 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "TT OSCAR"
@@ -226,7 +226,7 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE) && !PIN_EXISTS(SPINDLE_LASER_ENA)
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
#if !NUM_SERVOS // Prefer the servo connector
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
@@ -252,15 +252,17 @@
//
// Průša i3 MK2 Multiplexer Support
//
//#ifndef E_MUX0_PIN
// #define E_MUX0_PIN 58 // Y_CS_PIN
//#endif
//#ifndef E_MUX1_PIN
// #define E_MUX1_PIN 53 // Z_CS_PIN
//#endif
//#ifndef E_MUX2_PIN
// #define E_MUX2_PIN 49 // En_CS_PIN
//#endif
#if 0 && HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 58 // Y_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 53 // Z_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 49 // En_CS_PIN
#endif
#endif
//////////////////////////
// LCDs and Controllers //
@@ -402,7 +404,6 @@
#define DOGLCD_CS 45
#define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
#define BEEPER_PIN 33
#define STAT_LED_RED_PIN 32
@@ -416,6 +417,8 @@
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
//#define KILL_PIN 31
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#define DOGLCD_CS 29
@@ -437,13 +440,6 @@
#define DOGLCD_A0 27
#define DOGLCD_CS 25
// GLCD features
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BEEPER_PIN 37
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
@@ -455,6 +451,9 @@
#define SD_DETECT_PIN 49
//#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#elif ENABLED(MINIPANEL)
#define BEEPER_PIN 42
@@ -464,13 +463,6 @@
#define DOGLCD_A0 44
#define DOGLCD_CS 66
// GLCD features
//#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
#define BTN_EN1 40
#define BTN_EN2 63
#define BTN_ENC 59
@@ -479,6 +471,9 @@
#define SD_DETECT_PIN 49
//#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#else
// Beeper on AUX-4

View File

@@ -163,7 +163,7 @@
//
// LCD / Controller
//
#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
#if EITHER(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
#define LCD_PINS_RS 24
#define LCD_PINS_ENABLE 22
@@ -172,7 +172,7 @@
#define LCD_PINS_D6 32
#define LCD_PINS_D7 30
#elif BOTH(BOARD_REV_1_5, IS_ULTRA_LCD)
#elif BOTH(BOARD_REV_1_5, HAS_WIRED_LCD)
#define BEEPER_PIN 18

View File

@@ -28,7 +28,7 @@
#define BOARD_INFO_NAME "VORON Design v2"
#define RAMPS_D8_PIN 11
#define MOSFET_C_PIN 11
#include "pins_RAMPS.h"

View File

@@ -26,7 +26,7 @@
* V2 and V3 Boards only differ in USB controller, nothing affecting the pins.
*/
#include "pins_MKS_GEN_13.h"
#include "pins_MKS_GEN_13.h" // ... RAMPS
#define ZRIB_V20_D6_PIN 6 // Fan
#define ZRIB_V20_D9_PIN 9 // Fan2

View File

@@ -26,17 +26,17 @@
*/
#if HOTENDS > 2 || E_STEPPERS > 2
#error "ZRIB V5.2 only supports up to 2 hotends / E-steppers. Comment out this line to continue."
#error "ZRIB V5.2 supports up to 2 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "ZRIB V5.2"
#define MKS_BASE_VERSION 14
#define IS_RAMPS_EFB
//
// Heaters / Fans
//
#define HEATER_1_PIN 7
#define FAN_PIN 9 // PH6 ** Pin18 ** PWM9
#define FAN1_PIN 6
@@ -46,115 +46,114 @@
#define E2_STEP_PIN 4
#define E2_DIR_PIN 5
#define E2_ENABLE_PIN 22
#define HEATER_1_PIN 7
#include "pins_MKS_BASE_common.h"
#include "pins_MKS_BASE_common.h" // ... RAMPS
/*
Available connectors on MKS BASE v1.4 (Basically same as ZRIB V5.2)
=======
| GND |
|-----| E0
| 10 | (10) PB4 ** Pin23 ** PWM10
|-----|
| GND |
|-----| E1
| 7 | ( 7) PH4 ** Pin16 ** PWM7
|-----|
| GND |
|-----| FAN
| 9 | ( 9) PH6 ** Pin18 ** PWM9
=======
=======
| GND |
|-----| Heated Bed
| 8 | ( 8) PH5 ** Pin17 ** PWM8
=======
==========
| 12-24V |
|--------| Power
| GND |
==========
XS3 Connector
=================
| 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
|----|-----|----|
| 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
=================
Servos Connector
=================
| 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
|----|-----|----|
| 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
=================
ICSP
=================
| 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
|----|----|-----|
| 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO
================= (52) PB1 ** Pin20 ** SPI_SCK
XS6/AUX-1 Connector
======================
| 5V | GND | NC | 20 | (20) PD1 ** Pin44 ** I2C_SDA
|----|-----|----|----|
| 50 | 51 | 52 | 21 | (50) PB3 ** Pin22 ** SPI_MISO
====================== (51) PB2 ** Pin21 ** SPI_MOSI
(52) PB1 ** Pin20 ** SPI_SCK
(21) PD0 ** Pin43 ** I2C_SCL
Temperature
==================================
| GND | 69 | GND | 68 | GND | 67 |
==================================
(69) PK7 ** Pin82 ** A15
(68) PK6 ** Pin83 ** A14
(67) PK5 ** Pin84 ** A13
Limit Switches
============
| 2 | GND | X+ ( 2) PE4 ** Pin6 ** PWM2
|----|-----|
| 3 | GND | X- ( 3) PE5 ** Pin7 ** PWM3
|----|-----|
| 15 | GND | Y+ (15) PJ0 ** Pin63 ** USART3_RX
|----|-----|
| 14 | GND | Y- (14) PJ1 ** Pin64 ** USART3_TX
|----|-----|
| 19 | GND | Z+ (19) PD2 ** Pin45 ** USART1_RX
|----|-----|
| 18 | GND | Z- (18) PD3 ** Pin46 ** USART1_TX
============
EXP1
============
| 37 | 35 | (37) PC0 ** Pin53 ** D37
|-----|----| (35) PC2 ** Pin55 ** D35
| 17 | 16 | (17) PH0 ** Pin12 ** USART2_RX
|-----|----| (16) PH1 ** Pin13 ** USART2_TX
| 23 | 25 | (23) PA1 ** Pin77 ** D23
|-----|----| (25) PA3 ** Pin75 ** D25
| 27 | 29 | (27) PA5 ** Pin73 ** D27
|-----|----| (29) PA7 ** Pin71 ** D29
| GND | 5V |
============
EXP2
============
| 50 | 52 | (50) PB3 ** Pin22 ** SPI_MISO
|-----|----| (52) PB1 ** Pin20 ** SPI_SCK
| 31 | 53 | (31) PC6 ** Pin59 ** D31
|-----|----| (53) PB0 ** Pin19 ** SPI_SS
| 33 | 51 | (33) PC4 ** Pin57 ** D33
|-----|----| (51) PB2 ** Pin21 ** SPI_MOSI
| 49 | 41 | (49) PL0 ** Pin35 ** D49
|-----|----| (41) PG0 ** Pin51 ** D41
| GND | NC |
============
*/
/**
* Available connectors on MKS BASE v1.4 (Basically same as ZRIB V5.2)
*
* =======
* | GND |
* |-----| E0
* | 10 | (10) PB4 ** Pin23 ** PWM10
* |-----|
* | GND |
* |-----| E1
* | 7 | ( 7) PH4 ** Pin16 ** PWM7
* |-----|
* | GND |
* |-----| FAN
* | 9 | ( 9) PH6 ** Pin18 ** PWM9
* =======
*
* =======
* | GND |
* |-----| Heated Bed
* | 8 | ( 8) PH5 ** Pin17 ** PWM8
* =======
*
* ==========
* | 12-24V |
* |--------| Power
* | GND |
* ==========
*
* XS3 Connector
* =================
* | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
* |----|-----|----|
* | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
* =================
*
* Servos Connector
* =================
* | 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
* |----|-----|----|
* | 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
* =================
*
* ICSP
* =================
* | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
* |----|----|-----|
* | 50 | 52 | RST | (50) PB3 ** Pin22 ** SPI_MISO
* ================= (52) PB1 ** Pin20 ** SPI_SCK
*
* XS6/AUX-1 Connector
* ======================
* | 5V | GND | NC | 20 | (20) PD1 ** Pin44 ** I2C_SDA
* |----|-----|----|----|
* | 50 | 51 | 52 | 21 | (50) PB3 ** Pin22 ** SPI_MISO
* ====================== (51) PB2 ** Pin21 ** SPI_MOSI
* (52) PB1 ** Pin20 ** SPI_SCK
* (21) PD0 ** Pin43 ** I2C_SCL
*
* Temperature
* ==================================
* | GND | 69 | GND | 68 | GND | 67 |
* ==================================
* (69) PK7 ** Pin82 ** A15
* (68) PK6 ** Pin83 ** A14
* (67) PK5 ** Pin84 ** A13
*
* Limit Switches
* ============
* | 2 | GND | X+ ( 2) PE4 ** Pin6 ** PWM2
* |----|-----|
* | 3 | GND | X- ( 3) PE5 ** Pin7 ** PWM3
* |----|-----|
* | 15 | GND | Y+ (15) PJ0 ** Pin63 ** USART3_RX
* |----|-----|
* | 14 | GND | Y- (14) PJ1 ** Pin64 ** USART3_TX
* |----|-----|
* | 19 | GND | Z+ (19) PD2 ** Pin45 ** USART1_RX
* |----|-----|
* | 18 | GND | Z- (18) PD3 ** Pin46 ** USART1_TX
* ============
*
* EXP1
* ============
* | 37 | 35 | (37) PC0 ** Pin53 ** D37
* |-----|----| (35) PC2 ** Pin55 ** D35
* | 17 | 16 | (17) PH0 ** Pin12 ** USART2_RX
* |-----|----| (16) PH1 ** Pin13 ** USART2_TX
* | 23 | 25 | (23) PA1 ** Pin77 ** D23
* |-----|----| (25) PA3 ** Pin75 ** D25
* | 27 | 29 | (27) PA5 ** Pin73 ** D27
* |-----|----| (29) PA7 ** Pin71 ** D29
* | GND | 5V |
* ============
*
* EXP2
* ============
* | 50 | 52 | (50) PB3 ** Pin22 ** SPI_MISO
* |-----|----| (52) PB1 ** Pin20 ** SPI_SCK
* | 31 | 53 | (31) PC6 ** Pin59 ** D31
* |-----|----| (53) PB0 ** Pin19 ** SPI_SS
* | 33 | 51 | (33) PC4 ** Pin57 ** D33
* |-----|----| (51) PB2 ** Pin21 ** SPI_MOSI
* | 49 | 41 | (49) PL0 ** Pin35 ** D49
* |-----|----| (41) PG0 ** Pin51 ** D41
* | GND | NC |
* ============
*/

View File

@@ -0,0 +1,511 @@
/**
* 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
/**
* ZRIB V5.3 Based on MKS BASE v1.4 with A4982 stepper drivers and digital micro-stepping
*/
#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 11 // Analog Output
#endif
#ifndef SERVO1_PIN
#define SERVO1_PIN 12 // Analog Output
#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 FAN_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
//////////////////////////
// LCDs and Controllers //
//////////////////////////
#if ENABLED(ZONESTAR_12864LCD)
#define LCDSCREEN_NAME "ZONESTAR LCD12864"
#define LCD_SDSS 16
#define LCD_PINS_RS 16 // ST7920_CS_PIN LCD_PIN_RS (PIN4 of LCD module)
#define LCD_PINS_ENABLE 23 // ST7920_DAT_PIN LCD_PIN_R/W (PIN5 of LCD module)
#define LCD_PINS_D4 17 // ST7920_CLK_PIN LCD_PIN_ENABLE (PIN6 of LCD module)
#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_PIN LCD_PIN_RS
#define LCD_PINS_ENABLE 17 // ST7920_DAT_PIN LCD_PIN_ENABLE
#define LCD_PINS_D4 23 // ST7920_CLK_PIN LCD_PIN_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 EITHER(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 EITHER(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_ENABLE EXP1_03_PIN
#define LCD_PINS_D4 EXP1_05_PIN
#define LCD_PINS_D5 EXP1_06_PIN
#define LCD_PINS_D6 EXP1_07_PIN
#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 |
* ==========
* XS3 Connector
* =================
* | 65 | GND | 5V | (65) PK3 ** Pin86 ** A11
* |----|-----|----|
* | 66 | GND | 5V | (66) PK4 ** Pin85 ** A12
* =================
* XS3/Servos Connector
* =================
* | 11 | GND | 5V | (11) PB5 ** Pin24 ** PWM11
* |----|-----|----|
* | 12 | GND | 5V | (12) PB6 ** Pin25 ** PWM12
* =================
* ICSP
* =================
* | 5V | 51 | GND | (51) PB2 ** Pin21 ** SPI_MOSI
* |----|----|-----|
* | 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
* ======
*/

View File

@@ -29,7 +29,7 @@
#include "env_validate.h"
#if HOTENDS > 4 || E_STEPPERS > 4
#error "Z-Bolt X Series board supports up to 4 hotends / E-steppers."
#error "Z-Bolt X Series supports up to 4 hotends / E steppers."
#endif
#define BOARD_INFO_NAME "Z-Bolt X Series"