update code base to Marlin 2.0.9.2
This commit is contained in:
26
Marlin/src/pins/esp32/env_validate.h
Normal file
26
Marlin/src/pins/esp32/env_validate.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 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 NOT_TARGET(ARDUINO_ARCH_ESP32)
|
||||
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#endif
|
78
Marlin/src/pins/esp32/pins_E4D.h
Executable file → Normal file
78
Marlin/src/pins/esp32/pins_E4D.h
Executable file → Normal file
@@ -16,56 +16,72 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* E4d@Box pin assignments
|
||||
* E4d@Box is a small factor 3D printer control board based on the ESP32 microcontroller for Laser, CNC and 3d printers
|
||||
* for more info check http://atbox.tech/ and join to Facebook page E4d@box.
|
||||
* E4d@box pin assignments
|
||||
*
|
||||
* Small factor 3D printer control board based on the ESP32 microcontroller for Laser, CNC and 3D printers.
|
||||
* More info at https://atbox.tech/ and the E4d@box Facebook page.
|
||||
*/
|
||||
|
||||
#ifndef ARDUINO_ARCH_ESP32
|
||||
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#elif EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "E4d@box only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 2
|
||||
#error "E4d@box currently supports only one hotend. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "E4d@box only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "E4D@BOX"
|
||||
#define BOARD_INFO_NAME "E4d@box"
|
||||
#define BOARD_WEBSITE_URL "github.com/Exilaus/E4d@box"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
|
||||
//
|
||||
// Redefine I2S for ESP32
|
||||
//
|
||||
#undef I2S_WS
|
||||
#define I2S_WS 23
|
||||
#undef I2S_BCK
|
||||
#define I2S_BCK 22
|
||||
#undef I2S_DATA
|
||||
#define I2S_DATA 21
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 34
|
||||
#define Y_MIN_PIN 35
|
||||
#define Z_MIN_PIN 16 // 15
|
||||
#define X_STOP_PIN 34
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 16
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 12 // 34//27
|
||||
#define X_DIR_PIN 13 // 35//26
|
||||
#define X_ENABLE_PIN 17 // 0//17//25 // used free pin
|
||||
#define X_STEP_PIN 12
|
||||
#define X_DIR_PIN 13
|
||||
#define X_ENABLE_PIN 17
|
||||
//#define X_CS_PIN 0
|
||||
|
||||
#define Y_STEP_PIN 32 // 33
|
||||
#define Y_DIR_PIN 33 // 32
|
||||
#define Y_STEP_PIN 32
|
||||
#define Y_DIR_PIN 33
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define Y_CS_PIN 13
|
||||
|
||||
#define Z_STEP_PIN 25 // 14
|
||||
#define Z_DIR_PIN 26 // 12
|
||||
#define Z_STEP_PIN 25
|
||||
#define Z_DIR_PIN 26
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define Z_CS_PIN 5 // SS_PIN
|
||||
|
||||
#define E0_STEP_PIN 27 // 16
|
||||
#define E0_DIR_PIN 14 // 17
|
||||
#define E0_STEP_PIN 27
|
||||
#define E0_DIR_PIN 14
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
//#define E0_CS_PIN 21
|
||||
|
||||
@@ -78,13 +94,15 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2 // 4//2//(D8)
|
||||
#define FAN_PIN 0 // 2//15//13 (D9)
|
||||
#define HEATER_BED_PIN 15 // 15//0 //(D10)
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 0
|
||||
#define HEATER_BED_PIN 15
|
||||
|
||||
// SPI
|
||||
//
|
||||
// MicroSD card on SPI
|
||||
//
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define I2S_STEPPER_STREAM
|
||||
#define I2S_WS 23
|
||||
#define I2S_BCK 22
|
||||
#define I2S_DATA 21
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
6
Marlin/src/pins/esp32/pins_ESP32.h
Executable file → Normal file
6
Marlin/src/pins/esp32/pins_ESP32.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,9 +25,7 @@
|
||||
* Espressif ESP32 (Tensilica Xtensa LX6) pin assignments
|
||||
*/
|
||||
|
||||
#ifndef ARDUINO_ARCH_ESP32
|
||||
"Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Espressif ESP32"
|
||||
|
||||
|
127
Marlin/src/pins/esp32/pins_FYSETC_E4.h
Normal file
127
Marlin/src/pins/esp32/pins_FYSETC_E4.h
Normal file
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* FYSETC E4 pin assignments
|
||||
*
|
||||
* 3D printer control board based on the ESP32 microcontroller.
|
||||
* Supports 4 stepper drivers, heated bed, single hotend.
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "FYSETC E4 only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "FYSETC E4 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "FYSETC_E4"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#define I2S_WS -1
|
||||
#define I2S_BCK -1
|
||||
#define I2S_DATA -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 34
|
||||
#define Y_STOP_PIN 35
|
||||
#define Z_STOP_PIN 15
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 27
|
||||
#define X_DIR_PIN 26
|
||||
#define X_ENABLE_PIN 25
|
||||
|
||||
#define Y_STEP_PIN 33
|
||||
#define Y_DIR_PIN 32
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define Z_STEP_PIN 14
|
||||
#define Z_DIR_PIN 12
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define E0_STEP_PIN 16
|
||||
#define E0_DIR_PIN 17
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// TMC2209 stepper drivers
|
||||
//
|
||||
|
||||
//
|
||||
// Hardware serial 1
|
||||
//
|
||||
#define X_HARDWARE_SERIAL Serial1
|
||||
#define Y_HARDWARE_SERIAL Serial1
|
||||
#define Z_HARDWARE_SERIAL Serial1
|
||||
#define E0_HARDWARE_SERIAL Serial1
|
||||
|
||||
#define TMC_BAUD_RATE 115200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 36 // Analog Input
|
||||
#define TEMP_BED_PIN 39 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
/**
|
||||
* Hardware serial pins
|
||||
*
|
||||
* Override these pins in Configuration.h or Configuration_adv.h if needed.
|
||||
*
|
||||
* Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX
|
||||
* but MRR ESPA does not have enough spare pins for such reassignment.
|
||||
*/
|
||||
#ifndef HARDWARE_SERIAL1_RX
|
||||
#define HARDWARE_SERIAL1_RX 21
|
||||
#endif
|
||||
#ifndef HARDWARE_SERIAL1_TX
|
||||
#define HARDWARE_SERIAL1_TX 22
|
||||
#endif
|
29
Marlin/src/pins/esp32/pins_MRR_ESPA.h
Executable file → Normal file
29
Marlin/src/pins/esp32/pins_MRR_ESPA.h
Executable file → Normal file
@@ -16,23 +16,24 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* MRR ESPA pin assignments
|
||||
* MRR ESPA is a 3D printer control board based on the ESP32 microcontroller.
|
||||
*
|
||||
* 3D printer control board based on the ESP32 microcontroller.
|
||||
* Supports 4 stepper drivers, heated bed, single hotend.
|
||||
*/
|
||||
|
||||
#ifndef ARDUINO_ARCH_ESP32
|
||||
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#elif EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "MRR ESPA only supports one E Stepper. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "MRR ESPA currently supports only one hotend. Comment out this line to continue."
|
||||
#error "MRR ESPA only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MRR ESPA"
|
||||
@@ -42,12 +43,10 @@
|
||||
//
|
||||
// Disable I2S stepper stream
|
||||
//
|
||||
#ifdef I2S_STEPPER_STREAM
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#endif
|
||||
#define I2S_WS -1
|
||||
#define I2S_BCK -1
|
||||
#define I2S_DATA -1
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#undef I2S_WS
|
||||
#undef I2S_BCK
|
||||
#undef I2S_DATA
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -95,9 +94,9 @@
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
|
33
Marlin/src/pins/esp32/pins_MRR_ESPE.h
Executable file → Normal file
33
Marlin/src/pins/esp32/pins_MRR_ESPE.h
Executable file → Normal file
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
* 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
|
||||
@@ -16,24 +16,25 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* MRR ESPE pin assignments
|
||||
* MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
|
||||
*
|
||||
* 3D printer control board based on the ESP32 microcontroller.
|
||||
* Supports 5 stepper drivers (using I2S stepper stream), heated bed,
|
||||
* single hotend, and LCD controller.
|
||||
*/
|
||||
|
||||
#ifndef ARDUINO_ARCH_ESP32
|
||||
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#elif EXTRUDERS > 2 || E_STEPPERS > 2
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 2 || E_STEPPERS > 2
|
||||
#error "MRR ESPE only supports two E Steppers. Comment out this line to continue."
|
||||
#elif HOTENDS > 1
|
||||
#error "MRR ESPE currently supports only one hotend. Comment out this line to continue."
|
||||
#error "MRR ESPE only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MRR ESPE"
|
||||
@@ -52,12 +53,10 @@
|
||||
//
|
||||
#undef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
|
||||
#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
|
||||
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
#define I2S_DATA 27
|
||||
#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -114,9 +113,9 @@
|
||||
//
|
||||
// MicroSD card
|
||||
//
|
||||
#define MOSI_PIN 23
|
||||
#define MISO_PIN 19
|
||||
#define SCK_PIN 18
|
||||
#define SD_MOSI_PIN 23
|
||||
#define SD_MISO_PIN 19
|
||||
#define SD_SCK_PIN 18
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
@@ -124,7 +123,7 @@
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_RS 13
|
||||
#define LCD_PINS_ENABLE 17
|
||||
@@ -134,7 +133,7 @@
|
||||
|
||||
#define BEEPER_PIN 151
|
||||
|
||||
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#elif IS_RRD_FG_SC
|
||||
|
||||
#define BEEPER_PIN 151
|
||||
|
||||
@@ -152,7 +151,7 @@
|
||||
#define BTN_EN2 12
|
||||
#define BTN_ENC 14
|
||||
|
||||
#endif // HAS_GRAPHICAL_LCD
|
||||
#endif // HAS_MARLINUI_U8GLIB
|
||||
|
||||
// Hardware serial pins
|
||||
// Add the following to Configuration.h or Configuration_adv.h to assign
|
||||
|
110
Marlin/src/pins/linux/pins_RAMPS_LINUX.h
Executable file → Normal file
110
Marlin/src/pins/linux/pins_RAMPS_LINUX.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
|
||||
@@ -49,7 +49,13 @@
|
||||
#define BOARD_INFO_NAME "RAMPS 1.4"
|
||||
#endif
|
||||
|
||||
#define E2END 0xFFF // 4KB
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "SimRap 1.4"
|
||||
#endif
|
||||
|
||||
#ifndef MARLIN_EEPROM_SIZE
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
#define IS_RAMPS_EFB
|
||||
|
||||
@@ -131,18 +137,18 @@
|
||||
#define TEMP_1_PIN 1 // Analog Input
|
||||
#define TEMP_BED_PIN 2 // Analog Input
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#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 HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
@@ -190,7 +196,7 @@
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN RAMPS_D9_PIN
|
||||
#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
|
||||
@@ -206,6 +212,7 @@
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define NEOPIXEL_PIN 71
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 5 // Analog Input on AUX2
|
||||
@@ -213,7 +220,7 @@
|
||||
|
||||
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 4
|
||||
#define FIL_RUNOUT_PIN 21
|
||||
#endif
|
||||
|
||||
#ifndef PS_ON_PIN
|
||||
@@ -387,7 +394,54 @@
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
|
||||
|
||||
#define TFT_A0_PIN 43
|
||||
#define TFT_CS_PIN 49
|
||||
#define TFT_DC_PIN 43
|
||||
#define TFT_SCK_PIN SD_SCK_PIN
|
||||
#define TFT_MOSI_PIN SD_MOSI_PIN
|
||||
#define TFT_MISO_PIN SD_MISO_PIN
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
#define BEEPER_PIN 42
|
||||
|
||||
#define TOUCH_CS_PIN 33
|
||||
#define SD_DETECT_PIN 41
|
||||
|
||||
#define HAS_SPI_FLASH 1
|
||||
#if HAS_SPI_FLASH
|
||||
#define SPI_DEVICE 1
|
||||
#define SPI_FLASH_SIZE 0x1000000 // 16MB
|
||||
#define SPI_FLASH_CS_PIN 31
|
||||
#define SPI_FLASH_MOSI_PIN SD_MOSI_PIN
|
||||
#define SPI_FLASH_MISO_PIN SD_MISO_PIN
|
||||
#define SPI_FLASH_SCK_PIN SD_SCK_PIN
|
||||
#endif
|
||||
|
||||
#define TFT_BUFFER_SIZE 0xFFFF
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#ifndef XPT2046_X_CALIBRATION
|
||||
#define XPT2046_X_CALIBRATION 63934
|
||||
#endif
|
||||
#ifndef XPT2046_Y_CALIBRATION
|
||||
#define XPT2046_Y_CALIBRATION 63598
|
||||
#endif
|
||||
#ifndef XPT2046_X_OFFSET
|
||||
#define XPT2046_X_OFFSET -1
|
||||
#endif
|
||||
#ifndef XPT2046_Y_OFFSET
|
||||
#define XPT2046_Y_OFFSET -20
|
||||
#endif
|
||||
|
||||
#define BTN_BACK 70
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// LCD Display output pins
|
||||
@@ -398,7 +452,7 @@
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
|
||||
#elif BOTH(NEWPANEL, PANEL_ONE)
|
||||
#elif BOTH(IS_NEWPANEL, PANEL_ONE)
|
||||
|
||||
#define LCD_PINS_RS 40
|
||||
#define LCD_PINS_ENABLE 42
|
||||
@@ -415,7 +469,7 @@
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 25
|
||||
|
||||
#if DISABLED(NEWPANEL)
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN 37
|
||||
#endif
|
||||
|
||||
@@ -448,19 +502,19 @@
|
||||
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
#if DISABLED(NEWPANEL)
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN 33
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if DISABLED(NEWPANEL)
|
||||
#if !IS_NEWPANEL
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK 38
|
||||
//#define SHIFT_LD 42
|
||||
//#define SHIFT_OUT 40
|
||||
//#define SHIFT_EN 17
|
||||
//#define SHIFT_CLK_PIN 38
|
||||
//#define SHIFT_LD_PIN 42
|
||||
//#define SHIFT_OUT_PIN 40
|
||||
//#define SHIFT_EN_PIN 17
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -468,7 +522,7 @@
|
||||
//
|
||||
// LCD Display input pins
|
||||
//
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
|
||||
@@ -507,7 +561,7 @@
|
||||
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
|
||||
#define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN1 22 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
|
||||
#define BTN_ENC -1
|
||||
|
||||
@@ -605,10 +659,10 @@
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Buttons are directly attached to AUX-2
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_CLK 44
|
||||
#define SHIFT_LD 42
|
||||
#if IS_RRW_KEYPAD
|
||||
#define SHIFT_OUT_PIN 40
|
||||
#define SHIFT_CLK_PIN 44
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
@@ -620,14 +674,18 @@
|
||||
#define BTN_EN1 37
|
||||
#define BTN_EN2 35
|
||||
#define BTN_ENC 31
|
||||
#define SD_DETECT_PIN 41
|
||||
#endif
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
// CUSTOM SIMULATOR INPUTS
|
||||
#define BTN_BACK 70
|
||||
|
||||
#endif // IS_NEWPANEL
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
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
|
||||
|
26
Marlin/src/pins/lpc1769/env_validate.h
Normal file
26
Marlin/src/pins/lpc1769/env_validate.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 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 NOT_TARGET(MCU_LPC1769)
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
12
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
Executable file → Normal file
12
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.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 @@
|
||||
* Azteeg X5 GT pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Azteeg X5 GT"
|
||||
#define BOARD_WEBSITE_URL "tinyurl.com/yx8tdqa3"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
|
77
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
Executable file → Normal file
77
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_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
|
||||
@@ -24,10 +24,7 @@
|
||||
/**
|
||||
* Azteeg X5 MINI pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Azteeg X5 MINI"
|
||||
@@ -38,6 +35,9 @@
|
||||
// LED
|
||||
//
|
||||
#define LED_PIN P1_18
|
||||
#define LED2_PIN P1_20
|
||||
#define LED3_PIN P1_19
|
||||
#define LED4_PIN P1_21
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -79,14 +79,13 @@
|
||||
#define E0_ENABLE_PIN P0_04
|
||||
|
||||
//
|
||||
// DIGIPOT slave addresses
|
||||
// DIGIPOT slave addresses (7-bit unshifted)
|
||||
//
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_A
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2C
|
||||
#endif
|
||||
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_B
|
||||
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
|
||||
#define DIGIPOT_I2C_ADDRESS_B 0x2E
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -109,7 +108,7 @@
|
||||
//
|
||||
// Display
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
@@ -144,15 +143,15 @@
|
||||
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
|
||||
#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) not 5V tolerant J3-1 & AUX-3
|
||||
#elif DISABLED(NEWPANEL)
|
||||
//#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
||||
//#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
||||
//#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
||||
//#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
||||
#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) not 5V tolerant J3-1 & AUX-3
|
||||
#elif !IS_NEWPANEL
|
||||
//#define SHIFT_OUT_PIN P2_11 // (35) J3-3 & 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_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
@@ -160,19 +159,24 @@
|
||||
|
||||
#define BEEPER_PIN P1_30 // (37) may change if cable changes
|
||||
#define DOGLCD_CS P0_26 // (63) J5-3 & 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_RED_PIN P1_21 // ( 6) may change if cable changes
|
||||
#else
|
||||
#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
|
||||
#endif
|
||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
@@ -185,15 +189,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Support
|
||||
@@ -202,19 +198,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
|
||||
#define MISO_PIN P0_17
|
||||
#define MOSI_PIN P0_18
|
||||
#define SS_PIN P1_23
|
||||
#define SD_SCK_PIN P0_15
|
||||
#define SD_MISO_PIN P0_17
|
||||
#define SD_MOSI_PIN P0_18
|
||||
#define SD_SS_PIN P1_23
|
||||
#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
|
||||
|
14
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
Executable file → Normal file
14
Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
Executable file → Normal file
@@ -16,27 +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
|
||||
|
||||
/**
|
||||
* Azteeg X5 MINI pin assignments
|
||||
* Azteeg X5 MINI WIFI pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Azteeg X5 MINI WIFI"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// DIGIPOT slave addresses
|
||||
//
|
||||
|
285
Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h
Normal file
285
Marlin/src/pins/lpc1769/pins_BTT_SKR_E3_TURBO.h
Normal file
@@ -0,0 +1,285 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* BigTreeTech SKR E3 Turbo pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "BTT SKR E3 Turbo"
|
||||
#endif
|
||||
|
||||
// Onboard I2C EEPROM
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB (AT24C32)
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN P1_23
|
||||
|
||||
//
|
||||
// TMC StallGuard DIAG pins
|
||||
//
|
||||
#define X_DIAG_PIN P1_29 // X-STOP
|
||||
#define Y_DIAG_PIN P1_28 // Y-STOP
|
||||
#define Z_DIAG_PIN P1_27 // Z-STOP
|
||||
#define E0_DIAG_PIN P1_26 // E0DET
|
||||
#define E1_DIAG_PIN P1_25 // E1DET
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
|
||||
//
|
||||
// Z Probe
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN P1_22
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#define FIL_RUNOUT_PIN P1_26 // E0DET
|
||||
#define FIL_RUNOUT2_PIN P1_25 // E1DET
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN P1_21
|
||||
#endif
|
||||
|
||||
// LED driving pin
|
||||
#ifndef NEOPIXEL_PIN
|
||||
#define NEOPIXEL_PIN P1_24
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN P1_20 // PWRDET
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN P1_04
|
||||
#define X_DIR_PIN P1_08
|
||||
#define X_ENABLE_PIN P1_00
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN P1_01
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN P1_14
|
||||
#define Y_DIR_PIN P1_15
|
||||
#define Y_ENABLE_PIN P1_09
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN P1_10
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN P4_29
|
||||
#define Z_DIR_PIN P4_28
|
||||
#define Z_ENABLE_PIN P1_16
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN P1_17
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN P2_06
|
||||
#define E0_DIR_PIN P2_07
|
||||
#define E0_ENABLE_PIN P0_04
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN P0_05
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN P2_11
|
||||
#define E1_DIR_PIN P2_12
|
||||
#define E1_ENABLE_PIN P0_21
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN P0_22
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
|
||||
#define X_SERIAL_TX_PIN P1_01
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_10
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P1_17
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P0_05
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P0_22
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// TMC Low Power Standby pins
|
||||
//
|
||||
#define X_STDBY_PIN P3_26
|
||||
#define Y_STDBY_PIN P3_25
|
||||
#define Z_STDBY_PIN P1_18
|
||||
#define E0_STDBY_PIN P1_19
|
||||
#define E1_STDBY_PIN P2_13
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN P0_24
|
||||
#define TEMP_1_PIN P0_23
|
||||
#define TEMP_BED_PIN P0_25
|
||||
#define TEMP_BOARD_PIN P1_30 // Onboard thermistor, NTC100K
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN P2_03 // EXTRUDER 0
|
||||
#define HEATER_1_PIN P2_04 // EXTRUDER 1
|
||||
#define HEATER_BED_PIN P2_05 // BED
|
||||
#define FAN_PIN P2_01
|
||||
#define FAN1_PIN P2_02
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN FAN1_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS)
|
||||
* (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
|
||||
* RESET | 7 8 | P0_19 (BTN_EN1)
|
||||
* (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
|
||||
* ------
|
||||
* EXP
|
||||
*/
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_17
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P0_20
|
||||
#define EXP1_07_PIN -1
|
||||
#define EXP1_08_PIN P0_19
|
||||
#define EXP1_09_PIN P0_16
|
||||
#define EXP1_10_PIN P2_08
|
||||
|
||||
#if EITHER(HAS_DWIN_E3V2, IS_DWIN_MARLINUI)
|
||||
#error "Ender-3 V2 display requires a custom cable with TX = P0_15, RX = P0_16. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
* Ender 3 V2 display SKR E3 Turbo (EXP1) Ender 3 V2 display --> SKR E3 Turbo
|
||||
* ------ ------ RX 8 --> 5 P0_15
|
||||
* 5V | 1 2 | GND 5V | 1 2 | GND TX 7 --> 9 P0_16
|
||||
* (BTN_E1) A | 3 4 | B (BTN_E2) (LCD_EN) P0_18 | 3 4 | P0_17 (LCD_RS) BEEPER 5 --> 10 P2_08
|
||||
* BEEPER | 5 6 ENT (BTN_ENC) (LCD_D4) P0_15 | 5 6 P0_20 (BTN_EN2)
|
||||
* (SKR_RX1) TX | 7 8 | RX (SKR_TX1) Reset | 7 8 | P0_19 (BTN_EN1)
|
||||
* NC | 9 10 | NC (BTN_ENC) P0_16 | 9 10 | P2_08 (BEEPER)
|
||||
* ------ ------
|
||||
*/
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_06_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_E3_TURBO.h' for details. Comment out this line to continue."
|
||||
|
||||
#define LCD_PINS_RS EXP1_05_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_09_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_08_PIN
|
||||
#define LCD_PINS_D7 EXP1_10_PIN
|
||||
#define ADC_KEYPAD_PIN P1_23 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define 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
|
||||
|
||||
#else
|
||||
|
||||
#error "Only ZONESTAR_LCD, MKS_MINI_12864, ENDER2_STOCKDISPLAY, and CR10_STOCKDISPLAY are currently supported on the BTT_SKR_E3_TURBO."
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_DETECT_PIN P2_00
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_SS_PIN P0_06
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "SD CUSTOM_CABLE is not compatible with SKR E3 Turbo."
|
||||
#endif
|
14
Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
Executable file → Normal file
14
Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
Executable file → Normal file
@@ -16,21 +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
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR 1.4 TURBO"
|
||||
#define SKR_HAS_LPC1769
|
||||
/**
|
||||
* BigTreeTech SKR 1.4 Turbo pin assignments
|
||||
*/
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
#define BOARD_INFO_NAME "BTT SKR V1.4 TURBO"
|
||||
|
||||
//
|
||||
// Include SKR 1.4 pins
|
||||
//
|
||||
#define REQUIRE_LPC1769
|
||||
#include "../lpc1768/pins_BTT_SKR_V1_4.h"
|
||||
|
29
Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
Executable file → Normal file
29
Marlin/src/pins/lpc1769/pins_COHESION3D_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,18 +25,10 @@
|
||||
* Cohesion3D Mini pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Cohesion3D Mini"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -110,10 +102,15 @@
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN P2_04 // FET 4
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -142,7 +139,7 @@
|
||||
// connector are shared with the onboard SD card, and Marlin does not support reading
|
||||
// G-code files from the onboard SD card.
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P0_27 // EXP2-7 - open drain
|
||||
|
||||
@@ -161,7 +158,7 @@
|
||||
#error "SDSUPPORT is not currently supported by the Cohesion3D boards"
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// Ethernet pins
|
||||
|
52
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
Executable file → Normal file
52
Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.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,18 +25,10 @@
|
||||
* Cohesion3D ReMix pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Cohesion3D ReMix"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -139,9 +131,15 @@
|
||||
#else
|
||||
#define AUTO_FAN_PIN P1_22 // FET 3
|
||||
#endif
|
||||
#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -206,7 +204,7 @@
|
||||
#define NEOPIXEL_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
|
||||
#endif
|
||||
|
||||
#elif HAS_SPI_LCD
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1-1
|
||||
//#define SD_DETECT_PIN P0_27 // EXP2-7
|
||||
@@ -222,7 +220,7 @@
|
||||
|
||||
#define KILL_PIN P2_11 // EXP2-10
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Support
|
||||
@@ -231,19 +229,17 @@
|
||||
#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_07 // (52) system defined J3-9 & AUX-3
|
||||
#define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
|
||||
#define MOSI_PIN P0_09 // (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
|
||||
#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
|
||||
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
|
||||
#define SD_MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
|
||||
#define SD_MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
|
||||
#else
|
||||
#undef SD_DETECT_PIN
|
||||
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
#endif
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "No custom SD drive cable defined for this board."
|
||||
#endif
|
||||
|
183
Marlin/src/pins/lpc1769/pins_FLY_CDY.h
Normal file
183
Marlin/src/pins/lpc1769/pins_FLY_CDY.h
Normal file
@@ -0,0 +1,183 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* FLYmaker FLY-CDY pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "FLY-CDY"
|
||||
#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLY-CDY"
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN P1_26
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
|
||||
#define X_MIN_PIN P1_29 // X-
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#define Y_MIN_PIN P1_27 // Y-
|
||||
#define Y_MAX_PIN P1_25 // Y+
|
||||
#define Z_MIN_PIN P1_22 // Z-
|
||||
#define Z_MAX_PIN P0_27 // Z+
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN P2_00
|
||||
#define X_DIR_PIN P1_01
|
||||
#define X_ENABLE_PIN P1_00
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN P1_04
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN P2_01
|
||||
#define Y_DIR_PIN P1_09
|
||||
#define Y_ENABLE_PIN P1_08
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN P1_10
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN P2_02
|
||||
#define Z_DIR_PIN P1_15
|
||||
#define Z_ENABLE_PIN P1_14
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN P1_16
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN P2_03
|
||||
#define E0_DIR_PIN P4_29
|
||||
#define E0_ENABLE_PIN P1_17
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN P4_28
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN P2_04
|
||||
#define E1_DIR_PIN P2_11
|
||||
#define E1_ENABLE_PIN P0_04
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN P2_12
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN P2_05
|
||||
#define E2_DIR_PIN P0_11
|
||||
#define E2_ENABLE_PIN P2_13
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN P0_10
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P0_20
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_19
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_21
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN P1_04
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_10
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P1_16
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P4_28
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P2_12
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN P0_10
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN P0_26_A3 // (T4)
|
||||
#define TEMP_1_PIN P0_25_A2 // (T3)
|
||||
#define TEMP_2_PIN P0_24_A1 // (T2)
|
||||
#define TEMP_BED_PIN P0_23_A0 // (T1)
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN P3_26
|
||||
#define HEATER_0_PIN P3_25
|
||||
#define HEATER_1_PIN P1_20
|
||||
#define HEATER_2_PIN P1_23
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P1_18
|
||||
#endif
|
||||
#define FAN1_PIN P1_21
|
||||
#define FAN2_PIN P1_24
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN P2_07
|
||||
#define LCD_PINS_RS P2_10
|
||||
#define LCD_PINS_ENABLE P0_22
|
||||
#define LCD_PINS_D4 P1_19
|
||||
#define LCD_PINS_D5 P2_08
|
||||
#define LCD_PINS_D6 P1_30
|
||||
#define LCD_PINS_D7 P1_31
|
||||
#define BTN_EN1 P0_00
|
||||
#define BTN_EN2 P0_01
|
||||
#define BTN_ENC P0_28
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SD_SS_PIN P0_06
|
||||
#define SD_SCK_PIN P0_07
|
||||
#define SD_MISO_PIN P0_08
|
||||
#define SD_MOSI_PIN P0_09
|
||||
#define SD_DETECT_PIN P0_05
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
#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 P2_06
|
||||
#endif
|
52
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
Executable file → Normal file
52
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
Executable file → Normal file
@@ -16,59 +16,43 @@
|
||||
* 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 pin assignments
|
||||
*
|
||||
* Pins diagram:
|
||||
* https://github.com/makerbase-mks/MKS-SGen/blob/master/Hardware/MKS%20SGEN%20V1.0_001/MKS%20SGEN%20V1.0_001%20PIN.pdf
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS SGen"
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
#define MKS_HAS_LPC1769
|
||||
#define REQUIRE_LPC1769
|
||||
#include "../lpc1768/pins_MKS_SBASE.h"
|
||||
|
||||
#undef E1_STEP_PIN
|
||||
#undef E1_DIR_PIN
|
||||
#undef E1_ENABLE_PIN
|
||||
|
||||
//#undef BTN_EN1
|
||||
//#undef BTN_EN2
|
||||
//#define BTN_EN1 P1_23 // EXP2.5
|
||||
//#define BTN_EN2 P1_22 // EXP2.3
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* The shortage of pins becomes apparent.
|
||||
* In the worst case you may have to give up the LCD.
|
||||
* RX pins must be interrupt-capable.
|
||||
*/
|
||||
#define X_SERIAL_TX_PIN P4_29 // J8-2
|
||||
#define X_SERIAL_RX_PIN P4_29 // J8-2
|
||||
#define X_SERIAL_TX_PIN P1_22 // J8-2
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P2_08 // J8-3
|
||||
#define Y_SERIAL_RX_PIN P2_08 // J8-3
|
||||
#define Y_SERIAL_TX_PIN P1_23 // J8-3
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P2_11 // J8-4
|
||||
#define Z_SERIAL_RX_PIN P2_11 // J8-4
|
||||
#define E0_SERIAL_TX_PIN P2_13 // J8-5
|
||||
#define E0_SERIAL_RX_PIN P2_13 // J8-5
|
||||
#define Z_SERIAL_TX_PIN P2_12 // J8-4
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P2_11 // J8-5
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P4_28 // J8-6
|
||||
#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
|
||||
|
438
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
Normal file
438
Marlin/src/pins/lpc1769/pins_MKS_SGEN_L_V2.h
Normal file
@@ -0,0 +1,438 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MKS SGen-L V2 pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "MKS SGEN_L V2"
|
||||
#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
|
||||
|
||||
//
|
||||
// EEPROM, MKS SGEN_L V2.0 hardware has 4K EEPROM on the board
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM // AT24C32
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN P1_23 // SERVO P1.23
|
||||
#define SERVO1_PIN P2_00 // SERVO P2.0
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins, can connect or disconnect by jumpers cap on the board
|
||||
//
|
||||
#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
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#else
|
||||
#define X_MIN_PIN P1_28 // X+
|
||||
#endif
|
||||
#else
|
||||
#define X_MIN_PIN P1_29 // X-
|
||||
#define X_MAX_PIN P1_28 // X+
|
||||
#endif
|
||||
|
||||
#if Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#else
|
||||
#define Y_MIN_PIN P1_26 // Y+
|
||||
#endif
|
||||
#else
|
||||
#define Y_MIN_PIN P1_27 // Y-
|
||||
#define Y_MAX_PIN P1_26 // Y+
|
||||
#endif
|
||||
|
||||
#if Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN P1_24 // Z+
|
||||
#else
|
||||
#define Z_MIN_PIN P1_24 // Z+
|
||||
#endif
|
||||
#else
|
||||
#define Z_MIN_PIN P1_25 // Z-
|
||||
#define Z_MAX_PIN P1_24 // Z+
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN P1_24
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN P2_02
|
||||
#define X_DIR_PIN P2_03
|
||||
#define X_ENABLE_PIN P2_01
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN P1_01
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN P0_19
|
||||
#define Y_DIR_PIN P0_20
|
||||
#define Y_ENABLE_PIN P2_08
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN P1_08
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN P0_22
|
||||
#define Z_DIR_PIN P2_11
|
||||
#define Z_ENABLE_PIN P0_21
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN P1_10
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN P2_13
|
||||
#define E0_DIR_PIN P0_11
|
||||
#define E0_ENABLE_PIN P2_12
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN P1_15
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN P1_09
|
||||
#define E1_DIR_PIN P1_14
|
||||
#define E1_ENABLE_PIN P0_10
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN P1_17
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P1_16
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_04
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#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
|
||||
|
||||
#define X_SERIAL_TX_PIN P1_01
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN P1_08
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN P1_10
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN P1_15
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN P1_17
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
// 3.3V max when defined as an analog input
|
||||
//
|
||||
#define TEMP_0_PIN P0_23_A0 // Analog Input A0 (TH1)
|
||||
#define TEMP_BED_PIN P0_24_A1 // Analog Input A1 (TB)
|
||||
#define TEMP_1_PIN P0_25_A2 // Analog Input A2 (TH2)
|
||||
#define TEMP_2_PIN P0_26_A3 // Analog Input A3 (P0.26, No pull up)
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#if HAS_MULTI_HOTEND
|
||||
#ifndef HEATER_1_PIN
|
||||
#define HEATER_1_PIN P2_06
|
||||
#endif
|
||||
#else
|
||||
#ifndef FAN2_PIN
|
||||
#define FAN2_PIN P2_06 // HE1 for FAN3
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04 // FAN1
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN P1_04 // FAN2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN P1_18 // Used as a status indicator
|
||||
|
||||
//
|
||||
// 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
|
||||
|
||||
//
|
||||
// RGB LED
|
||||
//
|
||||
#if ENABLED(RGB_LED)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN P1_19
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN P1_20
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN P1_21
|
||||
#endif
|
||||
#else
|
||||
#define LED2_PIN P1_19 // Initialized by HAL/LPC1768/main.cpp
|
||||
#define LED3_PIN P1_20
|
||||
#define LED4_PIN P1_21
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) 1.31 |10 9 | 1.30 (BTN_ENC) (MISO) 0.8 |10 9 | 0.7 (SD_SCK)
|
||||
* (LCD_EN) 0.18 | 8 7 | 0.16 (LCD_RS) (BTN_EN1) 3.25 | 8 7 | 0.28 (SD_CS2)
|
||||
* (LCD_D4) 0.15 | 6 5 | 0.17 (LCD_D5) (BTN_EN2) 3.26 | 6 5 | 0.9 (SD_MOSI)
|
||||
* (LCD_D6) 1.0 | 4 3 | 1.22 (LCD_D7) (SD_DETECT) 0.27 | 4 3 | RST
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN P1_22
|
||||
#define EXP1_04_PIN P1_00
|
||||
#define EXP1_05_PIN P0_17
|
||||
#define EXP1_06_PIN P0_15
|
||||
#define EXP1_07_PIN P0_16
|
||||
#define EXP1_08_PIN P0_18
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
|
||||
#define 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
|
||||
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
|
||||
#if ENABLED(MKS_12864OLED_SSD1306)
|
||||
|
||||
#define LCD_PINS_DC EXP1_05_PIN
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define DOGLCD_SCK EXP1_06_PIN
|
||||
#define DOGLCD_MOSI EXP1_08_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define KILL_PIN -1 // NC
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_A0_PIN EXP1_03_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
|
||||
#define 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
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
||||
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
||||
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#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
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#endif
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#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 // !MKS_12864OLED_SSD1306
|
||||
|
||||
#endif // !CR10_STOCKDISPLAY
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#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
|
||||
|
||||
//
|
||||
// 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 // SERVO0 P1.23
|
83
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
Executable file → Normal file
83
Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.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
|
||||
|
||||
/**
|
||||
* Smoothieboard pin assignments
|
||||
* Smoothieware Smoothieboard pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Smoothieboard"
|
||||
#define BOARD_WEBSITE_URL "smoothieware.org/smoothieboard"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -115,8 +107,73 @@
|
||||
#define STAT_LED_RED_PIN P1_19
|
||||
#define STAT_LED_BLUE_PIN P1_20
|
||||
|
||||
#elif HAS_SPI_LCD
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#error "Marlin's Smoothieboard support cannot drive your LCD."
|
||||
/**
|
||||
* SD Support
|
||||
*
|
||||
* For the RRD GLCD it CANNOT share the same SPI as the LCD so it must be
|
||||
* hooked up to the onboard SDCard SPI and use a spare pin for the SDCS.
|
||||
* Also note that an external SDCard sharing the SPI port with the
|
||||
* onboard/internal SDCard must be ejected before rebooting as the bootloader
|
||||
* does not like the external card. NOTE Smoothie will not boot if the external
|
||||
* sdcard is inserted in the RRD LCD sdcard slot at boot time, it must be
|
||||
* inserted after it has booted.
|
||||
*/
|
||||
#define SD_DETECT_PIN P0_27 // EXP2 Pin 7 (SD_CD, SD_DET)
|
||||
|
||||
#define SD_MISO_PIN P0_08 // EXP2 Pin 1 (PB3, SD_MISO)
|
||||
#define SD_SCK_PIN P0_07 // EXP2 Pin 2 (SD_SCK)
|
||||
#define SD_SS_PIN P0_28 // EXP2 Pin 4 (SD_CSEL, SD_CS)
|
||||
#define SD_MOSI_PIN P0_09 // EXP2 Pin 6 (PB2, SD_MOSI)
|
||||
|
||||
/**
|
||||
* The Smoothieboard supports the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER with either
|
||||
* a custom cable with breakouts to the pins indicated below or the RRD GLCD Adapter board
|
||||
* found at http://smoothieware.org/rrdglcdadapter
|
||||
*
|
||||
* Other links to information about setting up a display panel with Smoothieboard
|
||||
* http://chibidibidiwah.wdfiles.com/local--files/panel/smoothieboard2sd.jpg
|
||||
* http://smoothieware.org/panel
|
||||
*/
|
||||
#if IS_RRD_FG_SC
|
||||
// EXP1 Pins
|
||||
#define BEEPER_PIN P1_31 // EXP1 Pin 1
|
||||
#define BTN_ENC P1_30 // EXP1 Pin 2
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1 Pin 3 (MOSI)
|
||||
#define LCD_PINS_RS P0_16 // EXP1 Pin 4 (CS)
|
||||
#define LCD_PINS_D4 P0_15 // EXP1 Pin 5 (SCK)
|
||||
// EXP2 Pins
|
||||
#define BTN_EN2 P3_26 // EXP2 Pin 3
|
||||
#define BTN_EN1 P3_25 // EXP2 Pin 5
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#define SD_DETECT_PIN P0_27 // EXP2 Pin 7 (SD_CD, SD_DET)
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS P3_26 // EXP2 Pin 3
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error "Marlin's Smoothieboard support cannot drive your LCD."
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* I2C Digipots - MCP4451
|
||||
* Address 58 (2C << 1)
|
||||
* Set from 0 - 127 with stop bit.
|
||||
* (Ex. 3F << 1 | 1)
|
||||
*/
|
||||
#define DIGIPOTS_I2C_SCL P0_00
|
||||
#define DIGIPOTS_I2C_SDA_X P0_04
|
||||
#define DIGIPOTS_I2C_SDA_Y P0_10
|
||||
#define DIGIPOTS_I2C_SDA_Z P0_19
|
||||
#define DIGIPOTS_I2C_SDA_E0 P0_21
|
||||
#define DIGIPOTS_I2C_SDA_E1 P4_29
|
||||
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_A
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address (58 <- 2C << 1)
|
||||
#endif
|
||||
|
138
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
Executable file → Normal file
138
Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.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,30 +25,32 @@
|
||||
* TH3D EZBoard pin assignments
|
||||
*/
|
||||
|
||||
#ifndef MCU_LPC1769
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
//#define V3_EZABL_ON_SERVO // As in TH3D Firmware Config
|
||||
|
||||
#define BOARD_INFO_NAME "TH3D EZBoard"
|
||||
#define BOARD_WEBSITE_URL "th3dstudio.com"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SDCARD_EEPROM_EMULATION
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN P2_04
|
||||
#if ENABLED(V3_EZABL_ON_SERVO)
|
||||
#define SERVO0_PIN -1
|
||||
#else
|
||||
#define SERVO0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN P1_24
|
||||
#define Y_STOP_PIN P1_25
|
||||
#define Z_STOP_PIN P1_26
|
||||
#if ENABLED(V3_EZABL_ON_SERVO)
|
||||
#define Z_STOP_PIN P2_04
|
||||
#else
|
||||
#define Z_STOP_PIN P1_26
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
@@ -83,19 +85,21 @@
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// TMC220x stepper drivers
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN P0_04
|
||||
#define X_SERIAL_RX_PIN P0_05
|
||||
|
||||
#define Y_SERIAL_TX_PIN P0_10
|
||||
#define Y_SERIAL_RX_PIN P0_11
|
||||
|
||||
#define Z_SERIAL_TX_PIN P0_19
|
||||
#define Z_SERIAL_RX_PIN P0_20
|
||||
|
||||
#define E0_SERIAL_TX_PIN P0_22
|
||||
#define E0_SERIAL_RX_PIN P0_21
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -109,13 +113,6 @@
|
||||
#endif
|
||||
|
||||
#define TEMP_BED_PIN P0_24_A1 // Analog Input P0_24
|
||||
#define TEMP_1_PIN P0_25_A2 // Analog Input P0_25
|
||||
|
||||
#if ENABLED(FILAMENT_WIDTH_SENSOR)
|
||||
#define FILWIDTH_PIN P0_26_A3 // Analog Input P0_26
|
||||
#else
|
||||
#define TEMP_2_PIN P0_26_A3 // Analog Input P0_26
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
@@ -131,9 +128,15 @@
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN P1_22 // FET 3
|
||||
#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
@@ -141,43 +144,84 @@
|
||||
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
#define SCK_PIN P0_07
|
||||
#define MISO_PIN P0_08
|
||||
#define MOSI_PIN P0_09
|
||||
//#define SD_DETECT_PIN P0_25 // SD_CD
|
||||
#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
|
||||
#define SS_PIN ONBOARD_SD_CS_PIN
|
||||
#define SD_SS_PIN ONBOARD_SD_CS_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
/**
|
||||
* _____
|
||||
* 5V | · · | GND
|
||||
* (LCD_EN) P0_18 | · · | P0_16 (LCD_RS)
|
||||
* (LCD_D4) P0_15 | · · | P3_25 (BTN_EN2)
|
||||
* (RESET) P2_11 | · · | P3_26 (BTN_EN1)
|
||||
* (BTN_ENC) P1_30 | · · | P1_31 (BEEPER)
|
||||
* -----
|
||||
* EXP1
|
||||
* ------
|
||||
* 5V | 1 2 | GND
|
||||
* P0_18 | 3 4 | P0_16
|
||||
* P0_15 | 5 6 P3_25
|
||||
* P2_11 | 7 8 | P3_26
|
||||
* P1_30 | 9 10 | P1_31
|
||||
* ------
|
||||
* EXP1
|
||||
*
|
||||
* LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
|
||||
* defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
|
||||
*
|
||||
* A remote SD card is currently not supported because the pins routed to the EXP2
|
||||
* connector are shared with the onboard SD card.
|
||||
*
|
||||
*/
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN P3_25
|
||||
#define EXP1_07_PIN P2_11
|
||||
#define EXP1_08_PIN P3_26
|
||||
#define EXP1_09_PIN P1_30
|
||||
#define EXP1_10_PIN P1_31
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define BEEPER_PIN P1_31
|
||||
#define BTN_EN1 P3_26
|
||||
#define BTN_EN2 P3_25
|
||||
#define BTN_ENC P1_30
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#define KILL_PIN P2_11
|
||||
#elif HAS_SPI_LCD
|
||||
#error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
|
||||
/** ------
|
||||
* 5V | 1 2 | GND
|
||||
* LCD_EN | 3 4 | LCD_RS
|
||||
* LCD_D4 | 5 6 EN2
|
||||
* KILL | 7 8 | EN1
|
||||
* ENC | 9 10 | BEEPER
|
||||
* ------
|
||||
*/
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define KILL_PIN EXP1_07_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
/** ------
|
||||
* 5V | 1 2 | GND
|
||||
* SPI-MOSI | 3 4 | SPI-CS
|
||||
* A0 | 5 6 EN2
|
||||
* -- | 7 8 | EN1
|
||||
* ENC | 9 10 | SPI-SCK
|
||||
* ------
|
||||
*/
|
||||
#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 LCD_CONTRAST_INIT 160
|
||||
#define LCD_CONTRAST_MIN 120
|
||||
#define LCD_CONTRAST_MAX 180
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#error "Only CR10_STOCKDISPLAY or MKS_MINI_12864 are supported with TH3D EZBoard."
|
||||
|
||||
#endif
|
||||
|
||||
#if EITHER(CR10_STOCKDISPLAY, MKS_MINI_12864)
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
||||
|
32
Marlin/src/pins/mega/env_validate.h
Normal file
32
Marlin/src/pins/mega/env_validate.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 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 NOT_TARGET(__AVR_ATmega2560__)
|
||||
#if DISABLED(ALLOW_MEGA1280)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif NOT_TARGET(__AVR_ATmega1280__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#undef ALLOW_MEGA1280
|
6
Marlin/src/pins/mega/pins_CHEAPTRONIC.h
Executable file → Normal file
6
Marlin/src/pins/mega/pins_CHEAPTRONIC.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,9 +25,7 @@
|
||||
* Cheaptronic v1.0 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Cheaptronic v1.0"
|
||||
//
|
||||
|
12
Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
Executable file → Normal file
12
Marlin/src/pins/mega/pins_CHEAPTRONICv2.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,9 +27,7 @@
|
||||
* www.reprapobchod.cz
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Cheaptronic v2.0"
|
||||
|
||||
@@ -119,6 +117,10 @@
|
||||
#define LCD_PINS_D6 41
|
||||
#define LCD_PINS_D7 40
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
//
|
||||
// Beeper, SD Card, Encoder
|
||||
//
|
||||
@@ -129,7 +131,7 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 11
|
||||
#define BTN_EN2 12
|
||||
#define BTN_ENC 43
|
||||
|
35
Marlin/src/pins/mega/pins_CNCONTROLS_11.h
Executable file → Normal file
35
Marlin/src/pins/mega/pins_CNCONTROLS_11.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,9 +25,8 @@
|
||||
* CartesioV11 pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "CN Controls V11"
|
||||
|
||||
@@ -95,10 +94,22 @@
|
||||
//#define FAN_PIN 7 // common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 7
|
||||
#define ORIG_E1_AUTO_FAN_PIN 7
|
||||
#define ORIG_E2_AUTO_FAN_PIN 7
|
||||
#define ORIG_E3_AUTO_FAN_PIN 7
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN 7
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -129,7 +140,7 @@
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 26
|
||||
#define DOGLCD_CS 24
|
||||
#define DOGLCD_MOSI -1
|
||||
#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
|
||||
#define DOGLCD_SCK -1
|
||||
|
||||
#define BTN_EN1 23
|
||||
@@ -137,9 +148,9 @@
|
||||
#define BTN_ENC 27
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT 19
|
||||
#define SHIFT_LD 18
|
||||
#define SHIFT_CLK 17
|
||||
#define SHIFT_OUT_PIN 19
|
||||
#define SHIFT_LD_PIN 18
|
||||
#define SHIFT_CLK_PIN 17
|
||||
|
||||
//#define UI1 31
|
||||
//#define UI2 22
|
||||
|
33
Marlin/src/pins/mega/pins_CNCONTROLS_12.h
Executable file → Normal file
33
Marlin/src/pins/mega/pins_CNCONTROLS_12.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,9 +25,8 @@
|
||||
* CartesioV12 pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "CN Controls V12"
|
||||
|
||||
@@ -95,10 +94,22 @@
|
||||
#define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 7
|
||||
#define ORIG_E1_AUTO_FAN_PIN 7
|
||||
#define ORIG_E2_AUTO_FAN_PIN 7
|
||||
#define ORIG_E3_AUTO_FAN_PIN 7
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN 7
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -144,9 +155,9 @@
|
||||
#define BTN_ENC 38
|
||||
|
||||
// Hardware buttons for manual movement of XYZ
|
||||
#define SHIFT_OUT 42
|
||||
#define SHIFT_LD 41
|
||||
#define SHIFT_CLK 40
|
||||
#define SHIFT_OUT_PIN 42
|
||||
#define SHIFT_LD_PIN 41
|
||||
#define SHIFT_CLK_PIN 40
|
||||
|
||||
//#define UI1 43
|
||||
//#define UI2 37
|
||||
|
32
Marlin/src/pins/mega/pins_CNCONTROLS_15.h
Executable file → Normal file
32
Marlin/src/pins/mega/pins_CNCONTROLS_15.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,9 +25,8 @@
|
||||
* CNControls V15 for HMS434 pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "CN Controls V15"
|
||||
|
||||
@@ -88,11 +87,26 @@
|
||||
// Fans
|
||||
//
|
||||
#define FAN_PIN 8
|
||||
#define ORIG_E0_AUTO_FAN_PIN 30
|
||||
#define ORIG_E1_AUTO_FAN_PIN 30
|
||||
#define ORIG_E2_AUTO_FAN_PIN 30
|
||||
#define ORIG_E3_AUTO_FAN_PIN 30
|
||||
//#define ORIG_CHAMBER_AUTO_FAN_PIN 10
|
||||
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN 30
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef CHAMBER_AUTO_FAN_PIN
|
||||
//#define CHAMBER_AUTO_FAN_PIN 10
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
7
Marlin/src/pins/mega/pins_EINSTART-S.h
Executable file → Normal file
7
Marlin/src/pins/mega/pins_EINSTART-S.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
|
||||
@@ -26,9 +26,8 @@
|
||||
* PCB Silkscreen: 3DPrinterCon_v3.5
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Einstart-S"
|
||||
|
||||
|
6
Marlin/src/pins/mega/pins_ELEFU_3.h
Executable file → Normal file
6
Marlin/src/pins/mega/pins_ELEFU_3.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,9 +25,7 @@
|
||||
* Elefu RA Board Pin Assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Elefu Ra v3"
|
||||
|
||||
|
56
Marlin/src/pins/mega/pins_GT2560_REV_A.h
Executable file → Normal file
56
Marlin/src/pins/mega/pins_GT2560_REV_A.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,9 +27,8 @@
|
||||
* Richard Smith <galorin@gmail.com>
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "GT2560 Rev.A"
|
||||
@@ -44,7 +43,18 @@
|
||||
#define Y_MIN_PIN 26
|
||||
#define Y_MAX_PIN 28
|
||||
#define Z_MIN_PIN 30
|
||||
#define Z_MAX_PIN 32
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#if MB(GT2560_REV_A_PLUS)
|
||||
#define SERVO0_PIN 11
|
||||
#define Z_MAX_PIN 32
|
||||
#else
|
||||
#define SERVO0_PIN 32
|
||||
#define Z_MAX_PIN -1
|
||||
#endif
|
||||
#else
|
||||
#define Z_MAX_PIN 32
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -95,17 +105,31 @@
|
||||
#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
|
||||
#define KILL_PIN -1
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 5
|
||||
#define DOGLCD_CS 21
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 42
|
||||
#elif ENABLED(FYSETC_MINI_12864)
|
||||
// Disconnect EXP2-1 and EXP2-2, otherwise future firmware upload won't work.
|
||||
#define DOGLCD_A0 20
|
||||
#define DOGLCD_CS 17
|
||||
|
||||
#define NEOPIXEL_PIN 21
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
|
||||
#define LCD_RESET_PIN 16
|
||||
|
||||
#define DEFAULT_LCD_CONTRAST 220
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#else
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 17
|
||||
@@ -120,12 +144,12 @@
|
||||
#define BTN_ENC 19
|
||||
#define SD_DETECT_PIN 38
|
||||
|
||||
#else // !NEWPANEL
|
||||
#else // !IS_NEWPANEL
|
||||
|
||||
#define SHIFT_CLK 38
|
||||
#define SHIFT_LD 42
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_EN 17
|
||||
#define SHIFT_CLK_PIN 38
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define SHIFT_OUT_PIN 40
|
||||
#define SHIFT_EN_PIN 17
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 5
|
||||
@@ -134,8 +158,12 @@
|
||||
#define LCD_PINS_D6 20
|
||||
#define LCD_PINS_D7 19
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#define SD_DETECT_PIN -1
|
||||
|
||||
#endif // !NEWPANEL
|
||||
#endif // !IS_NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
6
Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.h
Executable file → Normal file
6
Marlin/src/pins/mega/pins_GT2560_REV_A_PLUS.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
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
#include "pins_GT2560_REV_A.h"
|
||||
|
||||
#if ENABLED(BLTOUCH)
|
||||
#define SERVO0_PIN 11
|
||||
#else
|
||||
#if DISABLED(BLTOUCH)
|
||||
#define SERVO0_PIN 32
|
||||
#endif
|
||||
|
30
Marlin/src/pins/mega/pins_GT2560_REV_B.h
Normal file
30
Marlin/src/pins/mega/pins_GT2560_REV_B.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
|
||||
|
||||
/**
|
||||
* Geeetech GT2560 Rev B Pins
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 Rev B"
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
90
Marlin/src/pins/mega/pins_GT2560_V3.h
Executable file → Normal file
90
Marlin/src/pins/mega/pins_GT2560_V3.h
Executable file → Normal file
@@ -16,27 +16,28 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* GT2560 RevB + GT2560 V3.0 + GT2560 V3.1 + GT2560 V4.0 pin assignment
|
||||
* Geeetech GT2560 3.0/3.1 pin assignments
|
||||
*
|
||||
* Also GT2560 RevB and GT2560 4.0/4.1
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "GT2560 V3.0"
|
||||
#define BOARD_INFO_NAME "GT2560 3.x"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 11 //13 untested 3Dtouch
|
||||
#define SERVO0_PIN 11 // 13 untested 3Dtouch
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -82,6 +83,9 @@
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN 67
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT3_PIN
|
||||
#define FIL_RUNOUT3_PIN 54
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Recovery
|
||||
@@ -121,7 +125,7 @@
|
||||
//
|
||||
#define TEMP_0_PIN 11 // Analog Input
|
||||
#define TEMP_1_PIN 9 // Analog Input
|
||||
#define TEMP_2_PIN 1 // Analog Input
|
||||
#define TEMP_2_PIN 8 // Analog Input
|
||||
#define TEMP_BED_PIN 10 // Analog Input
|
||||
|
||||
//
|
||||
@@ -129,7 +133,7 @@
|
||||
//
|
||||
#define HEATER_0_PIN 10
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_2_PIN 1
|
||||
#define HEATER_2_PIN 2
|
||||
#define HEATER_BED_PIN 4
|
||||
#define FAN_PIN 9
|
||||
#define FAN1_PIN 8
|
||||
@@ -140,9 +144,12 @@
|
||||
//
|
||||
#define SD_DETECT_PIN 38
|
||||
#define SDSS 53
|
||||
#define LED_PIN 6
|
||||
#define LED_PIN 13 // Use 6 (case light) for external LED. 13 is internal (yellow) LED.
|
||||
#define PS_ON_PIN 12
|
||||
#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
|
||||
|
||||
#if NUM_RUNOUT_SENSORS < 3
|
||||
#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
|
||||
#endif
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 6 // 21
|
||||
@@ -153,26 +160,51 @@
|
||||
//
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#ifndef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 20
|
||||
#endif
|
||||
#ifndef LCD_PINS_ENABLE
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#endif
|
||||
#ifndef LCD_PINS_D4
|
||||
#define LCD_PINS_D4 16
|
||||
#endif
|
||||
#ifndef LCD_PINS_D5
|
||||
#define LCD_PINS_D5 21
|
||||
#endif
|
||||
#ifndef LCD_PINS_D6
|
||||
#define LCD_PINS_D6 5
|
||||
#endif
|
||||
#ifndef LCD_PINS_D7
|
||||
#define LCD_PINS_D7 36
|
||||
#if ENABLED(YHCB2004)
|
||||
#ifndef YHCB2004_CLK
|
||||
#define YHCB2004_CLK 5
|
||||
#define DIO52 YHCB2004_CLK
|
||||
#endif
|
||||
#ifndef YHCB2004_MOSI
|
||||
#define YHCB2004_MOSI 21
|
||||
#define DIO50 YHCB2004_MOSI
|
||||
#endif
|
||||
#ifndef YHCB2004_MISO
|
||||
#define YHCB2004_MISO 36
|
||||
#define DIO51 YHCB2004_MISO
|
||||
#endif
|
||||
#elif HAS_WIRED_LCD
|
||||
#ifndef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 20
|
||||
#endif
|
||||
#ifndef LCD_PINS_ENABLE
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#endif
|
||||
#ifndef LCD_PINS_D4
|
||||
#define LCD_PINS_D4 16
|
||||
#endif
|
||||
#ifndef LCD_PINS_D5
|
||||
#define LCD_PINS_D5 21
|
||||
#endif
|
||||
#ifndef LCD_PINS_D6
|
||||
#define LCD_PINS_D6 5
|
||||
#endif
|
||||
#ifndef LCD_PINS_D7
|
||||
#define LCD_PINS_D7 36
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if ENABLED(YHCB2004)
|
||||
#ifndef BTN_EN1
|
||||
#define BTN_EN1 16
|
||||
#endif
|
||||
#ifndef BTN_EN2
|
||||
#define BTN_EN2 17
|
||||
#endif
|
||||
#ifndef BTN_ENC
|
||||
#define BTN_ENC 19
|
||||
#endif
|
||||
#elif IS_NEWPANEL
|
||||
#ifndef BTN_EN1
|
||||
#define BTN_EN1 42
|
||||
#endif
|
||||
|
22
Marlin/src/pins/mega/pins_GT2560_V3_A20.h
Executable file → Normal file
22
Marlin/src/pins/mega/pins_GT2560_V3_A20.h
Executable file → Normal file
@@ -16,24 +16,26 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Geeetech A20M pin assignment
|
||||
* Geeetech A20M board pin assignments
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 19
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 19
|
||||
#endif
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
||||
|
8
Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
Executable file → Normal file
8
Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
Executable file → Normal file
@@ -16,14 +16,14 @@
|
||||
* 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
|
||||
|
||||
/*****************************************************************
|
||||
* GT2560 V3.0 pin assignment (for Mecreator 2)
|
||||
*****************************************************************/
|
||||
/**
|
||||
* Geeetech GT2560 V 3.0 board pin assignments (for Mecreator 2)
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 V3.0 (MC2)"
|
||||
|
||||
|
30
Marlin/src/pins/mega/pins_GT2560_V4.h
Normal file
30
Marlin/src/pins/mega/pins_GT2560_V4.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
|
||||
|
||||
/**
|
||||
* Geeetech GT2560 V4.X Pins
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 4.x"
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
43
Marlin/src/pins/mega/pins_GT2560_V4_A20.h
Normal file
43
Marlin/src/pins/mega/pins_GT2560_V4_A20.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Geeetech A20 GT2560 V4.x board pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 4.x"
|
||||
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 19
|
||||
#endif
|
||||
|
||||
#include "pins_GT2560_V3.h"
|
33
Marlin/src/pins/mega/pins_HJC2560C_REV2.h
Executable file → Normal file
33
Marlin/src/pins/mega/pins_HJC2560C_REV2.h
Executable file → Normal file
@@ -16,18 +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
|
||||
|
||||
/**
|
||||
* HJC2560-C Rev2.x pin assignments
|
||||
* Geeetech HJC2560-C Rev 2.x board pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "ADIMLab Gantry v2"
|
||||
#define BOARD_INFO_NAME "HJC2560-C"
|
||||
@@ -103,7 +101,10 @@
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 39
|
||||
//#define LED_PIN 8
|
||||
#define CASE_LIGHT_PIN 8 // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 8 // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
|
||||
#endif
|
||||
|
||||
//#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
|
||||
//#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
|
||||
@@ -111,20 +112,20 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if ENABLED(SPINDLE_LASER_ENABLE)
|
||||
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
|
||||
#define SPINDLE_DIR_PIN 16
|
||||
#define SPINDLE_LASER_ENABLE_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 20 // LCD_CS
|
||||
#define LCD_PINS_ENABLE 15 // LCD_SDA
|
||||
@@ -153,10 +154,10 @@
|
||||
#else
|
||||
|
||||
// Buttons attached to a shift register
|
||||
#define SHIFT_CLK 38
|
||||
#define SHIFT_LD 42
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_EN 17
|
||||
#define SHIFT_CLK_PIN 38
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define SHIFT_OUT_PIN 40
|
||||
#define SHIFT_EN_PIN 17
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 5
|
||||
@@ -165,6 +166,6 @@
|
||||
#define LCD_PINS_D6 20
|
||||
#define LCD_PINS_D7 19
|
||||
|
||||
#endif // !NEWPANEL
|
||||
#endif // !IS_NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
11
Marlin/src/pins/mega/pins_INTAMSYS40.h
Executable file → Normal file
11
Marlin/src/pins/mega/pins_INTAMSYS40.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,9 +27,7 @@
|
||||
* 2208 version exists and may or may not work
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Intamsys 4.0"
|
||||
|
||||
@@ -82,7 +80,7 @@
|
||||
|
||||
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
|
||||
#ifndef MOTOR_CURRENT_PWM_RANGE
|
||||
#define MOTOR_CURRENT_PWM_RANGE 2000
|
||||
#define MOTOR_CURRENT_PWM_RANGE 2000
|
||||
#endif
|
||||
#define DEFAULT_PWM_MOTOR_CURRENT { 1300, 1300, 1250 }
|
||||
|
||||
@@ -122,7 +120,7 @@
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 30
|
||||
#define LCD_PINS_D4 14
|
||||
@@ -137,7 +135,6 @@
|
||||
///////////////////// SPARE HEADERS //////////////
|
||||
|
||||
/**
|
||||
*
|
||||
* J25
|
||||
* 1 D54
|
||||
* 2 D55
|
||||
|
7
Marlin/src/pins/mega/pins_LEAPFROG.h
Executable file → Normal file
7
Marlin/src/pins/mega/pins_LEAPFROG.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,9 +25,8 @@
|
||||
* Leapfrog Driver board pin assignments
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Leapfrog"
|
||||
|
||||
|
6
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
Executable file → Normal file
6
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.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
|
||||
@@ -29,9 +29,7 @@
|
||||
* printer models. As such this file is currently specific to the Xeed.
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Leapfrog Xeed 2015"
|
||||
|
||||
|
100
Marlin/src/pins/mega/pins_MALYAN_M180.h
Normal file
100
Marlin/src/pins/mega/pins_MALYAN_M180.h
Normal file
@@ -0,0 +1,100 @@
|
||||
/**
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Malyan M180 pin assignments
|
||||
* Contributed by Timo Birnschein (timo.birnschein@microforge.de)
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Malyan M180 v.2"
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 48
|
||||
#define Y_STOP_PIN 46
|
||||
#define Z_STOP_PIN 42
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 55
|
||||
#define X_DIR_PIN 54
|
||||
#define X_ENABLE_PIN 56
|
||||
|
||||
#define Y_STEP_PIN 59
|
||||
#define Y_DIR_PIN 58
|
||||
#define Y_ENABLE_PIN 60
|
||||
|
||||
#define Z_STEP_PIN 63
|
||||
#define Z_DIR_PIN 62
|
||||
#define Z_ENABLE_PIN 64
|
||||
|
||||
#define E0_STEP_PIN 25
|
||||
#define E0_DIR_PIN 24
|
||||
#define E0_ENABLE_PIN 26
|
||||
|
||||
#define E1_STEP_PIN 29
|
||||
#define E1_DIR_PIN 28
|
||||
#define E1_ENABLE_PIN 39
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN 15 // Analog Input
|
||||
|
||||
// Extruder thermocouples 0 and 1 are read out by two separate ICs using
|
||||
// SPI for MAX Thermocouple
|
||||
// Uses a separate SPI bus
|
||||
#define TEMP_0_CS_PIN 5 // E3 - CS0
|
||||
#define TEMP_0_SCK_PIN 78 // E2 - SCK
|
||||
#define TEMP_0_MISO_PIN 3 // E5 - MISO
|
||||
//#define TEMP_0_MOSI_PIN ... // For MAX31865
|
||||
|
||||
#define TEMP_1_CS_PIN 2 // E4 - CS1
|
||||
#define TEMP_1_SCK_PIN TEMP_0_SCK_PIN
|
||||
#define TEMP_1_MISO_PIN TEMP_0_MISO_PIN
|
||||
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 6
|
||||
#define HEATER_1_PIN 11
|
||||
#define HEATER_BED_PIN 45
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 // M106 Sxxx command supported and tested. M107 as well.
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN1
|
||||
#define FAN_PIN1 12 // Currently Unsupported by Marlin
|
||||
#endif
|
13
Marlin/src/pins/mega/pins_MEGACONTROLLER.h
Executable file → Normal file
13
Marlin/src/pins/mega/pins_MEGACONTROLLER.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,12 +25,12 @@
|
||||
* Mega controller pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Mega Controller"
|
||||
|
||||
//
|
||||
@@ -128,7 +128,10 @@
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 2
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
15
Marlin/src/pins/mega/pins_MEGATRONICS.h
Executable file → Normal file
15
Marlin/src/pins/mega/pins_MEGATRONICS.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,9 +25,7 @@
|
||||
* MegaTronics pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Megatronics"
|
||||
//
|
||||
@@ -98,14 +96,17 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 2
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#if BOTH(ULTRA_LCD, NEWPANEL)
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
@@ -121,7 +122,7 @@
|
||||
|
||||
#define SD_DETECT_PIN -1 // RAMPS doesn't use this
|
||||
|
||||
#endif // HAS_SPI_LCD && NEWPANEL
|
||||
#endif // IS_ULTRA_LCD && IS_NEWPANEL
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
|
25
Marlin/src/pins/mega/pins_MEGATRONICS_2.h
Executable file → Normal file
25
Marlin/src/pins/mega/pins_MEGATRONICS_2.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,9 +25,7 @@
|
||||
* MegaTronics v2.0 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Megatronics v2.0"
|
||||
//
|
||||
@@ -113,7 +111,10 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 2
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 2
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -127,7 +128,7 @@
|
||||
//
|
||||
#define BEEPER_PIN 64
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_RS 14
|
||||
#define LCD_PINS_ENABLE 15
|
||||
@@ -136,17 +137,17 @@
|
||||
#define LCD_PINS_D6 32
|
||||
#define LCD_PINS_D7 33
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
// Buttons are directly attached using keypad
|
||||
#define BTN_EN1 61
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 43
|
||||
#else
|
||||
// Buttons attached to shift register of reprapworld keypad v1.1
|
||||
#define SHIFT_CLK 63
|
||||
#define SHIFT_LD 42
|
||||
#define SHIFT_OUT 17
|
||||
#define SHIFT_EN 17
|
||||
#define SHIFT_CLK_PIN 63
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define SHIFT_OUT_PIN 17
|
||||
#define SHIFT_EN_PIN 17
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
48
Marlin/src/pins/mega/pins_MEGATRONICS_3.h
Executable file → Normal file
48
Marlin/src/pins/mega/pins_MEGATRONICS_3.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,9 +25,7 @@
|
||||
* MegaTronics v3.0 / v3.1 / v3.2 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#if MB(MEGATRONICS_32)
|
||||
#define BOARD_INFO_NAME "Megatronics v3.2"
|
||||
@@ -69,9 +67,19 @@
|
||||
#define X_DIR_PIN 57
|
||||
#define X_ENABLE_PIN 59
|
||||
|
||||
#define Y_STEP_PIN 5
|
||||
#define Y_DIR_PIN 17
|
||||
#define Y_ENABLE_PIN 4
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD) && EXTRUDERS <= 2
|
||||
#define Y_ENABLE_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 60
|
||||
#else
|
||||
#define Y_STEP_PIN 5
|
||||
#define Y_DIR_PIN 17
|
||||
#define Y_ENABLE_PIN 4
|
||||
|
||||
#define E2_STEP_PIN 22
|
||||
#define E2_DIR_PIN 60
|
||||
#define E2_ENABLE_PIN 23
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN 16
|
||||
#define Z_DIR_PIN 11
|
||||
@@ -85,10 +93,6 @@
|
||||
#define E1_DIR_PIN 24
|
||||
#define E1_ENABLE_PIN 26
|
||||
|
||||
#define E2_STEP_PIN 22
|
||||
#define E2_DIR_PIN 60
|
||||
#define E2_ENABLE_PIN 23
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -132,7 +136,10 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define CASE_LIGHT_PIN 45 // Try the keypad connector
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 45 // Try the keypad connector
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -159,10 +166,10 @@
|
||||
#define LCD_PINS_D6 39
|
||||
#define LCD_PINS_D7 15
|
||||
|
||||
#define SHIFT_CLK 43
|
||||
#define SHIFT_LD 35
|
||||
#define SHIFT_OUT 34
|
||||
#define SHIFT_EN 44
|
||||
#define SHIFT_CLK_PIN 43
|
||||
#define SHIFT_LD_PIN 35
|
||||
#define SHIFT_OUT_PIN 34
|
||||
#define SHIFT_EN_PIN 44
|
||||
|
||||
#if MB(MEGATRONICS_31, MEGATRONICS_32)
|
||||
#define SD_DETECT_PIN 56
|
||||
@@ -180,15 +187,6 @@
|
||||
#elif EXTRUDERS <= 2
|
||||
// Hijack the last extruder so that we can get the PWM signal off the Y breakout
|
||||
// Move Y to the E2 plug. This makes dual Y steppers harder
|
||||
#undef Y_ENABLE_PIN // 4
|
||||
#undef Y_STEP_PIN // 5
|
||||
#undef Y_DIR_PIN // 17
|
||||
#undef E2_ENABLE_PIN // 23
|
||||
#undef E2_STEP_PIN // 22
|
||||
#undef E2_DIR_PIN // 60
|
||||
#define Y_ENABLE_PIN 23
|
||||
#define Y_STEP_PIN 22
|
||||
#define Y_DIR_PIN 60
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
|
41
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
Executable file → Normal file
41
Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.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
|
||||
@@ -37,9 +37,8 @@
|
||||
* number (B5) agrees with the schematic but B5 is assigned to logical pin 11.
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Mega 1280' or 'Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Mightyboard"
|
||||
#define DEFAULT_MACHINE_NAME "MB Replicator"
|
||||
@@ -116,8 +115,9 @@
|
||||
#define DIGIPOTS_I2C_SDA_E1 77 // J6
|
||||
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_A
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
|
||||
#endif
|
||||
#define DIGIPOT_ENABLE_I2C_PULLUPS // MightyBoard doesn't have hardware I2C pin pull-ups.
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -125,7 +125,7 @@
|
||||
// K7 - 69 / ADC15 - 15
|
||||
#define TEMP_BED_PIN 15
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
// Uses a separate SPI bus
|
||||
//
|
||||
// 3 E5 DO (SO)
|
||||
@@ -133,15 +133,15 @@
|
||||
// 2 E4 CS2
|
||||
// 78 E2 SCK
|
||||
//
|
||||
#define THERMO_SCK_PIN 78 // E2
|
||||
#define THERMO_DO_PIN 3 // E5
|
||||
#define THERMO_CS1_PIN 5 // E3
|
||||
#define THERMO_CS2_PIN 2 // E4
|
||||
#define TEMP_0_CS_PIN 5 // E3
|
||||
#define TEMP_0_SCK_PIN 78 // E2
|
||||
#define TEMP_0_MISO_PIN 3 // E5
|
||||
//#define TEMP_0_MOSI_PIN ... // For MAX31865
|
||||
|
||||
#define MAX6675_SS_PIN THERMO_CS1_PIN
|
||||
#define MAX6675_SS2_PIN THERMO_CS2_PIN
|
||||
#define MAX6675_SCK_PIN THERMO_SCK_PIN
|
||||
#define MAX6675_DO_PIN THERMO_DO_PIN
|
||||
#define TEMP_1_CS_PIN 2 // E4
|
||||
#define TEMP_1_SCK_PIN TEMP_0_SCK_PIN
|
||||
#define TEMP_1_MISO_PIN TEMP_0_MISO_PIN
|
||||
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
|
||||
|
||||
//
|
||||
// Augmentation for auto-assigning plugs
|
||||
@@ -159,7 +159,7 @@
|
||||
#define HBP_PIN 45 // L4
|
||||
#define EXTRA_FET_PIN 44 // L5
|
||||
|
||||
#if HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_EEB
|
||||
#else
|
||||
@@ -197,19 +197,24 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN EX2_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN 13 // B7
|
||||
#define CUTOFF_RESET_PIN 16 // H1
|
||||
#define CUTOFF_TEST_PIN 17 // H0
|
||||
#define CUTOFF_SR_CHECK_PIN 70 // G4 (TOSC1)
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#if IS_RRD_FG_SC
|
||||
|
||||
#define LCD_PINS_RS 33 // C4: LCD-STROBE
|
||||
#define LCD_PINS_ENABLE 72 // J2: LEFT
|
||||
@@ -255,7 +260,7 @@
|
||||
#define BTN_CENTER 15 // J0
|
||||
#define BTN_ENC BTN_CENTER
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
5
Marlin/src/pins/mega/pins_MINITRONICS.h
Executable file → Normal file
5
Marlin/src/pins/mega/pins_MINITRONICS.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
|
||||
@@ -29,10 +29,9 @@
|
||||
* Rev B 2 JAN 2017
|
||||
*
|
||||
* Added pin definitions for M3, M4 & M5 spindle control commands
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega1281__
|
||||
#if NOT_TARGET(__AVR_ATmega1281__)
|
||||
#error "Oops! Select 'Minitronics' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Minitronics supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
|
12
Marlin/src/pins/mega/pins_OVERLORD.h
Executable file → Normal file
12
Marlin/src/pins/mega/pins_OVERLORD.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,12 +25,12 @@
|
||||
* Dreammaker Overlord v1.1 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Overlord Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "OVERLORD"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
// OVERLORD OLED pins
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_D5 21
|
||||
@@ -132,7 +132,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_ENC 16 // Enter Pin
|
||||
#define BTN_UP 19 // Button UP Pin
|
||||
#define BTN_DWN 17 // Button DOWN Pin
|
||||
|
31
Marlin/src/pins/mega/pins_PICA.h
Executable file → Normal file
31
Marlin/src/pins/mega/pins_PICA.h
Executable file → Normal file
@@ -16,9 +16,10 @@
|
||||
* 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
|
||||
|
||||
/**
|
||||
* Arduino Mega with PICA pin assignments
|
||||
@@ -29,8 +30,10 @@
|
||||
* Applies to PICA, PICA_REVB
|
||||
*/
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
#define BOARD_NAME "PICA"
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "PICA"
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -42,10 +45,12 @@
|
||||
AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69;
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 3
|
||||
#define SERVO1_PIN 4
|
||||
#define SERVO2_PIN 5
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
@@ -75,6 +80,10 @@
|
||||
#define E0_DIR_PIN 24
|
||||
#define E0_ENABLE_PIN 26
|
||||
|
||||
#define E1_STEP_PIN 68
|
||||
#define E1_DIR_PIN 28
|
||||
#define E1_ENABLE_PIN 27
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -109,11 +118,11 @@
|
||||
|
||||
#define SSR_PIN 6
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -127,7 +136,7 @@
|
||||
//
|
||||
#define BEEPER_PIN 29
|
||||
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 33
|
||||
#define LCD_PINS_ENABLE 30
|
||||
#define LCD_PINS_D4 35
|
||||
|
3
Marlin/src/pins/mega/pins_PICAOLD.h
Executable file → Normal file
3
Marlin/src/pins/mega/pins_PICAOLD.h
Executable file → Normal file
@@ -16,9 +16,10 @@
|
||||
* 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 HEATER_0_PIN 9 // E0
|
||||
#define HEATER_1_PIN 10 // E1
|
||||
|
77
Marlin/src/pins/mega/pins_PROTONEER_CNC_SHIELD_V3.h
Normal file
77
Marlin/src/pins/mega/pins_PROTONEER_CNC_SHIELD_V3.h
Normal file
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Protoneer v3.00 pin assignments
|
||||
*
|
||||
* This CNC shield has an UNO pinout and fits all Arduino-compatibles.
|
||||
*
|
||||
* Referenced docs:
|
||||
* - https://blog.protoneer.co.nz/arduino-cnc-shield-v3-00-assembly-guide/
|
||||
* - https://blog.protoneer.co.nz/arduino-cnc-shield/
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Protoneer CNC Shield v3.00"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 9
|
||||
#define Y_STOP_PIN 10
|
||||
#define Z_STOP_PIN 11
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN 2
|
||||
#define X_DIR_PIN 5
|
||||
#define X_ENABLE_PIN 8 // Shared enable pin
|
||||
|
||||
#define Y_STEP_PIN 3
|
||||
#define Y_DIR_PIN 6
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define Z_STEP_PIN 4
|
||||
#define Z_DIR_PIN 7
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
// Designated with letter "A" on BOARD
|
||||
#define E0_STEP_PIN 12
|
||||
#define E0_DIR_PIN 13
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
//
|
||||
// Temperature sensors - These could be any analog output not hidden by board
|
||||
//
|
||||
#define TEMP_0_PIN 8 // Analog Input
|
||||
//#define TEMP_1_PIN 9 // Analog Input
|
||||
//#define TEMP_BED_PIN 10 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans - These could be any digital input not hidden by board
|
||||
//
|
||||
//#define HEATER_0_PIN 22 // EXTRUDER 1
|
||||
//#define HEATER_1_PIN 23 // EXTRUDER 2
|
||||
//#define HEATER_BED_PIN 24
|
19
Marlin/src/pins/mega/pins_SILVER_GATE.h
Executable file → Normal file
19
Marlin/src/pins/mega/pins_SILVER_GATE.h
Executable file → Normal file
@@ -16,12 +16,12 @@
|
||||
* 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
|
||||
|
||||
#if !defined(__AVR_ATmega1281__) && !defined(__AVR_ATmega2561__)
|
||||
#if NOT_TARGET(__AVR_ATmega1281__, __AVR_ATmega2561__)
|
||||
#error "Oops! Select 'Silvergate' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
@@ -61,7 +61,10 @@
|
||||
|
||||
#define HEATER_0_PIN 7
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN 3 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 3
|
||||
#endif
|
||||
|
||||
#define CONTROLLER_FAN_PIN 2
|
||||
|
||||
#define TEMP_0_PIN 7 // Analog Input
|
||||
@@ -69,7 +72,7 @@
|
||||
#define HEATER_BED_PIN 8
|
||||
#define TEMP_BED_PIN 6
|
||||
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
|
||||
#define LCD_PINS_RS 30
|
||||
#define LCD_PINS_ENABLE 20
|
||||
@@ -83,6 +86,9 @@
|
||||
#define KILL_PIN 21
|
||||
#define HOME_PIN 28
|
||||
#endif
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -90,4 +96,7 @@
|
||||
|
||||
#define STAT_LED_RED_PIN 23
|
||||
#define STAT_LED_BLUE_PIN 26
|
||||
#define CASE_LIGHT_PIN 51
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 51
|
||||
#endif
|
||||
|
10
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
Executable file → Normal file
10
Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.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,13 +25,11 @@
|
||||
* Wanhao 0ne+ pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Wanhao i3 Mini 0ne+"
|
||||
#define DEFAULT_MACHINE_NAME "i3 Mini"
|
||||
#define BOARD_WEBSITE_URL "https://tinyurl.com/yyxw7se7"
|
||||
#define BOARD_WEBSITE_URL "tinyurl.com/yyxw7se7"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -82,7 +80,7 @@
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SD_DETECT_PIN -1
|
||||
#define SD_DETECT_PIN 83
|
||||
#define SDSS 53
|
||||
|
||||
//
|
||||
|
1400
Marlin/src/pins/pins.h
Executable file → Normal file
1400
Marlin/src/pins/pins.h
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
160
Marlin/src/pins/pinsDebug.h
Executable file → Normal file
160
Marlin/src/pins/pinsDebug.h
Executable file → Normal file
@@ -2,6 +2,9 @@
|
||||
* 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
|
||||
@@ -13,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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -31,7 +34,6 @@
|
||||
*
|
||||
* Both passes use the same pin list. The list contains two macro names. The
|
||||
* actual macro definitions are changed depending on which pass is being done.
|
||||
*
|
||||
*/
|
||||
|
||||
// first pass - put the name strings into FLASH
|
||||
@@ -42,38 +44,26 @@
|
||||
#define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(#NAME, COUNTER)
|
||||
|
||||
#include "pinsDebug_list.h"
|
||||
#line 46
|
||||
#line 48
|
||||
|
||||
// manually add pins that have names that are macros which don't play well with these macros
|
||||
#if (AVR_ATmega2560_FAMILY || AVR_ATmega1284_FAMILY || defined(ARDUINO_ARCH_SAM) || defined(TARGET_LPC1768))
|
||||
#if SERIAL_PORT == 0
|
||||
#if ANY(AVR_ATmega2560_FAMILY, AVR_ATmega1284_FAMILY, ARDUINO_ARCH_SAM, TARGET_LPC1768)
|
||||
#if CONF_SERIAL_IS(0)
|
||||
static const char RXD_NAME_0[] PROGMEM = { "RXD0" };
|
||||
static const char TXD_NAME_0[] PROGMEM = { "TXD0" };
|
||||
#elif SERIAL_PORT == 1
|
||||
#endif
|
||||
#if CONF_SERIAL_IS(1)
|
||||
static const char RXD_NAME_1[] PROGMEM = { "RXD1" };
|
||||
static const char TXD_NAME_1[] PROGMEM = { "TXD1" };
|
||||
#elif SERIAL_PORT == 2
|
||||
#endif
|
||||
#if CONF_SERIAL_IS(2)
|
||||
static const char RXD_NAME_2[] PROGMEM = { "RXD2" };
|
||||
static const char TXD_NAME_2[] PROGMEM = { "TXD2" };
|
||||
#elif SERIAL_PORT == 3
|
||||
#endif
|
||||
#if CONF_SERIAL_IS(3)
|
||||
static const char RXD_NAME_3[] PROGMEM = { "RXD3" };
|
||||
static const char TXD_NAME_3[] PROGMEM = { "TXD3" };
|
||||
#endif
|
||||
#ifdef SERIAL_PORT_2
|
||||
#if SERIAL_PORT_2 == 0
|
||||
static const char RXD_NAME_0[] PROGMEM = { "RXD0" };
|
||||
static const char TXD_NAME_0[] PROGMEM = { "TXD0" };
|
||||
#elif SERIAL_PORT_2 == 1
|
||||
static const char RXD_NAME_1[] PROGMEM = { "RXD1" };
|
||||
static const char TXD_NAME_1[] PROGMEM = { "TXD1" };
|
||||
#elif SERIAL_PORT_2 == 2
|
||||
static const char RXD_NAME_2[] PROGMEM = { "RXD2" };
|
||||
static const char TXD_NAME_2[] PROGMEM = { "TXD2" };
|
||||
#elif SERIAL_PORT_2 == 3
|
||||
static const char RXD_NAME_3[] PROGMEM = { "RXD3" };
|
||||
static const char TXD_NAME_3[] PROGMEM = { "TXD3" };
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@@ -104,87 +94,68 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
* Each entry takes up 6 bytes in FLASH:
|
||||
* 2 byte pointer to location of the name string
|
||||
* 2 bytes containing the pin number
|
||||
* analog pin numbers were convereted to digital when the array was created
|
||||
* analog pin numbers were converted to digital when the array was created
|
||||
* 2 bytes containing the digital/analog bool flag
|
||||
*/
|
||||
|
||||
// manually add pins ...
|
||||
#if SERIAL_PORT == 0
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
#if CONF_SERIAL_IS(0)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_0, 0, true },
|
||||
{ TXD_NAME_0, 1, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
{ RXD_NAME_0, 8, true },
|
||||
{ TXD_NAME_0, 9, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#elif defined(TARGET_LPC1768) // TX P0_02 RX P0_03
|
||||
{ RXD_NAME_0, 3, true },
|
||||
{ TXD_NAME_0, 2, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT == 1
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
#endif
|
||||
|
||||
#if CONF_SERIAL_IS(1)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_1, 19, true },
|
||||
{ TXD_NAME_1, 18, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
{ RXD_NAME_1, 10, true },
|
||||
{ TXD_NAME_1, 11, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
{ RXD_NAME_1, 16, true },
|
||||
{ TXD_NAME_1, 15, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT == 2
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_2, 17, true },
|
||||
{ TXD_NAME_2, 16, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
{ RXD_NAME_2, 11, true },
|
||||
{ TXD_NAME_2, 10, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT == 3
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_3, 15, true },
|
||||
{ TXD_NAME_3, 14, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
{ RXD_NAME_3, 1, true },
|
||||
{ TXD_NAME_3, 0, true },
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef SERIAL_PORT_2
|
||||
#if SERIAL_PORT_2 == 0
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_0, 0, true },
|
||||
{ TXD_NAME_0, 1, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
{ RXD_NAME_0, 8, true },
|
||||
{ TXD_NAME_0, 9, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
{ RXD_NAME_0, 3, true },
|
||||
{ TXD_NAME_0, 2, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT_2 == 1
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_1, 19, true },
|
||||
{ TXD_NAME_1, 18, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
{ RXD_NAME_1, 10, true },
|
||||
{ TXD_NAME_1, 11, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#ifdef LPC_PINCFG_UART1_P2_00 // TX P2_00 RX P2_01
|
||||
{ RXD_NAME_1, 0x41, true },
|
||||
{ TXD_NAME_1, 0x40, true },
|
||||
#else // TX P0_15 RX P0_16
|
||||
{ RXD_NAME_1, 16, true },
|
||||
{ TXD_NAME_1, 15, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT_2 == 2
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_2, 17, true },
|
||||
{ TXD_NAME_2, 16, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if CONF_SERIAL_IS(2)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_2, 17, true },
|
||||
{ TXD_NAME_2, 16, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#ifdef LPC_PINCFG_UART2_P2_08 // TX P2_08 RX P2_09
|
||||
{ RXD_NAME_2, 0x49, true },
|
||||
{ TXD_NAME_2, 0x48, true },
|
||||
#else // TX P0_10 RX P0_11
|
||||
{ RXD_NAME_2, 11, true },
|
||||
{ TXD_NAME_2, 10, true },
|
||||
#endif
|
||||
#elif SERIAL_PORT_2 == 3
|
||||
#if (AVR_ATmega2560_FAMILY || defined(ARDUINO_ARCH_SAM))
|
||||
{ RXD_NAME_3, 15, true },
|
||||
{ TXD_NAME_3, 14, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if CONF_SERIAL_IS(3)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_3, 15, true },
|
||||
{ TXD_NAME_3, 14, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
#ifdef LPC_PINCFG_UART3_P0_25 // TX P0_25 RX P0_26
|
||||
{ RXD_NAME_3, 0x1A, true },
|
||||
{ TXD_NAME_3, 0x19, true },
|
||||
#elif defined(LPC_PINCFG_UART3_P4_28) // TX P4_28 RX P4_29
|
||||
{ RXD_NAME_3, 0x9D, true },
|
||||
{ TXD_NAME_3, 0x9C, true },
|
||||
#else // TX P0_00 RX P0_01
|
||||
{ RXD_NAME_3, 1, true },
|
||||
{ TXD_NAME_3, 0, true },
|
||||
#endif
|
||||
@@ -192,7 +163,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#endif
|
||||
|
||||
#include "pinsDebug_list.h"
|
||||
#line 172
|
||||
#line 167
|
||||
|
||||
};
|
||||
|
||||
@@ -203,7 +174,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#endif
|
||||
|
||||
static void print_input_or_output(const bool isout) {
|
||||
serialprintPGM(isout ? PSTR("Output = ") : PSTR("Input = "));
|
||||
SERIAL_ECHOPGM_P(isout ? PSTR("Output = ") : PSTR("Input = "));
|
||||
}
|
||||
|
||||
// pretty report with PWM info
|
||||
@@ -231,15 +202,12 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
|
||||
LOOP_L_N(x, COUNT(pin_array)) { // scan entire array and report all instances of this pin
|
||||
if (GET_ARRAY_PIN(x) == pin) {
|
||||
if (!found) { // report digital and analog pin number only on the first time through
|
||||
if (start_string) serialprintPGM(start_string);
|
||||
serialprintPGM(PSTR("PIN: "));
|
||||
if (start_string) SERIAL_ECHOPGM_P(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) {
|
||||
sprintf_P(buffer, PSTR(" (A%2d) "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); // analog pin number
|
||||
SERIAL_ECHO(buffer);
|
||||
}
|
||||
else SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number
|
||||
else SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
}
|
||||
else {
|
||||
SERIAL_CHAR('.');
|
||||
@@ -282,16 +250,12 @@ inline void report_pin_state_extended(pin_t pin, const bool ignore, const bool e
|
||||
} // end of for loop
|
||||
|
||||
if (!found) {
|
||||
if (start_string) serialprintPGM(start_string);
|
||||
serialprintPGM(PSTR("PIN: "));
|
||||
if (start_string) SERIAL_ECHOPGM_P(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) {
|
||||
sprintf_P(buffer, PSTR(" (A%2d) "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); // analog pin number
|
||||
SERIAL_ECHO(buffer);
|
||||
}
|
||||
else
|
||||
SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number
|
||||
else SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
SERIAL_ECHOPGM("<unused/unknown>");
|
||||
if (extended) {
|
||||
|
||||
|
321
Marlin/src/pins/pinsDebug_list.h
Executable file → Normal file
321
Marlin/src/pins/pinsDebug_list.h
Executable file → Normal file
@@ -2,6 +2,9 @@
|
||||
* 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
|
||||
@@ -13,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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -22,16 +25,18 @@
|
||||
// Following this pattern is a must.
|
||||
// If the new pin name is over 28 characters long then pinsDebug.h will need to be modified.
|
||||
|
||||
// Pin lists 1.1.x and 2.0.x synchronized 2018-02-17
|
||||
#if TARGET_LPC1768
|
||||
#define ANALOG_OK(PN) ((PN) == P0_02 || (PN) == P0_03 || (PN) == P0_23 || (PN) == P0_24 || (PN) == P0_25 || (PN) == P0_26 || (PN) == P1_30 || (PN) == P1_31)
|
||||
#else
|
||||
#define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_INPUTS)
|
||||
#endif
|
||||
|
||||
#line 28 // set __LINE__ to a known value for both passes
|
||||
#line 35 // set __LINE__ to a known value for both passes
|
||||
|
||||
//
|
||||
// Analog Pin Assignments
|
||||
//
|
||||
|
||||
#define ANALOG_OK(PN) ((PN) >= 0 && (PN) < NUM_ANALOG_PINS)
|
||||
|
||||
#if defined(EXT_AUX_A0) && ANALOG_OK(EXT_AUX_A0)
|
||||
REPORT_NAME_ANALOG(__LINE__, EXT_AUX_A0)
|
||||
#endif
|
||||
@@ -91,6 +96,9 @@
|
||||
#if PIN_EXISTS(TEMP_CHAMBER) && ANALOG_OK(TEMP_CHAMBER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_CHAMBER_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_COOLER) && ANALOG_OK(TEMP_COOLER_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, TEMP_COOLER_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ADC_KEYPAD) && ANALOG_OK(ADC_KEYPAD_PIN)
|
||||
REPORT_NAME_ANALOG(__LINE__, ADC_KEYPAD_PIN)
|
||||
#endif
|
||||
@@ -147,6 +155,9 @@
|
||||
#if defined(BTN_EN2) && BTN_EN2 >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_EN2)
|
||||
#endif
|
||||
#if defined(BTN_ENC_EN) && BTN_ENC_EN >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_ENC_EN)
|
||||
#endif
|
||||
#if defined(BTN_ENC) && BTN_ENC >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, BTN_ENC)
|
||||
#endif
|
||||
@@ -180,6 +191,81 @@
|
||||
#if PIN_EXISTS(JOY_EN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, JOY_EN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON4)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON4_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON5)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON5_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON6)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON6_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON7)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON7_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON8)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON8_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON9)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON9_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON10)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON10_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON11)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON11_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON12)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON12_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON13)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON13_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON14)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON14_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON15)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON15_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON16)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON16_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON17)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON17_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON18)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON18_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON19)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON19_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON20)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON20_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON21)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON21_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON22)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON22_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON23)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON23_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON24)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON24_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(BUTTON25)
|
||||
REPORT_NAME_DIGITAL(__LINE__, BUTTON25_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(CASE_LIGHT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, CASE_LIGHT_PIN)
|
||||
#endif
|
||||
@@ -210,11 +296,11 @@
|
||||
#if PIN_EXISTS(DAC_DISABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DAC_DISABLE_PIN)
|
||||
#endif
|
||||
#if defined(DAC0_SYNC) && DAC0_SYNC >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, DAC0_SYNC)
|
||||
#if PIN_EXISTS(DAC0_SYNC)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DAC0_SYNC_PIN)
|
||||
#endif
|
||||
#if defined(DAC1_SYNC) && DAC1_SYNC >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, DAC1_SYNC)
|
||||
#if PIN_EXISTS(DAC1_SYNC)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DAC1_SYNC_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(DEBUG)
|
||||
REPORT_NAME_DIGITAL(__LINE__, DEBUG_PIN)
|
||||
@@ -261,6 +347,9 @@
|
||||
#if defined(TMC_SW_SCK) && TMC_SW_SCK >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
|
||||
#endif
|
||||
#if defined(TFTGLCD_CS) && TFTGLCD_CS >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
|
||||
#endif
|
||||
#if PIN_EXISTS(E_MUX0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, E_MUX0_PIN)
|
||||
#endif
|
||||
@@ -625,6 +714,9 @@
|
||||
#if PIN_EXISTS(HEATER_CHAMBER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, HEATER_CHAMBER_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(COOLER)
|
||||
REPORT_NAME_DIGITAL(__LINE__, COOLER_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(HOME)
|
||||
REPORT_NAME_DIGITAL(__LINE__, HOME_PIN)
|
||||
#endif
|
||||
@@ -634,9 +726,12 @@
|
||||
#if PIN_EXISTS(I2C_SDA)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I2C_SDA_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(KILL)
|
||||
#if HAS_KILL
|
||||
REPORT_NAME_DIGITAL(__LINE__, KILL_PIN)
|
||||
#endif
|
||||
#if HAS_FREEZE_PIN
|
||||
REPORT_NAME_DIGITAL(__LINE__, FREEZE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(LCD_BACKLIGHT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_BACKLIGHT_PIN)
|
||||
#endif
|
||||
@@ -670,17 +765,29 @@
|
||||
#if PIN_EXISTS(LED_RED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LED_RED_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MAX6675_DO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX6675_DO_PIN)
|
||||
#if PIN_EXISTS(TEMP_0_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_0_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MAX6675_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX6675_SCK_PIN)
|
||||
#if PIN_EXISTS(TEMP_0_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_0_SCK_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MAX6675_SS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX6675_SS_PIN)
|
||||
#if PIN_EXISTS(TEMP_0_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_0_MOSI_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MAX6675_SS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX6675_SS2_PIN)
|
||||
#if PIN_EXISTS(TEMP_0_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_0_MISO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_1_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_1_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_1_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_1_SCK_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_1_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_1_MOSI_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TEMP_1_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TEMP_1_MISO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MAX7219_CLK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MAX7219_CLK_PIN)
|
||||
@@ -696,7 +803,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MISO)
|
||||
// #endif
|
||||
#if PIN_EXISTS(MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MISO_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MISO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOSFET_A)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOSFET_A_PIN)
|
||||
@@ -714,7 +821,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, MOSI)
|
||||
// #endif
|
||||
#if PIN_EXISTS(MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOSI_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_MOSI_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(MOTOR_CURRENT_PWM_E)
|
||||
REPORT_NAME_DIGITAL(__LINE__, MOTOR_CURRENT_PWM_E_PIN)
|
||||
@@ -795,7 +902,7 @@
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCK)
|
||||
// #endif
|
||||
#if PIN_EXISTS(SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SCK_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_SCK_PIN)
|
||||
#endif
|
||||
// #if defined(SCL) && SCL >= 0
|
||||
// REPORT_NAME_DIGITAL(__LINE__, SCL)
|
||||
@@ -827,17 +934,17 @@
|
||||
#if PIN_EXISTS(SERVO3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SERVO3_PIN)
|
||||
#endif
|
||||
#if defined(SHIFT_CLK) && SHIFT_CLK >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_CLK)
|
||||
#if PIN_EXISTS(SHIFT_CLK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_CLK_PIN)
|
||||
#endif
|
||||
#if defined(SHIFT_EN) && SHIFT_EN >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_EN)
|
||||
#if PIN_EXISTS(SHIFT_EN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_EN_PIN)
|
||||
#endif
|
||||
#if defined(SHIFT_LD) && SHIFT_LD >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_LD)
|
||||
#if PIN_EXISTS(SHIFT_LD)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_LD_PIN)
|
||||
#endif
|
||||
#if defined(SHIFT_OUT) && SHIFT_OUT >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_OUT)
|
||||
#if PIN_EXISTS(SHIFT_OUT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SHIFT_OUT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(SLED)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SLED_PIN)
|
||||
@@ -872,14 +979,14 @@
|
||||
#if defined(SPARE_IO) && SPARE_IO >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPARE_IO)
|
||||
#endif
|
||||
#if defined(SPI_EEPROM1_CS) && SPI_EEPROM1_CS >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM1_CS)
|
||||
#if PIN_EXISTS(SPI_EEPROM1_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM1_CS_PIN)
|
||||
#endif
|
||||
#if defined(SPI_EEPROM2_CS) && SPI_EEPROM2_CS >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM2_CS)
|
||||
#if PIN_EXISTS(SPI_EEPROM2_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_EEPROM2_CS_PIN)
|
||||
#endif
|
||||
#if defined(SPI_FLASH_CS) && SPI_FLASH_CS >= 0
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_FLASH_CS)
|
||||
#if PIN_EXISTS(SPI_FLASH_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPI_FLASH_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(SPINDLE_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SPINDLE_DIR_PIN)
|
||||
@@ -903,7 +1010,7 @@
|
||||
REPORT_NAME_DIGITAL(__LINE__, SR_STROBE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(SS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SS_PIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SD_SS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(STAT_LED_BLUE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, STAT_LED_BLUE_PIN)
|
||||
@@ -920,18 +1027,6 @@
|
||||
#if PIN_EXISTS(SUICIDE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, SUICIDE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(THERMO_CS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, THERMO_CS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(THERMO_CS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, THERMO_CS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(THERMO_DO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, THERMO_DO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(THERMO_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, THERMO_SCK_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TLC_BLANK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TLC_BLANK_PIN)
|
||||
#endif
|
||||
@@ -1229,6 +1324,105 @@
|
||||
#if PIN_EXISTS(Z_MIN_PROBE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, Z_MIN_PROBE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(I_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, I_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(J_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, J_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_ATT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_ATT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_DIR)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_DIR_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_MAX)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_MAX_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_MIN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_MIN_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_MS1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_MS1_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_MS2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_MS2_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_MS3)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_MS3_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_STEP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_STEP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(K_STOP)
|
||||
REPORT_NAME_DIGITAL(__LINE__, K_STOP_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ZRIB_V20_D6)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ZRIB_V20_D6_PIN)
|
||||
#endif
|
||||
@@ -1409,3 +1603,34 @@
|
||||
#if PIN_EXISTS(CLOSED_LOOP_MOVE_COMPLETE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, CLOSED_LOOP_MOVE_COMPLETE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ESP_WIFI_MODULE_RESET)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_RESET_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ESP_WIFI_MODULE_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_ENABLE_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ESP_WIFI_MODULE_GPIO0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_GPIO0_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(ESP_WIFI_MODULE_GPIO2)
|
||||
REPORT_NAME_DIGITAL(__LINE__, ESP_WIFI_MODULE_GPIO2_PIN)
|
||||
#endif
|
||||
// TFT PINS
|
||||
#if PIN_EXISTS(TFT_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_CS_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TFT_A0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_A0_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TFT_DC)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_DC_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TFT_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_MISO_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TFT_BACKLIGHT)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_BACKLIGHT_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(TFT_RESET)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFT_RESET_PIN)
|
||||
#endif
|
||||
|
1389
Marlin/src/pins/pins_postprocess.h
Normal file
1389
Marlin/src/pins/pins_postprocess.h
Normal file
File diff suppressed because it is too large
Load Diff
26
Marlin/src/pins/rambo/env_validate.h
Normal file
26
Marlin/src/pins/rambo/env_validate.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* 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 NOT_TARGET(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
|
||||
#endif
|
64
Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
Executable file → Normal file
64
Marlin/src/pins/rambo/pins_EINSY_RAMBO.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,11 +25,12 @@
|
||||
* Einsy-Rambo pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Einsy Rambo"
|
||||
#define BOARD_INFO_NAME "Einsy Rambo"
|
||||
#define DEFAULT_MACHINE_NAME "Prusa MK3"
|
||||
|
||||
//#define MK3_FAN_PINS
|
||||
|
||||
//
|
||||
// TMC2130 Configuration_adv defaults for EinsyRambo
|
||||
@@ -80,6 +81,13 @@
|
||||
#define Z_MIN_PROBE_PIN 10
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 62
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
@@ -106,9 +114,11 @@
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN 0 // Analog Input
|
||||
#define TEMP_1_PIN 1 // Analog Input
|
||||
#define TEMP_BED_PIN 2 // Analog Input
|
||||
#define TEMP_0_PIN 0 // Analog Input, Header J2
|
||||
#define TEMP_1_PIN 1 // Analog Input, Header J3
|
||||
#define TEMP_BOARD_PIN 91 // Onboard thermistor, 100k TDK NTCG104LH104JT1
|
||||
#define TEMP_BED_PIN 2 // Analog Input, Header J6
|
||||
#define TEMP_PROBE_PIN 3 // Analog Input, Header J15
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
@@ -117,11 +127,19 @@
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifdef MK3_FAN_PINS
|
||||
#define FAN_PIN 6
|
||||
#else
|
||||
#define FAN_PIN 8
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 6
|
||||
#ifdef MK3_FAN_PINS
|
||||
#define FAN1_PIN -1
|
||||
#else
|
||||
#define FAN1_PIN 6
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -129,7 +147,10 @@
|
||||
//
|
||||
#define SDSS 77
|
||||
#define LED_PIN 13
|
||||
#define CASE_LIGHT_PIN 9
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -149,11 +170,11 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define KILL_PIN 32
|
||||
|
||||
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
|
||||
#if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS 85
|
||||
@@ -170,11 +191,24 @@
|
||||
#define LCD_PINS_D7 71
|
||||
#define BTN_EN1 14
|
||||
#define BTN_EN2 72
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#define BTN_ENC 9 // AUX-2
|
||||
#define BEEPER_PIN 84 // AUX-4
|
||||
#define SD_DETECT_PIN 15
|
||||
|
||||
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
||||
#undef MK3_FAN_PINS
|
||||
|
35
Marlin/src/pins/rambo/pins_EINSY_RETRO.h
Executable file → Normal file
35
Marlin/src/pins/rambo/pins_EINSY_RETRO.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,9 +25,7 @@
|
||||
* Einsy-Retro pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Einsy Retro"
|
||||
|
||||
@@ -63,7 +61,7 @@
|
||||
|
||||
#else
|
||||
|
||||
#if X_HOME_DIR < 0
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MIN_PIN X_DIAG_PIN
|
||||
#define X_MAX_PIN 81 // X+
|
||||
#else
|
||||
@@ -71,7 +69,7 @@
|
||||
#define X_MAX_PIN X_DIAG_PIN
|
||||
#endif
|
||||
|
||||
#if Y_HOME_DIR < 0
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MIN_PIN Y_DIAG_PIN
|
||||
#define Y_MAX_PIN 57 // Y+
|
||||
#else
|
||||
@@ -143,7 +141,10 @@
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define CASE_LIGHT_PIN 9
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -163,11 +164,11 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
|
||||
#if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
|
||||
|
||||
#define KILL_PIN 32
|
||||
|
||||
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
|
||||
#if ANY(IS_ULTIPANEL, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS 85
|
||||
@@ -191,5 +192,17 @@
|
||||
|
||||
#define SD_DETECT_PIN 15
|
||||
|
||||
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
#endif // HAS_SPI_LCD
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
|
||||
|
||||
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL || TOUCH_UI_FTDI_EVE
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
26
Marlin/src/pins/rambo/pins_MINIRAMBO.h
Executable file → Normal file
26
Marlin/src/pins/rambo/pins_MINIRAMBO.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,9 +25,7 @@
|
||||
* Mini-RAMBo pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'RAMBo' in 'Tools > Board' or the Mega2560 environment in PlatformIO."
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#if MB(MINIRAMBO_10A)
|
||||
#define BOARD_INFO_NAME "Mini RAMBo 1.0a"
|
||||
@@ -71,7 +69,7 @@
|
||||
#define E0_DIR_PIN 43
|
||||
#define E0_ENABLE_PIN 26
|
||||
|
||||
// Microstepping pins - Mapping not from fastio.h (?)
|
||||
// Microstepping pins
|
||||
#define X_MS1_PIN 40
|
||||
#define X_MS2_PIN 41
|
||||
#define Y_MS1_PIN 69
|
||||
@@ -141,13 +139,13 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if !MB(MINIRAMBO_10A)
|
||||
#define KILL_PIN 32
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
|
||||
#if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if MB(MINIRAMBO_10A)
|
||||
|
||||
@@ -187,6 +185,16 @@
|
||||
|
||||
#endif // !MINIRAMBO_10A
|
||||
|
||||
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#endif // HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
82
Marlin/src/pins/rambo/pins_RAMBO.h
Executable file → Normal file
82
Marlin/src/pins/rambo/pins_RAMBO.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
|
||||
@@ -34,25 +34,29 @@
|
||||
*
|
||||
* Instructions for installing the Arduino RAMBo board type for the
|
||||
* Arduino IDE are available at:
|
||||
* http://reprap.org/wiki/Rambo_firmware
|
||||
* https://reprap.org/wiki/Rambo_firmware
|
||||
*/
|
||||
|
||||
/**
|
||||
* Rambo pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Rambo"
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Rambo"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN 22 // Motor header MX1
|
||||
#ifndef SERVO0_PIN
|
||||
#define SERVO0_PIN 22 // Motor header MX1
|
||||
#endif
|
||||
#define SERVO1_PIN 23 // Motor header MX2
|
||||
#define SERVO2_PIN 24 // Motor header MX3
|
||||
#ifndef SERVO2_PIN
|
||||
#define SERVO2_PIN 24 // Motor header MX3
|
||||
#endif
|
||||
#define SERVO3_PIN 5 // PWM header pin 5
|
||||
|
||||
//
|
||||
@@ -62,7 +66,9 @@
|
||||
#define X_MAX_PIN 24
|
||||
#define Y_MIN_PIN 11
|
||||
#define Y_MAX_PIN 23
|
||||
#define Z_MIN_PIN 10
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN 10
|
||||
#endif
|
||||
#define Z_MAX_PIN 30
|
||||
|
||||
//
|
||||
@@ -112,7 +118,7 @@
|
||||
#define E1_MS2_PIN 64
|
||||
|
||||
#define DIGIPOTSS_PIN 38
|
||||
#define DIGIPOT_CHANNELS { 4,5,3,0,1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
|
||||
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
|
||||
#ifndef DIGIPOT_MOTOR_CURRENT
|
||||
#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
|
||||
#endif
|
||||
@@ -135,8 +141,12 @@
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
#define FAN2_PIN 2
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 6
|
||||
#endif
|
||||
#ifndef FAN2_PIN
|
||||
#define FAN2_PIN 2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -144,7 +154,10 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 4
|
||||
#define CASE_LIGHT_PIN 46
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 46
|
||||
#endif
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN 3 // Analog Input
|
||||
@@ -158,10 +171,10 @@
|
||||
#define SPINDLE_DIR_PIN 32
|
||||
|
||||
//
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
//
|
||||
#ifndef MAX6675_SS_PIN
|
||||
#define MAX6675_SS_PIN 32 // SPINDLE_DIR_PIN / STAT_LED_BLUE_PIN
|
||||
#ifndef TEMP_0_CS_PIN
|
||||
#define TEMP_0_CS_PIN 32 // SPINDLE_DIR_PIN / STAT_LED_BLUE_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -180,11 +193,11 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define KILL_PIN 80
|
||||
|
||||
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
|
||||
#if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define LCD_PINS_RS 70
|
||||
#define LCD_PINS_ENABLE 71
|
||||
@@ -217,25 +230,33 @@
|
||||
#define BEEPER_PIN 79 // AUX-4
|
||||
|
||||
// AUX-2
|
||||
#define BTN_EN1 76
|
||||
#define BTN_EN2 77
|
||||
#ifndef BTN_EN1
|
||||
#define BTN_EN1 76
|
||||
#endif
|
||||
#ifndef BTN_EN2
|
||||
#define BTN_EN2 77
|
||||
#endif
|
||||
#define BTN_ENC 78
|
||||
|
||||
#define SD_DETECT_PIN 81
|
||||
|
||||
#endif // !VIKI2 && !miniVIKI
|
||||
|
||||
#else // !NEWPANEL - old style panel with shift register
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#else // !IS_NEWPANEL - old style panel with shift register
|
||||
|
||||
// No Beeper added
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK 38
|
||||
//#define SHIFT_LD 42
|
||||
//#define SHIFT_OUT 40
|
||||
//#define SHIFT_EN 17
|
||||
//#define SHIFT_CLK_PIN 38
|
||||
//#define SHIFT_LD_PIN 42
|
||||
//#define SHIFT_OUT_PIN 40
|
||||
//#define SHIFT_EN_PIN 17
|
||||
|
||||
#define LCD_PINS_RS 75
|
||||
#define LCD_PINS_ENABLE 17
|
||||
@@ -244,6 +265,13 @@
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
#endif // !NEWPANEL
|
||||
#endif // !IS_NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 0
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
60
Marlin/src/pins/rambo/pins_RAMBO_THINKERV2.h
Executable file
60
Marlin/src/pins/rambo/pins_RAMBO_THINKERV2.h
Executable file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Rambo ThinkerV2 pin assignments
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Rambo ThinkerV2"
|
||||
|
||||
#define SERVO0_PIN 4 // Motor header MX1
|
||||
#define SERVO2_PIN -1 // Motor header MX3
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 10
|
||||
#endif
|
||||
|
||||
// Support BLTouch and fixed probes
|
||||
#if ENABLED(BLTOUCH)
|
||||
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
||||
#define Z_MIN_PIN 22
|
||||
#elif !defined(Z_MIN_PROBE_PIN)
|
||||
#define Z_MIN_PROBE_PIN 22
|
||||
#endif
|
||||
#elif ENABLED(FIX_MOUNTED_PROBE)
|
||||
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
||||
#define Z_MIN_PIN 4
|
||||
#elif !defined(Z_MIN_PROBE_PIN)
|
||||
#define Z_MIN_PROBE_PIN 4
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Eryone has the fan pins reversed
|
||||
#define FAN1_PIN 2
|
||||
#define FAN2_PIN 6
|
||||
|
||||
// Encoder
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 63
|
||||
|
||||
#include "pins_RAMBO.h"
|
8
Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
Executable file → Normal file
8
Marlin/src/pins/rambo/pins_SCOOVO_X9H.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,9 +25,7 @@
|
||||
* Rambo pin assignments MODIFIED FOR Scoovo X9H
|
||||
************************************************/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_target.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Scoovo X9H"
|
||||
|
||||
@@ -92,7 +90,7 @@
|
||||
#define E1_MS2_PIN 64
|
||||
|
||||
#define DIGIPOTSS_PIN 38
|
||||
#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
|
||||
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
|
35
Marlin/src/pins/ramps/env_validate.h
Normal file
35
Marlin/src/pins/ramps/env_validate.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* 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(ALLOW_SAM3X8E)
|
||||
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#elif ENABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif DISABLED(REQUIRE_MEGA2560) && NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560 or 1280' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#undef ALLOW_SAM3X8E
|
||||
#undef REQUIRE_MEGA2560
|
157
Marlin/src/pins/ramps/pins_3DRAG.h
Executable file → Normal file
157
Marlin/src/pins/ramps/pins_3DRAG.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
|
||||
@@ -34,7 +34,29 @@
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_SOURCE_CODE_URL
|
||||
#define DEFAULT_SOURCE_CODE_URL "http://3dprint.elettronicain.it/"
|
||||
#define DEFAULT_SOURCE_CODE_URL "3dprint.elettronicain.it"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define Z_STOP_PIN 18
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
#define Z_DIR_PIN 28
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STEP_PIN 26
|
||||
#else
|
||||
#define Z_ENABLE_PIN 63
|
||||
#endif
|
||||
|
||||
#if HAS_CUTTER && !HAS_EXTRUDERS
|
||||
#define E0_DIR_PIN -1
|
||||
#define E0_ENABLE_PIN -1
|
||||
#define E0_STEP_PIN -1
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -44,67 +66,14 @@
|
||||
#define RAMPS_D9_PIN 8
|
||||
#define MOSFET_D_PIN 12
|
||||
|
||||
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#undef Z_MAX_PIN
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#undef Z_ENABLE_PIN
|
||||
#define Z_ENABLE_PIN 63
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#undef SDSS
|
||||
#define SDSS 25
|
||||
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if BOTH(ULTRA_LCD, NEWPANEL)
|
||||
#undef BEEPER_PIN
|
||||
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 23
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // HAS_SPI_LCD && NEWPANEL
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -137,26 +106,68 @@
|
||||
*
|
||||
* Note: Socket names vary from vendor to vendor
|
||||
*/
|
||||
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
|
||||
#undef SPINDLE_LASER_ENA_PIN
|
||||
#undef SPINDLE_DIR_PIN
|
||||
|
||||
#if HAS_CUTTER
|
||||
#if !EXTRUDERS
|
||||
#undef E0_DIR_PIN
|
||||
#undef E0_ENABLE_PIN
|
||||
#undef E0_STEP_PIN
|
||||
#undef Z_DIR_PIN
|
||||
#undef Z_ENABLE_PIN
|
||||
#undef Z_STEP_PIN
|
||||
#define Z_DIR_PIN 28
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STEP_PIN 26
|
||||
#if !HAS_EXTRUDERS
|
||||
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 62 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 48
|
||||
#elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
|
||||
#elif !BOTH(IS_ULTRA_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 17
|
||||
#if !NUM_SERVOS // Use servo connector if possible
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#elif HAS_FREE_AUX2_PINS
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_2_PIN 6
|
||||
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 53
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
// TODO: Remap EXP1/2 based on adapter
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 16
|
||||
#define BTN_EN2 17
|
||||
#define BTN_ENC 23
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // IS_ULTRA_LCD && IS_NEWPANEL
|
||||
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 188
|
||||
#define BOARD_ST7920_DELAY_3 0
|
||||
#endif
|
||||
|
11
Marlin/src/pins/ramps/pins_AZTEEG_X3.h
Executable file → Normal file
11
Marlin/src/pins/ramps/pins_AZTEEG_X3.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,9 +25,10 @@
|
||||
* AZTEEG_X3 Arduino Mega with RAMPS v1.4 pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define REQUIRE_MEGA2560
|
||||
#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."
|
||||
#endif
|
||||
|
||||
@@ -72,7 +73,7 @@
|
||||
//
|
||||
// Misc
|
||||
//
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT, STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && PINS_EXIST(CASE_LIGHT, STAT_LED_RED) && STAT_LED_RED_PIN == CASE_LIGHT_PIN
|
||||
#undef STAT_LED_RED_PIN
|
||||
#endif
|
||||
|
||||
|
34
Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
Executable file → Normal file
34
Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.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,9 +25,10 @@
|
||||
* AZTEEG_X3_PRO (Arduino Mega) pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 5 || E_STEPPERS > 5
|
||||
#define REQUIRE_MEGA2560
|
||||
#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."
|
||||
#endif
|
||||
|
||||
@@ -67,10 +68,10 @@
|
||||
|
||||
// DIGIPOT slave addresses
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_A
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
|
||||
#define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
|
||||
#endif
|
||||
#ifndef DIGIPOT_I2C_ADDRESS_B
|
||||
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
|
||||
#define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -118,11 +119,22 @@
|
||||
#define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
|
||||
#endif
|
||||
|
||||
// Fans/Water Pump to cool the hotend cool side.
|
||||
#define ORIG_E0_AUTO_FAN_PIN 5
|
||||
#define ORIG_E1_AUTO_FAN_PIN 5
|
||||
#define ORIG_E2_AUTO_FAN_PIN 5
|
||||
#define ORIG_E3_AUTO_FAN_PIN 5
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN 5
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
|
18
Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h
Executable file → Normal file
18
Marlin/src/pins/ramps/pins_BAM_DICE_DUE.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
|
||||
@@ -34,16 +34,14 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 67
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
#define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 67
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#undef TEMP_0_PIN
|
||||
#undef TEMP_1_PIN
|
||||
#define TEMP_0_PIN 9 // Analog Input
|
||||
#define TEMP_1_PIN 11 // Analog Input
|
||||
#define TEMP_0_PIN 9 // Analog Input
|
||||
#define TEMP_1_PIN 11 // Analog Input
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
2
Marlin/src/pins/ramps/pins_BIQU_KFB_2.h
Executable file → Normal file
2
Marlin/src/pins/ramps/pins_BIQU_KFB_2.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
|
||||
|
116
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
Executable file → Normal file
116
Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.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,12 +25,46 @@
|
||||
* bq ZUM Mega 3D board definition
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define REQUIRE_MEGA2560
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "ZUM Mega 3D"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MAX_PIN 79
|
||||
|
||||
// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
|
||||
// decided to ship the printer only with the probe and no additional Z-min
|
||||
// endstop and the instruction manual advises the user to connect the probe to
|
||||
// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
|
||||
#if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
|
||||
#define Z_MIN_PIN 19 // IND_S_5V
|
||||
#define Z_MAX_PIN 18 // Z-MIN Label
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 19 // IND_S_5V
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define Z_ENABLE_PIN 77
|
||||
|
||||
#define DIGIPOTSS_PIN 22
|
||||
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_1_PIN 14 // Analog Input
|
||||
#define TEMP_BED_PIN 15 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
@@ -42,10 +76,18 @@
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define ORIG_E0_AUTO_FAN_PIN 11
|
||||
#define ORIG_E1_AUTO_FAN_PIN 6
|
||||
#define ORIG_E2_AUTO_FAN_PIN 6
|
||||
#define ORIG_E3_AUTO_FAN_PIN 6
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 11
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
#ifndef E3_AUTO_FAN_PIN
|
||||
#define E3_AUTO_FAN_PIN 6
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
@@ -55,58 +97,26 @@
|
||||
#define SPINDLE_DIR_PIN 42
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
// Misc. Functions
|
||||
//
|
||||
#define X_MAX_PIN 79 // 2
|
||||
#define PS_ON_PIN 81 // External Power Supply
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 44 // Hardware PWM
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 0
|
||||
#define BOARD_ST7920_DELAY_3 189
|
||||
#endif
|
||||
|
||||
//
|
||||
// Import RAMPS 1.3 pins
|
||||
//
|
||||
#include "pins_RAMPS_13.h"
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#undef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 19 // IND_S_5V
|
||||
|
||||
#undef Z_ENABLE_PIN
|
||||
#define Z_ENABLE_PIN 77 // 62
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define DIGIPOTSS_PIN 22
|
||||
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#undef TEMP_1_PIN
|
||||
#define TEMP_1_PIN 14 // Analog Input (15)
|
||||
|
||||
#undef TEMP_BED_PIN
|
||||
#define TEMP_BED_PIN 15 // Analog Input (14)
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#undef PS_ON_PIN // 12
|
||||
#define PS_ON_PIN 81 // External Power Supply
|
||||
|
||||
#define CASE_LIGHT_PIN 44 // Hardware PWM
|
||||
|
||||
// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
|
||||
// decided to ship the printer only with the probe and no additional Z-min
|
||||
// endstop and the instruction manual advises the user to connect the probe to
|
||||
// IND_S_5V the option Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN will not work.
|
||||
#ifdef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
||||
#undef Z_MIN_PIN
|
||||
#undef Z_MAX_PIN
|
||||
#define Z_MIN_PIN 19 // IND_S_5V
|
||||
#define Z_MAX_PIN 18 // Z-MIN Label
|
||||
#endif
|
||||
|
||||
//
|
||||
// Used by the Hephestos 2 heated bed upgrade kit
|
||||
//
|
||||
|
10
Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
Executable file → Normal file
10
Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
Executable file → Normal file
@@ -16,17 +16,17 @@
|
||||
* 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 "Copymaster 3D RAMPS"
|
||||
|
||||
#define Z_STEP_PIN 47
|
||||
#define Y_MAX_PIN 14
|
||||
#define FIL_RUNOUT_PIN 15
|
||||
#define SD_DETECT_PIN 66
|
||||
#define Z_STEP_PIN 47
|
||||
#define Y_MAX_PIN 14
|
||||
#define FIL_RUNOUT_PIN 15
|
||||
#define SD_DETECT_PIN 66
|
||||
|
||||
//
|
||||
// Import RAMPS 1.4 pins
|
||||
|
66
Marlin/src/pins/ramps/pins_DAGOMA_F5.h
Normal file
66
Marlin/src/pins/ramps/pins_DAGOMA_F5.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Dagoma3D F5 supports only 2 hotends / E-steppers. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Dagoma3D F5"
|
||||
|
||||
//
|
||||
// Endstops
|
||||
//
|
||||
#define X_STOP_PIN 2
|
||||
#define Y_STOP_PIN 3
|
||||
#define Z_STOP_PIN 15
|
||||
|
||||
#define FIL_RUNOUT_PIN 39
|
||||
#if EXTRUDERS > 1
|
||||
#define FIL_RUNOUT2_PIN 14
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 0
|
||||
#define BOARD_ST7920_DELAY_2 250
|
||||
#define BOARD_ST7920_DELAY_3 250
|
||||
#endif
|
||||
|
||||
//
|
||||
// DAC steppers
|
||||
//
|
||||
#define HAS_MOTOR_CURRENT_DAC 1
|
||||
|
||||
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }
|
||||
|
||||
#define DAC_STEPPER_SENSE 0.11
|
||||
#define DAC_STEPPER_ADDRESS 0
|
||||
#define DAC_STEPPER_MAX 4096
|
||||
#define DAC_STEPPER_VREF 1
|
||||
#define DAC_STEPPER_GAIN 0
|
||||
#define DAC_OR_ADDRESS 0x00
|
||||
|
||||
//
|
||||
// Import default RAMPS 1.4 pins
|
||||
//
|
||||
#include "pins_RAMPS.h"
|
17
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
Executable file → Normal file
17
Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.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,9 +25,8 @@
|
||||
* Wanhao Duplicator i3 Plus pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#define REQUIRE_MEGA2560
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Duplicator i3 Plus"
|
||||
|
||||
@@ -80,14 +79,14 @@
|
||||
#define SDSS 53 // PB0 / SS
|
||||
#define LED_PIN 13 // PB7 / PWM13
|
||||
|
||||
#define MISO_PIN 50 // PB3
|
||||
#define MOSI_PIN 51 // PB2
|
||||
#define SCK_PIN 52 // PB1
|
||||
#define SD_MISO_PIN 50 // PB3
|
||||
#define SD_MOSI_PIN 51 // PB2
|
||||
#define SD_SCK_PIN 52 // PB1
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(ZONESTAR_LCD)
|
||||
#define LCD_PINS_RS 2
|
||||
#define LCD_PINS_ENABLE 36
|
||||
@@ -113,7 +112,7 @@
|
||||
* # Pin | ATMEGA2560 Pin | Arduino #
|
||||
* ##################################
|
||||
* # 1 | 52 / PG1 (!RD) | 40 #
|
||||
* # 2 | 95 / PF2 (A2) | 2 #
|
||||
* # 2 | 95 / PF2 (A2) | 56 #
|
||||
* # 3 | 54 / PC1 (A9) | 36 #
|
||||
* # 4 | 53 / PC0 (A8) | 37 #
|
||||
* # 5 | 56 / PC3 (A11) | 34 #
|
||||
|
6
Marlin/src/pins/ramps/pins_FELIX2.h
Executable file → Normal file
6
Marlin/src/pins/ramps/pins_FELIX2.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
|
||||
@@ -49,11 +49,11 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if BOTH(ULTRA_LCD, NEWPANEL)
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
|
||||
#define SD_DETECT_PIN 6
|
||||
|
||||
#endif // NEWPANEL && ULTRA_LCD
|
||||
#endif
|
||||
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
|
23
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
Executable file → Normal file
23
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.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,9 +25,10 @@
|
||||
* Formbot Raptor pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#define REQUIRE_MEGA2560
|
||||
#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."
|
||||
#endif
|
||||
|
||||
@@ -113,18 +114,18 @@
|
||||
#define TEMP_1_PIN 15 // Analog Input
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#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 HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
@@ -172,14 +173,16 @@
|
||||
#define PS_ON_PIN 12
|
||||
#endif
|
||||
|
||||
#define CASE_LIGHT_PIN 5
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 5
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||
//
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#if IS_RRD_SC
|
||||
#define BEEPER_PIN 37
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
|
2
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h
Executable file → Normal file
2
Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.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
|
||||
|
39
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
Executable file → Normal file
39
Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
Executable file → Normal file
@@ -16,27 +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
|
||||
|
||||
/**
|
||||
* Override default LCD timing for Formbot T-Rex 2+ machines.
|
||||
* The long LCD cables and the routing near electrically noisy stepper motors
|
||||
* requires a slightly longer setup and hold time on the signals.
|
||||
*/
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(200)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(200)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(200)
|
||||
|
||||
/**
|
||||
* Formbot pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define REQUIRE_MEGA2560
|
||||
#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."
|
||||
#endif
|
||||
|
||||
@@ -119,18 +111,18 @@
|
||||
#define TEMP_1_PIN 15 // Analog Input
|
||||
#define TEMP_BED_PIN 3 // Analog Input
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#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 HOTENDS > 1
|
||||
#if HAS_MULTI_HOTEND
|
||||
#if TEMP_SENSOR_BED
|
||||
#define IS_RAMPS_EEB
|
||||
#else
|
||||
@@ -175,14 +167,16 @@
|
||||
#define PS_ON_PIN 12
|
||||
#endif
|
||||
|
||||
#define CASE_LIGHT_PIN 8
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 8
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||
//
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#if IS_RRD_SC
|
||||
#ifndef BEEPER_PIN
|
||||
#define BEEPER_PIN 37
|
||||
#endif
|
||||
@@ -203,3 +197,10 @@
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 200
|
||||
#define BOARD_ST7920_DELAY_2 200
|
||||
#define BOARD_ST7920_DELAY_3 200
|
||||
#endif
|
||||
|
23
Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
Executable file → Normal file
23
Marlin/src/pins/ramps/pins_FORMBOT_TREX3.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,9 +25,10 @@
|
||||
* Formbot pin assignments
|
||||
*/
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define REQUIRE_MEGA2560
|
||||
#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."
|
||||
#endif
|
||||
|
||||
@@ -110,11 +111,11 @@
|
||||
#define TEMP_1_PIN 15 // Analog Input
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -134,12 +135,16 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define CASE_LIGHT_PIN 5
|
||||
#define SDSS 53
|
||||
|
||||
#ifndef LED_PIN
|
||||
#define LED_PIN 13
|
||||
#endif
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 5
|
||||
#endif
|
||||
|
||||
#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
|
||||
|
||||
@@ -151,7 +156,7 @@
|
||||
//
|
||||
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||
//
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
#if IS_RRD_SC
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 23
|
||||
|
154
Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
Executable file → Normal file
154
Marlin/src/pins/ramps/pins_FYSETC_F6_13.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,7 +25,7 @@
|
||||
// FYSETC F6 1.3 (and 1.4) pin assignments
|
||||
//
|
||||
|
||||
#ifndef __AVR_ATmega2560__
|
||||
#if NOT_TARGET(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#endif
|
||||
|
||||
#define RESET_PIN 30
|
||||
#define SPI_FLASH_CS 83
|
||||
#define SPI_FLASH_CS_PIN 83
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -124,42 +124,42 @@
|
||||
* Software serial communication pins.
|
||||
* At the moment, F6 rx pins are not pc interrupt pins
|
||||
*/
|
||||
#ifndef X_SERIAL_RX_PIN
|
||||
#define X_SERIAL_RX_PIN -1 // 71
|
||||
#endif
|
||||
#ifndef X_SERIAL_TX_PIN
|
||||
#define X_SERIAL_TX_PIN 72
|
||||
#endif
|
||||
#ifndef Y_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_RX_PIN -1 // 73
|
||||
#ifndef X_SERIAL_RX_PIN
|
||||
#define X_SERIAL_RX_PIN -1 // 71
|
||||
#endif
|
||||
#ifndef Y_SERIAL_TX_PIN
|
||||
#define Y_SERIAL_TX_PIN 75
|
||||
#endif
|
||||
#ifndef Z_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_RX_PIN -1 // 78
|
||||
#ifndef Y_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_RX_PIN -1 // 73
|
||||
#endif
|
||||
#ifndef Z_SERIAL_TX_PIN
|
||||
#define Z_SERIAL_TX_PIN 79
|
||||
#endif
|
||||
#ifndef E0_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_RX_PIN -1 // 76
|
||||
#ifndef Z_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_RX_PIN -1 // 78
|
||||
#endif
|
||||
#ifndef E0_SERIAL_TX_PIN
|
||||
#define E0_SERIAL_TX_PIN 77
|
||||
#endif
|
||||
#ifndef E1_SERIAL_RX_PIN
|
||||
#define E1_SERIAL_RX_PIN -1 // 80
|
||||
#ifndef E0_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_RX_PIN -1 // 76
|
||||
#endif
|
||||
#ifndef E1_SERIAL_TX_PIN
|
||||
#define E1_SERIAL_TX_PIN 81
|
||||
#endif
|
||||
#ifndef E2_SERIAL_RX_PIN
|
||||
#define E2_SERIAL_RX_PIN -1 // 22
|
||||
#ifndef E1_SERIAL_RX_PIN
|
||||
#define E1_SERIAL_RX_PIN -1 // 80
|
||||
#endif
|
||||
#ifndef E2_SERIAL_TX_PIN
|
||||
#define E2_SERIAL_TX_PIN 82
|
||||
#endif
|
||||
#ifndef E2_SERIAL_RX_PIN
|
||||
#define E2_SERIAL_RX_PIN -1 // 22
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -201,7 +201,7 @@
|
||||
* ----- -----
|
||||
* 5V/D41 | · · | GND 5V | · · | GND
|
||||
* RESET | · · | D49 (SD_DETECT) (LCD_D7) D29 | · · | D27 (LCD_D6)
|
||||
* (MOSI) D51 | · · | D33 (BTN_EN2) (LCD_D5) D25 | · · | D23 (LCD_D4)
|
||||
* (MOSI) D51 | · · D33 (BTN_EN2) (LCD_D5) D25 | · · D23 (LCD_D4)
|
||||
* (SD_SS) D53 | · · | D31 (BTN_EN1) (LCD_RS) D16 | · · | D17 (LCD_EN)
|
||||
* (SCK) D52 | · · | D50 (MISO) (BTN_ENC) D35 | · · | D37 (BEEPER)
|
||||
* ----- -----
|
||||
@@ -211,58 +211,80 @@
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#define BEEPER_PIN 37
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
//
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
||||
//
|
||||
#define DOGLCD_A0 16
|
||||
#define DOGLCD_CS 17
|
||||
|
||||
#if ENABLED(FYSETC_GENERIC_12864_1_1)
|
||||
#define LCD_BACKLIGHT_PIN 27
|
||||
#endif
|
||||
|
||||
#define KILL_PIN 41
|
||||
#define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
|
||||
// Seems to work best if left open.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN 25
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN 27
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN 29
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN 25
|
||||
#endif
|
||||
|
||||
#elif HAS_GRAPHICAL_LCD
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS 25
|
||||
#define DOGLCD_A0 27
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#if ENABLED(FYSETC_242_OLED_12864)
|
||||
#define BTN_EN1 37
|
||||
#define BTN_EN2 29
|
||||
#define BTN_ENC 35
|
||||
#define BEEPER_PIN 31
|
||||
|
||||
#define LCD_PINS_DC 25
|
||||
#define LCD_PINS_RS 33
|
||||
#define DOGLCD_CS 16
|
||||
#define DOGLCD_MOSI 23
|
||||
#define DOGLCD_SCK 17
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
|
||||
#undef KILL_PIN
|
||||
#define NEOPIXEL_PIN 27
|
||||
|
||||
#else
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
//
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
|
||||
//
|
||||
#define DOGLCD_A0 16
|
||||
#define DOGLCD_CS 17
|
||||
|
||||
#if ENABLED(FYSETC_GENERIC_12864_1_1)
|
||||
#define LCD_BACKLIGHT_PIN 27
|
||||
#endif
|
||||
|
||||
#define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
|
||||
// Seems to work best if left open.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN 25
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN 27
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN 29
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN 25
|
||||
#endif
|
||||
|
||||
#elif HAS_MARLINUI_U8GLIB || HAS_MARLINUI_HD44780
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
#define LCD_PINS_D7 29
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS 25
|
||||
#define DOGLCD_A0 27
|
||||
#endif
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef RGB_LED_R_PIN
|
||||
|
21
Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
Executable file → Normal file
21
Marlin/src/pins/ramps/pins_FYSETC_F6_14.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,7 +25,7 @@
|
||||
// FYSETC F6 v1.4 pin assignments
|
||||
//
|
||||
|
||||
#define BOARD_NAME "FYSETC F6 1.4"
|
||||
#define BOARD_INFO_NAME "FYSETC F6 1.4"
|
||||
|
||||
#define Z_MAX_PIN 2
|
||||
|
||||
@@ -33,18 +33,23 @@
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*/
|
||||
#define X_SERIAL_RX_PIN 72
|
||||
#define X_SERIAL_TX_PIN 71
|
||||
#define Y_SERIAL_RX_PIN 73
|
||||
#define X_SERIAL_RX_PIN 72
|
||||
|
||||
#define Y_SERIAL_TX_PIN 78
|
||||
#define Z_SERIAL_RX_PIN 75
|
||||
#define Y_SERIAL_RX_PIN 73
|
||||
|
||||
#define Z_SERIAL_TX_PIN 79
|
||||
#define E0_SERIAL_RX_PIN 77
|
||||
#define Z_SERIAL_RX_PIN 75
|
||||
|
||||
#define E0_SERIAL_TX_PIN 81
|
||||
#define E1_SERIAL_RX_PIN 76
|
||||
#define E0_SERIAL_RX_PIN 77
|
||||
|
||||
#define E1_SERIAL_TX_PIN 80
|
||||
#define E2_SERIAL_RX_PIN 62
|
||||
#define E1_SERIAL_RX_PIN 76
|
||||
|
||||
#define E2_SERIAL_TX_PIN 82
|
||||
#define E2_SERIAL_RX_PIN 62
|
||||
#endif
|
||||
|
||||
#include "pins_FYSETC_F6_13.h"
|
||||
|
4
Marlin/src/pins/ramps/pins_K8200.h
Executable file → Normal file
4
Marlin/src/pins/ramps/pins_K8200.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
|
||||
@@ -28,6 +28,6 @@
|
||||
|
||||
#define BOARD_INFO_NAME "Velleman K8200"
|
||||
#define DEFAULT_MACHINE_NAME "K8200"
|
||||
#define DEFAULT_SOURCE_CODE_URL "https://github.com/CONSULitAS/Marlin-K8200"
|
||||
#define DEFAULT_SOURCE_CODE_URL "github.com/CONSULitAS/Marlin-K8200"
|
||||
|
||||
#include "pins_3DRAG.h"
|
||||
|
33
Marlin/src/pins/ramps/pins_K8400.h
Executable file → Normal file
33
Marlin/src/pins/ramps/pins_K8400.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
|
||||
@@ -35,30 +35,28 @@
|
||||
#define BOARD_INFO_NAME "K8400"
|
||||
#define DEFAULT_MACHINE_NAME "Vertex"
|
||||
|
||||
#include "pins_3DRAG.h"
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
#define Z_STEP_PIN 32
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN 32
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
|
||||
#undef X_MIN_PIN
|
||||
#undef X_MAX_PIN
|
||||
#undef Y_MIN_PIN
|
||||
#undef Y_MAX_PIN
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#undef E1_STEP_PIN
|
||||
#define E1_STEP_PIN 32
|
||||
#include "pins_3DRAG.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#undef HEATER_1_PIN
|
||||
#define HEATER_1_PIN 11
|
||||
#define HEATER_1_PIN 11
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -66,8 +64,3 @@
|
||||
#undef PS_ON_PIN
|
||||
#undef KILL_PIN
|
||||
#undef SD_DETECT_PIN
|
||||
|
||||
#if Z_STEP_PIN == 26
|
||||
#undef Z_STEP_PIN
|
||||
#define Z_STEP_PIN 32
|
||||
#endif
|
||||
|
101
Marlin/src/pins/ramps/pins_K8600.h
Normal file
101
Marlin/src/pins/ramps/pins_K8600.h
Normal file
@@ -0,0 +1,101 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* VERTEX NANO Arduino Mega with RAMPS EFB v1.4 pin assignments.
|
||||
*/
|
||||
|
||||
#if HOTENDS > 1
|
||||
#error "Only 1 hotend is supported for Vertex Nano."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "K8600"
|
||||
#define DEFAULT_MACHINE_NAME "Vertex Nano"
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN 3
|
||||
#define Y_MAX_PIN 14
|
||||
#define Z_MAX_PIN 18
|
||||
#define Z_MIN_PIN -1
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define Z_ENABLE_PIN 63
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define FAN_PIN 8
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 25
|
||||
#define CASE_LIGHT_PIN 7
|
||||
|
||||
//
|
||||
// Other RAMPS pins
|
||||
//
|
||||
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#undef HEATER_BED_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if IS_ULTRA_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
#undef LCD_PINS_RS
|
||||
#undef LCD_PINS_ENABLE
|
||||
#undef LCD_PINS_D4
|
||||
#undef LCD_PINS_D5
|
||||
#undef LCD_PINS_D6
|
||||
#undef LCD_PINS_D7
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
|
||||
// Buttons
|
||||
#undef BTN_EN1
|
||||
#undef BTN_EN2
|
||||
#undef BTN_ENC
|
||||
#define BTN_EN1 17
|
||||
#define BTN_EN2 16
|
||||
#define BTN_ENC 23
|
||||
|
||||
#else
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif
|
67
Marlin/src/pins/ramps/pins_K8800.h
Executable file → Normal file
67
Marlin/src/pins/ramps/pins_K8800.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,9 +25,7 @@
|
||||
* Velleman K8800 (Vertex)
|
||||
*/
|
||||
|
||||
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "K8800"
|
||||
#define DEFAULT_MACHINE_NAME "Vertex Delta"
|
||||
@@ -39,8 +37,13 @@
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
#define Z_MIN_PIN 68 // Used for bed leveling
|
||||
#define Z_MAX_PIN 66
|
||||
#define Z_STOP_PIN 66
|
||||
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN 68
|
||||
#endif
|
||||
|
||||
#define FIL_RUNOUT_PIN 69 // PK7
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -61,10 +64,6 @@
|
||||
#define E0_DIR_PIN 28
|
||||
#define E0_ENABLE_PIN 24
|
||||
|
||||
#define E1_STEP_PIN 32
|
||||
#define E1_DIR_PIN 34
|
||||
#define E1_ENABLE_PIN 30
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -80,30 +79,42 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 25
|
||||
|
||||
#define FIL_RUNOUT_PIN 69 // PK7
|
||||
#define KILL_PIN 20 // PD1
|
||||
#define CASE_LIGHT_PIN 7
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define SDSS 25
|
||||
#define SD_DETECT_PIN 21 // PD0
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SD_DETECT_PIN 21 // PD0
|
||||
#define LCD_SDSS 53
|
||||
#define BEEPER_PIN 6
|
||||
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_A0 27
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
#define LCD_PINS_D7 31
|
||||
#define LCD_SDSS 53
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
#define BTN_EN1 17
|
||||
#define BTN_EN2 16
|
||||
#define BTN_ENC 23
|
||||
#endif
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_A0 27
|
||||
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#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
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 17
|
||||
#define BTN_EN2 16
|
||||
#define BTN_ENC 23
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
120
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
Normal file
120
Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Longer3D LK1/LK4/LK5 Pro board pin assignments
|
||||
*/
|
||||
|
||||
#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."
|
||||
#endif
|
||||
|
||||
#if SERIAL_PORT == 1 || SERIAL_PORT_2 == 1
|
||||
#warning "Serial 1 is originally reserved to DGUS LCD."
|
||||
#endif
|
||||
#if SERIAL_PORT == 2 || SERIAL_PORT_2 == 2
|
||||
#warning "Serial 2 has no connector. Hardware changes may be required to use it."
|
||||
#endif
|
||||
#if SERIAL_PORT == 3 || SERIAL_PORT_2 == 3
|
||||
#define CHANGE_Y_LIMIT_PINS
|
||||
#warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
|
||||
#endif
|
||||
|
||||
// Custom flags and defines for the build
|
||||
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__
|
||||
|
||||
#define BOARD_INFO_NAME "LGT KIT V1.0"
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#if !MB(LONGER3D_LK1_PRO)
|
||||
#define SERVO0_PIN 7
|
||||
#endif
|
||||
#define SERVO1_PIN -1
|
||||
#define SERVO2_PIN -1
|
||||
#define SERVO3_PIN -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN 3
|
||||
|
||||
#ifdef CHANGE_Y_LIMIT_PINS
|
||||
#define Y_STOP_PIN 37
|
||||
#else
|
||||
#define Y_MIN_PIN 14
|
||||
#define Y_MAX_PIN 15
|
||||
#endif
|
||||
|
||||
#if !MB(LONGER3D_LK1_PRO)
|
||||
#ifdef CHANGE_Y_LIMIT_PINS
|
||||
#define Z_STOP_PIN 35
|
||||
#else
|
||||
#define Z_MIN_PIN 35
|
||||
#define Z_MAX_PIN 37
|
||||
#endif
|
||||
#else
|
||||
#define Z_MIN_PIN 11
|
||||
#define Z_MAX_PIN 37
|
||||
#endif
|
||||
|
||||
#undef CHANGE_Y_LIMIT_PINS
|
||||
|
||||
//
|
||||
// Steppers - No E1 pins
|
||||
//
|
||||
#define E1_STEP_PIN -1
|
||||
#define E1_DIR_PIN -1
|
||||
#define E1_ENABLE_PIN -1
|
||||
#define E1_CS_PIN -1
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#define Z_MIN_PROBE_PIN -1
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_1_PIN -1
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
//
|
||||
#define E_MUX2_PIN -1
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SD_DETECT_PIN 49
|
||||
#define FIL_RUNOUT_PIN 2
|
||||
|
||||
//
|
||||
// Other RAMPS 1.3 pins
|
||||
//
|
||||
#define IS_RAMPS_EFB // Override autodetection. Bed will be undefined.
|
||||
#include "pins_RAMPS_13.h"
|
2
Marlin/src/pins/ramps/pins_MAKEBOARD_MINI.h
Executable file → Normal file
2
Marlin/src/pins/ramps/pins_MAKEBOARD_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
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user