update code base to Marlin 2.0.9.2
This commit is contained in:
30
Marlin/src/pins/lpc1768/env_validate.h
Normal file
30
Marlin/src/pins/lpc1768/env_validate.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* 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
|
||||
|
||||
#if ENABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1769)
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#elif DISABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1768)
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
|
||||
#undef REQUIRE_LPC1769
|
47
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
Executable file → Normal file
47
Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
Executable file → Normal 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
|
||||
@@ -25,17 +25,9 @@
|
||||
* AZSMZ MINI pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "AZSMZ MINI"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#define BOARD_INFO_NAME "AZSMZ Mini"
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -45,8 +37,8 @@
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN P1_24
|
||||
#define Y_MIN_PIN P1_26
|
||||
#define X_STOP_PIN P1_24
|
||||
#define Y_STOP_PIN P1_26
|
||||
#define Z_MIN_PIN P1_28
|
||||
#define Z_MAX_PIN P1_29
|
||||
|
||||
@@ -84,6 +76,7 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
// EFB
|
||||
#define HEATER_0_PIN P2_04
|
||||
#define HEATER_BED_PIN P2_05
|
||||
@@ -93,7 +86,6 @@
|
||||
#define FAN1_PIN P0_26
|
||||
|
||||
#define LCD_SDSS P0_16 // LCD SD chip select
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if ENABLED(AZSMZ_12864)
|
||||
#define BEEPER_PIN P1_30
|
||||
@@ -108,16 +100,17 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN LCD_SDSS
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN LCD_SDSS
|
||||
#define SD_DETECT_PIN P3_25
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
@@ -125,14 +118,14 @@
|
||||
//
|
||||
// Ethernet pins
|
||||
//
|
||||
#define ENET_MDIO P1_17
|
||||
#define ENET_RX_ER P1_14
|
||||
#define ENET_RXD1 P1_10
|
||||
#define ENET_MOC P1_16
|
||||
#define REF_CLK P1_15
|
||||
#define ENET_RXD0 P1_09
|
||||
#define ENET_MDIO P1_17
|
||||
#define ENET_MOC P1_16
|
||||
#define ENET_CRS P1_08
|
||||
#define ENET_RX_ER P1_14
|
||||
#define ENET_TX_EN P1_04
|
||||
#define ENET_RXD0 P1_09
|
||||
#define ENET_RXD1 P1_10
|
||||
#define ENET_TXD0 P1_00
|
||||
#define ENET_TXD1 P1_01
|
||||
|
||||
|
31
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
Executable file → Normal file
31
Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
Executable file → Normal 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
|
||||
@@ -27,23 +27,14 @@
|
||||
* Applies to the following boards:
|
||||
*
|
||||
* BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "BIQU Thunder B300 V1.0"
|
||||
#endif
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
@@ -132,7 +123,7 @@
|
||||
* for the onboard SD card, and a chip select signal is not provided for the remote
|
||||
* SD card.
|
||||
*/
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1-1
|
||||
|
||||
@@ -145,15 +136,15 @@
|
||||
#define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
|
||||
#error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
|
||||
#if BOTH(HAS_MARLINUI_HD44780, IS_RRD_SC)
|
||||
#error "REPRAP_DISCOUNT_SMART_CONTROLLER displays aren't supported by the BIQU B300 v1.0"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
/**
|
||||
* SD Card Reader
|
||||
@@ -162,11 +153,11 @@
|
||||
* Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SCK_PIN P0_15 // EXP1-5
|
||||
#define MISO_PIN P0_16 // EXP1-4
|
||||
#define MOSI_PIN P0_18 // EXP1-3
|
||||
#define SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SS_PIN
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
#define SD_MOSI_PIN P0_18 // EXP1-3
|
||||
#define SD_SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SD_SS_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
55
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
Executable file → Normal file
55
Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
Executable file → Normal file
@@ -16,32 +16,19 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* BIQU BQ111-A4
|
||||
*
|
||||
* Applies to the following boards:
|
||||
*
|
||||
* BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
|
||||
*
|
||||
* BIQU BQ111-A4 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "BIQU BQ111-A4"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
@@ -55,19 +42,19 @@
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN P2_0
|
||||
#define X_DIR_PIN P0_5
|
||||
#define X_ENABLE_PIN P0_4
|
||||
#define X_STEP_PIN P2_00
|
||||
#define X_DIR_PIN P0_05
|
||||
#define X_ENABLE_PIN P0_04
|
||||
|
||||
#define Y_STEP_PIN P2_1
|
||||
#define Y_STEP_PIN P2_01
|
||||
#define Y_DIR_PIN P0_11
|
||||
#define Y_ENABLE_PIN P0_10
|
||||
|
||||
#define Z_STEP_PIN P2_2
|
||||
#define Z_STEP_PIN P2_02
|
||||
#define Z_DIR_PIN P0_20
|
||||
#define Z_ENABLE_PIN P0_19
|
||||
|
||||
#define E0_STEP_PIN P2_3
|
||||
#define E0_STEP_PIN P2_03
|
||||
#define E0_DIR_PIN P0_22
|
||||
#define E0_ENABLE_PIN P0_21
|
||||
|
||||
@@ -81,10 +68,10 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN P2_7
|
||||
#define HEATER_BED_PIN P2_5
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_4
|
||||
#define FAN_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -103,7 +90,7 @@
|
||||
* for the onboard SD card, and a chip select signal is not provided for the remote
|
||||
* SD card.
|
||||
*/
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1-1
|
||||
|
||||
@@ -116,15 +103,15 @@
|
||||
#define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
|
||||
#error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
|
||||
#if BOTH(HAS_MARLINUI_HD44780, IS_RRD_SC)
|
||||
#error "REPRAP_DISCOUNT_SMART_CONTROLLER displays aren't supported by the BIQU BQ111-A4"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
/**
|
||||
* SD Card Reader
|
||||
@@ -134,11 +121,11 @@
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#define SCK_PIN P0_15 // EXP1-5
|
||||
#define MISO_PIN P0_16 // EXP1-4
|
||||
#define MOSI_PIN P0_18 // EXP1-3
|
||||
#define SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SS_PIN
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
#define SD_MOSI_PIN P0_18 // EXP1-3
|
||||
#define SD_SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
#endif // SDSUPPORT
|
||||
|
||||
|
109
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
Executable file → Normal file
109
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
Executable file → Normal file
@@ -16,23 +16,20 @@
|
||||
* 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
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR 1.1"
|
||||
/**
|
||||
* BigTreeTech SKR 1.1 pin assignments
|
||||
*/
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#define BOARD_INFO_NAME "BTT SKR V1.1"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
|
||||
#define X_MIN_PIN P1_29
|
||||
#define X_MAX_PIN P1_28
|
||||
#define Y_MIN_PIN P1_27
|
||||
@@ -59,6 +56,34 @@
|
||||
#define E0_DIR_PIN P2_13
|
||||
#define E0_ENABLE_PIN P2_12
|
||||
|
||||
|
||||
/** ------ ------
|
||||
* 1.30 |10 9 | 2.11 0.17 |10 9 | 0.15
|
||||
* 0.18 | 8 7 | 0.16 3.26 | 8 7 | 1.23
|
||||
* 0.15 6 5 | NC 3.25 6 5 | 0.18
|
||||
* NC | 4 3 | NC 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN -1 // NC
|
||||
#define EXP1_04_PIN -1 // NC
|
||||
#define EXP1_05_PIN -1 // NC
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P2_11
|
||||
#define EXP1_10_PIN P1_30
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P1_23
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
|
||||
/**
|
||||
* LCD / Controller
|
||||
*
|
||||
@@ -72,22 +97,29 @@
|
||||
* by redrawing the screen after SD card accesses.
|
||||
*/
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#define BTN_EN1 P3_26
|
||||
#define BTN_EN2 P3_25
|
||||
#define BTN_ENC P2_11
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#define SD_DETECT_PIN P1_31
|
||||
#define LCD_SDSS P1_23
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP2_05_PIN
|
||||
#define LCD_PINS_D4 EXP2_09_PIN
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS P2_06
|
||||
#define DOGLCD_A0 P0_16
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Support
|
||||
@@ -96,24 +128,20 @@
|
||||
// requires jumpers on the SKR V1.1 board as documented here:
|
||||
// https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
#if ANY(MKS_MINI_12864, ENDER2_STOCKDISPLAY, IS_TFTGLCD_PANEL)
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#else
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN P1_23
|
||||
#endif
|
||||
|
||||
// Trinamic driver support
|
||||
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
// Using TMC devices in intelligent mode requires extra connections to each device. Unfortunately
|
||||
// the SKR does not have many free pins (especially if a display is in use). The SPI-based devices
|
||||
// will require 3 connections (clock, mosi, miso), plus a chip select line (CS) for each driver.
|
||||
// The UART-based devices require 2 pis per deriver (one of which must be interrupt capable).
|
||||
// The UART-based devices require 2 pis per driver (one of which must be interrupt capable).
|
||||
// The same SPI pins can be shared with the display/SD card reader, meaning SPI-based devices are
|
||||
// probably a good choice for this board.
|
||||
//
|
||||
@@ -137,10 +165,10 @@
|
||||
// When using any TMC SPI-based drivers, software SPI is used
|
||||
// because pins may be shared with the display or SD card.
|
||||
#define TMC_USE_SW_SPI
|
||||
#define TMC_SW_MOSI P0_18
|
||||
#define TMC_SW_MISO P0_17
|
||||
#define TMC_SW_MOSI EXP2_05_PIN
|
||||
#define TMC_SW_MISO EXP2_10_PIN
|
||||
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
|
||||
#define TMC_SW_SCK P0_15
|
||||
#define TMC_SW_SCK EXP2_09_PIN
|
||||
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
|
||||
//#define TMC_SW_SCK P2_06
|
||||
|
||||
@@ -151,31 +179,26 @@
|
||||
#if AXIS_DRIVER_TYPE_X(TMC2130)
|
||||
#define X_CS_PIN P4_28
|
||||
#undef X_ENABLE_PIN
|
||||
#define X_ENABLE_PIN -1
|
||||
#endif
|
||||
|
||||
#if AXIS_DRIVER_TYPE_Y(TMC2130)
|
||||
#define Y_CS_PIN P2_00
|
||||
#undef Y_ENABLE_PIN
|
||||
#define Y_ENABLE_PIN -1
|
||||
#endif
|
||||
|
||||
#if AXIS_DRIVER_TYPE_Z(TMC2130)
|
||||
#define Z_CS_PIN P0_19
|
||||
#undef Z_ENABLE_PIN
|
||||
#define Z_ENABLE_PIN -1
|
||||
#endif
|
||||
|
||||
#if AXIS_DRIVER_TYPE_E0(TMC2130)
|
||||
#define E0_CS_PIN P2_12
|
||||
#undef E0_ENABLE_PIN
|
||||
#define E0_ENABLE_PIN -1
|
||||
#endif
|
||||
|
||||
#if AXIS_DRIVER_TYPE_E1(TMC2130)
|
||||
#define E1_CS_PIN P0_10
|
||||
#undef E1_ENABLE_PIN
|
||||
#define E1_ENABLE_PIN -1
|
||||
#endif
|
||||
|
||||
#else // !SOFTWARE_DRIVER_ENABLE
|
||||
@@ -188,14 +211,11 @@
|
||||
// SDCARD_CONNECTION must not be 'LCD'. Nothing should be connected to EXP1/EXP2.
|
||||
//#define SKR_USE_LCD_PINS_FOR_CS
|
||||
#if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS."
|
||||
#endif
|
||||
#define X_CS_PIN P1_23
|
||||
#define Y_CS_PIN P3_26
|
||||
#define Z_CS_PIN P2_11
|
||||
#define E0_CS_PIN P3_25
|
||||
#define E1_CS_PIN P1_31
|
||||
#define X_CS_PIN EXP2_07_PIN
|
||||
#define Y_CS_PIN EXP2_08_PIN
|
||||
#define Z_CS_PIN EXP1_09_PIN
|
||||
#define E0_CS_PIN EXP2_06_PIN
|
||||
#define E1_CS_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
@@ -203,19 +223,16 @@
|
||||
// the pins will be in use. So SDCARD_CONNECTION must not be 'LCD'.
|
||||
//#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS
|
||||
#if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
|
||||
#endif
|
||||
#define X_CS_PIN P0_02
|
||||
#define Y_CS_PIN P0_03
|
||||
#define Z_CS_PIN P2_06
|
||||
// We use SD_DETECT_PIN for E0
|
||||
#undef SD_DETECT_PIN
|
||||
#define E0_CS_PIN P1_31
|
||||
#define E0_CS_PIN EXP2_04_PIN
|
||||
// We use LCD_SDSS pin for E1
|
||||
#undef LCD_SDSS
|
||||
#define LCD_SDSS -1
|
||||
#define E1_CS_PIN P1_23
|
||||
#define E1_CS_PIN EXP2_07_PIN
|
||||
#endif
|
||||
|
||||
// Example 3: Use the driver enable pins for chip-select.
|
||||
|
301
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
Executable file → Normal file
301
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
Executable file → Normal file
@@ -16,34 +16,33 @@
|
||||
* 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
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR 1.3"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
/**
|
||||
* Trinamic Stallguard pins
|
||||
* BigTreeTech SKR 1.3 pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "BTT SKR V1.3"
|
||||
#define LPC1768_IS_SKRV1_3 1
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
//
|
||||
#define X_DIAG_PIN P1_29 // X-
|
||||
#define Y_DIAG_PIN P1_27 // Y-
|
||||
#define Z_DIAG_PIN P1_25 // Z-
|
||||
#define E0_DIAG_PIN P1_28 // X+
|
||||
#define E1_DIAG_PIN P1_26 // Y+
|
||||
|
||||
/**
|
||||
* Limit Switches
|
||||
*/
|
||||
#if X_STALL_SENSITIVITY
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_DIR < 0
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#else
|
||||
#define X_MIN_PIN P1_28 // X+
|
||||
@@ -53,9 +52,9 @@
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#endif
|
||||
|
||||
#if Y_STALL_SENSITIVITY
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_DIR < 0
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#else
|
||||
#define Y_MIN_PIN P1_26 // Y+
|
||||
@@ -65,9 +64,9 @@
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#endif
|
||||
|
||||
#if Z_STALL_SENSITIVITY
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_DIR < 0
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN P1_24 // Z+
|
||||
#else
|
||||
#define Z_MIN_PIN P1_24 // Z+
|
||||
@@ -157,7 +156,7 @@
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
@@ -169,9 +168,6 @@
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN P4_29
|
||||
#define X_SERIAL_RX_PIN P1_17
|
||||
|
||||
@@ -188,42 +184,42 @@
|
||||
#define E1_SERIAL_RX_PIN P1_01
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | 1 2 | GND 5V | 1 2 | GND
|
||||
* RESET | 3 4 | 1.31 (SD_DETECT) (LCD_D7) 1.23 | 3 4 | 1.22 (LCD_D6)
|
||||
* (MOSI) 0.18 | 5 6 3.25 (BTN_EN2) (LCD_D5) 1.21 | 5 6 1.20 (LCD_D4)
|
||||
* (SD_SS) 0.16 | 7 8 | 3.26 (BTN_EN1) (LCD_RS) 1.19 | 7 8 | 1.18 (LCD_EN)
|
||||
* (SCK) 0.15 | 9 10| 0.17 (MISO) (BTN_ENC) 0.28 | 9 10| 1.30 (BEEPER)
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
* ------ ------
|
||||
* (BEEPER) 1.30 |10 9 | 0.28 (BTN_ENC) (MISO) 0.17 |10 9 | 0.15 (SCK)
|
||||
* (LCD_EN) 1.18 | 8 7 | 1.19 (LCD_RS) (BTN_EN1) 3.26 | 8 7 | 0.16 (SD_SS)
|
||||
* (LCD_D4) 1.20 6 5 | 1.21 (LCD_D5) (BTN_EN2) 3.25 6 5 | 0.18 (MOSI)
|
||||
* (LCD_D6) 1.22 | 4 3 | 1.23 (LCD_D7) (SD_DETECT) 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_23
|
||||
#define EXP1_04_PIN P1_22
|
||||
#define EXP1_05_PIN P1_21
|
||||
#define EXP1_06_PIN P1_20
|
||||
#define EXP1_07_PIN P1_19
|
||||
#define EXP1_08_PIN P1_18
|
||||
#define EXP1_09_PIN P0_28
|
||||
#define EXP1_10_PIN P1_30
|
||||
|
||||
#define EXPA1_03_PIN P1_23
|
||||
#define EXPA1_04_PIN P1_22
|
||||
#define EXPA1_05_PIN P1_21
|
||||
#define EXPA1_06_PIN P1_20
|
||||
#define EXPA1_07_PIN P1_19
|
||||
#define EXPA1_08_PIN P1_18
|
||||
#define EXPA1_09_PIN P0_28
|
||||
#define EXPA1_10_PIN P1_30
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P0_16
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
|
||||
#define EXPA2_03_PIN -1
|
||||
#define EXPA2_04_PIN P1_31
|
||||
#define EXPA2_05_PIN P0_18
|
||||
#define EXPA2_06_PIN P3_25
|
||||
#define EXPA2_07_PIN P0_16
|
||||
#define EXPA2_08_PIN P3_26
|
||||
#define EXPA2_09_PIN P0_15
|
||||
#define EXPA2_10_PIN P0_17
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
|
||||
#error "ANET_FULL_GRAPHICS_LCD_ALT_WIRING only applies to the ANET 1.0 board."
|
||||
|
||||
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_3.h' for details. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
@@ -237,133 +233,206 @@
|
||||
* The ANET_FULL_GRAPHICS_LCD connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* _____ _____
|
||||
* GND 1 | 1 2 | 2 5V 5V 1 | 1 2 | 2 GND
|
||||
* CS 3 | 3 4 | 4 BTN_EN2 CS 3 | 3 4 | 4 BTN_EN2
|
||||
* SID 5 | 5 6 6 BTN_EN1 SID 5 | 5 6 6 BTN_EN1
|
||||
* open 7 | 7 8 | 8 BTN_ENC CLK 7 | 7 8 | 8 BTN_ENC
|
||||
* CLK 9 | 9 10| 10 Beeper open 9 | 9 10| 10 Beeper
|
||||
* ----- -----
|
||||
* ------ ------
|
||||
* GND 1 | 1 2 | 2 5V 5V 1 | 1 2 | 2 GND
|
||||
* CS 3 | 3 4 | 4 BTN_EN2 CS 3 | 3 4 | 4 BTN_EN2
|
||||
* SID 5 | 5 6 6 BTN_EN1 SID 5 | 5 6 6 BTN_EN1
|
||||
* open 7 | 7 8 | 8 BTN_ENC CLK 7 | 7 8 | 8 BTN_ENC
|
||||
* CLK 9 | 9 10 | 10 Beeper open 9 | 9 10 | 10 Beeper
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXPA1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_03_PIN
|
||||
|
||||
#define BTN_EN1 EXPA1_06_PIN
|
||||
#define BTN_EN2 EXPA1_04_PIN
|
||||
#define BTN_ENC EXPA1_08_PIN
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_08_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXPA1_05_PIN
|
||||
#define LCD_PINS_D4 EXPA1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_05_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
|
||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXPA1_04_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXPA1_08_PIN
|
||||
#define BTN_EN2 EXPA1_06_PIN
|
||||
#define BTN_ENC EXPA1_09_PIN // (58) open-drain
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXPA1_03_PIN
|
||||
#define LCD_PINS_D4 EXPA1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif HAS_ADC_BUTTONS
|
||||
|
||||
#error "ADC BUTTONS do not work unmodified on SKR 1.3, The ADC ports cannot take more than 3.3v."
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
|
||||
#define TFT_RST_PIN EXP2_04_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
#endif
|
||||
#ifndef TFT_HEIGHT
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#define LCD_READ_ID 0xD3
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#if ENABLED(TFT_CLASSIC_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -11386
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 8684
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 689
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -273
|
||||
#endif
|
||||
#elif ENABLED(TFT_COLOR_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -16741
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11258
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 1024
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -367
|
||||
#endif
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#else // !CR10_STOCKDISPLAY
|
||||
|
||||
#define LCD_PINS_RS EXPA1_07_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXPA2_08_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXPA2_06_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC EXPA1_09_PIN // (58) open-drain
|
||||
#define BTN_EN1 EXP2_08_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_06_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXPA1_08_PIN
|
||||
#define LCD_PINS_D4 EXPA1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#define LCD_SDSS EXPA2_07_PIN // (16) J3-7 & AUX-4
|
||||
#define SD_DETECT_PIN EXPA2_04_PIN // (49) (NOT 5V tolerant)
|
||||
#define LCD_SDSS EXP2_07_PIN // (16) J3-7 & AUX-4
|
||||
#define SD_DETECT_PIN EXP2_04_PIN // (49) (NOT 5V tolerant)
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXPA1_08_PIN
|
||||
#define DOGLCD_A0 EXPA1_07_PIN
|
||||
#define DOGLCD_SCK EXPA2_09_PIN
|
||||
#define DOGLCD_MOSI EXPA2_05_PIN
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
||||
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
||||
|
||||
#define LCD_RESET_PIN EXPA1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_06_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 EXPA1_05_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXPA1_04_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXPA1_03_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXPA1_05_PIN
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS EXPA1_05_PIN
|
||||
#define DOGLCD_A0 EXPA1_04_PIN
|
||||
#define DOGLCD_SCK EXPA2_09_PIN
|
||||
#define DOGLCD_MOSI EXPA2_05_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
|
||||
/**
|
||||
* Creality Ender-2 display pinout
|
||||
* _____
|
||||
* -----
|
||||
* 5V | 1 2 | GND
|
||||
* (MOSI) P1_23 | 3 4 | P1_22 (LCD_CS)
|
||||
* (LCD_A0) P1_21 | 5 6 P1_20 (BTN_EN2)
|
||||
* RESET P1_19 | 7 8 | P1_18 (BTN_EN1)
|
||||
* (RESET) P1_19 | 7 8 | P1_18 (BTN_EN1)
|
||||
* (BTN_ENC) P0_28 | 9 10| P1_30 (SCK)
|
||||
* -----
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#define BTN_EN1 EXPA1_08_PIN
|
||||
#define BTN_EN2 EXPA1_06_PIN
|
||||
#define BTN_ENC EXPA1_09_PIN
|
||||
#define DOGLCD_CS EXPA1_04_PIN
|
||||
#define DOGLCD_A0 EXPA1_05_PIN
|
||||
#define DOGLCD_SCK EXPA1_10_PIN
|
||||
#define DOGLCD_MOSI EXPA1_03_PIN
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 EXPA1_05_PIN
|
||||
#define LCD_PINS_D6 EXPA1_04_PIN
|
||||
#define LCD_PINS_D7 EXPA1_03_PIN
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_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
|
||||
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#endif // !CR10_STOCKDISPLAY
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN EXPA2_07_PIN
|
||||
#if NEED_TOUCH_PINS
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_SCK_PIN EXP2_09_PIN
|
||||
#define TOUCH_MOSI_PIN EXP2_05_PIN
|
||||
#define TOUCH_MISO_PIN EXP2_10_PIN
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
342
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
Executable file → Normal file
342
Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
Executable file → Normal file
@@ -16,28 +16,37 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* BigTreeTech SKR 1.4 pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR 1.4"
|
||||
#define BOARD_INFO_NAME "BTT SKR V1.4"
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_CUSTOM_BUILD_FLAGS
|
||||
#define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
|
||||
#endif
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define I2C_EEPROM // EEPROM on I2C-0
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Connection
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#if ENABLED(I2C_EEPROM)
|
||||
#define MARLIN_EEPROM_SIZE 0x8000 // 32Kb
|
||||
#elif ENABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define MARLIN_EEPROM_SIZE 0x800 // 2Kb
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -57,35 +66,56 @@
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#if X_STALL_SENSITIVITY
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_DIR < 0
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN P1_26 // E0DET
|
||||
#else
|
||||
#define X_MIN_PIN P1_26 // E0DET
|
||||
#endif
|
||||
#elif ENABLED(X_DUAL_ENDSTOPS)
|
||||
#ifndef X_MIN_PIN
|
||||
#define X_MIN_PIN P1_29 // X-STOP
|
||||
#endif
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN P1_26 // E0DET
|
||||
#endif
|
||||
#else
|
||||
#define X_STOP_PIN P1_29 // X-STOP
|
||||
#endif
|
||||
|
||||
#if Y_STALL_SENSITIVITY
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_DIR < 0
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN P1_25 // E1DET
|
||||
#else
|
||||
#define Y_MIN_PIN P1_25 // E1DET
|
||||
#endif
|
||||
#elif ENABLED(Y_DUAL_ENDSTOPS)
|
||||
#ifndef Y_MIN_PIN
|
||||
#define Y_MIN_PIN P1_28 // Y-STOP
|
||||
#endif
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN P1_25 // E1DET
|
||||
#endif
|
||||
#else
|
||||
#define Y_STOP_PIN P1_28 // Y-STOP
|
||||
#endif
|
||||
|
||||
#if Z_STALL_SENSITIVITY
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_DIR < 0
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN P1_00 // PWRDET
|
||||
#else
|
||||
#define Z_MIN_PIN P1_00 // PWRDET
|
||||
#endif
|
||||
#elif ENABLED(Z_MULTI_ENDSTOPS)
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN P1_27 // Z-STOP
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN P1_00 // PWRDET
|
||||
#endif
|
||||
#else
|
||||
#ifndef Z_STOP_PIN
|
||||
#define Z_STOP_PIN P1_27 // Z-STOP
|
||||
@@ -157,8 +187,8 @@
|
||||
#define E1_CS_PIN P1_01
|
||||
#endif
|
||||
|
||||
#define TEMP_1_PIN P0_23_A0 // A2 (T2) - (69) - TEMP_1_PIN
|
||||
#define TEMP_BED_PIN P0_25_A2 // A0 (T0) - (67) - TEMP_BED_PIN
|
||||
#define TEMP_1_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_1_PIN
|
||||
#define TEMP_BED_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_BED_PIN
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
@@ -182,7 +212,7 @@
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
@@ -194,137 +224,269 @@
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN P1_10
|
||||
#define X_SERIAL_RX_PIN P1_10
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_09
|
||||
#define Y_SERIAL_RX_PIN P1_09
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P1_08
|
||||
#define Z_SERIAL_RX_PIN P1_08
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P1_04
|
||||
#define E0_SERIAL_RX_PIN P1_04
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P1_01
|
||||
#define E1_SERIAL_RX_PIN P1_01
|
||||
|
||||
#define Z2_SERIAL_TX_PIN P1_01
|
||||
#define Z2_SERIAL_RX_PIN P1_01
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Connection
|
||||
//
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SS_PIN P0_16
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | · · | GND 5V | · · | GND
|
||||
* RESET | · · | 1.31(SD_DETECT) (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
|
||||
* (MOSI)0.18 | · · | 3.25(BTN_EN2) (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
|
||||
* (SD_SS)0.16 | · · | 3.26(BTN_EN1) (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
|
||||
* (SCK)0.15 | · · | 0.17(MISO) (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
/** ------ ------
|
||||
* 1.30 |10 9 | 0.28 0.17 |10 9 | 0.15
|
||||
* 1.18 | 8 7 | 1.19 3.26 | 8 7 | 0.16
|
||||
* 1.20 6 5 | 1.21 3.25 6 5 | 0.18
|
||||
* 1.22 | 4 3 | 1.23 1.31 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#if HAS_SPI_LCD
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#define EXP1_03_PIN P1_23
|
||||
#define EXP1_04_PIN P1_22
|
||||
#define EXP1_05_PIN P1_21
|
||||
#define EXP1_06_PIN P1_20
|
||||
#define EXP1_07_PIN P1_19
|
||||
#define EXP1_08_PIN P1_18
|
||||
#define EXP1_09_PIN P0_28
|
||||
#define EXP1_10_PIN P1_30
|
||||
|
||||
#define LCD_PINS_RS P1_23
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P1_31
|
||||
#define EXP2_05_PIN P0_18
|
||||
#define EXP2_06_PIN P3_25
|
||||
#define EXP2_07_PIN P0_16
|
||||
#define EXP2_08_PIN P3_26
|
||||
#define EXP2_09_PIN P0_15
|
||||
#define EXP2_10_PIN P0_17
|
||||
|
||||
#define BTN_EN1 P1_20
|
||||
#define BTN_EN2 P1_22
|
||||
#define BTN_ENC P1_18
|
||||
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
|
||||
#define LCD_PINS_ENABLE P1_21
|
||||
#define LCD_PINS_D4 P1_19
|
||||
// RET6 DWIN ENCODER LCD
|
||||
#define BTN_ENC EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD && !BTT_MOTOR_EXPANSION
|
||||
|
||||
#if ENABLED(ANET_FULL_GRAPHICS_LCD_ALT_WIRING)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD_ALT_WIRING requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
*
|
||||
* The ANET_FULL_GRAPHICS_LCD_ALT_WIRING connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* GND | 1 2 | 5V 5V | 1 2 | GND
|
||||
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
|
||||
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
|
||||
* open | 7 8 | BTN_ENC open | 7 8 | BTN_ENC
|
||||
* CLK | 9 10| BEEPER CLK | 9 10| BEEPER
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_10_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define BEEPER_PIN EXP1_03_PIN
|
||||
|
||||
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||
#error "CAUTION! ANET_FULL_GRAPHICS_LCD requires wiring modifications. See 'pins_BTT_SKR_V1_4.h' for details. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
* 1. Cut the tab off the LCD connector so it can be plugged into the "EXP1" connector the other way.
|
||||
* 2. Swap the LCD's +5V (Pin2) and GND (Pin1) wires. (This is the critical part!)
|
||||
* 3. Rewire the CLK Signal (LCD Pin9) to LCD Pin7. (LCD Pin9 remains open because this pin is open drain.)
|
||||
* 4. A wire is needed to connect the Reset switch at J3 (LCD Pin7) to EXP2 (Pin3) on the board.
|
||||
*
|
||||
* !!! If you are unsure, ask for help! Your motherboard may be damaged in some circumstances !!!
|
||||
*
|
||||
* The ANET_FULL_GRAPHICS_LCD connector plug:
|
||||
*
|
||||
* BEFORE AFTER
|
||||
* ------ ------
|
||||
* GND | 1 2 | 5V 5V | 1 2 | GND
|
||||
* CS | 3 4 | BTN_EN2 CS | 3 4 | BTN_EN2
|
||||
* SID | 5 6 BTN_EN1 SID | 5 6 BTN_EN1
|
||||
* open | 7 8 | BTN_ENC CLK | 7 8 | BTN_ENC
|
||||
* CLK | 9 10 | BEEPER open | 9 10 | BEEPER
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS EXP1_03_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_06_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_08_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_05_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
|
||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||
#define BTN_ENC P0_28 // (58) open-drain
|
||||
#define LCD_PINS_RS P1_22
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 P1_18
|
||||
#define BTN_EN2 P1_20
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE P1_23
|
||||
#define LCD_PINS_D4 P1_21
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#else
|
||||
#define BTN_ENC P0_28 // (58) open-drain
|
||||
#define LCD_PINS_RS P1_19
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
|
||||
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
||||
/** Creality Ender-2 display pinout
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* (MOSI) 1.23 | 3 4 | 1.22 (LCD_RS)
|
||||
* (LCD_A0) 1.21 | 5 6 1.20 (BTN_EN2)
|
||||
* RESET 1.19 | 7 8 | 1.18 (BTN_EN1)
|
||||
* (BTN_ENC) 0.28 | 9 10 | 1.30 (SCK)
|
||||
* ------
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#define LCD_PINS_ENABLE P1_18
|
||||
#define LCD_PINS_D4 P1_20
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_DETECT_PIN P1_31 // (49) (NOT 5V tolerant)
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
// SPI 1
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_ENC EXP1_09_PIN // (58) open-drain
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_06_PIN // (33) J3-4 & AUX-4
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN // (16) J3-7 & AUX-4
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS P1_18
|
||||
#define DOGLCD_A0 P1_19
|
||||
#define DOGLCD_SCK P0_15
|
||||
#define DOGLCD_MOSI P0_18
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
||||
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
||||
|
||||
#define LCD_RESET_PIN P1_20 // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_06_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 P1_21
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN P1_22
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN P1_23
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN P1_21
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS P1_21
|
||||
#define DOGLCD_A0 P1_22
|
||||
#define DOGLCD_SCK P0_15
|
||||
#define DOGLCD_MOSI P0_18
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 P1_21
|
||||
#define LCD_PINS_D6 P1_22
|
||||
#define LCD_PINS_D7 P1_23
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN EXP1_03_PIN // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#endif
|
||||
#endif // HAS_MARLINUI_U8GLIB
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if HAS_ADC_BUTTONS
|
||||
#error "ADC BUTTONS do not work unmodified on SKR 1.4, The ADC ports cannot take more than 3.3v."
|
||||
#endif
|
||||
|
||||
//
|
||||
// Neopixel LED
|
||||
// NeoPixel LED
|
||||
//
|
||||
#ifndef NEOPIXEL_PIN
|
||||
#define NEOPIXEL_PIN P1_24
|
||||
|
137
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
Executable file → Normal file
137
Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
Executable file → Normal file
@@ -16,25 +16,27 @@
|
||||
* 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
|
||||
|
||||
#ifdef SKR_HAS_LPC1769
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#include "env_validate.h"
|
||||
|
||||
// If you have the BigTreeTech driver expansion module, enable BTT_MOTOR_EXPANSION
|
||||
// https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT
|
||||
//#define BTT_MOTOR_EXPANSION
|
||||
|
||||
#if BOTH(HAS_WIRED_LCD, BTT_MOTOR_EXPANSION)
|
||||
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
|
||||
#define EXP_MOT_USE_EXP2_ONLY 1
|
||||
#else
|
||||
#error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
|
||||
#endif
|
||||
#elif !defined(MCU_LPC1768)
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
#if DISABLED(SDCARD_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#endif
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -63,8 +65,25 @@
|
||||
#define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
|
||||
#endif
|
||||
|
||||
#if HOTENDS == 1 && TEMP_SENSOR_PROBE
|
||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||
#if HOTENDS == 1 && !REDUNDANT_TEMP_MATCH(SOURCE, E1)
|
||||
#if TEMP_SENSOR_PROBE
|
||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||
#elif TEMP_SENSOR_CHAMBER
|
||||
#define TEMP_CHAMBER_PIN TEMP_1_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// CS, MISO, MOSI, and SCK for MAX Thermocouple SPI
|
||||
#if HAS_MAX_TC
|
||||
//#define TEMP_0_CS_PIN P...
|
||||
//#define TEMP_0_MISO_PIN P...
|
||||
//#define TEMP_0_MOSI_PIN P...
|
||||
//#define TEMP_0_SCK_PIN P...
|
||||
|
||||
//#define TEMP_1_CS_PIN P...
|
||||
//#define TEMP_1_MISO_PIN P...
|
||||
//#define TEMP_1_MOSI_PIN P...
|
||||
//#define TEMP_1_SCK_PIN P...
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -73,7 +92,7 @@
|
||||
#ifndef HEATER_0_PIN
|
||||
#define HEATER_0_PIN P2_07
|
||||
#endif
|
||||
#if HOTENDS == 1
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN P2_04
|
||||
#endif
|
||||
@@ -92,26 +111,98 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if !defined(BEEPER_PIN) && HAS_WIRED_LCD && DISABLED(LCD_USE_I2C_BUZZER)
|
||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#if HAS_WIRED_LCD
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#else
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) && ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
|
||||
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN EXP2_07_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_MOTOR_EXPANSION)
|
||||
/** ------ ------
|
||||
* NC | 1 2 | GND NC | 1 2 | GND
|
||||
* NC | 3 4 | M1EN M2EN | 3 4 | M3EN
|
||||
* M1STP | 5 6 M1DIR M1RX | 5 6 M1DIAG
|
||||
* M2DIR | 7 8 | M2STP M2RX | 7 8 | M2DIAG
|
||||
* M3DIR | 9 10 | M3STP M3RX | 9 10 | M3DIAG
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*
|
||||
* NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
|
||||
*/
|
||||
|
||||
// M1 on Driver Expansion Module
|
||||
#define E2_STEP_PIN EXP2_05_PIN
|
||||
#define E2_DIR_PIN EXP2_06_PIN
|
||||
#define E2_ENABLE_PIN EXP2_04_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E2_DIAG_PIN EXP1_06_PIN
|
||||
#define E2_CS_PIN EXP1_05_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E2_SERIAL_TX_PIN EXP1_05_PIN
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// M2 on Driver Expansion Module
|
||||
#define E3_STEP_PIN EXP2_08_PIN
|
||||
#define E3_DIR_PIN EXP2_07_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E3_ENABLE_PIN EXP1_03_PIN
|
||||
#define E3_DIAG_PIN EXP1_08_PIN
|
||||
#define E3_CS_PIN EXP1_07_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E3_SERIAL_TX_PIN EXP1_07_PIN
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E3_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
// M3 on Driver Expansion Module
|
||||
#define E4_STEP_PIN EXP2_10_PIN
|
||||
#define E4_DIR_PIN EXP2_09_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E4_ENABLE_PIN EXP1_04_PIN
|
||||
#define E4_DIAG_PIN EXP1_10_PIN
|
||||
#define E4_CS_PIN EXP1_09_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E4_SERIAL_TX_PIN EXP1_09_PIN
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E4_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
#endif // BTT_MOTOR_EXPANSION
|
||||
|
69
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
Executable file → Normal file
69
Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
Executable file → Normal file
@@ -16,25 +16,21 @@
|
||||
* 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
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
/**
|
||||
* GMARSH X6 Rev.1 pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "GMARSH X6 REV1"
|
||||
|
||||
// Ignore temp readings during develpment.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Enable 12MHz clock output on P1.27 pin to sync TMC2208 chip clocks
|
||||
@@ -90,20 +86,25 @@
|
||||
//
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN P1_00
|
||||
#define X_SERIAL_RX_PIN P1_00
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_09
|
||||
#define Y_SERIAL_RX_PIN P1_09
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P1_16
|
||||
#define Z_SERIAL_RX_PIN P1_16
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P0_04
|
||||
#define E0_SERIAL_RX_PIN P0_04
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P2_02
|
||||
#define E1_SERIAL_RX_PIN P2_02
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN P2_06
|
||||
#define E2_SERIAL_RX_PIN P2_06
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#else
|
||||
#error "TMC2208 UART configuration is required for GMarsh X6."
|
||||
#endif
|
||||
@@ -127,11 +128,12 @@
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN P1_31
|
||||
#define POWER_MONITOR_VOLTAGE_PIN P0_25_A2
|
||||
|
||||
//
|
||||
// LCD
|
||||
//
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#if IS_RRD_SC
|
||||
#define BEEPER_PIN P0_19
|
||||
#define BTN_EN1 P1_23
|
||||
#define BTN_EN2 P1_24
|
||||
@@ -142,6 +144,11 @@
|
||||
#define LCD_PINS_D5 P0_22
|
||||
#define LCD_PINS_D6 P1_29
|
||||
#define LCD_PINS_D7 P1_28
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -152,18 +159,16 @@
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN P0_16
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN P0_16
|
||||
#define SD_DETECT_PIN P1_22
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
|
132
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
Executable file → Normal file
132
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
Executable file → Normal file
@@ -16,20 +16,16 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* MKS SBASE pin assignments
|
||||
* Makerbase MKS SBASE pin assignments
|
||||
*/
|
||||
|
||||
#if defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1769)
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#elif !defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1768)
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "MKS SBASE"
|
||||
@@ -38,14 +34,6 @@
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SBASE"
|
||||
#endif
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
|
||||
#define LED_PIN P1_18 // Used as a status indicator
|
||||
#define LED2_PIN P1_19
|
||||
#define LED3_PIN P1_20
|
||||
@@ -139,23 +127,27 @@
|
||||
#define PIN_P2_11 P2_11 // Interrupt Capable
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multi Material Multiplexer Support
|
||||
// Průša i3 MMU1 (Multi Material Multiplexer) Support
|
||||
//
|
||||
#if ENABLED(MK2_MULTIPLEXER)
|
||||
#if HAS_PRUSA_MMU1
|
||||
#define E_MUX0_PIN P1_23 // J8-3
|
||||
#define E_MUX1_PIN P2_12 // J8-4
|
||||
#define E_MUX2_PIN P2_11 // J8-5
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
// Power Supply Control
|
||||
//
|
||||
#define PS_ON_PIN P0_25 // TH3 Connector
|
||||
#if ENABLED(MKS_PWC)
|
||||
#define PS_ON_PIN P0_25 // SERVO
|
||||
#define KILL_PIN P1_29 // Z+
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
//
|
||||
// Ethernet pins
|
||||
//
|
||||
#ifndef ULTIPANEL
|
||||
#if !IS_ULTIPANEL
|
||||
#define ENET_MDIO P1_17 // J12-4
|
||||
#define ENET_RX_ER P1_14 // J12-6
|
||||
#define ENET_RXD1 P1_10 // J12-8
|
||||
@@ -173,8 +165,6 @@
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
|
||||
/**
|
||||
@@ -190,26 +180,26 @@
|
||||
* SD_DETECT_PIN entirely and remove that wire from the the custom cable.
|
||||
*/
|
||||
#define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
|
||||
#define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
||||
#define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
||||
#define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
|
||||
#define SS_PIN P0_28
|
||||
#define SD_SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
||||
#define SD_MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
||||
#define SD_MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
|
||||
#define SD_SS_PIN P0_28
|
||||
#define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the
|
||||
// selected pins are not on a hardware SPI controller
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
// use standard cable and header, SPI and SD detect sre shared with on-board SD card
|
||||
// hardware SPI is used for both SD cards. The detect pin is shred between the
|
||||
// LCD and onboard SD readers so we disable it.
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN P0_28
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
// Use standard cable and header, SPI and SD detect are shared with onboard SD card.
|
||||
// Hardware SPI is used for both SD cards. The detect pin is shared between the
|
||||
// LCD and onboard SD readers so we disable it.
|
||||
#define SD_SS_PIN P0_28
|
||||
#else
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -225,7 +215,21 @@
|
||||
* that the garbage/lines are erased immediately after the SD card accesses are completed.
|
||||
*/
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS P3_25 // EXP2.3
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_DETECT_PIN P0_28 // EXP2.4
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1.1
|
||||
#define BTN_ENC P1_30 // EXP1.2
|
||||
#define BTN_EN1 P3_26 // EXP2.5
|
||||
@@ -235,8 +239,8 @@
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1.5
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -281,7 +285,7 @@
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
/**
|
||||
* Example for trinamic drivers using the J8 connector on MKs Sbase.
|
||||
@@ -297,20 +301,21 @@
|
||||
#define E0_CS_PIN P2_11
|
||||
#define E1_CS_PIN P4_28
|
||||
|
||||
// Hardware SPI is on EXP2. See if you can make it work:
|
||||
// https://github.com/makerbase-mks/MKS-SBASE/issues/25
|
||||
#define TMC_USE_SW_SPI
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P0_03 // AUX1
|
||||
// Hardware SPI is on EXP2. See if you can make it work:
|
||||
// https://github.com/makerbase-mks/MKS-SBASE/issues/25
|
||||
#define TMC_USE_SW_SPI
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P0_03 // AUX1
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_02 // AUX1
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_26 // TH4
|
||||
#endif
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_02 // AUX1
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_26 // TH4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if MB(MKS_SBASE) && HAS_TMC_UART
|
||||
@@ -324,22 +329,23 @@
|
||||
*/
|
||||
#define X_SERIAL_TX_PIN P1_22 // J8-2
|
||||
#define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_23 // J8-3
|
||||
#define Y_SERIAL_RX_PIN P2_11 // J8-5 Interrupt Capable
|
||||
|
||||
#define Z_SERIAL_TX_PIN P2_12 // J8-4
|
||||
#define Z_SERIAL_RX_PIN P0_25 // TH3
|
||||
|
||||
#define E0_SERIAL_TX_PIN P4_28 // J8-6
|
||||
#define E0_SERIAL_RX_PIN P0_26 // TH4
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
// UNUSED
|
||||
#define PIN_P0_27 P0_27 // EXP2/Onboard SD
|
||||
#define PIN_P0_28 P0_28 // EXP2
|
||||
#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
//#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
//#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
|
||||
/**
|
||||
* PWMs
|
||||
@@ -368,7 +374,6 @@
|
||||
* P1_31 - not 5V tolerant - EXP1
|
||||
* P0_27 - open collector - EXP2
|
||||
* P0_28 - open collector - EXP2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -383,5 +388,4 @@
|
||||
* P0_03 - AUX1
|
||||
* P0_29 - Port -1
|
||||
* P0_30 - USB
|
||||
*
|
||||
*/
|
||||
|
239
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Executable file → Normal file
239
Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
Executable file → Normal file
@@ -16,28 +16,20 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* MKS SGEN-L pin assignments
|
||||
* Makerbase MKS SGEN-L pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "MKS SGen-L"
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -56,9 +48,9 @@
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#if X_STALL_SENSITIVITY
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_DIR < 0
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#else
|
||||
#define X_MIN_PIN P1_28 // X+
|
||||
@@ -68,9 +60,9 @@
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#endif
|
||||
|
||||
#if Y_STALL_SENSITIVITY
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_DIR < 0
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#else
|
||||
#define Y_MIN_PIN P1_26 // Y+
|
||||
@@ -80,9 +72,9 @@
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#endif
|
||||
|
||||
#if Z_STALL_SENSITIVITY
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_DIR < 0
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN P1_24 // Z+
|
||||
#else
|
||||
#define Z_MIN_PIN P1_24 // Z+
|
||||
@@ -159,7 +151,7 @@
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
@@ -171,10 +163,6 @@
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
|
||||
#define X_SERIAL_TX_PIN P1_04
|
||||
#define X_SERIAL_RX_PIN P1_01
|
||||
|
||||
@@ -194,8 +182,8 @@
|
||||
#define Z2_SERIAL_RX_PIN P1_17
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif // TMC2208 || TMC2209
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -210,7 +198,7 @@
|
||||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#if HOTENDS == 1
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN P2_06
|
||||
#endif
|
||||
@@ -223,6 +211,15 @@
|
||||
#define FAN_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(MKS_PWC)
|
||||
#define PS_ON_PIN P2_00 // SERVO1
|
||||
#define KILL_PIN P1_24 // Z+
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
@@ -231,94 +228,174 @@
|
||||
#define LED3_PIN P1_20
|
||||
#define LED4_PIN P1_21
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* (BEEPER) 1.31 | · · | 1.30 (BTN_ENC) (MISO) 0.8 | · · | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | · · | 0.16 (LCD_RS) (BTN_EN1) 3.25 | · · | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 | · · | 0.17 (LCD_D5) (BTN_EN2) 3.26 | · · | 1.20 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | · · | 1.22 (LCD_D7) (SD_DETECT) 0.27 | · · | RST
|
||||
* GND | · · | 5V GND | · · | NC
|
||||
* ----- -----
|
||||
* EXP1 EXP2
|
||||
/** ------ ------
|
||||
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 | 6 5 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN P1_31
|
||||
#define BTN_ENC P1_30
|
||||
#define EXP1_03_PIN P1_22
|
||||
#define EXP1_04_PIN P1_00
|
||||
#define EXP1_05_PIN P0_17
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN P0_27
|
||||
#define EXP2_05_PIN P0_09
|
||||
#define EXP2_06_PIN P3_26
|
||||
#define EXP2_07_PIN P0_28
|
||||
#define EXP2_08_PIN P3_25
|
||||
#define EXP2_09_PIN P0_07
|
||||
#define EXP2_10_PIN P0_08
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SD_SS_PIN EXP2_07_PIN
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS P1_00
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 P0_18
|
||||
#define BTN_EN2 P0_15
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE P1_22
|
||||
#define LCD_PINS_D4 P0_17
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_05_PIN
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 2
|
||||
|
||||
// Disable any LCD related PINs config
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_RS -1
|
||||
|
||||
#ifndef TFT_BUFFER_SIZE
|
||||
#define TFT_BUFFER_SIZE 1200
|
||||
#endif
|
||||
#ifndef TFT_QUEUE_SIZE
|
||||
#define TFT_QUEUE_SIZE 6144
|
||||
#endif
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#undef BEEPER_PIN
|
||||
#undef BTN_ENC
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_EN1 P3_25
|
||||
#define BTN_EN2 P3_26
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_SDSS P0_28
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
|
||||
#if ENABLED(MKS_12864OLED_SSD1306)
|
||||
|
||||
#define LCD_PINS_DC P0_17
|
||||
#define DOGLCD_CS P0_16
|
||||
#define LCD_PINS_DC EXP1_05_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define DOGLCD_SCK P0_15
|
||||
#define DOGLCD_MOSI P0_18
|
||||
#define DOGLCD_SCK EXP1_06_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
|
||||
#define LCD_PINS_RS P1_00
|
||||
#define LCD_PINS_D7 P1_22
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define KILL_PIN -1 // NC
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS P0_18
|
||||
#define DOGLCD_A0 P0_16
|
||||
#define DOGLCD_SCK P0_07
|
||||
#define DOGLCD_MOSI P1_20
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
||||
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
||||
|
||||
#define LCD_RESET_PIN P0_15 // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_06_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 P0_17
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN P1_00
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN P1_22
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN P0_17
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS P0_17
|
||||
#define DOGLCD_A0 P1_00
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 P0_17
|
||||
#define LCD_PINS_D6 P1_00
|
||||
#define LCD_PINS_D7 P1_22
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_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
|
||||
|
||||
#endif // !FYSETC_MINI_12864
|
||||
@@ -327,31 +404,11 @@
|
||||
|
||||
#endif // !CR10_STOCKDISPLAY
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P0_27
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#else
|
||||
#define SS_PIN P0_28
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// Other Pins
|
||||
//
|
||||
//#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
//#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
//#define PS_ON_PIN P1_23 // SERVO P1.23
|
||||
//#define PS_ON_PIN P1_23 // SERVO0 P1.23
|
||||
|
117
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
Executable file → Normal file
117
Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
Executable file → Normal 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
|
||||
@@ -31,23 +31,14 @@
|
||||
* RAMPS_14_EFF (Hotend, Fan0, Fan1)
|
||||
* RAMPS_14_EEF (Hotend0, Hotend1, Fan)
|
||||
* RAMPS_14_SF (Spindle, Controller Fan)
|
||||
*
|
||||
*/
|
||||
|
||||
// Numbers in parentheses () are the corresponding mega2560 pin numbers
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -128,9 +119,6 @@
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
|
||||
// P2_08 E1-Step
|
||||
// P2_13 E1-Dir
|
||||
@@ -139,32 +127,32 @@
|
||||
#define X_SERIAL_TX_PIN P0_01
|
||||
#endif
|
||||
#ifndef X_SERIAL_RX_PIN
|
||||
#define X_SERIAL_RX_PIN P0_01
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
#ifndef Y_SERIAL_TX_PIN
|
||||
#define Y_SERIAL_TX_PIN P0_00
|
||||
#endif
|
||||
#ifndef Y_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_RX_PIN P0_00
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
#ifndef Z_SERIAL_TX_PIN
|
||||
#define Z_SERIAL_TX_PIN P2_13
|
||||
#endif
|
||||
#ifndef Z_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_RX_PIN P2_13
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
#ifndef E0_SERIAL_TX_PIN
|
||||
#define E0_SERIAL_TX_PIN P2_08
|
||||
#endif
|
||||
#ifndef E0_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_RX_PIN P2_08
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -177,14 +165,14 @@
|
||||
#define TEMP_2_PIN P0_26_A3 // A3 - (63) - J5-3 & AUX-2
|
||||
#define TEMP_3_PIN P1_30_A4 // A4 - (37) - BUZZER_PIN
|
||||
//#define TEMP_4_PIN P1_31_A5 // A5 - (49) - SD_DETECT_PIN
|
||||
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
||||
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
||||
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning RAMPS plugs
|
||||
//
|
||||
#if NONE(IS_RAMPS_EEB, IS_RAMPS_EEF, IS_RAMPS_EFB, IS_RAMPS_EFF, IS_RAMPS_SF) && !PIN_EXISTS(MOSFET_D)
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
@@ -226,7 +214,7 @@
|
||||
#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 HOTENDS == 1
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
#else
|
||||
#define HEATER_1_PIN MOSFET_D_PIN
|
||||
@@ -257,8 +245,8 @@
|
||||
|
||||
#define PS_ON_PIN P2_12 // (12)
|
||||
|
||||
#if !defined(MAX6675_SS_PIN) && DISABLED(USE_ZMAX_PLUG)
|
||||
#define MAX6675_SS_PIN P1_28
|
||||
#if !defined(TEMP_0_CS_PIN) && DISABLED(USE_ZMAX_PLUG)
|
||||
#define TEMP_0_CS_PIN P1_28
|
||||
#endif
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENA_PIN)
|
||||
@@ -299,7 +287,7 @@
|
||||
* All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
||||
*
|
||||
* - https://github.com/wolfmanjm/universal-panel-adapter
|
||||
* - http://panucattdevices.freshdesk.com/support/solutions/articles/1000243195-lcd-display-installation
|
||||
* - https://panucattdevices.freshdesk.com/support/solutions/articles/1000243195-lcd-display-installation
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -332,12 +320,20 @@
|
||||
#define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
||||
#define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
||||
|
||||
#elif HAS_SPI_LCD
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
//#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
//#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
//#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
//#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS)
|
||||
#error "CAUTION! ZONESTAR_LCD on REARM requires wiring modifications. NB. ADCs are not 5V tolerant. Comment out this line to continue."
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS P3_26 // (31) J3-2 & AUX-4
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
||||
#define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define BEEPER_PIN P1_01
|
||||
@@ -353,31 +349,32 @@
|
||||
#define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
||||
#define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
||||
#define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
||||
#define LCD_SDSS P1_23 // (53) J3-5 & AUX-3
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||
#define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
||||
#define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
#define SHIFT_LD P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
||||
#if IS_NEWPANEL
|
||||
#if IS_RRW_KEYPAD
|
||||
#define SHIFT_OUT_PIN P0_18 // (51) (MOSI) J3-10 & AUX-3
|
||||
#define SHIFT_CLK_PIN P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
#define SHIFT_LD_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
|
||||
#endif
|
||||
#else
|
||||
//#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
||||
//#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
||||
//#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
||||
//#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
||||
//#define SHIFT_CLK_PIN P3_26 // (31) J3-2 & AUX-4
|
||||
//#define SHIFT_LD_PIN P3_25 // (33) J3-4 & AUX-4
|
||||
//#define SHIFT_OUT_PIN P2_11 // (35) J3-3 & AUX-4
|
||||
//#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
// #define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_SCK SCK_PIN
|
||||
#define DOGLCD_MOSI MOSI_PIN
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
|
||||
#define STAT_LED_BLUE_PIN P0_26 //(63) may change if cable changes
|
||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
|
||||
#else
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -413,10 +410,15 @@
|
||||
#define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
||||
#define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
||||
#define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
||||
#define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -426,14 +428,14 @@
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// Ethernet pins
|
||||
//
|
||||
#if DISABLED(ULTIPANEL)
|
||||
#if !IS_ULTIPANEL
|
||||
#define ENET_MDIO P1_17 // (71) J12-4
|
||||
#define ENET_RX_ER P1_14 // (73) J12-6
|
||||
#define ENET_RXD1 P1_10 // (75) J12-8
|
||||
@@ -453,19 +455,18 @@
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#define SD_SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
||||
#define SD_MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
||||
#define SD_MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
||||
#define SD_SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
53
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
Executable file → Normal file
53
Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
Executable file → Normal 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
|
||||
@@ -25,19 +25,11 @@
|
||||
* Selena Compact pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1768
|
||||
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Selena Compact"
|
||||
#define BOARD_WEBSITE_URL "github.com/Ales2-k/Selena"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -48,11 +40,11 @@
|
||||
//
|
||||
#define X_MIN_PIN P1_28
|
||||
#define X_MAX_PIN P1_25
|
||||
#define Y_MIN_PIN P2_11
|
||||
#define Y_MAX_PIN -1
|
||||
#define Z_MIN_PIN P1_27
|
||||
#define Z_MAX_PIN -1
|
||||
#define Z_PROBE P1_22
|
||||
#define Y_STOP_PIN P2_11
|
||||
#define Z_STOP_PIN P1_27
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN P1_22
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -102,18 +94,23 @@
|
||||
// Display
|
||||
//
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#define LCD_PINS_D5 P1_00
|
||||
#define LCD_PINS_D6 P1_01
|
||||
#define LCD_PINS_D7 P1_04
|
||||
#define BEEPER_PIN P1_31
|
||||
#if IS_RRD_FG_SC
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#define LCD_PINS_D5 P1_00
|
||||
#define LCD_PINS_D6 P1_01
|
||||
#define LCD_PINS_D7 P1_04
|
||||
#define BEEPER_PIN P1_31
|
||||
|
||||
#define BTN_EN1 P3_25
|
||||
#define BTN_EN2 P3_26
|
||||
#define BTN_ENC P1_30
|
||||
#define BTN_EN1 P3_25
|
||||
#define BTN_EN2 P3_26
|
||||
#define BTN_ENC P1_30
|
||||
|
||||
#define SD_DETECT_PIN -1
|
||||
#endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif // IS_RRD_FG_SC
|
||||
|
Reference in New Issue
Block a user