Merge upstream changes from Marlin 2.1.2.2
This commit is contained in:
@@ -19,8 +19,11 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if NOT_TARGET(ARDUINO_ARCH_ESP32)
|
||||
#error "Oops! Select an ESP32 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -30,9 +30,7 @@
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "E4d@box only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "E4d@box only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
@@ -90,7 +88,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 0
|
||||
#define FAN0_PIN 0
|
||||
#define HEATER_BED_PIN 15
|
||||
|
||||
//
|
||||
|
@@ -34,7 +34,9 @@
|
||||
//
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#ifndef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#endif
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 17
|
||||
#define I2S_BCK 22
|
||||
@@ -91,7 +93,9 @@
|
||||
#define K_CS_PIN 159
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -101,14 +105,14 @@
|
||||
|
||||
// General use mosfets, useful for things like pumps and solenoids
|
||||
// Shift register pins 128, 129, 130 and 131 are broken out and can be used
|
||||
#define FAN_PIN 132
|
||||
#define FAN0_PIN 132
|
||||
#define FAN1_PIN 134
|
||||
#define FAN2_PIN 135
|
||||
#define FAN3_PIN 136
|
||||
|
||||
// #define FAN_SOFT_PWM_REQUIRED // check if needed
|
||||
|
||||
// Neopixel Rings
|
||||
// NeoPixel Rings
|
||||
#define NEOPIXEL_PIN 14
|
||||
#define NEOPIXEL2_PIN 27
|
||||
|
||||
|
@@ -32,7 +32,9 @@
|
||||
//
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#ifndef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#endif
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 25
|
||||
#define I2S_BCK 26
|
||||
@@ -79,7 +81,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define FAN0_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
// SPI
|
||||
|
@@ -68,7 +68,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 2
|
||||
#define FAN_PIN 13
|
||||
#define FAN0_PIN 13
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
//
|
||||
|
@@ -30,9 +30,7 @@
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "FYSETC E4 only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "FYSETC E4 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
|
@@ -22,10 +22,8 @@
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MRR ESPE pin assignments
|
||||
* MRR ESPE is a 3D printer control board based on the ESP32 microcontroller.
|
||||
* Supports 5 stepper drivers (using I2S stepper stream), heated bed,
|
||||
* single hotend, and LCD controller.
|
||||
* MKS TinyBee pin assignments
|
||||
* https://github.com/makerbase-mks/MKS-TinyBee
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
@@ -58,7 +56,9 @@
|
||||
//
|
||||
// Enable I2S stepper stream
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#ifndef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#endif
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
@@ -104,7 +104,7 @@
|
||||
//
|
||||
#define HEATER_0_PIN 145
|
||||
#define HEATER_1_PIN 146
|
||||
#define FAN_PIN 147
|
||||
#define FAN0_PIN 147
|
||||
#define FAN1_PIN 148
|
||||
#define HEATER_BED_PIN 144
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
* ------ ------
|
||||
* (BEEPER) 149 | 1 2 | 13 (BTN_ENC) (SPI MISO) 19 | 1 2 | 18 (SPI SCK)
|
||||
* (LCD_EN) 21 | 3 4 | 4 (LCD_RS) (BTN_EN1) 14 | 3 4 | 5 (SPI CS)
|
||||
* (LCD_D4) 0 5 6 | 16 (LCD_D5) (BTN_EN2) 12 5 6 | 23 (SPI MOSI)
|
||||
* (LCD_D4) 0 | 5 6 16 (LCD_D5) (BTN_EN2) 12 | 5 6 23 (SPI MOSI)
|
||||
* (LCD_D6) 15 | 7 8 | 17 (LCD_D7) (SPI_DET) 34 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | 3.3V
|
||||
* ------ ------
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
@@ -171,7 +171,7 @@
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define LCD_RESET_PIN -1
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
// MKS_MINI_12864_V3, BTT_MINI_12864_V1, FYSETC_MINI_12864_2_1
|
||||
// MKS_MINI_12864_V3, BTT_MINI_12864, FYSETC_MINI_12864_2_1
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define LCD_RESET_PIN EXP1_05_PIN
|
||||
@@ -179,7 +179,7 @@
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
#if BOTH(MKS_MINI_12864_V3, SDSUPPORT)
|
||||
#if ALL(MKS_MINI_12864_V3, HAS_MEDIA)
|
||||
#define PAUSE_LCD_FOR_BUSY_SD
|
||||
#endif
|
||||
#else
|
||||
|
@@ -30,9 +30,7 @@
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if EXTRUDERS > 1 || E_STEPPERS > 1
|
||||
#error "MRR ESPA only supports 1 E stepper."
|
||||
#elif HAS_MULTI_HOTEND
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "MRR ESPA only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
|
@@ -51,7 +51,9 @@
|
||||
//
|
||||
// Enable I2S stepper stream
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#ifndef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#endif
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define I2S_WS 26
|
||||
#define I2S_BCK 25
|
||||
@@ -102,7 +104,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 145 // 2
|
||||
#define FAN_PIN 146 // 15
|
||||
#define FAN0_PIN 146 // 15
|
||||
#define HEATER_BED_PIN 144 // 4
|
||||
|
||||
#define CONTROLLER_FAN_PIN 147
|
||||
@@ -119,14 +121,14 @@
|
||||
#define SDSS 5
|
||||
#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
|
||||
|
||||
//////////////////////////
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_RS 13
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 16
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
@@ -27,6 +27,10 @@
|
||||
|
||||
#define BOARD_INFO_NAME "Panda_M4"
|
||||
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "PANDA M4 only supports 1 hotend / E stepper."
|
||||
#endif
|
||||
|
||||
#include "pins_PANDA_common.h"
|
||||
|
||||
//
|
||||
|
@@ -27,6 +27,13 @@
|
||||
|
||||
#define BOARD_INFO_NAME "Panda_ZHU"
|
||||
|
||||
#if E_STEPPERS > 5
|
||||
#error "PANDA ZHU supports up to 5 E steppers."
|
||||
#endif
|
||||
#if HAS_MULTI_HOTEND
|
||||
#error "PANDA ZHU only supports 1 hotend."
|
||||
#endif
|
||||
|
||||
#include "pins_PANDA_common.h"
|
||||
|
||||
//
|
||||
|
@@ -63,10 +63,10 @@
|
||||
#define TEMP_BED_PIN 36 // Analog Input
|
||||
|
||||
#if ENABLED(MAX31856_PANDAPI)
|
||||
#define MAX31856_CLK_PIN 29
|
||||
#define MAX31856_MISO_PIN 24
|
||||
#define MAX31856_MOSI_PIN 28
|
||||
#define MAX31856_CS_PIN 27
|
||||
#define TEMP_0_CLK_PIN 29
|
||||
#define TEMP_0_MISO_PIN 24
|
||||
#define TEMP_0_MOSI_PIN 28
|
||||
#define TEMP_0_CS_PIN 27
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -74,7 +74,7 @@
|
||||
//
|
||||
#define HEATER_0_PIN 108
|
||||
#define HEATER_BED_PIN 109
|
||||
#define FAN_PIN 118 // FAN0
|
||||
#define FAN0_PIN 118 // FAN0
|
||||
#define FAN1_PIN 119 // FAN1
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
@@ -86,7 +86,7 @@
|
||||
* (EN1) 33 | 3 4 | (5 SDSS?) (EN) 26 | 3 4 | 27 (RS)
|
||||
* (EN2) 32 5 6 | (23 MOSI?) (D4) 14 | 5 6 --
|
||||
* (SDDET 2?) | 7 8 | (RESET) -- | 7 8 | --
|
||||
* -- | 9 10 | -- (GND) | 9 10 | (5V)
|
||||
* -- | 9 10 | -- GND | 9 10 | 5V
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
@@ -107,7 +107,7 @@
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
@@ -123,6 +123,6 @@
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#endif
|
||||
|
@@ -34,4 +34,6 @@
|
||||
//
|
||||
// I2S (steppers & other output-only pins)
|
||||
//
|
||||
#define I2S_STEPPER_STREAM
|
||||
#ifndef I2S_STEPPER_STREAM
|
||||
#define I2S_STEPPER_STREAM
|
||||
#endif
|
||||
|
29
Marlin/src/pins/gd32f1/env_validate.h
Normal file
29
Marlin/src/pins/gd32f1/env_validate.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if NOT_TARGET(__STM32F1__, STM32F1)
|
||||
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#endif
|
76
Marlin/src/pins/gd32f1/pins_SOVOL_V131.h
Normal file
76
Marlin/src/pins/gd32f1/pins_SOVOL_V131.h
Normal file
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2023 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Sovol 1.3.1 (GD32F103RET6) board pin assignments
|
||||
*/
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HAS_MULTI_HOTEND || E_STEPPERS > 1
|
||||
#error "SOVOL V131 only supports 1 hotend / E-stepper."
|
||||
#define E_ERROR 1
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Sovol V131"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME "Sovol SV06"
|
||||
#endif
|
||||
|
||||
#include "../stm32f1/pins_CREALITY_V4.h"
|
||||
|
||||
#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 PC1
|
||||
#define X_SERIAL_RX_PIN PC1
|
||||
|
||||
#define Y_SERIAL_TX_PIN PC0
|
||||
#define Y_SERIAL_RX_PIN PC0
|
||||
|
||||
#define Z_SERIAL_TX_PIN PA15
|
||||
#define Z_SERIAL_RX_PIN PA15
|
||||
|
||||
#define E0_SERIAL_TX_PIN PC14
|
||||
#define E0_SERIAL_RX_PIN PC14
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#define ONBOARD_SPI_DEVICE 1
|
||||
#define ONBOARD_SD_CS_PIN PA4 // SDSS
|
@@ -136,7 +136,7 @@
|
||||
#define TEMP_BED_PIN 2 // Analog Input
|
||||
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#if !HAS_MEDIA
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
@@ -161,21 +161,21 @@
|
||||
#define HEATER_0_PIN MOSFET_A_PIN
|
||||
|
||||
#if FET_ORDER_EFB // Hotend, Fan, Bed
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEF // Hotend, Hotend, Fan
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define HEATER_1_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EFF // Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define FAN1_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_SF // Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#define FAN1_PIN MOSFET_D_PIN
|
||||
@@ -184,8 +184,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 4 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -221,12 +221,12 @@
|
||||
//
|
||||
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
|
||||
#if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#elif HAS_FREE_AUX2_PINS // try to use AUX 2
|
||||
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 65
|
||||
#endif
|
||||
#endif
|
||||
@@ -247,18 +247,16 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Default pins for TMC software SPI
|
||||
* Default pins for TMC SPI
|
||||
*/
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI 66
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO 44
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK 64
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI 66
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO 44
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK 64
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -373,24 +371,53 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//////////////////////////
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
/** Faux Expansion Headers
|
||||
* ------ ------
|
||||
* (BEEP) 37 | 1 2 | 35 (ENC) (MISO) 50 | 1 2 | 52 (SCK)
|
||||
* (LCD_EN) 17 | 3 4 | 16 (LCD_RS) (EN1) 31 | 3 4 | 53 (SDSS)
|
||||
* (LCD_D4) 23 5 6 | 25 (LCD_D5) (EN2) 33 5 6 | 51 (MOSI)
|
||||
* (LCD_D6) 27 | 7 8 | 29 (LCD_D7) (SD_DET) 49 | 7 8 | 41 (KILL)
|
||||
* -- | 9 10 | -- -- | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN 37 // BEEPER
|
||||
#define EXP1_02_PIN 35 // ENC
|
||||
#define EXP1_03_PIN 17 // LCD_EN
|
||||
#define EXP1_04_PIN 16 // LCD_RS
|
||||
#define EXP1_05_PIN 23 // LCD_D4
|
||||
#define EXP1_06_PIN 25 // LCD_D5
|
||||
#define EXP1_07_PIN 27 // LCD_D6
|
||||
#define EXP1_08_PIN 29 // LCD_D7
|
||||
|
||||
#define EXP2_01_PIN 50 // MISO
|
||||
#define EXP2_02_PIN 52 // SCK
|
||||
#define EXP2_03_PIN 31 // EN1
|
||||
#define EXP2_04_PIN 53 // SDSS
|
||||
#define EXP2_05_PIN 33 // EN2
|
||||
#define EXP2_06_PIN 51 // MOSI
|
||||
#define EXP2_07_PIN 49 // SD_DET
|
||||
#define EXP2_08_PIN 41 // KILL
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#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_A0_PIN TFT_DC_PIN
|
||||
#define TFT_SCK_PIN SD_SCK_PIN
|
||||
#define TFT_MOSI_PIN SD_MOSI_PIN
|
||||
#define TFT_MISO_PIN SD_MISO_PIN
|
||||
#define TFT_MOSI_PIN SD_MOSI_PIN
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
|
||||
#define BTN_ENC 59
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
#define BEEPER_PIN 42
|
||||
|
||||
#define TOUCH_CS_PIN 33
|
||||
|
||||
@@ -398,19 +425,19 @@
|
||||
|
||||
#define SPI_FLASH
|
||||
#if ENABLED(SPI_FLASH)
|
||||
#define SPI_DEVICE 1
|
||||
#define SPI_DEVICE 1 // Maple
|
||||
#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
|
||||
#define SPI_FLASH_MISO_PIN SD_MISO_PIN
|
||||
#define SPI_FLASH_MOSI_PIN SD_MOSI_PIN
|
||||
#endif
|
||||
|
||||
#define TFT_BUFFER_SIZE 0xFFFF
|
||||
#define TFT_BUFFER_WORDS 0xFFFF
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#ifndef TOUCH_SCREEN_CALIBRATION
|
||||
#if DISABLED(TOUCH_SCREEN_CALIBRATION)
|
||||
#if ENABLED(TFT_RES_320x240)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X 20525
|
||||
@@ -475,14 +502,14 @@
|
||||
//
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
#define LCD_PINS_RS EXP2_07_PIN // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_EN EXP2_06_PIN // SID (MOSI)
|
||||
#define LCD_PINS_D4 EXP2_02_PIN // SCK (CLK) clock
|
||||
|
||||
#elif BOTH(IS_NEWPANEL, PANEL_ONE)
|
||||
#elif ALL(IS_NEWPANEL, PANEL_ONE)
|
||||
|
||||
#define LCD_PINS_RS 40
|
||||
#define LCD_PINS_ENABLE 42
|
||||
#define LCD_PINS_EN 42
|
||||
#define LCD_PINS_D4 65
|
||||
#define LCD_PINS_D5 66
|
||||
#define LCD_PINS_D6 44
|
||||
@@ -492,18 +519,18 @@
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_D4 25
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN 37
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#endif
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
|
||||
#define LCD_PINS_RS 64
|
||||
#define LCD_PINS_ENABLE 44
|
||||
#define LCD_PINS_EN 44
|
||||
#define LCD_PINS_D4 63
|
||||
#define LCD_PINS_D5 40
|
||||
#define LCD_PINS_D6 42
|
||||
@@ -511,39 +538,29 @@
|
||||
|
||||
#else
|
||||
|
||||
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
|
||||
#define LCD_PINS_DC 25 // Set as output on init
|
||||
#define LCD_PINS_RS 27 // Pull low for 1s to init
|
||||
#if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306)
|
||||
#define LCD_PINS_DC EXP1_06_PIN // Set as output on init
|
||||
#define LCD_PINS_RS EXP1_07_PIN // Pull low for 1s to init
|
||||
// DOGM SPI LCD Support
|
||||
#define DOGLCD_CS 16
|
||||
#define DOGLCD_MOSI 17
|
||||
#define DOGLCD_SCK 23
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define DOGLCD_SCK EXP1_05_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#else
|
||||
#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_RS EXP1_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_D7 29
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if !IS_NEWPANEL
|
||||
#define BEEPER_PIN 33
|
||||
#define BEEPER_PIN EXP2_05_PIN
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#if !IS_NEWPANEL
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK_PIN 38
|
||||
//#define SHIFT_LD_PIN 42
|
||||
//#define SHIFT_OUT_PIN 40
|
||||
//#define SHIFT_EN_PIN 17
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -553,19 +570,19 @@
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define BTN_EN1 17
|
||||
#define BTN_EN2 23
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#else
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#endif
|
||||
|
||||
#define BTN_ENC 35
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
|
||||
#define LCD_BACKLIGHT_PIN 39
|
||||
@@ -595,7 +612,7 @@
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#elif EITHER(VIKI2, miniVIKI)
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
|
||||
#define DOGLCD_CS 45
|
||||
#define DOGLCD_A0 44
|
||||
@@ -615,34 +632,34 @@
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
|
||||
#define BEEPER_PIN 23
|
||||
#define LCD_BACKLIGHT_PIN 33
|
||||
#define BEEPER_PIN EXP1_05_PIN
|
||||
#define LCD_BACKLIGHT_PIN EXP2_05_PIN
|
||||
|
||||
#define BTN_EN1 35
|
||||
#define BTN_EN2 37
|
||||
#define BTN_ENC 31
|
||||
#define BTN_EN1 EXP1_02_PIN
|
||||
#define BTN_EN2 EXP1_01_PIN
|
||||
#define BTN_ENC EXP2_03_PIN
|
||||
|
||||
#define LCD_SDSS SDSS
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS 25
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
// not connected to a pin
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN 64
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
@@ -675,7 +692,6 @@
|
||||
|
||||
#else
|
||||
|
||||
// Beeper on AUX-4
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Buttons are directly attached to AUX-2
|
||||
@@ -691,15 +707,15 @@
|
||||
#define BTN_EN2 63 // AUX2 PIN 4
|
||||
#define BTN_ENC 49 // AUX3 PIN 7
|
||||
#else
|
||||
#define BTN_EN1 37
|
||||
#define BTN_EN2 35
|
||||
#define BTN_ENC 31
|
||||
#define SD_DETECT_PIN 41
|
||||
#define BTN_EN1 EXP1_01_PIN
|
||||
#define BTN_EN2 EXP1_02_PIN
|
||||
#define BTN_ENC EXP2_03_PIN
|
||||
#define SD_DETECT_PIN EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if ENABLED(REQUIRE_LPC1769) && NOT_TARGET(MCU_LPC1769)
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
@@ -28,3 +29,5 @@
|
||||
#endif
|
||||
|
||||
#undef REQUIRE_LPC1769
|
||||
|
||||
#endif
|
||||
|
@@ -82,8 +82,8 @@
|
||||
// EFB
|
||||
#define HEATER_0_PIN P2_04
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_07
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_07
|
||||
#endif
|
||||
#define FAN1_PIN P0_26
|
||||
|
||||
|
@@ -73,18 +73,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P0_18 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_17 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_15 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P0_18 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_17 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_15 // ETH
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -99,8 +97,8 @@
|
||||
//
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -129,14 +127,14 @@
|
||||
|
||||
#define SD_DETECT_PIN P0_27 // EXP2-7
|
||||
#define LCD_PINS_RS P0_16 // EXP1-4
|
||||
#define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_EN P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
|
||||
|
||||
#if BOTH(HAS_MARLINUI_HD44780, IS_RRD_SC)
|
||||
#if ALL(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)
|
||||
#if HAS_MEDIA
|
||||
#error "SDSUPPORT is not supported by the BIQU B300 v1.0 when an LCD controller is used"
|
||||
#endif
|
||||
|
||||
@@ -148,7 +146,7 @@
|
||||
* Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
|
||||
* Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
#define SD_MOSI_PIN P0_18 // EXP1-3
|
||||
@@ -161,7 +159,7 @@
|
||||
*
|
||||
* There are 6 PWMS. Each PWM can be assigned to one of two pins.
|
||||
*
|
||||
* PWM1.1 P0_18 LCD_PINS_ENABLE
|
||||
* PWM1.1 P0_18 LCD_PINS_EN
|
||||
* PWM1.1 P2_0 X_STEP_PIN
|
||||
* PWM1.2 P1_20 <none>
|
||||
* PWM1.2 P2_1 Y_STEP_PIN
|
||||
@@ -170,7 +168,7 @@
|
||||
* PWM1.4 P1_23 <none>
|
||||
* PWM1.4 P2_3 E0_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN
|
||||
* PWM1.5 P2_4 FAN_PIN
|
||||
* PWM1.5 P2_4 FAN0_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN
|
||||
* PWM1.6 P2_5 HEATER_BED_PIN
|
||||
*/
|
||||
|
@@ -74,8 +74,8 @@
|
||||
//
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -104,14 +104,14 @@
|
||||
|
||||
#define SD_DETECT_PIN P0_27 // EXP2-7
|
||||
#define LCD_PINS_RS P0_16 // EXP1-4
|
||||
#define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_EN P0_18 // (MOSI) EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
|
||||
|
||||
#if BOTH(HAS_MARLINUI_HD44780, IS_RRD_SC)
|
||||
#if ALL(HAS_MARLINUI_HD44780, IS_RRD_SC)
|
||||
#error "REPRAP_DISCOUNT_SMART_CONTROLLER displays aren't supported by the BIQU BQ111-A4"
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
|
||||
#endif
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
* Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
|
||||
* Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
|
||||
*/
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
|
||||
#define SD_SCK_PIN P0_15 // EXP1-5
|
||||
#define SD_MISO_PIN P0_16 // EXP1-4
|
||||
@@ -131,14 +131,14 @@
|
||||
#define SD_SS_PIN P1_30 // EXP1-2
|
||||
#define SDSS SD_SS_PIN
|
||||
|
||||
#endif // SDSUPPORT
|
||||
#endif // HAS_MEDIA
|
||||
|
||||
/**
|
||||
* PWMS
|
||||
*
|
||||
* There are 6 PWMS. Each PWM can be assigned to one of two pins.
|
||||
*
|
||||
* PWM1.1 P0_18 LCD_PINS_ENABLE
|
||||
* PWM1.1 P0_18 LCD_PINS_EN
|
||||
* PWM1.1 P2_0 X_STEP_PIN
|
||||
* PWM1.2 P1_20 <none>
|
||||
* PWM1.2 P2_1 Y_STEP_PIN
|
||||
@@ -147,7 +147,7 @@
|
||||
* PWM1.4 P1_23 <none>
|
||||
* PWM1.4 P2_3 E0_STEP_PIN
|
||||
* PWM1.5 P1_24 X_MIN_PIN
|
||||
* PWM1.5 P2_4 FAN_PIN
|
||||
* PWM1.5 P2_4 FAN0_PIN
|
||||
* PWM1.6 P1_26 Y_MIN_PIN
|
||||
* PWM1.6 P2_5 HEATER_BED_PIN
|
||||
*/
|
||||
|
@@ -58,7 +58,6 @@
|
||||
#define E0_DIR_PIN P2_13
|
||||
#define E0_ENABLE_PIN P2_12
|
||||
|
||||
|
||||
/** ------ ------
|
||||
* 1.30 | 1 2 | 2.11 0.17 | 1 2 | 0.15
|
||||
* 0.18 | 3 4 | 0.16 3.26 | 3 4 | 1.23
|
||||
@@ -113,7 +112,7 @@
|
||||
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP2_06_PIN
|
||||
#define LCD_PINS_EN EXP2_06_PIN
|
||||
#define LCD_PINS_D4 EXP2_02_PIN
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
@@ -167,12 +166,12 @@
|
||||
// When using any TMC SPI-based drivers, software SPI is used
|
||||
// because pins may be shared with the display or SD card.
|
||||
#define TMC_USE_SW_SPI
|
||||
#define TMC_SW_MOSI EXP2_06_PIN
|
||||
#define TMC_SW_MISO EXP2_01_PIN
|
||||
#define TMC_SPI_MOSI EXP2_06_PIN
|
||||
#define TMC_SPI_MISO EXP2_01_PIN
|
||||
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
|
||||
#define TMC_SW_SCK EXP2_02_PIN
|
||||
#define TMC_SPI_SCK EXP2_02_PIN
|
||||
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
|
||||
//#define TMC_SW_SCK P2_06
|
||||
//#define TMC_SPI_SCK P2_06
|
||||
|
||||
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
|
||||
|
||||
@@ -203,7 +202,7 @@
|
||||
#undef E1_ENABLE_PIN
|
||||
#endif
|
||||
|
||||
#else // !SOFTWARE_DRIVER_ENABLE
|
||||
#else // !SOFTWARE_DRIVER_ENABLE
|
||||
|
||||
// A chip-select pin is needed for each driver.
|
||||
|
||||
|
@@ -96,6 +96,13 @@
|
||||
#define Z_MIN_PROBE_PIN P1_24
|
||||
#endif
|
||||
|
||||
//
|
||||
// Probe enable
|
||||
//
|
||||
#if ENABLED(PROBE_ENABLE_DISABLE) && !defined(PROBE_ENABLE_PIN)
|
||||
#define PROBE_ENABLE_PIN SERVO0_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
@@ -139,18 +146,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P4_28
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_04
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P4_28
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_04
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -188,8 +193,11 @@
|
||||
#define E1_SERIAL_RX_PIN P1_01
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
@@ -256,7 +264,7 @@
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_06_PIN
|
||||
#define LCD_PINS_EN EXP1_06_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
|
||||
#elif ENABLED(WYH_L12864)
|
||||
@@ -284,14 +292,15 @@
|
||||
* ------ ------
|
||||
* LCD LCD
|
||||
*/
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
#define BTN_EN1 EXP1_05_PIN
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_04_PIN
|
||||
#define DOGLCD_MOSI EXP1_01_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
@@ -301,7 +310,7 @@
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif HAS_ADC_BUTTONS
|
||||
@@ -310,28 +319,15 @@
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
|
||||
//#define TFT_RST_PIN EXP2_07_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
@@ -340,21 +336,84 @@
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#define LCD_READ_ID 0xD3
|
||||
#define LCD_USE_DMA_SPI
|
||||
#if ENABLED(BTT_TFT35_SPI_V1_0)
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* BEEPER | 1 2 | LCD-BTN MISO | 1 2 | CLK
|
||||
* T_MOSI | 3 4 | T_CS LCD-ENCA | 3 4 | TFTCS
|
||||
* T_CLK | 5 6 T_MISO LCD-ENCB | 5 6 MOSI
|
||||
* PENIRQ | 7 8 | F_CS RS | 7 8 | RESET
|
||||
* GND | 9 10 | VCC GND | 9 10 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*
|
||||
* 480x320, 3.5", SPI Display with Rotary Encoder.
|
||||
* Stock Display for the BIQU B1 SE Series.
|
||||
* Schematic: https://github.com/bigtreetech/TFT35-SPI/blob/master/v1/Hardware/BTT%20TFT35-SPI%20V1-SCH.pdf
|
||||
*/
|
||||
#define TFT_CS_PIN EXP2_04_PIN
|
||||
#define TFT_DC_PIN EXP2_07_PIN
|
||||
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_04_PIN
|
||||
#define TOUCH_SCK_PIN EXP1_05_PIN
|
||||
#define TOUCH_MISO_PIN EXP1_06_PIN
|
||||
#define TOUCH_MOSI_PIN EXP1_03_PIN
|
||||
#define TOUCH_INT_PIN EXP1_07_PIN
|
||||
|
||||
#elif ENABLED(MKS_TS35_V2_0)
|
||||
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! MKS_TS35_V2_0 requires wiring modifications. The SKR 1.3 EXP ports are rotated 180° from what the MKS_TS35_V2_0 expects. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this error.)"
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* BEEPER | 1 2 | BTN_ENC SPI1_MISO | 1 2 | SPI1_SCK
|
||||
* TFT_BKL / LCD_EN | 3 4 | TFT_RESET / LCD_RS BTN_EN1 | 3 4 | SPI1_CS
|
||||
* TOUCH_CS / LCD_D4 | 5 6 TOUCH_INT / LCD_D5 BTN_EN2 | 5 6 SPI1_MOSI
|
||||
* SPI1_CS / LCD_D6 | 7 8 | SPI1_RS / LCD_D7 SPI1_RS | 7 8 | RESET
|
||||
* GND | 9 10 | VCC GND | 9 10 | VCC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
|
||||
//#define TFT_RST_PIN EXP2_07_PIN
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TFT_BUFFER_WORDS 2400
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(TFT_CLASSIC_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -11386
|
||||
#define TOUCH_CALIBRATION_X -16794
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 8684
|
||||
#define TOUCH_CALIBRATION_Y 11000
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 689
|
||||
#define TOUCH_OFFSET_X 1024
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -273
|
||||
#define TOUCH_OFFSET_Y -352
|
||||
#endif
|
||||
#elif ENABLED(TFT_COLOR_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
@@ -369,7 +428,7 @@
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -367
|
||||
#endif
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
#define TFT_BUFFER_WORDS 2400
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
@@ -379,7 +438,7 @@
|
||||
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#else // !CR10_STOCKDISPLAY
|
||||
#else // !CR10_STOCKDISPLAY
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
@@ -387,7 +446,7 @@
|
||||
#define BTN_EN2 EXP2_05_PIN // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC EXP1_02_PIN // (58) open-drain
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_04_PIN // (16) J3-7 & AUX-4
|
||||
@@ -399,14 +458,12 @@
|
||||
#define DOGLCD_SCK EXP2_02_PIN
|
||||
#define DOGLCD_MOSI EXP2_06_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
||||
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
||||
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
@@ -420,7 +477,7 @@
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
|
||||
@@ -472,14 +529,6 @@
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if NEED_TOUCH_PINS
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_SCK_PIN EXP2_02_PIN
|
||||
#define TOUCH_MOSI_PIN EXP2_06_PIN
|
||||
#define TOUCH_MISO_PIN EXP2_01_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Special pins
|
||||
* P1_30 (37) (NOT 5V tolerant)
|
||||
|
@@ -134,6 +134,13 @@
|
||||
#define Z_MIN_PROBE_PIN P0_10
|
||||
#endif
|
||||
|
||||
//
|
||||
// Probe enable
|
||||
//
|
||||
#if ENABLED(PROBE_ENABLE_DISABLE) && !defined(PROBE_ENABLE_PIN)
|
||||
#define PROBE_ENABLE_PIN SERVO0_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
@@ -196,18 +203,16 @@
|
||||
#define TEMP_BED_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_BED_PIN
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P1_17
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_04
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P1_17
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_04
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -245,8 +250,11 @@
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
/** ------ ------
|
||||
* 1.30 | 1 2 | 0.28 0.17 | 1 2 | 0.15
|
||||
@@ -318,7 +326,7 @@
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_01_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define BEEPER_PIN EXP1_08_PIN
|
||||
|
||||
@@ -354,7 +362,7 @@
|
||||
#define BTN_EN2 EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_06_PIN
|
||||
#define LCD_PINS_EN EXP1_06_PIN
|
||||
#define LCD_PINS_D4 EXP1_04_PIN
|
||||
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
@@ -366,7 +374,7 @@
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif ENABLED(ENDER2_STOCKDISPLAY)
|
||||
@@ -394,26 +402,119 @@
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
// SPI 1
|
||||
#define SD_SCK_PIN EXP2_02_PIN
|
||||
#define SD_MISO_PIN EXP2_01_PIN
|
||||
#define SD_MOSI_PIN EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define TFT_BUFFER_SIZE 2400
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
#endif
|
||||
#ifndef TFT_HEIGHT
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_TFT35_SPI_V1_0)
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* BEEPER | 1 2 | LCD-BTN MISO | 1 2 | CLK
|
||||
* T_MOSI | 3 4 | T_CS LCD-ENCA | 3 4 | TFTCS
|
||||
* T_CLK | 5 6 T_MISO LCD-ENCB | 5 6 MOSI
|
||||
* PENIRQ | 7 8 | F_CS RS | 7 8 | RESET
|
||||
* GND | 9 10 | VCC GND | 9 10 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*
|
||||
* 480x320, 3.5", SPI Display with Rotary Encoder.
|
||||
* Stock Display for the BIQU B1 SE Series.
|
||||
* Schematic: https://github.com/bigtreetech/TFT35-SPI/blob/master/v1/Hardware/BTT%20TFT35-SPI%20V1-SCH.pdf
|
||||
*/
|
||||
#define TFT_CS_PIN EXP2_04_PIN
|
||||
#define TFT_DC_PIN EXP2_07_PIN
|
||||
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_04_PIN
|
||||
#define TOUCH_SCK_PIN EXP1_05_PIN
|
||||
#define TOUCH_MISO_PIN EXP1_06_PIN
|
||||
#define TOUCH_MOSI_PIN EXP1_03_PIN
|
||||
#define TOUCH_INT_PIN EXP1_07_PIN
|
||||
|
||||
#elif ENABLED(MKS_TS35_V2_0)
|
||||
|
||||
#ifndef NO_CONTROLLER_CUSTOM_WIRING_WARNING
|
||||
#error "CAUTION! MKS_TS35_V2_0 requires wiring modifications. The SKR 1.4 EXP ports are rotated 180° from what the MKS_TS35_V2_0 expects. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this error.)"
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* BEEPER | 1 2 | BTN_ENC SPI1_MISO | 1 2 | SPI1_SCK
|
||||
* TFT_BKL / LCD_EN | 3 4 | TFT_RESET / LCD_RS BTN_EN1 | 3 4 | SPI1_CS
|
||||
* TOUCH_CS / LCD_D4 | 5 6 TOUCH_INT / LCD_D5 BTN_EN2 | 5 6 SPI1_MOSI
|
||||
* SPI1_CS / LCD_D6 | 7 8 | SPI1_RS / LCD_D7 SPI1_RS | 7 8 | RESET
|
||||
* GND | 9 10 | VCC GND | 9 10 | VCC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
|
||||
//#define TFT_RST_PIN EXP2_07_PIN
|
||||
#define TFT_SCK_PIN EXP2_02_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_MOSI_PIN EXP2_06_PIN
|
||||
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TFT_BUFFER_WORDS 2400
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_05_PIN
|
||||
#define TOUCH_INT_PIN EXP1_06_PIN
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(TFT_CLASSIC_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -16794
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11000
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 1024
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -352
|
||||
#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_WORDS 2400
|
||||
#endif
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
@@ -431,7 +532,7 @@
|
||||
#define BTN_EN1 EXP2_03_PIN // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 EXP2_05_PIN // (33) J3-4 & AUX-4
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define LCD_SDSS EXP2_04_PIN // (16) J3-7 & AUX-4
|
||||
@@ -449,7 +550,7 @@
|
||||
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
@@ -463,7 +564,7 @@
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
|
@@ -27,8 +27,8 @@
|
||||
// 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)
|
||||
#if ALL(HAS_WIRED_LCD, BTT_MOTOR_EXPANSION)
|
||||
#if ANY(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."
|
||||
@@ -101,8 +101,8 @@
|
||||
#define HEATER_1_PIN P2_04
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_03
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_03
|
||||
#endif
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN P2_05
|
||||
@@ -111,8 +111,9 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if !defined(BEEPER_PIN) && HAS_WIRED_LCD && DISABLED(LCD_USE_I2C_BUZZER)
|
||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
||||
#define BEEPER_PIN P1_30 // (EXP1-1) Not 5V-tolerant
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@@ -87,7 +87,7 @@
|
||||
#define HEATER_0_PIN P2_06 // (H2: 10A shared)
|
||||
#define HEATER_1_PIN P2_07 // (H3: 10A shared)
|
||||
|
||||
#define FAN_PIN P2_11 // (FAN0: 1A)
|
||||
#define FAN0_PIN P2_11 // (FAN0: 1A)
|
||||
#define FAN1_PIN P2_13 // (FAN1: 1A)
|
||||
|
||||
//
|
||||
@@ -138,6 +138,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if ENABLED(EMOTION_TECH_LCD)
|
||||
#define BEEPER_PIN EXP2_01_PIN
|
||||
#define DOGLCD_A0 EXP2_06_PIN
|
||||
|
@@ -106,7 +106,9 @@
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#else
|
||||
#error "TMC2208 UART configuration is required for GMarsh X6."
|
||||
#endif
|
||||
@@ -123,7 +125,7 @@
|
||||
//
|
||||
#define HEATER_BED_PIN P1_19 // Not a PWM pin, software PWM required
|
||||
#define HEATER_0_PIN P3_26 // PWM1[3]
|
||||
#define FAN_PIN P3_25 // Part cooling fan - connected to PWM1[2]
|
||||
#define FAN0_PIN P3_25 // Part cooling fan - connected to PWM1[2]
|
||||
#define E0_AUTO_FAN_PIN P0_27 // Extruder cooling fan
|
||||
|
||||
//
|
||||
@@ -141,7 +143,7 @@
|
||||
#define BTN_EN2 P1_24
|
||||
#define BTN_ENC P1_25
|
||||
#define LCD_PINS_RS P0_20
|
||||
#define LCD_PINS_ENABLE P0_21
|
||||
#define LCD_PINS_EN P0_21
|
||||
#define LCD_PINS_D4 P2_11
|
||||
#define LCD_PINS_D5 P0_22
|
||||
#define LCD_PINS_D6 P1_29
|
||||
|
@@ -101,8 +101,8 @@
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P2_06
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -110,31 +110,25 @@
|
||||
// Note: These pins are all digitally shared with the EXP1/EXP2 Connector.
|
||||
// Using them with an LCD connected or configured will lead to hangs & crashes.
|
||||
//
|
||||
|
||||
// 5V
|
||||
// NC
|
||||
// GND
|
||||
#define PIN_P0_17 P0_17
|
||||
#define PIN_P0_16 P0_16
|
||||
#define PIN_P0_15 P0_15
|
||||
//#define PIN_P0_17 P0_17 // 5V
|
||||
//#define PIN_P0_16 P0_16 // NC
|
||||
//#define PIN_P0_15 P0_15 // GND
|
||||
|
||||
//
|
||||
// Connector J8
|
||||
//
|
||||
|
||||
// GND
|
||||
#define PIN_P1_22 P1_22
|
||||
#define PIN_P1_23 P1_23 // PWM Capable
|
||||
#define PIN_P2_12 P2_12 // Interrupt Capable
|
||||
#define PIN_P2_11 P2_11 // Interrupt Capable
|
||||
#define PIN_P1_22 P1_22 // GND
|
||||
#define PIN_P1_23 P1_23 // PWM-capable
|
||||
#define PIN_P2_12 P2_12 // Interrupt-capable
|
||||
#define PIN_P2_11 P2_11 // Interrupt-capable
|
||||
|
||||
//
|
||||
// Průša i3 MMU1 (Multi Material Multiplexer) Support
|
||||
//
|
||||
#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
|
||||
#define E_MUX0_PIN PIN_P1_23 // J8-3
|
||||
#define E_MUX1_PIN PIN_P2_12 // J8-4
|
||||
#define E_MUX2_PIN PIN_P2_11 // J8-5
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -170,21 +164,19 @@
|
||||
#if SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
|
||||
/**
|
||||
* A custom cable is needed. See the README file in the
|
||||
* Marlin\src\config\examples\Mks\Sbase directory
|
||||
* P0.27 is on EXP2 and the on-board SD card's socket. That means it can't be
|
||||
* used as the SD_DETECT for the LCD's SD card.
|
||||
* A custom cable is needed.
|
||||
* See https://github.com/MarlinFirmware/Configurations/blob/release-2.1/config/examples/Mks/Sbase/README.md
|
||||
* P0.27 is on EXP2 and the on-board SD card socket so it can't be used as SD_DETECT for the LCD SD card.
|
||||
*
|
||||
* The best solution is to use the custom cable to connect the LCD's SD_DETECT
|
||||
* to a pin NOT on EXP2.
|
||||
* The best solution is to use the custom cable to connect the LCD SD_DETECT to a pin NOT on EXP2.
|
||||
*
|
||||
* If you can't find a pin to use for the LCD's SD_DETECT then comment out
|
||||
* SD_DETECT_PIN entirely and remove that wire from the the custom cable.
|
||||
* If you can't find a pin to use for the LCD SD_DETECT then comment out SD_DETECT_PIN and remove that wire
|
||||
* from the the custom cable.
|
||||
*/
|
||||
#define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
|
||||
#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_DETECT_PIN PIN_P2_11 // J8-5 (moved from EXP2 P0.27)
|
||||
#define SD_SCK_PIN PIN_P1_22 // J8-2 (moved from EXP2 P0.7)
|
||||
#define SD_MISO_PIN PIN_P1_23 // J8-3 (moved from EXP2 P0.8)
|
||||
#define SD_MOSI_PIN PIN_P2_12 // J8-4 (moved from EXP2 P0.9)
|
||||
#define SD_SS_PIN P0_28
|
||||
#define SOFTWARE_SPI // With a custom cable we need software SPI because the
|
||||
// selected pins are not on a hardware SPI controller
|
||||
@@ -205,42 +197,53 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Smart LCD adapter
|
||||
*
|
||||
* The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
||||
* REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
||||
* DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
||||
* is needed to pick up 5V for the EXP1 connection.
|
||||
*
|
||||
* SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
|
||||
* on the LCD display during accesses of the SD card. The menus/code has been arranged so
|
||||
* that the garbage/lines are erased immediately after the SD card accesses are completed.
|
||||
* ------ ------
|
||||
* 1.31 | 1 2 | 1.30 0.08 | 1 2 | 0.07
|
||||
* 0.18 | 3 4 | 0.16 3.25 | 3 4 | 0.28
|
||||
* 0.15 | 5 6 -- 3.26 | 5 6 0.09
|
||||
* -- | 7 8 | -- 0.27 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN P1_31
|
||||
#define EXP1_02_PIN P1_30
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
|
||||
#define EXP2_01_PIN P0_08
|
||||
#define EXP2_02_PIN P0_07
|
||||
#define EXP2_03_PIN P3_25
|
||||
#define EXP2_04_PIN P0_28
|
||||
#define EXP2_05_PIN P3_26
|
||||
#define EXP2_06_PIN P0_09
|
||||
#define EXP2_07_PIN P0_27
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS P3_25 // EXP2.3
|
||||
#define TFTGLCD_CS EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define SD_DETECT_PIN P0_28 // EXP2.4
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#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
|
||||
#define BTN_EN2 P3_25 // EXP2.3
|
||||
#define LCD_PINS_RS P0_16 // EXP1.4
|
||||
#define LCD_SDSS P0_28 // EXP2.4
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1.5
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
#define BTN_EN2 EXP2_03_PIN
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define DOGLCD_SCK SD_SCK_PIN
|
||||
#define DOGLCD_MOSI SD_MOSI_PIN
|
||||
#endif
|
||||
@@ -257,26 +260,26 @@
|
||||
* Pins 6, 7 & 8 on EXP2 are no connects. That means a second special
|
||||
* cable will be needed if the RGB LEDs are to be active.
|
||||
*/
|
||||
#define DOGLCD_CS LCD_PINS_ENABLE // EXP1.3 (LCD_EN on FYSETC schematic)
|
||||
#define DOGLCD_A0 LCD_PINS_RS // EXP1.4 (LCD_A0 on FYSETC schematic)
|
||||
#define DOGLCD_SCK P2_11 // J8-5 (SCK on FYSETC schematic)
|
||||
#define DOGLCD_CS EXP1_03_PIN // LCD_EN
|
||||
#define DOGLCD_A0 EXP1_04_PIN // LCD_A0
|
||||
#define DOGLCD_SCK PIN_P2_11 // J8-5 (SCK on FYSETC schematic)
|
||||
#define DOGLCD_MOSI P4_28 // J8-6 (MOSI on FYSETC schematic)
|
||||
|
||||
//#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
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN P2_12 // J8-4 (LCD_D6 on FYSETC schematic)
|
||||
#define RGB_LED_R_PIN PIN_P2_12 // J8-4 (LCD_D6 on FYSETC schematic)
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN P1_23 // J8-3 (LCD_D5 on FYSETC schematic)
|
||||
#define RGB_LED_G_PIN PIN_P1_23 // J8-3 (LCD_D5 on FYSETC schematic)
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN P1_22 // J8-2 (LCD_D7 on FYSETC schematic)
|
||||
#define RGB_LED_B_PIN PIN_P1_22 // J8-2 (LCD_D7 on FYSETC schematic)
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN P2_12
|
||||
#define NEOPIXEL_PIN PIN_P2_12
|
||||
#endif
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
@@ -293,25 +296,23 @@
|
||||
|
||||
#if HAS_DRIVER(TMC2130)
|
||||
// J8
|
||||
#define X_CS_PIN P1_22
|
||||
#define Y_CS_PIN P1_23
|
||||
#define Z_CS_PIN P2_12
|
||||
#define E0_CS_PIN P2_11
|
||||
#define X_CS_PIN PIN_P1_22
|
||||
#define Y_CS_PIN PIN_P1_23
|
||||
#define Z_CS_PIN PIN_P2_12
|
||||
#define E0_CS_PIN 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
|
||||
#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
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P0_03 // AUX1
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_02 // AUX1
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_26 // TH4
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -325,21 +326,24 @@
|
||||
* Worst case you may have to give up the LCD
|
||||
* RX pins need to be interrupt capable
|
||||
*/
|
||||
#define X_SERIAL_TX_PIN P1_22 // J8-2
|
||||
#define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
|
||||
#define X_SERIAL_TX_PIN PIN_P1_22 // J8-2
|
||||
#define X_SERIAL_RX_PIN 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 Y_SERIAL_TX_PIN PIN_P1_23 // J8-3
|
||||
#define Y_SERIAL_RX_PIN PIN_P2_11 // J8-5 Interrupt Capable
|
||||
|
||||
#define Z_SERIAL_TX_PIN P2_12 // J8-4
|
||||
#define Z_SERIAL_TX_PIN 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
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
// UNUSED
|
||||
//#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
||||
|
@@ -134,18 +134,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P4_28
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P0_04
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P4_28
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_04
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -186,7 +184,10 @@
|
||||
#define Z2_SERIAL_RX_PIN P1_17
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
@@ -211,8 +212,8 @@
|
||||
#define HEATER_1_PIN P2_06
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -289,13 +290,13 @@
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif HAS_SPI_TFT // Config for Classic UI (emulated DOGM) and Color UI
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN EXP1_08_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
@@ -308,11 +309,11 @@
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 2
|
||||
|
||||
// Disable any LCD related PINs config
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_EN -1
|
||||
#define LCD_PINS_RS -1
|
||||
|
||||
#ifndef TFT_BUFFER_SIZE
|
||||
#define TFT_BUFFER_SIZE 1200
|
||||
#ifndef TFT_BUFFER_WORDS
|
||||
#define TFT_BUFFER_WORDS 1200
|
||||
#endif
|
||||
#ifndef TFT_QUEUE_SIZE
|
||||
#define TFT_QUEUE_SIZE 6144
|
||||
@@ -349,11 +350,11 @@
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#define KILL_PIN -1 // NC
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -370,7 +371,7 @@
|
||||
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
@@ -384,7 +385,7 @@
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
|
@@ -99,18 +99,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P1_00 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P1_08 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P1_09 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P1_00 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P1_08 // ETH
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P1_09 // ETH
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -121,7 +119,6 @@
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
|
||||
|
||||
// P2_08 E1-Step
|
||||
// P2_13 E1-Dir
|
||||
|
||||
@@ -154,8 +151,11 @@
|
||||
#endif
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -167,7 +167,7 @@
|
||||
#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 PIN_P0_03 P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
|
||||
#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
|
||||
|
||||
//
|
||||
@@ -206,15 +206,15 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#if EITHER(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#elif EITHER(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN_PIN MOSFET_C_PIN
|
||||
#ifndef FAN0_PIN
|
||||
#if ANY(FET_ORDER_EFB, FET_ORDER_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#elif ANY(FET_ORDER_EEF, FET_ORDER_SF) // Hotend, Hotend, Fan or Spindle, Fan
|
||||
#define FAN0_PIN MOSFET_C_PIN
|
||||
#elif FET_ORDER_EEB // Hotend, Hotend, Bed
|
||||
#define FAN_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#define FAN0_PIN P1_18 // (4) IO pin. Buffer needed
|
||||
#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
|
||||
#define FAN_PIN MOSFET_B_PIN
|
||||
#define FAN0_PIN MOSFET_B_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -252,8 +252,8 @@
|
||||
#error "LASER_FEATURE requires 3 free servo pins."
|
||||
#endif
|
||||
#endif
|
||||
#define SPINDLE_LASER_ENA_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN SERVO3_PIN // (4) MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENA_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_DIR_PIN SERVO2_PIN // (5)
|
||||
#endif
|
||||
|
||||
@@ -293,18 +293,17 @@
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
// Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
||||
// Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
||||
// Re-Arm J3 pins 1 (P1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
||||
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
||||
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
||||
|
||||
#define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
||||
|
||||
#define BTN_EN1 P0_16 // J3-7 & AUX-4
|
||||
#define BTN_EN2 P1_23 // J3-5 & AUX-4
|
||||
#define BTN_EN1 P1_23 // J3-5 & AUX-4
|
||||
#define BTN_EN2 P0_16 // J3-7 & AUX-4
|
||||
#define BTN_ENC P3_25 // J3-4 & AUX-4
|
||||
|
||||
#define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
||||
#define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
||||
#define LCD_PINS_EN P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
||||
#define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD)
|
||||
@@ -325,8 +324,8 @@
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define BEEPER_PIN P1_01
|
||||
#define BTN_ENC P1_04
|
||||
#define BEEPER_PIN P1_01 // (79) J12-12
|
||||
#define BTN_ENC P1_04 // (77) J12-10
|
||||
#else
|
||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
||||
#define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
||||
@@ -353,7 +352,7 @@
|
||||
//#define SHIFT_EN_PIN P1_22 // (41) J5-4 & AUX-4
|
||||
#endif
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_SCK P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
@@ -367,18 +366,18 @@
|
||||
#else
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_SCK P0_15
|
||||
#define DOGLCD_MOSI P0_18
|
||||
#define DOGLCD_SCK P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
#define DOGLCD_MOSI P0_18 // (51) (MOSI) J3-10 & AUX-3
|
||||
|
||||
// EXP1 on LCD adapter is not usable - using Ethernet connector instead
|
||||
#define DOGLCD_CS P1_09
|
||||
#define DOGLCD_A0 P1_14
|
||||
//#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 DOGLCD_CS P1_09 // (74) J12-7
|
||||
#define DOGLCD_A0 P1_14 // (73) J12-6
|
||||
//#define FORCE_SOFT_SPI // Use this if Hardware SPI causes display problems.
|
||||
// Results in LCD Software SPI mode 3, SD Software SPI mode 0.
|
||||
|
||||
#define LCD_RESET_PIN P0_16 // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN P1_00
|
||||
#endif
|
||||
@@ -396,24 +395,22 @@
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#endif
|
||||
|
||||
#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_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
||||
#define LCD_PINS_EN P0_18 // (51) (MOSI) J3-10 & AUX-3
|
||||
#define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
||||
#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
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
@@ -421,17 +418,17 @@
|
||||
// Ethernet pins
|
||||
//
|
||||
#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
|
||||
#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
|
||||
#endif
|
||||
#define ENET_MOC P1_16 // (70) J12-3
|
||||
#define REF_CLK P1_15 // (72) J12-5
|
||||
#define ENET_RXD0 P1_09 // (74) J12-7
|
||||
#define ENET_CRS P1_08 // (76) J12-9
|
||||
#define ENET_TX_EN P1_04 // (77) J12-10
|
||||
#define ENET_TXD0 P1_00 // (78) J12-11
|
||||
#define ENET_TXD1 P1_01 // (79) J12-12
|
||||
#define ENET_MOC P1_16 // (70) J12-3
|
||||
#define REF_CLK P1_15 // (72) J12-5
|
||||
#define ENET_RXD0 P1_09 // (74) J12-7
|
||||
#define ENET_CRS P1_08 // (76) J12-9
|
||||
#define ENET_TX_EN P1_04 // (77) J12-10
|
||||
#define ENET_TXD0 P1_00 // (78) J12-11
|
||||
#define ENET_TXD1 P1_01 // (79) J12-12
|
||||
|
||||
//
|
||||
// SD Support
|
||||
@@ -441,10 +438,10 @@
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#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
|
||||
#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 (aka SDSS, CS)
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
|
@@ -87,8 +87,8 @@
|
||||
#define HEATER_BED2_PIN P2_04
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P2_06
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P1_24
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P1_24
|
||||
#endif
|
||||
#define FAN1_PIN P1_26
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
|
||||
#if IS_RRD_FG_SC
|
||||
#define LCD_PINS_RS P0_16
|
||||
#define LCD_PINS_ENABLE P0_18
|
||||
#define LCD_PINS_EN P0_18
|
||||
#define LCD_PINS_D4 P0_15
|
||||
#define LCD_PINS_D5 P1_00
|
||||
#define LCD_PINS_D6 P1_01
|
||||
|
@@ -19,8 +19,11 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if NOT_TARGET(MCU_LPC1769)
|
||||
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -100,16 +100,15 @@
|
||||
#define HEATER_BED_PIN P2_07
|
||||
#define HEATER_0_PIN P2_04
|
||||
#define HEATER_1_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P0_26
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P0_26
|
||||
#endif
|
||||
#define FAN1_PIN P1_22
|
||||
|
||||
//
|
||||
// Display
|
||||
//
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN P1_31
|
||||
#define DOGLCD_A0 P2_06
|
||||
#define DOGLCD_CS P0_16
|
||||
|
@@ -33,7 +33,7 @@
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Azteeg X5 MINI"
|
||||
#endif
|
||||
#define BOARD_WEBSITE_URL "tiny.cc/x5_mini"
|
||||
#define BOARD_WEBSITE_URL "panucatt.com"
|
||||
|
||||
//
|
||||
// LED
|
||||
@@ -56,11 +56,11 @@
|
||||
#define Z_STOP_PIN P1_28
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN P2_04
|
||||
#define FIL_RUNOUT_PIN _EXP1_09
|
||||
#endif
|
||||
|
||||
#ifndef FILWIDTH_PIN
|
||||
#define FILWIDTH_PIN P0_25_A2 // Analog Input (P0_25)
|
||||
#define FILWIDTH_PIN _EXP1_04 // Analog Input (P0_25)
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -104,11 +104,52 @@
|
||||
//
|
||||
#define HEATER_BED_PIN P2_07
|
||||
#define HEATER_0_PIN P2_05
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P0_26
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P0_26
|
||||
#endif
|
||||
#define FAN1_PIN P1_25
|
||||
|
||||
//
|
||||
// Headers V1.1 - V3.0
|
||||
//
|
||||
//#define _EXP1_01 -1 // GND
|
||||
#define _EXP1_02 P1_03
|
||||
//#define _EXP1_03 -1 // 3.3V
|
||||
#define _EXP1_04 P0_25_A2
|
||||
#define _EXP1_05 P0_27 // SDA0
|
||||
#define _EXP1_06 P4_29
|
||||
#define _EXP1_07 P0_28 // SCL0
|
||||
#define _EXP1_08 P2_08
|
||||
#define _EXP1_09 P2_04
|
||||
#define _EXP1_10 P1_22
|
||||
|
||||
#define _EXP2_01 P1_31
|
||||
#define _EXP2_02 P3_26
|
||||
#define _EXP2_03 P2_11
|
||||
#define _EXP2_04 P3_25
|
||||
#define _EXP2_05 P1_23
|
||||
#define _EXP2_06 P0_17
|
||||
#define _EXP2_07 P0_16
|
||||
#define _EXP2_08 P2_06
|
||||
#define _EXP2_09 P0_15
|
||||
#define _EXP2_10 P0_18
|
||||
|
||||
//
|
||||
// Only V2.0
|
||||
//
|
||||
//#define _J7_01 -1 // 3.3V
|
||||
//#define _J7_02 -1 // GND
|
||||
#define _J7_03 P1_16
|
||||
#define _J7_04 P1_17
|
||||
#define _J7_05 P1_15
|
||||
#define _J7_06 P0_14
|
||||
#define _J7_07 P1_09
|
||||
#define _J7_08 P1_10
|
||||
#define _J7_09 P1_08
|
||||
#define _J7_10 P1_04
|
||||
#define _J7_11 P1_00
|
||||
#define _J7_12 P1_01
|
||||
|
||||
//
|
||||
// Display
|
||||
//
|
||||
@@ -121,61 +162,60 @@
|
||||
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
||||
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
||||
|
||||
#define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
||||
#define BEEPER_PIN _EXP2_03
|
||||
|
||||
#define BTN_EN1 P0_16 // J3-7 & AUX-4
|
||||
#define BTN_EN2 P1_23 // J3-5 & AUX-4
|
||||
#define BTN_ENC P3_25 // J3-4 & AUX-4
|
||||
#define BTN_EN1 _EXP2_07
|
||||
#define BTN_EN2 _EXP2_05
|
||||
#define BTN_ENC _EXP2_04
|
||||
|
||||
#define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
||||
#define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
||||
#define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
||||
#define LCD_PINS_RS _EXP2_09
|
||||
#define LCD_PINS_EN _EXP2_10
|
||||
#define LCD_PINS_D4 _EXP2_08
|
||||
|
||||
#else
|
||||
|
||||
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
||||
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
||||
#define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
||||
#define BTN_EN1 _EXP2_02
|
||||
#define BTN_EN2 _EXP2_04
|
||||
#define BTN_ENC _EXP2_03
|
||||
|
||||
#define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
||||
#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_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
|
||||
#define SD_DETECT_PIN _EXP2_01
|
||||
#define KILL_PIN _EXP1_10
|
||||
#define LCD_PINS_RS _EXP2_07
|
||||
#define LCD_SDSS _EXP2_07
|
||||
#define LCD_BACKLIGHT_PIN _EXP2_07
|
||||
#define LCD_PINS_EN _EXP2_10
|
||||
#define LCD_PINS_D4 _EXP2_09
|
||||
|
||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
||||
#define DOGLCD_A0 _EXP2_08
|
||||
|
||||
#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
|
||||
#define SHIFT_OUT_PIN _EXP2_10
|
||||
#define SHIFT_CLK_PIN _EXP2_09
|
||||
#define SHIFT_LD_PIN _EXP2_01
|
||||
#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
|
||||
//#define SHIFT_OUT_PIN _EXP2_03
|
||||
//#define SHIFT_CLK_PIN _EXP2_02
|
||||
//#define SHIFT_LD_PIN _EXP2_04
|
||||
//#define SHIFT_EN_PIN _EXP1_10
|
||||
#endif
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN P1_30 // (37) may change if cable changes
|
||||
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN P1_30
|
||||
#define DOGLCD_CS P0_26
|
||||
#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
|
||||
#define STAT_LED_BLUE_PIN P0_26
|
||||
#define STAT_LED_RED_PIN P1_21
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#else
|
||||
#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
|
||||
#define LCD_PINS_D5 P1_17
|
||||
#define LCD_PINS_D6 P1_14
|
||||
#define LCD_PINS_D7 P1_10
|
||||
#endif
|
||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
||||
#define DOGLCD_CS P0_16 // (16)
|
||||
#define BEEPER_PIN P1_30
|
||||
#define DOGLCD_CS _EXP2_07
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
@@ -183,7 +223,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
#if ANY(VIKI2, miniVIKI, MINIPANEL)
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
#endif
|
||||
|
||||
@@ -199,10 +239,10 @@
|
||||
#endif
|
||||
|
||||
#if 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 P1_23
|
||||
#define SD_SCK_PIN _EXP2_09
|
||||
#define SD_MISO_PIN _EXP2_06
|
||||
#define SD_MOSI_PIN _EXP2_10
|
||||
#define SD_SS_PIN _EXP2_05
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_SCK_PIN P0_07
|
||||
|
@@ -153,8 +153,11 @@
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// TMC Low Power Standby pins
|
||||
@@ -171,7 +174,10 @@
|
||||
#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
|
||||
|
||||
#ifndef TEMP_BOARD_PIN
|
||||
#define TEMP_BOARD_PIN P1_30 // Onboard thermistor, NTC100K
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
@@ -179,7 +185,7 @@
|
||||
#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 FAN0_PIN P2_01
|
||||
#define FAN1_PIN P2_02
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
@@ -237,7 +243,7 @@
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
@@ -247,14 +253,14 @@
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_RS EXP1_06_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_02_PIN
|
||||
#define LCD_PINS_EN EXP1_02_PIN
|
||||
#define LCD_PINS_D4 EXP1_07_PIN
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_03_PIN
|
||||
#define LCD_PINS_D7 EXP1_01_PIN
|
||||
#define ADC_KEYPAD_PIN P1_23 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
#elif ANY(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
@@ -72,16 +72,14 @@
|
||||
//
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P1_16 // Ethernet Expansion - Pin 5
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -96,8 +94,8 @@
|
||||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07 // FET 1
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06 // FET 3
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06 // FET 3
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -127,7 +125,7 @@
|
||||
#define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
||||
#undef HEATER_BED_PIN
|
||||
#define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
||||
#undef FAN_PIN
|
||||
#undef FAN0_PIN
|
||||
#define SPINDLE_DIR_PIN P2_06 // FET 3
|
||||
#endif
|
||||
|
||||
@@ -151,12 +149,12 @@
|
||||
|
||||
#define LCD_PINS_RS P0_16 // EXP1-4
|
||||
#define LCD_SDSS P0_28 // EXP2-4
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1-3
|
||||
#define LCD_PINS_EN P0_18 // EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1-5
|
||||
|
||||
#define KILL_PIN P2_11 // EXP2-10
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#error "SDSUPPORT is not currently supported by the Cohesion3D boards"
|
||||
#endif
|
||||
|
||||
|
@@ -89,16 +89,14 @@
|
||||
//
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
|
||||
#endif
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P1_16 // Ethernet Expansion - Pin 5
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P1_17 // Ethernet Expansion - Pin 6
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P1_08 // Ethernet Expansion - Pin 7
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -121,8 +119,8 @@
|
||||
#define HEATER_0_PIN P2_07 // FET 1
|
||||
#define HEATER_1_PIN P1_23 // FET 2
|
||||
#define HEATER_2_PIN P1_22 // FET 3
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06 // FET 4
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06 // FET 4
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -154,12 +152,43 @@
|
||||
#if HAS_CUTTER
|
||||
#undef HEATER_0_PIN
|
||||
#undef HEATER_BED_PIN
|
||||
#undef FAN_PIN
|
||||
#define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
||||
#undef FAN0_PIN
|
||||
#define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
|
||||
#define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
|
||||
#define SPINDLE_DIR_PIN P2_06 // FET 4
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) 1.31 | 1 2 | 1.30 (BTN_ENC) (MISO) 0.8 | 1 2 | 0.7 (SD_SCK)
|
||||
* (EN) 0.18 | 3 4 | 0.16 (RS) (EN1) 3.26 | 3 4 | 0.28 (SD_CS2)
|
||||
* (D4) 0.15 5 6 | -- (EN2) 3.25 5 6 | 0.9 (SD_MOSI)
|
||||
* -- | 7 8 | 0.27 (D7) (SD_DET) 0.27 | 7 8 | 2.11
|
||||
* GND | 9 10 | 5V GND | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN P1_31
|
||||
#define EXP1_02_PIN P1_30
|
||||
#define EXP1_03_PIN P0_18
|
||||
#define EXP1_04_PIN P0_16
|
||||
#define EXP1_05_PIN P0_15
|
||||
#define EXP1_06_PIN -1
|
||||
#define EXP1_07_PIN -1
|
||||
#define EXP1_08_PIN P0_27 // (also on EXP2-7)
|
||||
#define EXP1_09_PIN -1
|
||||
#define EXP1_10_PIN -1
|
||||
|
||||
#define EXP2_01_PIN P0_08
|
||||
#define EXP2_02_PIN P0_07
|
||||
#define EXP2_03_PIN P3_26
|
||||
#define EXP2_04_PIN P0_28
|
||||
#define EXP2_05_PIN P3_25
|
||||
#define EXP2_06_PIN P0_09
|
||||
#define EXP2_07_PIN P0_27 // (also on EXP1-8)
|
||||
#define EXP2_08_PIN P2_11
|
||||
#define EXP2_09_PIN -1
|
||||
#define EXP2_10_PIN -1
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
@@ -173,54 +202,54 @@
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
|
||||
#define FORCE_SOFT_SPI // REQUIRED - results in LCD soft SPI mode 3
|
||||
#define FORCE_SOFT_SPI // REQUIRED. Results in LCD Software SPI mode 3
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1-1
|
||||
#define BTN_ENC P1_30 // EXP1-2
|
||||
#define DOGLCD_CS P0_18 // EXP1-3
|
||||
#define DOGLCD_A0 P0_16 // EXP1-4
|
||||
#define LCD_RESET_PIN P0_15 // EXP1-5
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define LCD_RESET_PIN EXP1_05_PIN
|
||||
|
||||
// A custom cable is REQUIRED for EXP2 cable because the SCK & MOSI on the card's EXP2 are dedicated
|
||||
// to the onboard SD card. All required EXP2 signals come from the Ethernet connector. Pin 1 of this
|
||||
// connector is the one nearest the motor power connector.
|
||||
#define DOGLCD_SCK P1_17 // EXP2-2 => Ethernet pin 5 (bottom, 3 from left)
|
||||
#define BTN_EN2 P1_09 // EXP2-3 => Ethernet pin 9 (bottom, 5 from left)
|
||||
#define BTN_EN1 P1_04 // EXP2-5 => Ethernet pin 11 (bottom, 6 from left)
|
||||
#define DOGLCD_MOSI P1_01 // EXP2-6 => Ethernet pin 13 (bottom, 7 from left)
|
||||
#define DOGLCD_SCK P1_17 // LCD2-2 => Ethernet pin 5 (bottom, 3 from left)
|
||||
#define BTN_EN2 P1_09 // LCD2-3 => Ethernet pin 9 (bottom, 5 from left)
|
||||
#define BTN_EN1 P1_04 // LCD2-5 => Ethernet pin 11 (bottom, 6 from left)
|
||||
#define DOGLCD_MOSI P1_01 // LCD2-6 => Ethernet pin 13 (bottom, 7 from left)
|
||||
|
||||
// A custom EXP1 cable is required colored LEDs. Pins 1-5, 9, 10 of the cable go to pins 1-5, 9, 10
|
||||
// on the board's EXP1 connector. Pins 6, 7, and 8 of the EXP1 cable go to the Ethernet connector.
|
||||
// Rev 1.2 displays do NOT require the RGB LEDs. 2.0 and 2.1 displays do require RGB.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
|
||||
#define RGB_LED_R_PIN P1_16 // LCD1-6 => Ethernet pin 6 (top row, 3 from left)
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN P1_10 // EXP1-7 => Ethernet pin 10 (top row, 5 from left)
|
||||
#define RGB_LED_G_PIN P1_10 // LCD1-7 => Ethernet pin 10 (top row, 5 from left)
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN P1_00 // EXP1-8 => Ethernet pin 12 (top row, 6 from left)
|
||||
#define RGB_LED_B_PIN P1_00 // LCD1-8 => Ethernet pin 12 (top row, 6 from left)
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
|
||||
#define NEOPIXEL_PIN P1_16 // LCD1-6 => Ethernet pin 6 (top row, 3 from left)
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN P1_31 // EXP1-1
|
||||
//#define SD_DETECT_PIN P0_27 // EXP2-7
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
//#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#define BTN_EN1 P3_26 // EXP2-5
|
||||
#define BTN_EN2 P3_25 // EXP2-3
|
||||
#define BTN_ENC P1_30 // EXP1-2
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_PINS_RS P0_16 // EXP1-4
|
||||
#define LCD_SDSS P0_28 // EXP2-4
|
||||
#define LCD_PINS_ENABLE P0_18 // EXP1-3
|
||||
#define LCD_PINS_D4 P0_15 // EXP1-5
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define KILL_PIN P2_11 // EXP2-10
|
||||
#define KILL_PIN EXP2_08_PIN
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
@@ -232,11 +261,11 @@
|
||||
#endif
|
||||
|
||||
#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
|
||||
#define SD_SCK_PIN EXP2_02_PIN // (52) System-defined J3-9 & AUX-3
|
||||
#define SD_MISO_PIN EXP2_01_PIN // (50) System-defined J3-10 & AUX-3
|
||||
#define SD_MOSI_PIN EXP2_06_PIN // (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
|
||||
#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
|
||||
@@ -259,30 +288,3 @@
|
||||
//#define ENET_TX_EN P1_04 // Ethernet pin 11 (bottom, 6 from left)
|
||||
//#define ENET_TXD0 P1_00 // Ethernet pin 12 (top row, 6 from left)
|
||||
//#define ENET_TXD1 P1_01 // Ethernet pin 13 (bottom, 7 from left)
|
||||
|
||||
/**
|
||||
* EXP1 pins
|
||||
* 1 - P1_31
|
||||
* 2 - P1_30
|
||||
* 3 - P0_18
|
||||
* 4 - P0_16
|
||||
* 5 - P0_15
|
||||
* 6 - N/C
|
||||
* 7 - N/C
|
||||
* 8 - P0_27 (also on EXP2-7)
|
||||
* 9 - GND
|
||||
* 10 - +5V
|
||||
*
|
||||
*
|
||||
* EXP2 pins
|
||||
* 1 - P0_08
|
||||
* 2 - P0_07
|
||||
* 3 - P3_26
|
||||
* 4 - P0_28
|
||||
* 5 - P3_25
|
||||
* 6 - P0_09
|
||||
* 7 - P0_27 (also on EXP1_8)
|
||||
* 8 - P2_11
|
||||
* 9 - GND
|
||||
* 10 - N/C
|
||||
*/
|
||||
|
@@ -94,18 +94,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#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
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P0_20
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_19
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_21
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -128,8 +126,11 @@
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -146,8 +147,8 @@
|
||||
#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
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P1_18
|
||||
#endif
|
||||
#define FAN1_PIN P1_21
|
||||
#define FAN2_PIN P1_24
|
||||
@@ -157,7 +158,7 @@
|
||||
//
|
||||
#define BEEPER_PIN P2_07
|
||||
#define LCD_PINS_RS P2_10
|
||||
#define LCD_PINS_ENABLE P0_22
|
||||
#define LCD_PINS_EN P0_22
|
||||
#define LCD_PINS_D4 P1_19
|
||||
#define LCD_PINS_D5 P2_08
|
||||
#define LCD_PINS_D6 P1_30
|
||||
|
@@ -56,5 +56,8 @@
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
@@ -148,18 +148,16 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// Default pins for TMC software SPI
|
||||
//
|
||||
#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
|
||||
#ifndef TMC_SPI_MOSI
|
||||
#define TMC_SPI_MOSI P1_16
|
||||
#endif
|
||||
#ifndef TMC_SPI_MISO
|
||||
#define TMC_SPI_MISO P0_05
|
||||
#endif
|
||||
#ifndef TMC_SPI_SCK
|
||||
#define TMC_SPI_SCK P0_04
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
@@ -197,7 +195,10 @@
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
@@ -231,8 +232,8 @@
|
||||
#define FAN2_PIN P2_06 // HE1 for FAN3
|
||||
#endif
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_04 // FAN1
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_04 // FAN1
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN P1_04 // FAN2
|
||||
@@ -318,7 +319,7 @@
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#else
|
||||
@@ -344,7 +345,7 @@
|
||||
|
||||
#define TFT_CS_PIN EXP1_07_PIN
|
||||
#define TFT_DC_PIN EXP1_08_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
#define TFT_MISO_PIN EXP2_01_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_03_PIN
|
||||
#define TFT_RESET_PIN EXP1_04_PIN
|
||||
@@ -357,21 +358,21 @@
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 2
|
||||
|
||||
// Disable any LCD related PINs config
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_EN -1
|
||||
#define LCD_PINS_RS -1
|
||||
|
||||
#ifndef TFT_BUFFER_SIZE
|
||||
#define TFT_BUFFER_SIZE 1200
|
||||
#ifndef TFT_BUFFER_WORDS
|
||||
#define TFT_BUFFER_WORDS 1200
|
||||
#endif
|
||||
#ifndef TFT_QUEUE_SIZE
|
||||
#define TFT_QUEUE_SIZE 6144
|
||||
#endif
|
||||
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
#else // !MKS_12864OLED_SSD1306
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
@@ -388,7 +389,7 @@
|
||||
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
@@ -402,7 +403,7 @@
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#endif
|
||||
|
||||
#else // !FYSETC_MINI_12864
|
||||
#else // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
@@ -428,6 +429,9 @@
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
@@ -85,15 +85,16 @@
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#define HEATER_1_PIN P1_23
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06
|
||||
#endif
|
||||
#define FAN1_PIN P2_04
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
|
||||
#define BEEPER_PIN P1_31
|
||||
#define DOGLCD_A0 P2_11
|
||||
@@ -142,7 +143,7 @@
|
||||
// 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_EN 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
|
||||
|
@@ -99,8 +99,11 @@
|
||||
#define E0_SERIAL_RX_PIN P0_21
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
#ifndef TMC_BAUD_RATE
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temp Sensors
|
||||
@@ -119,8 +122,8 @@
|
||||
//
|
||||
#define HEATER_BED_PIN P2_05
|
||||
#define HEATER_0_PIN P2_07
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN P2_06
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN P2_06
|
||||
#endif
|
||||
#define FAN1_PIN P1_22
|
||||
|
||||
@@ -185,7 +188,7 @@
|
||||
*/
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define KILL_PIN EXP1_04_PIN
|
||||
|
||||
@@ -214,7 +217,7 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if EITHER(CR10_STOCKDISPLAY, MKS_MINI_12864)
|
||||
#if ANY(CR10_STOCKDISPLAY, MKS_MINI_12864)
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if NOT_TARGET(__AVR_ATmega2560__)
|
||||
#if DISABLED(ALLOW_MEGA1280)
|
||||
@@ -30,3 +31,5 @@
|
||||
#endif
|
||||
|
||||
#undef ALLOW_MEGA1280
|
||||
|
||||
#endif
|
||||
|
@@ -86,8 +86,8 @@
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 9
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 3
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 3
|
||||
#endif
|
||||
#define FAN2_PIN 58 // additional fan or light control output
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
// LCD / Controller
|
||||
//
|
||||
#define LCD_PINS_RS 19
|
||||
#define LCD_PINS_ENABLE 42
|
||||
#define LCD_PINS_EN 42
|
||||
#define LCD_PINS_D4 18
|
||||
#define LCD_PINS_D5 38
|
||||
#define LCD_PINS_D6 41
|
||||
@@ -128,7 +128,7 @@
|
||||
//
|
||||
#define BEEPER_PIN 44
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
|
@@ -93,8 +93,8 @@
|
||||
#define HEATER_3_PIN 46
|
||||
#define HEATER_BED_PIN 2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
//#define FAN_PIN 7 // common PWM pin for all tools
|
||||
#ifndef FAN0_PIN
|
||||
//#define FAN0_PIN 7 // common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -138,6 +138,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 6
|
||||
|
||||
|
@@ -93,8 +93,8 @@
|
||||
#define HEATER_3_PIN 3
|
||||
#define HEATER_BED_PIN 24
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -143,6 +143,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 16
|
||||
|
||||
|
@@ -87,7 +87,7 @@
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
|
||||
//
|
||||
// Auto fans
|
||||
|
@@ -70,7 +70,7 @@
|
||||
#define HEATER_0_PIN 83
|
||||
#define HEATER_BED_PIN 38
|
||||
|
||||
#define FAN_PIN 82
|
||||
#define FAN0_PIN 82
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -78,12 +78,8 @@
|
||||
#define SDSS 53
|
||||
#define LED_PIN 4
|
||||
|
||||
//////////////////////////
|
||||
// LCDs and Controllers //
|
||||
//////////////////////////
|
||||
|
||||
//
|
||||
// LCD Display output pins
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
// Requires #define U8GLIB_SH1106_EINSTART in Configuration.h
|
||||
|
@@ -92,8 +92,8 @@
|
||||
#define HEATER_2_PIN 17 // 12V PWM3
|
||||
#define HEATER_BED_PIN 44 // DOUBLE 12V PWM
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 16 // 5V PWM
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 16 // 5V PWM
|
||||
#endif
|
||||
|
||||
//
|
||||
|
@@ -47,14 +47,12 @@
|
||||
#define Y_MAX_PIN 28
|
||||
#define Z_MIN_PIN 30
|
||||
|
||||
#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
|
||||
#if ENABLED(BLTOUCH) && !defined(SERVO0_PIN)
|
||||
#define SERVO0_PIN 32
|
||||
#endif
|
||||
|
||||
#if SERVO0_PIN == 32
|
||||
#define Z_MAX_PIN -1
|
||||
#else
|
||||
#define Z_MAX_PIN 32
|
||||
#endif
|
||||
@@ -95,71 +93,107 @@
|
||||
#define HEATER_0_PIN 2
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
|
||||
// Power monitoring pins - set to 0 for main VIN, 1 for dedicated bed supply rail.
|
||||
// Don't forget to enable POWER_MONITOR_VOLTAGE in Configuration_adv.h
|
||||
// and set POWER_MONITOR_VOLTS_PER_VOLT to 0.090909.
|
||||
#define POWER_MONITOR_VOLTAGE_PIN 0
|
||||
|
||||
/** LCD SDCARD
|
||||
* ------ ------
|
||||
* (TX1) 18 | 1 2 | 19 (RX1) (MISO) 50 | 1 2 | 52 (SCK)
|
||||
* (RX2) 17 | 3 4 | 20 (SDA) 42 | 3 4 | 53 (SS)
|
||||
* (TX2) 16 | 5 6 21 (SCL) 40 | 5 6 51 (MOSI)
|
||||
* 5 | 7 8 | 6 38 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | 5V/3V3
|
||||
* ------ ------
|
||||
* SV1 SV3
|
||||
*
|
||||
* GT2560 LCD & SD headers follow typical EXP1 & EXP2 format.
|
||||
* SD header voltage pin set by link pads beneath the header; R25 for 5V, R44 for 3.3V (default)
|
||||
* Pins 20 (SDA) and 21 (SCL) have external 10K pull-ups on the board.
|
||||
*/
|
||||
|
||||
#define EXP1_01_PIN 18 // TX1 / BEEPER
|
||||
#define EXP1_02_PIN 19 // RX1 / ENC
|
||||
#define EXP1_03_PIN 17 // RX2 / CS
|
||||
#define EXP1_04_PIN 20 // SDA / A0
|
||||
#define EXP1_05_PIN 16 // TX2 / LCD_RS
|
||||
#define EXP1_06_PIN 21 // SCL / CS
|
||||
#define EXP1_07_PIN 5 // D6 / A0
|
||||
#define EXP1_08_PIN 6 // D7 / D4
|
||||
|
||||
#define EXP2_01_PIN 50 // MISO
|
||||
#define EXP2_02_PIN 52 // SCK
|
||||
#define EXP2_03_PIN 42 // EN2
|
||||
#define EXP2_04_PIN 53 // SDSS
|
||||
#define EXP2_05_PIN 40 // EN1
|
||||
#define EXP2_06_PIN 51 // MOSI
|
||||
#define EXP2_07_PIN 38 // SD_DET
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
#define SDSS EXP2_04_PIN
|
||||
#define LED_PIN 13
|
||||
#define PS_ON_PIN 12
|
||||
#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
|
||||
#define KILL_PIN -1
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#if IS_NEWPANEL
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 5
|
||||
#define DOGLCD_CS 21
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 42
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
#define BTN_EN2 EXP2_03_PIN
|
||||
#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 DOGLCD_CS EXP1_03_PIN
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
|
||||
#define NEOPIXEL_PIN 21
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
|
||||
#define LCD_RESET_PIN 16
|
||||
#define LCD_RESET_PIN EXP1_05_PIN
|
||||
|
||||
#define LCD_CONTRAST_INIT 220
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#else
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_D4 16
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 6
|
||||
#define BTN_EN1 42
|
||||
#define BTN_EN2 40
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#endif
|
||||
|
||||
#define BTN_ENC 19
|
||||
#define SD_DETECT_PIN 38
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#else // !IS_NEWPANEL
|
||||
#else // !IS_NEWPANEL
|
||||
|
||||
#define SHIFT_CLK_PIN 38
|
||||
#define SHIFT_LD_PIN 42
|
||||
#define SHIFT_OUT_PIN 40
|
||||
#define SHIFT_EN_PIN 17
|
||||
#define SHIFT_CLK_PIN EXP2_07_PIN
|
||||
#define SHIFT_LD_PIN EXP2_03_PIN
|
||||
#define SHIFT_OUT_PIN EXP2_05_PIN
|
||||
#define SHIFT_EN_PIN EXP1_03_PIN
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 5
|
||||
#define LCD_PINS_D4 6
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 20
|
||||
#define LCD_PINS_D7 19
|
||||
#define LCD_PINS_RS EXP1_05_PIN
|
||||
#define LCD_PINS_EN EXP1_07_PIN
|
||||
#define LCD_PINS_D4 EXP1_08_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_02_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
|
@@ -30,8 +30,6 @@
|
||||
|
||||
#define BOARD_INFO_NAME "GT2560 Rev.A+"
|
||||
|
||||
#include "pins_GT2560_REV_A.h"
|
||||
#define SERVO0_PIN 11
|
||||
|
||||
#if DISABLED(BLTOUCH)
|
||||
#define SERVO0_PIN 32
|
||||
#endif
|
||||
#include "pins_GT2560_REV_A.h"
|
||||
|
@@ -33,6 +33,10 @@
|
||||
#define ALLOW_MEGA1280
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "GT2560 supports up to 3 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "GT2560 3.x"
|
||||
#endif
|
||||
@@ -91,7 +95,7 @@
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Recovery
|
||||
// Power Loss Detection
|
||||
//
|
||||
#define POWER_LOSS_PIN 69 // Pin to detect power loss
|
||||
#define POWER_LOSS_STATE LOW
|
||||
@@ -138,7 +142,7 @@
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_2_PIN 2
|
||||
#define HEATER_BED_PIN 4
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 8
|
||||
#define FAN2_PIN 7
|
||||
|
||||
@@ -164,24 +168,24 @@
|
||||
#define BEEPER_PIN 18
|
||||
|
||||
#if ENABLED(YHCB2004)
|
||||
#ifndef YHCB2004_CLK
|
||||
#define YHCB2004_CLK 5
|
||||
#define DIO52 YHCB2004_CLK
|
||||
#ifndef YHCB2004_MOSI_PIN
|
||||
#define YHCB2004_MOSI_PIN 21
|
||||
#endif
|
||||
#ifndef YHCB2004_MOSI
|
||||
#define YHCB2004_MOSI 21
|
||||
#define DIO50 YHCB2004_MOSI
|
||||
#ifndef YHCB2004_MISO_PIN
|
||||
#define YHCB2004_MISO_PIN 36
|
||||
#endif
|
||||
#ifndef YHCB2004_MISO
|
||||
#define YHCB2004_MISO 36
|
||||
#define DIO51 YHCB2004_MISO
|
||||
#ifndef YHCB2004_SCK_PIN
|
||||
#define YHCB2004_SCK_PIN 5
|
||||
#endif
|
||||
#ifndef YHCB2004_SS_PIN
|
||||
#define YHCB2004_SS_PIN SS
|
||||
#endif
|
||||
#elif HAS_WIRED_LCD
|
||||
#ifndef LCD_PINS_RS
|
||||
#define LCD_PINS_RS 20
|
||||
#endif
|
||||
#ifndef LCD_PINS_ENABLE
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#ifndef LCD_PINS_EN
|
||||
#define LCD_PINS_EN 17
|
||||
#endif
|
||||
#ifndef LCD_PINS_D4
|
||||
#define LCD_PINS_D4 16
|
||||
|
@@ -26,12 +26,16 @@
|
||||
* ATmega2560
|
||||
*/
|
||||
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_EN 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
#endif
|
||||
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
#ifndef SPEAKER
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 16
|
||||
|
@@ -28,12 +28,16 @@
|
||||
|
||||
#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
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_EN 36
|
||||
#define LCD_PINS_D4 21
|
||||
#define LCD_PINS_D7 6
|
||||
#endif
|
||||
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
#ifndef SPEAKER
|
||||
#define SPEAKER // The speaker can produce tones
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 16
|
||||
|
@@ -92,8 +92,8 @@
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -114,14 +114,15 @@
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_DIR_PIN 16
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 17 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 16
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN 18
|
||||
@@ -129,7 +130,7 @@
|
||||
#if IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 20 // LCD_CS
|
||||
#define LCD_PINS_ENABLE 15 // LCD_SDA
|
||||
#define LCD_PINS_EN 15 // LCD_SDA
|
||||
#define LCD_PINS_D4 14 // LCD_SCK
|
||||
|
||||
#if ENABLED(HJC_LCD_SMART_CONTROLLER)
|
||||
@@ -161,7 +162,7 @@
|
||||
#define SHIFT_EN_PIN 17
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 5
|
||||
#define LCD_PINS_EN 5
|
||||
#define LCD_PINS_D4 6
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 20
|
||||
|
@@ -99,7 +99,7 @@
|
||||
#define HEATER_0_PIN 2 // PWM
|
||||
#define HEATER_BED_PIN 4 // PWM
|
||||
#define HEATER_CHAMBER_PIN 3 // PWM
|
||||
#define FAN_PIN 7 // PWM
|
||||
#define FAN0_PIN 7 // PWM
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_ENABLE 30
|
||||
#define LCD_PINS_EN 30
|
||||
#define LCD_PINS_D4 14
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_D6 5
|
||||
|
@@ -79,7 +79,7 @@
|
||||
#define HEATER_2_PIN 11 // 13
|
||||
#define HEATER_BED_PIN 10 // 14/15
|
||||
|
||||
#define FAN_PIN 7
|
||||
#define FAN0_PIN 7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
|
@@ -104,7 +104,7 @@
|
||||
#define HEATER_1_PIN 9 // Misc Connector, pins 5 and 6 (Out3)
|
||||
#define HEATER_BED_PIN 6 // Misc Connector, pins 9(-) and 10(+) (OutA)
|
||||
|
||||
#define FAN_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
|
||||
#define FAN0_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
|
||||
|
||||
#define LED_PIN 13
|
||||
|
||||
|
@@ -93,10 +93,9 @@
|
||||
#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.
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 // M106 Sxxx command supported and tested. M107 as well.
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN1
|
||||
#define FAN_PIN1 12 // Currently Unsupported by Marlin
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 12 // Currently Unsupported by Marlin
|
||||
#endif
|
||||
|
@@ -114,8 +114,8 @@
|
||||
#define HEATER_1_PIN 34
|
||||
#define HEATER_BED_PIN 28
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 39
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 39
|
||||
#endif
|
||||
#define FAN1_PIN 35
|
||||
#define FAN2_PIN 36
|
||||
@@ -129,31 +129,60 @@
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define SDSS MINI_06
|
||||
#define LED_PIN 13
|
||||
|
||||
#ifndef CASE_LIGHT_PIN
|
||||
#define CASE_LIGHT_PIN 2
|
||||
#endif
|
||||
|
||||
/**
|
||||
* MegaController LCD/SD Connector
|
||||
*
|
||||
* SDD MOSI SDSS -- RESET -- LCDSS A0 KILL ENC
|
||||
* 49 51 53 | 45 47 12 10
|
||||
* PL0 PB2 PB0 | PL4 PL2 PB6 PB4
|
||||
* ----------------------------------------------------------
|
||||
* | 2 4 6 8 10 12 14 16 18 20 |
|
||||
* | 1 3 5 7 9 11 13 15 17 19 |
|
||||
* ----------------------------------------------------------
|
||||
* | PB3 PB1 | | PL5 PL3 PL1 PB5
|
||||
* | 50 52 | | 44 46 48 11
|
||||
* 5V MISO SCK GND 3V3 -- BL BEEP EN1 EN2
|
||||
*/
|
||||
#define MINI_02 49 // SD_DETECT
|
||||
#define MINI_03 50 // MISO
|
||||
#define MINI_04 51 // MOSI
|
||||
#define MINI_05 52 // SCK
|
||||
#define MINI_06 53 // SDSS
|
||||
#define MINI_13 44 // BACKLIGHT
|
||||
#define MINI_14 45 // LCDSS
|
||||
#define MINI_15 46 // BEEP
|
||||
#define MINI_16 47 // A0
|
||||
#define MINI_17 48 // EN1
|
||||
#define MINI_18 12 // KILL
|
||||
#define MINI_19 11 // EN2
|
||||
#define MINI_20 10 // ENC
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 46
|
||||
#define BEEPER_PIN MINI_15
|
||||
|
||||
#define DOGLCD_A0 47
|
||||
#define DOGLCD_CS 45
|
||||
#define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
|
||||
#define DOGLCD_A0 MINI_16
|
||||
#define DOGLCD_CS MINI_14
|
||||
#define LCD_BACKLIGHT_PIN MINI_13 // backlight LED on PA3
|
||||
|
||||
#define KILL_PIN 12
|
||||
#define KILL_PIN MINI_18
|
||||
|
||||
#define BTN_EN1 48
|
||||
#define BTN_EN2 11
|
||||
#define BTN_ENC 10
|
||||
#define BTN_ENC MINI_20
|
||||
#define BTN_EN1 MINI_17
|
||||
#define BTN_EN2 MINI_19
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
#define SD_DETECT_PIN MINI_02
|
||||
|
||||
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
@@ -162,6 +191,8 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 7 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 8
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 7 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 8
|
||||
#endif
|
||||
|
@@ -89,8 +89,8 @@
|
||||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7 // IO pin. Buffer needed
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7 // IO pin. Buffer needed
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -112,7 +112,7 @@
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
@@ -130,6 +130,8 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
#endif
|
||||
|
@@ -103,8 +103,8 @@
|
||||
#define HEATER_1_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 7
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 7
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
@@ -122,9 +122,11 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 11
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
@@ -134,7 +136,7 @@
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_RS 14
|
||||
#define LCD_PINS_ENABLE 15
|
||||
#define LCD_PINS_EN 15
|
||||
#define LCD_PINS_D4 30
|
||||
#define LCD_PINS_D5 31
|
||||
#define LCD_PINS_D6 32
|
||||
|
@@ -127,8 +127,8 @@
|
||||
#define HEATER_2_PIN 8
|
||||
#define HEATER_BED_PIN 10
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 6
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 6
|
||||
#endif
|
||||
#define FAN1_PIN 7
|
||||
|
||||
@@ -155,14 +155,14 @@
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS 56 // CS chip select / SS chip slave select
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_EN 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
#define SD_DETECT_PIN 35
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS 32
|
||||
#define LCD_PINS_ENABLE 31
|
||||
#define LCD_PINS_EN 31
|
||||
#define LCD_PINS_D4 14
|
||||
#define LCD_PINS_D5 30
|
||||
#define LCD_PINS_D6 39
|
||||
|
@@ -146,39 +146,34 @@
|
||||
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
|
||||
|
||||
//
|
||||
// FET Pin Mapping - FET 1 is closest to the input power connector
|
||||
// FET Pin Mapping - FET A is closest to the input power connector
|
||||
//
|
||||
|
||||
#define MOSFET_1_PIN 6 // Plug EX1 Pin 1-2 -> PH3 #15 -> Logical 06
|
||||
#define MOSFET_2_PIN 7 // Plug EX1 Pin 3-4 -> PH4 #16 -> Logical 07
|
||||
#define MOSFET_3_PIN 11 // Plug EX2 1-2 -> PB5 #24 -> Logical 11
|
||||
#define MOSFET_4_PIN 12 // Plug EX2 3-4 -> PB6 #25 -> Logical 12
|
||||
#define MOSFET_5_PIN 45 // Plug HBD 1-2 -> PL4 #39 -> Logical 45
|
||||
#define MOSFET_6_PIN 44 // Plug Extra 1-2 -> PL5 #40 -> Logical 44 (FET not soldered in all boards)
|
||||
#define MOSFET_A_PIN 6 // Plug EX1 Pin 1-2 -> PH3 #15 -> Logical 06
|
||||
#define MOSFET_B_PIN 11 // Plug EX2 1-2 -> PB5 #24 -> Logical 11
|
||||
#define MOSFET_C_PIN 45 // Plug HBD 1-2 -> PL4 #39 -> Logical 45
|
||||
#define MOSFET_D_PIN 7 // Plug EX1 Pin 3-4 -> PH4 #16 -> Logical 07
|
||||
#define MOSFET_E_PIN 12 // Plug EX2 3-4 -> PB6 #25 -> Logical 12
|
||||
#define MOSFET_F_PIN 44 // Plug Extra 1-2 -> PL5 #40 -> Logical 44 (FET not soldered in all boards)
|
||||
|
||||
//
|
||||
// Heaters / Fans (24V)
|
||||
//
|
||||
|
||||
#define HEATER_0_PIN MOSFET_1_PIN // EX1
|
||||
#define HEATER_1_PIN MOSFET_3_PIN // EX2
|
||||
#define HEATER_BED_PIN MOSFET_5_PIN // HBP
|
||||
#define HEATER_0_PIN MOSFET_A_PIN // EX1
|
||||
#define HEATER_1_PIN MOSFET_B_PIN // EX2
|
||||
#define HEATER_BED_PIN MOSFET_C_PIN // HBP
|
||||
|
||||
// EX1 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN MOSFET_2_PIN
|
||||
#else
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN MOSFET_2_PIN
|
||||
#endif
|
||||
#define E0_AUTO_FAN_PIN MOSFET_D_PIN
|
||||
#elif !defined(FAN0_PIN)
|
||||
#define FAN0_PIN MOSFET_D_PIN
|
||||
#endif
|
||||
// EX2 FAN (Automatic Fans are disabled by default in Configuration_adv.h - comment that out for auto fans)
|
||||
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN MOSFET_4_PIN
|
||||
#else
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN MOSFET_4_PIN
|
||||
#endif
|
||||
#define E1_AUTO_FAN_PIN MOSFET_E_PIN
|
||||
#elif !defined(FAN1_PIN)
|
||||
#define FAN1_PIN MOSFET_E_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -192,12 +187,13 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#if IS_RRD_FG_SC
|
||||
|
||||
#define LCD_PINS_RS 33 // C4: LCD-STROBE
|
||||
#define LCD_PINS_ENABLE 72 // J2: LEFT
|
||||
#define LCD_PINS_EN 72 // J2: LEFT
|
||||
#define LCD_PINS_D4 35 // C2: LCD-CLK
|
||||
#define LCD_PINS_D5 32 // C5: RLED
|
||||
#define LCD_PINS_D6 34 // C3: LCD-DATA
|
||||
|
@@ -90,8 +90,8 @@
|
||||
#define HEATER_1_PIN 8 // EXTRUDER 2
|
||||
#define HEATER_BED_PIN 3 // BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -108,7 +108,7 @@
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define LCD_PINS_RS 15 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 11 // SID (MOSI)
|
||||
#define LCD_PINS_EN 11 // SID (MOSI)
|
||||
#define LCD_PINS_D4 10 // SCK (CLK) clock
|
||||
|
||||
#define BTN_EN1 18
|
||||
@@ -120,7 +120,7 @@
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS -1
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_EN -1
|
||||
|
||||
// Buttons are directly attached using keypad
|
||||
#define BTN_EN1 -1
|
||||
@@ -141,7 +141,7 @@
|
||||
#define HEATER_BED_PIN 4 // won't compile
|
||||
#define TEMP_BED_PIN 50
|
||||
#define TEMP_0_PIN 51
|
||||
#define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup
|
||||
#define SPINDLE_LASER_PWM_PIN 3 // WARNING - LED & resistor pull up to +12/+24V stepper voltage
|
||||
#define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup
|
||||
#define SPINDLE_DIR_PIN 53
|
||||
#endif
|
||||
|
@@ -95,7 +95,7 @@
|
||||
#define HEATER_1_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#define FAN_PIN 7 // material cooling fan
|
||||
#define FAN0_PIN 7 // material cooling fan
|
||||
|
||||
//
|
||||
// SD Card
|
||||
@@ -122,11 +122,12 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
// OVERLORD OLED pins
|
||||
#define LCD_PINS_RS 20
|
||||
#define LCD_PINS_D5 21
|
||||
#define LCD_PINS_ENABLE 15
|
||||
#define LCD_PINS_EN 15
|
||||
#define LCD_PINS_D4 14
|
||||
#define LCD_PINS_D6 5
|
||||
#define LCD_PINS_D7 6
|
||||
|
@@ -35,19 +35,14 @@
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "PICA supports up to 2 hotends / E steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "PICA"
|
||||
#endif
|
||||
|
||||
/*
|
||||
// Note that these are the "pins" that correspond to the analog inputs on the arduino mega.
|
||||
// These are not the same as the physical pin numbers
|
||||
AD0 = 54; AD1 = 55; AD2 = 56; AD3 = 57;
|
||||
AD4 = 58; AD5 = 59; AD6 = 60; AD7 = 61;
|
||||
AD8 = 62; AD9 = 63; AD10 = 64; AD11 = 65;
|
||||
AD12 = 66; AD13 = 67; AD14 = 68; AD15 = 69;
|
||||
*/
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
@@ -108,8 +103,8 @@
|
||||
#endif
|
||||
#define HEATER_BED_PIN 8 // HEAT-BED
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
#ifndef FAN_2_PIN
|
||||
#define FAN_2_PIN 7
|
||||
@@ -123,7 +118,7 @@
|
||||
#define SSR_PIN 6
|
||||
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#if !HAS_MEDIA
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
@@ -132,25 +127,53 @@
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#define SD_DETECT_PIN 49
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
#define SDSS EXP2_04_PIN
|
||||
|
||||
/** PICA Expansion Headers
|
||||
* ------ ------
|
||||
* (BEEP) 29 | 1 2 | 31 (ENC) (MISO) 50 | 1 2 | 52 (SCK)
|
||||
* (LCD_EN) 30 | 3 4 | 33 (LCD_RS) (EN1) 47 | 3 4 | 53 (SDSS)
|
||||
* (LCD_D4) 35 5 6 | 32 (LCD_D5) (EN2) 48 5 6 | 51 (MOSI)
|
||||
* (LCD_D6) 37 | 7 8 | 36 (LCD_D7) (SDDET) 49 | 7 8 | 41 (KILL)
|
||||
* GND | 9 10 | 5V -- | 9 10 | --
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_01_PIN 29 // BEEPER
|
||||
#define EXP1_02_PIN 31 // ENC
|
||||
#define EXP1_03_PIN 30 // LCD_EN
|
||||
#define EXP1_04_PIN 33 // LCD_RS
|
||||
#define EXP1_05_PIN 35 // LCD_D4
|
||||
#define EXP1_06_PIN 32 // LCD_D5
|
||||
#define EXP1_07_PIN 37 // LCD_D6
|
||||
#define EXP1_08_PIN 36 // LCD_D7
|
||||
|
||||
#define EXP2_01_PIN 50 // MISO
|
||||
#define EXP2_02_PIN 52 // SCK
|
||||
#define EXP2_03_PIN 47 // EN1
|
||||
#define EXP2_04_PIN 53 // SDSS
|
||||
#define EXP2_05_PIN 48 // EN2
|
||||
#define EXP2_06_PIN 51 // MOSI
|
||||
#define EXP2_07_PIN 49 // SDDET
|
||||
#define EXP2_08_PIN 41 // KILL
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define BEEPER_PIN 29
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define LCD_PINS_RS 33
|
||||
#define LCD_PINS_ENABLE 30
|
||||
#define LCD_PINS_D4 35
|
||||
#define LCD_PINS_D5 32
|
||||
#define LCD_PINS_D6 37
|
||||
#define LCD_PINS_D7 36
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#define BTN_EN1 47
|
||||
#define BTN_EN2 48
|
||||
#define BTN_ENC 31
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
|
||||
#define LCD_SDSS 53
|
||||
#define LCD_SDSS EXP2_04_PIN
|
||||
#endif
|
||||
|
@@ -25,9 +25,9 @@
|
||||
// Origin: https://github.com/mjrice/PICA/blob/97ab9e7771a8e5eef97788f3adcc17a9fa9de9b9/pica_schematic.pdf
|
||||
// ATmega2560
|
||||
|
||||
#define HEATER_0_PIN 9 // E0
|
||||
#define HEATER_1_PIN 10 // E1
|
||||
#define FAN_PIN 11
|
||||
#define FAN2_PIN 12
|
||||
#define HEATER_0_PIN 9 // E0
|
||||
#define HEATER_1_PIN 10 // E1
|
||||
#define FAN0_PIN 11
|
||||
#define FAN2_PIN 12
|
||||
|
||||
#include "pins_PICA.h"
|
||||
|
@@ -54,16 +54,16 @@
|
||||
|
||||
#define Y_STEP_PIN 3
|
||||
#define Y_DIR_PIN 6
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
#define Y_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
#define Z_STEP_PIN 4
|
||||
#define Z_DIR_PIN 7
|
||||
#define Z_ENABLE_PIN X_ENABLE_PIN
|
||||
#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
|
||||
#define E0_ENABLE_PIN X_ENABLE_PIN
|
||||
|
||||
//
|
||||
// Temperature sensors - These could be any analog output not hidden by board
|
||||
|
@@ -57,8 +57,8 @@
|
||||
#define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 5
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 5
|
||||
#endif
|
||||
|
||||
#define HEATER_0_PIN 7
|
||||
@@ -75,9 +75,9 @@
|
||||
#define TEMP_BED_PIN 6
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920
|
||||
#if IS_U8GLIB_ST7920 // SPI GLCD 12864 ST7920
|
||||
#define LCD_PINS_RS 30
|
||||
#define LCD_PINS_ENABLE 20
|
||||
#define LCD_PINS_EN 20
|
||||
#define LCD_PINS_D4 25
|
||||
#define BEEPER_PIN 29
|
||||
#define BTN_EN1 19
|
||||
|
@@ -76,7 +76,7 @@
|
||||
//
|
||||
#define HEATER_0_PIN 4
|
||||
#define HEATER_BED_PIN 44
|
||||
#define FAN_PIN 12 // IO pin. Buffer needed
|
||||
#define FAN0_PIN 12 // IO pin. Buffer needed
|
||||
|
||||
//
|
||||
// SD Card
|
||||
|
@@ -25,7 +25,6 @@
|
||||
* Copyright (c) 2019 WEEDO3D Perron
|
||||
* ATmega2560
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
@@ -74,7 +73,7 @@
|
||||
//
|
||||
#define HEATER_0_PIN 10 // EXTRUDER 1
|
||||
#define HEATER_BED_PIN 8 // BED
|
||||
#define FAN_PIN 4 // IO pin. Buffer needed
|
||||
#define FAN0_PIN 4 // IO pin. Buffer needed
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -85,7 +84,7 @@
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#if HAS_MEDIA
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
#endif
|
||||
@@ -93,6 +92,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -81,7 +81,6 @@
|
||||
#define REPORT_NAME_DIGITAL(COUNTER, NAME) _ADD_PIN(NAME, COUNTER, true)
|
||||
#define REPORT_NAME_ANALOG(COUNTER, NAME) _ADD_PIN(analogInputToDigitalPin(NAME), COUNTER, false)
|
||||
|
||||
|
||||
typedef struct {
|
||||
PGM_P const name;
|
||||
pin_t pin;
|
||||
@@ -100,7 +99,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
*/
|
||||
|
||||
#if SERIAL_IN_USE(0)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
#if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_0, 0, true },
|
||||
{ TXD_NAME_0, 1, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
@@ -113,7 +112,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#endif
|
||||
|
||||
#if SERIAL_IN_USE(1)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
#if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_1, 19, true },
|
||||
{ TXD_NAME_1, 18, true },
|
||||
#elif AVR_ATmega1284_FAMILY
|
||||
@@ -131,7 +130,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#endif
|
||||
|
||||
#if SERIAL_IN_USE(2)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
#if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_2, 17, true },
|
||||
{ TXD_NAME_2, 16, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
@@ -146,7 +145,7 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#endif
|
||||
|
||||
#if SERIAL_IN_USE(3)
|
||||
#if EITHER(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
#if ANY(AVR_ATmega2560_FAMILY, ARDUINO_ARCH_SAM)
|
||||
{ RXD_NAME_3, 15, true },
|
||||
{ TXD_NAME_3, 14, true },
|
||||
#elif defined(TARGET_LPC1768)
|
||||
@@ -174,6 +173,8 @@ const PinInfo pin_array[] PROGMEM = {
|
||||
#define M43_NEVER_TOUCH(Q) false
|
||||
#endif
|
||||
|
||||
bool pin_is_protected(const pin_t pin);
|
||||
|
||||
static void print_input_or_output(const bool isout) {
|
||||
SERIAL_ECHOF(isout ? F("Output ") : F("Input "));
|
||||
}
|
||||
@@ -204,13 +205,13 @@ inline void report_pin_state_extended(const pin_t pin, const bool ignore, const
|
||||
return true;
|
||||
};
|
||||
|
||||
LOOP_L_N(x, COUNT(pin_array)) { // scan entire array and report all instances of this pin
|
||||
for (uint8_t x = 0; x < COUNT(pin_array); ++x) { // scan entire array and report all instances of this pin
|
||||
if (GET_ARRAY_PIN(x) == pin) {
|
||||
if (!found) { // report digital and analog pin number only on the first time through
|
||||
if (start_string) SERIAL_ECHOF(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
print_port(pin);
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number
|
||||
else SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
}
|
||||
@@ -258,7 +259,7 @@ inline void report_pin_state_extended(const pin_t pin, const bool ignore, const
|
||||
if (start_string) SERIAL_ECHOF(start_string);
|
||||
SERIAL_ECHOPGM("PIN: ");
|
||||
PRINT_PIN(pin);
|
||||
PRINT_PORT(pin);
|
||||
print_port(pin);
|
||||
if (int8_t(DIGITAL_PIN_TO_ANALOG_PIN(pin)) >= 0) PRINT_PIN_ANALOG(pin); // analog pin number
|
||||
else SERIAL_ECHO_SP(8); // add padding if not an analog pin
|
||||
SERIAL_ECHOPGM("<unused/unknown>");
|
||||
|
@@ -489,18 +489,27 @@
|
||||
REPORT_NAME_DIGITAL(__LINE__, EXP3_10_PIN)
|
||||
#endif
|
||||
|
||||
#if _EXISTS(TMC_SW_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MISO)
|
||||
#if _EXISTS(TMC_SPI_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MISO)
|
||||
#endif
|
||||
#if _EXISTS(TMC_SW_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_MOSI)
|
||||
#if _EXISTS(TMC_SPI_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_MOSI)
|
||||
#endif
|
||||
#if _EXISTS(TMC_SW_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SW_SCK)
|
||||
#if _EXISTS(TMC_SPI_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TMC_SPI_SCK)
|
||||
#endif
|
||||
#if _EXISTS(TFTGLCD_CS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_CS)
|
||||
#endif
|
||||
#if _EXISTS(TFTGLCD_SCK)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_SCK)
|
||||
#endif
|
||||
#if _EXISTS(TFTGLCD_MISO)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MISO)
|
||||
#endif
|
||||
#if _EXISTS(TFTGLCD_MOSI)
|
||||
REPORT_NAME_DIGITAL(__LINE__, TFTGLCD_MOSI)
|
||||
#endif
|
||||
|
||||
//
|
||||
// E Multiplexing
|
||||
@@ -730,8 +739,8 @@
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#if PIN_EXISTS(FAN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN_PIN)
|
||||
#if PIN_EXISTS(FAN0)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN0_PIN)
|
||||
#endif
|
||||
#if PIN_EXISTS(FAN1)
|
||||
REPORT_NAME_DIGITAL(__LINE__, FAN1_PIN)
|
||||
@@ -920,8 +929,8 @@
|
||||
#if _EXISTS(LCD_PINS_D7)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_D7)
|
||||
#endif
|
||||
#if _EXISTS(LCD_PINS_ENABLE)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_ENABLE)
|
||||
#if _EXISTS(LCD_PINS_EN)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_EN)
|
||||
#endif
|
||||
#if _EXISTS(LCD_PINS_RS)
|
||||
REPORT_NAME_DIGITAL(__LINE__, LCD_PINS_RS)
|
||||
|
@@ -377,10 +377,9 @@
|
||||
#undef W_SERIAL_RX_PIN
|
||||
#endif
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN -1
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN -1
|
||||
#endif
|
||||
#define FAN0_PIN FAN_PIN
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN -1
|
||||
#endif
|
||||
@@ -483,8 +482,20 @@
|
||||
#define SUICIDE_PIN_STATE LOW
|
||||
#endif
|
||||
|
||||
#ifndef NUM_SERVO_PLUGS
|
||||
#if PIN_EXISTS(SERVO5)
|
||||
#define NUM_SERVO_PLUGS 6
|
||||
#elif PIN_EXISTS(SERVO4)
|
||||
#define NUM_SERVO_PLUGS 5
|
||||
#elif PIN_EXISTS(SERVO3)
|
||||
#define NUM_SERVO_PLUGS 4
|
||||
#elif PIN_EXISTS(SERVO2)
|
||||
#define NUM_SERVO_PLUGS 3
|
||||
#elif PIN_EXISTS(SERVO1)
|
||||
#define NUM_SERVO_PLUGS 2
|
||||
#elif PIN_EXISTS(SERVO0)
|
||||
#define NUM_SERVO_PLUGS 1
|
||||
#else
|
||||
#define NUM_SERVO_PLUGS 0
|
||||
#endif
|
||||
|
||||
// Only used within pins files
|
||||
@@ -493,7 +504,7 @@
|
||||
#undef NEEDS_Z_MINMAX
|
||||
|
||||
//
|
||||
// Assign endstop pins for boards with only 3 connectors
|
||||
// Assign endstop pins, with handling for boards that have only 3 connectors
|
||||
//
|
||||
#ifdef X_STOP_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
|
@@ -19,8 +19,11 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if NOT_TARGET(__AVR_ATmega2560__)
|
||||
#error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -118,21 +118,24 @@
|
||||
//
|
||||
#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
|
||||
|
||||
#ifndef TEMP_BOARD_PIN
|
||||
#define TEMP_BOARD_PIN 91 // Onboard thermistor, 100k TDK NTCG104LH104JT1
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#ifndef FAN0_PIN
|
||||
#ifdef MK3_FAN_PINS
|
||||
#define FAN_PIN 6
|
||||
#define FAN0_PIN 6
|
||||
#else
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -186,10 +189,12 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
// use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN EXP1_02_PIN // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#if HAS_CUTTER
|
||||
// Use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN EXP1_02_PIN // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
@@ -203,6 +208,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define KILL_PIN 32
|
||||
@@ -211,13 +217,13 @@
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#else
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
|
@@ -135,8 +135,8 @@
|
||||
#define HEATER_0_PIN 3
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
@@ -153,10 +153,12 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
// use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#if HAS_CUTTER
|
||||
// Use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
@@ -167,9 +169,40 @@
|
||||
#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
|
||||
#endif
|
||||
|
||||
//
|
||||
// EXP Headers
|
||||
//
|
||||
#define EXP1_01_PIN 84 // PH2
|
||||
#define EXP1_02_PIN 9 // PH6
|
||||
#define EXP1_03_PIN 18 // TX1
|
||||
#define EXP1_04_PIN 82 // PD5
|
||||
#define EXP1_05_PIN 19 // RX1
|
||||
#define EXP1_06_PIN 70 // PG4
|
||||
#define EXP1_07_PIN 85 // PH7
|
||||
#define EXP1_08_PIN 71 // PG3
|
||||
|
||||
#define EXP2_01_PIN 50 // MISO
|
||||
#define EXP2_02_PIN 52 // SCK
|
||||
#define EXP2_03_PIN 72 // PJ2
|
||||
#define EXP2_04_PIN 53 // SDSS
|
||||
#define EXP2_05_PIN 14 // TX3
|
||||
#define EXP2_06_PIN 51 // MOSI
|
||||
#define EXP2_07_PIN 15 // RX3
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
#define EXP3_01_PIN 62 // PK0 (A8)
|
||||
#define EXP3_02_PIN 76 // PJ5
|
||||
#define EXP3_03_PIN 20 // SDA
|
||||
#define EXP3_04_PIN -1 // GND
|
||||
#define EXP3_05_PIN 21 // SCL
|
||||
#define EXP3_06_PIN 16 // RX2
|
||||
#define EXP3_07_PIN -1 // GND
|
||||
#define EXP3_08_PIN 17 // TX2
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
|
||||
|
||||
#define KILL_PIN 32
|
||||
@@ -177,26 +210,26 @@
|
||||
#if ANY(IS_ULTIPANEL, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS 85
|
||||
#define LCD_PINS_ENABLE 71
|
||||
#define LCD_PINS_D4 70
|
||||
#define BTN_EN1 18
|
||||
#define BTN_EN2 19
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_EN EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define BTN_EN1 EXP1_03_PIN
|
||||
#define BTN_EN2 EXP1_05_PIN
|
||||
#else
|
||||
#define LCD_PINS_RS 82
|
||||
#define LCD_PINS_ENABLE 18 // On 0.6b, use 61
|
||||
#define LCD_PINS_D4 19 // On 0.6b, use 59
|
||||
#define LCD_PINS_D5 70
|
||||
#define LCD_PINS_D6 85
|
||||
#define LCD_PINS_D7 71
|
||||
#define BTN_EN1 14
|
||||
#define BTN_EN2 72
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN // On 0.6b, use 61
|
||||
#define LCD_PINS_D4 EXP1_05_PIN // On 0.6b, use 59
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
#define BTN_EN1 EXP2_05_PIN
|
||||
#define BTN_EN2 EXP2_03_PIN
|
||||
#endif
|
||||
|
||||
#define BTN_ENC 9 // AUX-2
|
||||
#define BEEPER_PIN 84 // AUX-4
|
||||
#define BTN_ENC EXP1_02_PIN // AUX-2
|
||||
#define BEEPER_PIN EXP1_01_PIN // AUX-4
|
||||
|
||||
#define SD_DETECT_PIN 15
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
|
@@ -109,8 +109,8 @@
|
||||
#endif
|
||||
#define HEATER_BED_PIN 4
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
|
||||
@@ -126,10 +126,12 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
// use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#if HAS_CUTTER
|
||||
// Use P1 connector for spindle pins
|
||||
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 19
|
||||
#endif
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multiplexer Support
|
||||
@@ -145,6 +147,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#if !MB(MINIRAMBO_10A)
|
||||
@@ -162,7 +165,7 @@
|
||||
#define BTN_ENC 21
|
||||
|
||||
#define LCD_PINS_RS 38
|
||||
#define LCD_PINS_ENABLE 5
|
||||
#define LCD_PINS_EN 5
|
||||
#define LCD_PINS_D4 14
|
||||
#define LCD_PINS_D5 15
|
||||
#define LCD_PINS_D6 32
|
||||
@@ -170,7 +173,7 @@
|
||||
|
||||
#define SD_DETECT_PIN 72
|
||||
|
||||
#else // !MINIRAMBO_10A
|
||||
#else // !MINIRAMBO_10A
|
||||
|
||||
// AUX-4
|
||||
#define BEEPER_PIN 84
|
||||
@@ -181,7 +184,7 @@
|
||||
#define BTN_ENC 9
|
||||
|
||||
#define LCD_PINS_RS 82
|
||||
#define LCD_PINS_ENABLE 18
|
||||
#define LCD_PINS_EN 18
|
||||
#define LCD_PINS_D4 19
|
||||
#define LCD_PINS_D5 70
|
||||
#define LCD_PINS_D6 85
|
||||
|
@@ -140,8 +140,8 @@
|
||||
#define HEATER_2_PIN 6
|
||||
#define HEATER_BED_PIN 3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN 6
|
||||
@@ -168,9 +168,11 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 31 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 32
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 31 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 32
|
||||
#endif
|
||||
|
||||
//
|
||||
// SPI for MAX Thermocouple
|
||||
@@ -197,6 +199,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define KILL_PIN 80
|
||||
@@ -204,13 +207,13 @@
|
||||
#if IS_ULTIPANEL || TOUCH_UI_ULTIPANEL
|
||||
|
||||
#define LCD_PINS_RS 70
|
||||
#define LCD_PINS_ENABLE 71
|
||||
#define LCD_PINS_EN 71
|
||||
#define LCD_PINS_D4 72
|
||||
#define LCD_PINS_D5 73
|
||||
#define LCD_PINS_D6 74
|
||||
#define LCD_PINS_D7 75
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN 44
|
||||
// NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
|
||||
// beeper/buzzer is connected to pin 33; however, the pin used in the
|
||||
@@ -230,7 +233,7 @@
|
||||
|
||||
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
|
||||
|
||||
#else // !VIKI2 && !miniVIKI
|
||||
#else // !VIKI2 && !miniVIKI
|
||||
|
||||
#define BEEPER_PIN 79 // AUX-4
|
||||
|
||||
@@ -251,7 +254,7 @@
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#else // !IS_NEWPANEL - old style panel with shift register
|
||||
#else // !IS_NEWPANEL - old style panel with shift register
|
||||
|
||||
// No Beeper added
|
||||
#define BEEPER_PIN 33
|
||||
@@ -264,7 +267,7 @@
|
||||
//#define SHIFT_EN_PIN 17
|
||||
|
||||
#define LCD_PINS_RS 75
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
|
@@ -105,8 +105,8 @@
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 8
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 8
|
||||
#endif
|
||||
#define FAN1_PIN 6
|
||||
#define FAN2_PIN 2
|
||||
@@ -126,7 +126,7 @@
|
||||
// LCD / Controller
|
||||
//
|
||||
#define LCD_PINS_RS 70 // Ext2_5
|
||||
#define LCD_PINS_ENABLE 71 // Ext2_7
|
||||
#define LCD_PINS_EN 71 // Ext2_7
|
||||
#define LCD_PINS_D4 72 // Ext2_9 ?
|
||||
#define LCD_PINS_D5 73 // Ext2_11 ?
|
||||
#define LCD_PINS_D6 74 // Ext2_13
|
||||
@@ -143,7 +143,7 @@
|
||||
|
||||
#define HOME_PIN BTN_HOME
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define BEEPER_PIN 44
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 70
|
||||
|
@@ -19,7 +19,8 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
#ifndef ENV_VALIDATE_H
|
||||
#define ENV_VALIDATE_H
|
||||
|
||||
#if ENABLED(ALLOW_SAM3X8E)
|
||||
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
|
||||
@@ -33,3 +34,5 @@
|
||||
|
||||
#undef ALLOW_SAM3X8E
|
||||
#undef REQUIRE_MEGA2560
|
||||
|
||||
#endif
|
||||
|
@@ -117,7 +117,7 @@
|
||||
#define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 62 // Pullup!
|
||||
#define SPINDLE_DIR_PIN 48
|
||||
#elif !BOTH(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#elif !ALL(HAS_WIRED_LCD, IS_NEWPANEL) // Use expansion header if no LCD in use
|
||||
#define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 17
|
||||
#if !NUM_SERVOS // Use servo connector if possible
|
||||
@@ -131,12 +131,13 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
#undef BEEPER_PIN
|
||||
|
||||
// TODO: Remap EXP1/2 based on adapter
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_EN 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
|
@@ -54,7 +54,7 @@
|
||||
#undef STAT_LED_RED_PIN
|
||||
#undef STAT_LED_BLUE_PIN
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
|
||||
#undef DOGLCD_A0
|
||||
#undef DOGLCD_CS
|
||||
|
@@ -56,8 +56,8 @@
|
||||
#define Y_STOP_PIN 14
|
||||
#define Z_STOP_PIN 18
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 6
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 6
|
||||
#endif
|
||||
|
||||
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
|
||||
@@ -145,7 +145,7 @@
|
||||
#undef BEEPER_PIN
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#undef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN 49 // For easy adapter board
|
||||
#undef BEEPER_PIN
|
||||
@@ -172,7 +172,7 @@
|
||||
#undef SPINDLE_DIR_PIN
|
||||
|
||||
#if HAS_CUTTER // EXP2 header
|
||||
#if EITHER(VIKI2, miniVIKI)
|
||||
#if ANY(VIKI2, miniVIKI)
|
||||
#define BTN_EN2 31 // Pin 7 needed for Spindle PWM
|
||||
#endif
|
||||
#define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
|
||||
|
@@ -37,9 +37,11 @@
|
||||
//
|
||||
// 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
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 67
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
|
@@ -35,7 +35,6 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
// Power outputs BEEF or BEFF
|
||||
#define MOSFET_D_PIN 7
|
||||
#define MOSFET_D_PIN 7
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
@@ -95,9 +95,11 @@
|
||||
//
|
||||
// M3/M4/M5 - Spindle/Laser Control
|
||||
//
|
||||
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#define SPINDLE_DIR_PIN 42
|
||||
#if HAS_CUTTER
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 42
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -121,9 +123,10 @@
|
||||
#include "pins_RAMPS_13.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// Used by the Hephestos 2 heated bed upgrade kit
|
||||
// Hephestos 2 heated bed upgrade kit uses pin 8
|
||||
//
|
||||
#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
|
||||
#undef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN 8
|
||||
#define HEATER_BED_INVERTING true
|
||||
#endif
|
||||
|
@@ -72,7 +72,7 @@
|
||||
#define HEATER_0_PIN 4 // PG5 / PWM4
|
||||
#define HEATER_BED_PIN 3 // PE5 / PWM3
|
||||
|
||||
#define FAN_PIN 5 // PE3 / PWM5
|
||||
#define FAN0_PIN 5 // PE3 / PWM5
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -85,12 +85,13 @@
|
||||
#define SD_SCK_PIN 52 // PB1
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(ZONESTAR_LCD)
|
||||
#define LCD_PINS_RS 2
|
||||
#define LCD_PINS_ENABLE 36
|
||||
#define LCD_PINS_EN 36
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 34
|
||||
#define LCD_PINS_D6 35
|
||||
|
@@ -35,24 +35,24 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
// Power outputs EFBF or EFBE
|
||||
#define MOSFET_D_PIN 7
|
||||
#define MOSFET_D_PIN 7
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDPOWER_PIN 1
|
||||
#define SDPOWER_PIN 1
|
||||
|
||||
#define PS_ON_PIN 12
|
||||
#define PS_ON_PIN 12
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#define SD_DETECT_PIN 6
|
||||
#define SD_DETECT_PIN 6
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -116,7 +116,7 @@
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#if !HAS_MEDIA
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
@@ -129,8 +129,8 @@
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN 9
|
||||
#ifndef FAN0_PIN
|
||||
#define FAN0_PIN 9
|
||||
#endif
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
@@ -174,7 +174,7 @@
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
|
@@ -29,7 +29,7 @@
|
||||
#define BOARD_INFO_NAME "Formbot Raptor2"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#define FAN_PIN 6
|
||||
#define FAN0_PIN 6
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN 22
|
||||
@@ -44,12 +44,12 @@
|
||||
//
|
||||
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
|
||||
#if !NUM_SERVOS // Try to use servo connector first
|
||||
#define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 5
|
||||
#elif !GREEDY_PANEL // Try to use AUX2
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
|
||||
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
|
||||
#define SPINDLE_DIR_PIN 65
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -113,7 +113,7 @@
|
||||
#define TEMP_BED_PIN 3 // Analog Input
|
||||
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#if !HAS_MEDIA
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
@@ -126,7 +126,7 @@
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 58
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
|
||||
#if HAS_FILAMENT_SENSOR
|
||||
#define FIL_RUNOUT_PIN 4
|
||||
@@ -141,8 +141,8 @@
|
||||
//
|
||||
#define SDSS 53
|
||||
#ifndef LED_PIN
|
||||
#define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins on it. The Board's LED
|
||||
#endif // is a good place to get a signal to control the Max7219 LED Matrix.
|
||||
#define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins.
|
||||
#endif // The Board's LED is a good place to connect the Max7219 Matrix.
|
||||
|
||||
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
|
||||
#define FILWIDTH_PIN 5 // Analog Input
|
||||
@@ -175,7 +175,7 @@
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
|
@@ -119,7 +119,7 @@
|
||||
#define TEMP_BED_PIN 14 // Analog Input
|
||||
|
||||
// SPI for MAX Thermocouple
|
||||
#if DISABLED(SDSUPPORT)
|
||||
#if !HAS_MEDIA
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card
|
||||
#else
|
||||
#define TEMP_0_CS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
|
||||
@@ -132,7 +132,7 @@
|
||||
#define HEATER_1_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 9
|
||||
#define FAN0_PIN 9
|
||||
#define FAN1_PIN 12
|
||||
|
||||
#define FIL_RUNOUT_PIN 22
|
||||
@@ -164,7 +164,7 @@
|
||||
//
|
||||
#if IS_RRD_SC
|
||||
#define LCD_PINS_RS 16
|
||||
#define LCD_PINS_ENABLE 17
|
||||
#define LCD_PINS_EN 17
|
||||
#define LCD_PINS_D4 23
|
||||
#define LCD_PINS_D5 25
|
||||
#define LCD_PINS_D6 27
|
||||
|
@@ -185,14 +185,13 @@
|
||||
#define HEATER_2_PIN 7
|
||||
#define HEATER_BED_PIN 8
|
||||
|
||||
#define FAN_PIN 44
|
||||
#define FAN0_PIN 44
|
||||
#define FAN1_PIN 45
|
||||
#define FAN2_PIN 46
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS 53
|
||||
#define LED_PIN 13
|
||||
#define KILL_PIN 41
|
||||
|
||||
@@ -201,80 +200,104 @@
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ----- -----
|
||||
* 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)
|
||||
* (SD_SS) D53 | · · | D31 (BTN_EN1) (LCD_RS) D16 | · · | D17 (LCD_EN)
|
||||
* (SCK) D52 | · · | D50 (MISO) (BTN_ENC) D35 | · · | D37 (BEEPER)
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
* ------ ------
|
||||
* (BEEPER) D37 | 1 2 | D35 (BTN_ENC) (MISO) D50 | 1 2 | D52 (SCK)
|
||||
* (LCD_EN) D17 | 3 4 | D16 (LCD_RS) (BTN_EN1) D31 | 3 4 | D53 (SD_SS)
|
||||
* (LCD_D4) D23 5 6 | D25 (LCD_D5) (BTN_EN2) D33 5 6 | D51 (MOSI)
|
||||
* (LCD_D6) D27 | 7 8 | D29 (LCD_D7) (SD_DETECT) D49 | 7 8 | RESET
|
||||
* GND | 9 10 | 5V GND | 9 10 | 5V / D41
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
|
||||
#define EXP1_01_PIN 37 // BEEPER
|
||||
#define EXP1_02_PIN 35 // ENC
|
||||
#define EXP1_03_PIN 17 // LCD_EN
|
||||
#define EXP1_04_PIN 16 // LCD_RS
|
||||
#define EXP1_05_PIN 23 // LCD_D4
|
||||
#define EXP1_06_PIN 25 // LCD_D5
|
||||
#define EXP1_07_PIN 27 // LCD_D6
|
||||
#define EXP1_08_PIN 29 // LCD_D7
|
||||
|
||||
#define EXP2_01_PIN 50 // MISO
|
||||
#define EXP2_02_PIN 52 // SCK
|
||||
#define EXP2_03_PIN 31 // EN1
|
||||
#define EXP2_04_PIN 53 // SD_SS
|
||||
#define EXP2_05_PIN 33 // EN2
|
||||
#define EXP2_06_PIN 51 // MOSI
|
||||
#define EXP2_07_PIN 49 // SD_DETECT
|
||||
#define EXP2_08_PIN -1 // RESET
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
// SD Card
|
||||
//
|
||||
|
||||
#define SDSS EXP2_04_PIN
|
||||
#define SD_DETECT_PIN EXP2_07_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#if ENABLED(FYSETC_242_OLED_12864)
|
||||
#define BTN_EN1 37
|
||||
#define BTN_EN2 29
|
||||
#define BTN_ENC 35
|
||||
#define BEEPER_PIN 31
|
||||
#define BTN_EN1 EXP1_01_PIN
|
||||
#define BTN_EN2 EXP1_08_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#define BEEPER_PIN EXP2_03_PIN
|
||||
|
||||
#define LCD_PINS_DC 25
|
||||
#define LCD_PINS_RS 33
|
||||
#define DOGLCD_CS 16
|
||||
#define DOGLCD_MOSI 23
|
||||
#define DOGLCD_SCK 17
|
||||
#define LCD_PINS_DC EXP1_06_PIN
|
||||
#define LCD_PINS_RS EXP2_05_PIN
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_MOSI EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_03_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
|
||||
#undef KILL_PIN
|
||||
#define NEOPIXEL_PIN 27
|
||||
#define NEOPIXEL_PIN EXP1_07_PIN
|
||||
|
||||
#else
|
||||
#define BEEPER_PIN 37
|
||||
#define BEEPER_PIN EXP1_01_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
//
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel/
|
||||
//
|
||||
#define DOGLCD_A0 16
|
||||
#define DOGLCD_CS 17
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_03_PIN
|
||||
|
||||
#if ENABLED(FYSETC_GENERIC_12864_1_1)
|
||||
#define LCD_BACKLIGHT_PIN 27
|
||||
#define LCD_BACKLIGHT_PIN EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
|
||||
// Seems to work best if left open.
|
||||
#define LCD_RESET_PIN EXP1_05_PIN // Must be high or open for LCD to operate normally.
|
||||
// Seems to work best if left open.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#if ANY(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN 25
|
||||
#define RGB_LED_R_PIN EXP1_06_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN 27
|
||||
#define RGB_LED_G_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN 29
|
||||
#define RGB_LED_B_PIN EXP1_08_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN 25
|
||||
#define NEOPIXEL_PIN EXP1_06_PIN
|
||||
#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
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_EN EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
#define LCD_PINS_D5 EXP1_06_PIN
|
||||
#define LCD_PINS_D6 EXP1_07_PIN
|
||||
#define LCD_PINS_D7 EXP1_08_PIN
|
||||
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_CS 25
|
||||
#define DOGLCD_A0 27
|
||||
#define DOGLCD_CS EXP1_06_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#endif
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
@@ -284,9 +307,9 @@
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
#define BTN_EN1 EXP2_03_PIN
|
||||
#define BTN_EN2 EXP2_05_PIN
|
||||
#define BTN_ENC EXP1_02_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -53,14 +53,19 @@
|
||||
#define X_STOP_PIN 3
|
||||
#define Y_STOP_PIN 14
|
||||
|
||||
#if EITHER(BLTOUCH, TOUCH_MI_PROBE)
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#define FAN0_PIN 8
|
||||
|
||||
#if ANY(BLTOUCH, TOUCH_MI_PROBE)
|
||||
#define INVERTED_PROBE_STATE
|
||||
#endif
|
||||
|
||||
#include "pins_3DRAG.h" // ... RAMPS
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
// Heaters
|
||||
//
|
||||
#undef HEATER_1_PIN
|
||||
#define HEATER_1_PIN 11
|
||||
|
@@ -49,7 +49,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN -1
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -60,10 +60,11 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#if HAS_WIRED_LCD && IS_NEWPANEL
|
||||
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_EN 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
|
@@ -74,7 +74,7 @@
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN 10
|
||||
#define FAN_PIN 8
|
||||
#define FAN0_PIN 8
|
||||
#define CONTROLLER_FAN_PIN 9
|
||||
|
||||
//
|
||||
@@ -102,7 +102,7 @@
|
||||
#define DOGLCD_A0 27
|
||||
|
||||
#define LCD_PINS_RS 27
|
||||
#define LCD_PINS_ENABLE 29
|
||||
#define LCD_PINS_EN 29
|
||||
#define LCD_PINS_D4 37
|
||||
#define LCD_PINS_D5 35
|
||||
#define LCD_PINS_D6 33
|
||||
|
@@ -127,20 +127,20 @@
|
||||
// Aux-1 | D19 D18 GND 5V | J21 | D4 D5 D6 GND | J17 | D11 GND 24V | J18 | D7 GND 5V |
|
||||
// ------------------ ---------------- --------------- -------------
|
||||
|
||||
#if BOTH(CR10_STOCKDISPLAY, LONGER_LK5)
|
||||
/** CR-10 Stock Display
|
||||
* ------
|
||||
* GND | 9 10 | 5V
|
||||
* LCD_PINS_RS D5 | 7 8 | D4 LCD_PINS_ENABLE
|
||||
* BTN_EN2 D19 | 5 6 D6 LCD_PINS_D4
|
||||
* BTN_EN1 D18 | 3 4 | GND
|
||||
* BEEPER_PIN D11 | 1 2 | D15 BTN_ENC
|
||||
* ------
|
||||
#if ALL(CR10_STOCKDISPLAY, LONGER_LK5)
|
||||
/** CR-10 Stock Display
|
||||
* ------
|
||||
* BEEPER D11 | 1 2 | D15 ENC
|
||||
* EN1 D18 | 3 4 | GND
|
||||
* EN2 D19 5 6 | D6 LCD_D4
|
||||
* LCD_RS D5 | 7 8 | D4 LCD_ENABLE
|
||||
* GND | 9 10 | 5V
|
||||
* ------
|
||||
* Connected via provided custom cable to:
|
||||
* Aux-1, J21, J17 and Y-Max.
|
||||
*/
|
||||
#define LCD_PINS_RS 5
|
||||
#define LCD_PINS_ENABLE 4
|
||||
#define LCD_PINS_EN 4
|
||||
#define LCD_PINS_D4 6
|
||||
#define BTN_EN1 18
|
||||
#define BTN_EN2 19
|
||||
|
@@ -28,8 +28,8 @@
|
||||
//
|
||||
// Only 3 Limit Switch plugs on Micromake C1
|
||||
//
|
||||
#define X_STOP_PIN 2
|
||||
#define Y_STOP_PIN 15
|
||||
#define Z_STOP_PIN 19
|
||||
#define X_STOP_PIN 2
|
||||
#define Y_STOP_PIN 15
|
||||
#define Z_STOP_PIN 19
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user