0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-03-15 10:46:18 +00:00

🧑‍💻 Pins updates

This commit is contained in:
Scott Lahteine 2023-12-16 23:52:22 -06:00
parent cbaff4bc46
commit a53ad3b631
210 changed files with 4157 additions and 2677 deletions

View file

@ -27,7 +27,9 @@
#include "MarlinConfigPre.h"
#ifndef __MARLIN_DEPS__
#ifdef __MARLIN_DEPS__
#include "../HAL/shared/fauxpins.h"
#else
#include "../HAL/HAL.h"
#endif

View file

@ -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

View file

@ -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
@ -108,7 +112,7 @@
// #define FAN_SOFT_PWM_REQUIRED // check if needed
// Neopixel Rings
// NeoPixel Rings
#define NEOPIXEL_PIN 14
#define NEOPIXEL2_PIN 27

View file

@ -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

View file

@ -56,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
@ -119,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
* ------ ------

View file

@ -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
@ -119,9 +121,9 @@
#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

View file

@ -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"
//

View file

@ -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"
//

View file

@ -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
//
@ -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
*/

View file

@ -34,4 +34,6 @@
//
// I2S (steppers & other output-only pins)
//
#define I2S_STEPPER_STREAM
#ifndef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
#endif

View 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

View 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

View file

@ -247,18 +247,16 @@
#endif
/**
* Default pins for TMC software SPI
* Default pins for TMC SPI
*/
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 66
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 44
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#endif
#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,9 +371,37 @@
#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)
@ -387,10 +413,11 @@
#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
@ -406,11 +433,11 @@
#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,9 +502,9 @@
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
#define LCD_PINS_EN 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 ALL(IS_NEWPANEL, PANEL_ONE)
@ -492,12 +519,12 @@
#if ENABLED(CR10_STOCKDISPLAY)
#define LCD_PINS_RS 27
#define LCD_PINS_EN 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)
@ -512,38 +539,28 @@
#else
#if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306)
#define LCD_PINS_DC 25 // Set as output on init
#define LCD_PINS_RS 27 // Pull low for 1s to init
#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_EN 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
@ -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

View file

@ -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

View file

@ -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_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
#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
//

View file

@ -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_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
#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
/**
* ------ ------
@ -284,9 +292,10 @@
* ------ ------
* 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
@ -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
@ -399,8 +458,6 @@
#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
@ -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)

View file

@ -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_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
#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
@ -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

View file

@ -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
//

View file

@ -138,6 +138,7 @@
//
// LCD / Controller
//
#if ENABLED(EMOTION_TECH_LCD)
#define BEEPER_PIN EXP2_01_PIN
#define DOGLCD_A0 EXP2_06_PIN

View file

@ -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

View file

@ -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,41 +197,52 @@
#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_EN P0_18 // EXP1.3
#define LCD_PINS_D4 P0_15 // EXP1.5
#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
@ -257,9 +260,9 @@
* 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_EN // 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
@ -267,16 +270,16 @@
#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_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
#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)

View file

@ -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_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
#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
//
@ -311,8 +312,8 @@
#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

View file

@ -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_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
#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
@ -153,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
@ -166,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
//
@ -292,14 +293,13 @@
#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)
@ -324,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
@ -366,14 +366,14 @@
#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.
@ -395,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_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
@ -420,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
@ -440,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

View file

@ -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

View file

@ -108,7 +108,6 @@
//
// Display
//
#if ANY(VIKI2, miniVIKI)
#define BEEPER_PIN P1_31
#define DOGLCD_A0 P2_06

View file

@ -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
//
@ -109,6 +109,47 @@
#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_EN 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_EN 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 ANY(VIKI2, miniVIKI)
#define BEEPER_PIN P1_30 // (37) may change if cable changes
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
#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

View file

@ -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

View file

@ -72,16 +72,14 @@
//
// Default pins for TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#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
#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
//

View file

@ -89,16 +89,14 @@
//
// Default pins for TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#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
#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
//
@ -160,6 +158,37 @@
#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 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_EN 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
*/

View file

@ -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_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
#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

View file

@ -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

View file

@ -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_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
#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
//
@ -360,8 +361,8 @@
#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
@ -428,6 +429,9 @@
#endif // HAS_WIRED_LCD
//
// SD Card
//
#ifndef SDCARD_CONNECTION
#define SDCARD_CONNECTION ONBOARD
#endif

View file

@ -93,6 +93,7 @@
//
// LCD / Controller
//
#if ANY(VIKI2, miniVIKI)
#define BEEPER_PIN P1_31

View file

@ -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

View file

@ -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

View file

@ -138,6 +138,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 6

View file

@ -143,6 +143,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 16

View file

@ -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

View file

@ -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
@ -102,64 +100,100 @@
//
// 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_EN 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
#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_EN 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

View file

@ -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"

View file

@ -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
@ -164,17 +168,17 @@
#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

View file

@ -26,12 +26,16 @@
* ATmega2560
*/
#define LCD_PINS_RS 5
#define LCD_PINS_EN 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

View file

@ -28,12 +28,16 @@
#define BOARD_INFO_NAME "GT2560 4.x"
#define LCD_PINS_RS 5
#define LCD_PINS_EN 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

View file

@ -122,6 +122,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 18

View file

@ -96,7 +96,6 @@
#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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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 FAN0_PIN
#define FAN0_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,6 +187,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if IS_RRD_FG_SC

View file

@ -122,6 +122,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
// OVERLORD OLED pins
#define LCD_PINS_RS 20

View file

@ -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
//
@ -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_EN 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

View file

@ -25,7 +25,6 @@
* Copyright (c) 2019 WEEDO3D Perron
* ATmega2560
*/
#pragma once
#include "env_validate.h"
@ -93,6 +92,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 37

View file

@ -482,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
@ -492,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

View file

@ -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

View file

@ -118,10 +118,13 @@
//
#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
//
@ -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

View file

@ -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_EN 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_EN 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

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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 !ALL(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,6 +131,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD && IS_NEWPANEL
#undef BEEPER_PIN

View file

@ -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

View file

@ -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
@ -126,4 +128,5 @@
#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
#undef HEATER_BED_PIN
#define HEATER_BED_PIN 8
#define HEATER_BED_INVERTING true
#endif

View file

@ -85,8 +85,9 @@
#define SD_SCK_PIN 52 // PB1
//
// LCDs and Controllers
// LCD / Controller
//
#if HAS_WIRED_LCD
#if ENABLED(ZONESTAR_LCD)
#define LCD_PINS_RS 2

View file

@ -49,6 +49,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD && IS_NEWPANEL
#define SD_DETECT_PIN 6

View file

@ -192,7 +192,6 @@
//
// 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 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_EN 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

View file

@ -53,6 +53,11 @@
#define X_STOP_PIN 3
#define Y_STOP_PIN 14
//
// Fans
//
#define FAN0_PIN 8
#if ANY(BLTOUCH, TOUCH_MI_PROBE)
#define INVERTED_PROBE_STATE
#endif

View file

@ -60,6 +60,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD && IS_NEWPANEL
#define LCD_PINS_RS 27

View file

@ -33,11 +33,6 @@
#define BOARD_INFO_NAME "MKS BASE 1.4"
#define MKS_BASE_VERSION 14
//
// Heaters / Fans
//
#define FAN0_PIN 9 // PH6 ** Pin18 ** PWM9
// Other Mods
#define SERVO3_PIN 12 // PB6 ** Pin25 ** D12

View file

@ -34,8 +34,8 @@
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#define MOSFET_B_PIN 7
#define FAN0_PIN 9
//
// M3/M4/M5 - Spindle/Laser Control

View file

@ -63,6 +63,7 @@
//
// LCD / Controller
//
#if ANY(VIKI2, miniVIKI)
/**
* VIKI2 Has two groups of wires with...

View file

@ -37,14 +37,11 @@
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
// Hotend, Hotend, Bed + Fan on D9
#if FET_ORDER_EEB
#define MOSFET_B_PIN 7
#define FAN0_PIN 9
#endif
#define MOSFET_A_PIN 10 // HE0
#define MOSFET_B_PIN 7 // HE1 or FAN Hotend Cooling
#define MOSFET_C_PIN 8 // HBED
#define FAN0_PIN 9 // FAN Part Cooling
//
// CS Pins wired to avoid conflict with the LCD

View file

@ -37,8 +37,8 @@
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#define MOSFET_B_PIN 7
#define FAN0_PIN 9
//
// CS Pins wired to avoid conflict with the LCD

View file

@ -37,8 +37,8 @@
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
#define MOSFET_D_PIN 7
#define MOSFET_B_PIN 7
#define FAN0_PIN 9
//
// CS Pins wired to avoid conflict with the LCD

View file

@ -79,6 +79,7 @@
//
// LCD / Controller
//
#if IS_RRD_FG_SC
#define BEEPER_PIN 35

View file

@ -142,18 +142,18 @@
//
// Steppers
//
#define X_STEP_PIN 54
#define X_DIR_PIN 55
#define X_STEP_PIN 54 // (A0)
#define X_DIR_PIN 55 // (A1)
#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
#define X_CS_PIN 53
#define X_CS_PIN AUX3_06
#endif
#define Y_STEP_PIN 60
#define Y_DIR_PIN 61
#define Y_ENABLE_PIN 56
#define Y_ENABLE_PIN 56 // (A2)
#ifndef Y_CS_PIN
#define Y_CS_PIN 49
#define Y_CS_PIN AUX3_02
#endif
#ifndef Z_STEP_PIN
@ -166,7 +166,7 @@
#define Z_ENABLE_PIN 62
#endif
#ifndef Z_CS_PIN
#define Z_CS_PIN 40
#define Z_CS_PIN AUX2_06
#endif
#ifndef E0_STEP_PIN
@ -179,7 +179,7 @@
#define E0_ENABLE_PIN 24
#endif
#ifndef E0_CS_PIN
#define E0_CS_PIN 42
#define E0_CS_PIN AUX2_08
#endif
#ifndef E1_STEP_PIN
@ -192,7 +192,7 @@
#define E1_ENABLE_PIN 30
#endif
#ifndef E1_CS_PIN
#define E1_CS_PIN 44
#define E1_CS_PIN AUX2_07
#endif
//
@ -212,7 +212,7 @@
// SPI for MAX Thermocouple
//
#ifndef TEMP_0_CS_PIN
#define TEMP_0_CS_PIN 66 // Don't use 53 if using Display/SD card (SDSS) or 49 (SD_DETECT_PIN)
#define TEMP_0_CS_PIN AUX2_09 // Don't use 53 if using Display/SD card (SDSS) or 49 (SD_DETECT_PIN)
#endif
//
@ -245,7 +245,9 @@
#define HEATER_BED_PIN MOSFET_C_PIN
#endif
#elif FET_ORDER_EFF // Hotend, Fan, Fan
#define FAN1_PIN MOSFET_C_PIN
#ifndef FAN1_PIN
#define FAN1_PIN MOSFET_C_PIN
#endif
#elif DISABLED(FET_ORDER_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
#ifndef HEATER_BED_PIN
#define HEATER_BED_PIN MOSFET_C_PIN
@ -273,12 +275,12 @@
// Misc. Functions
//
#ifndef SDSS
#define SDSS AUX3_06_PIN
#define SDSS AUX3_06
#endif
#define LED_PIN 13
#ifndef FILWIDTH_PIN
#define FILWIDTH_PIN 5 // Analog Input on AUX2
#define FILWIDTH_PIN 5 // (A5) Analog Input AUX2_03
#endif
// RAMPS 1.4 DIO 4 on the servos connector
@ -294,7 +296,7 @@
#if NUM_SERVOS <= 1 // Prefer the servo connector
#define CASE_LIGHT_PIN 6 // Hardware PWM
#elif HAS_FREE_AUX2_PINS
#define CASE_LIGHT_PIN 44 // Hardware PWM
#define CASE_LIGHT_PIN AUX2_07 // Hardware PWM
#endif
#endif
@ -303,15 +305,15 @@
//
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
#if NUM_SERVOS < 2 // Use servo connector if possible
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
#ifndef SPINDLE_LASER_PWM_PIN
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
#endif
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
#define SPINDLE_DIR_PIN 5
#elif HAS_FREE_AUX2_PINS
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
#define SPINDLE_DIR_PIN 65
#define SPINDLE_LASER_PWM_PIN AUX2_07 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN AUX2_06 // Pullup or pulldown!
#define SPINDLE_DIR_PIN AUX2_10
#else
#error "No auto-assignable Spindle/Laser pins available."
#endif
@ -320,15 +322,15 @@
//
// TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#if HAS_TMC_SPI
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 66
#define TMC_SPI_MOSI AUX2_09
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 44
#define TMC_SPI_MISO AUX2_07
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#define TMC_SPI_SCK AUX2_05
#endif
#endif
@ -356,10 +358,10 @@
//#define E4_HARDWARE_SERIAL Serial1
#ifndef X_SERIAL_TX_PIN
#define X_SERIAL_TX_PIN 40
#define X_SERIAL_TX_PIN AUX2_06
#endif
#ifndef X_SERIAL_RX_PIN
#define X_SERIAL_RX_PIN 63
#define X_SERIAL_RX_PIN AUX2_04
#endif
#ifndef X2_SERIAL_TX_PIN
#define X2_SERIAL_TX_PIN -1
@ -369,10 +371,10 @@
#endif
#ifndef Y_SERIAL_TX_PIN
#define Y_SERIAL_TX_PIN 59
#define Y_SERIAL_TX_PIN AUX2_03
#endif
#ifndef Y_SERIAL_RX_PIN
#define Y_SERIAL_RX_PIN 64
#define Y_SERIAL_RX_PIN AUX2_05
#endif
#ifndef Y2_SERIAL_TX_PIN
#define Y2_SERIAL_TX_PIN -1
@ -382,10 +384,10 @@
#endif
#ifndef Z_SERIAL_TX_PIN
#define Z_SERIAL_TX_PIN 42
#define Z_SERIAL_TX_PIN AUX2_08
#endif
#ifndef Z_SERIAL_RX_PIN
#define Z_SERIAL_RX_PIN 65
#define Z_SERIAL_RX_PIN AUX2_10
#endif
#ifndef Z2_SERIAL_TX_PIN
#define Z2_SERIAL_TX_PIN -1
@ -395,10 +397,10 @@
#endif
#ifndef E0_SERIAL_TX_PIN
#define E0_SERIAL_TX_PIN 44
#define E0_SERIAL_TX_PIN AUX2_07
#endif
#ifndef E0_SERIAL_RX_PIN
#define E0_SERIAL_RX_PIN 66
#define E0_SERIAL_RX_PIN AUX2_09
#endif
#ifndef E1_SERIAL_TX_PIN
#define E1_SERIAL_TX_PIN -1
@ -449,13 +451,13 @@
//
#if HAS_PRUSA_MMU1
#ifndef E_MUX0_PIN
#define E_MUX0_PIN 40 // Z_CS_PIN
#define E_MUX0_PIN AUX2_06 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 42 // E0_CS_PIN
#define E_MUX1_PIN AUX2_08 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 44 // E1_CS_PIN
#define E_MUX2_PIN AUX2_07 // E1_CS_PIN
#endif
#endif
@ -465,10 +467,10 @@
// 1 3 5 7
// 5V GND A3 A4
//
#define AUX1_05_PIN 57 // (A3)
#define AUX1_06_PIN 2
#define AUX1_07_PIN 58 // (A4)
#define AUX1_08_PIN 1
#define AUX1_05 57 // (A3)
#define AUX1_06 2
#define AUX1_07 58 // (A4)
#define AUX1_08 1
//
// AUX2 GND A9 D40 D42 A11
@ -476,14 +478,14 @@
// 1 3 5 7 9
// VCC A5 A10 D44 A12
//
#define AUX2_03_PIN 59 // (A5)
#define AUX2_04_PIN 63 // (A9)
#define AUX2_05_PIN 64 // (A10)
#define AUX2_06_PIN 40
#define AUX2_07_PIN 44
#define AUX2_08_PIN 42
#define AUX2_09_PIN 66 // (A12)
#define AUX2_10_PIN 65 // (A11)
#define AUX2_03 59 // (A5)
#define AUX2_04 63 // (A9)
#define AUX2_05 64 // (A10)
#define AUX2_06 40
#define AUX2_07 44
#define AUX2_08 42
#define AUX2_09 66 // (A12)
#define AUX2_10 65 // (A11)
//
// AUX3 GND D52 D50 5V
@ -491,31 +493,31 @@
// 8 6 4 2
// NC D53 D51 D49
//
#define AUX3_02_PIN 49
#define AUX3_03_PIN 50
#define AUX3_04_PIN 51
#define AUX3_05_PIN 52
#define AUX3_06_PIN 53
#define AUX3_02 49
#define AUX3_03 50
#define AUX3_04 51
#define AUX3_05 52
#define AUX3_06 53
//
// AUX4 5V GND D32 D47 D45 D43 D41 D39 D37 D35 D33 D31 D29 D27 D25 D23 D17 D16
//
#define AUX4_03_PIN 32
#define AUX4_04_PIN 47
#define AUX4_05_PIN 45
#define AUX4_06_PIN 43
#define AUX4_07_PIN 41
#define AUX4_08_PIN 39
#define AUX4_09_PIN 37
#define AUX4_10_PIN 35
#define AUX4_11_PIN 33
#define AUX4_12_PIN 31
#define AUX4_13_PIN 29
#define AUX4_14_PIN 27
#define AUX4_15_PIN 25
#define AUX4_16_PIN 23
#define AUX4_17_PIN 17
#define AUX4_18_PIN 16
#define AUX4_03 32
#define AUX4_04 47
#define AUX4_05 45
#define AUX4_06 43
#define AUX4_07 41
#define AUX4_08 39
#define AUX4_09 37
#define AUX4_10 35
#define AUX4_11 33
#define AUX4_12 31
#define AUX4_13 29
#define AUX4_14 27
#define AUX4_15 25
#define AUX4_16 23
#define AUX4_17 17
#define AUX4_18 16
/**
* LCD adapters come in different variants. The socket keys can be
@ -523,71 +525,75 @@
*/
#ifndef EXP1_08_PIN
#define EXP1_03_PIN AUX4_17_PIN
#define EXP1_04_PIN AUX4_18_PIN
#define EXP1_05_PIN AUX4_16_PIN
#define EXP1_06_PIN AUX4_15_PIN
#define EXP1_07_PIN AUX4_14_PIN
#define EXP1_08_PIN AUX4_13_PIN
#define EXP1_03_PIN AUX4_17 // 17
#define EXP1_04_PIN AUX4_18 // 16
#define EXP1_05_PIN AUX4_16 // 23
#define EXP1_06_PIN AUX4_15 // 25
#define EXP1_07_PIN AUX4_14 // 27
#define EXP1_08_PIN AUX4_13 // 29
#define EXP2_01_PIN AUX3_03_PIN
#define EXP2_02_PIN AUX3_05_PIN
#define EXP2_04_PIN AUX3_06_PIN
#define EXP2_06_PIN AUX3_04_PIN
#define EXP2_07_PIN AUX3_02_PIN
#define EXP2_01_PIN AUX3_03 // 50 (MISO)
#define EXP2_02_PIN AUX3_05 // 52
#define EXP2_04_PIN AUX3_06 // 53
#define EXP2_06_PIN AUX3_04 // 51
#define EXP2_07_PIN AUX3_02 // 49
#if ENABLED(G3D_PANEL)
/** Gadgets3D Smart Adapter
* ------ ------
* 4-11 | 1 2 | 4-12 (MISO) 3-03 | 1 2 | 3-05 (SCK)
* 4-17 | 3 4 | 4-18 4-10 | 3 4 | 3-06
* 4-16 5 6 | 4-15 4-09 5 6 | 3-04 (MOSI)
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
* (GND) 4-02 | 9 10 | 4-01 (5V) -- | 9 10 | --
* ------ ------
* EXP1 EXP2
* ------ ------
* 33 4-11 | 1 2 | 4-12 31 (MISO) 50 3-03 | 1 2 | 3-05 52 (SCK)
* 17 4-17 | 3 4 | 4-18 16 35 4-10 | 3 4 | 3-06 53
* 23 4-16 5 6 | 4-15 25 37 4-09 5 6 | 3-04 51 (MOSI)
* 27 4-14 | 7 8 | 4-13 29 49 3-02 | 7 8 | 4-07 41
* (GND) 4-02 | 9 10 | 4-01 (5V) -- | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN AUX4_11_PIN
#define EXP1_02_PIN AUX4_12_PIN
#define EXP1_01_PIN AUX4_11 // 33
#define EXP1_02_PIN AUX4_12 // 31
#define EXP2_03_PIN AUX4_10_PIN
#define EXP2_05_PIN AUX4_09_PIN
#define EXP2_08_PIN AUX4_07_PIN
#define EXP2_03_PIN AUX4_10 // 35
#define EXP2_05_PIN AUX4_09 // 37
#define EXP2_08_PIN AUX4_07 // 41
#else
/** Smart Adapter (c) RRD
* ------ ------
* 4-09 | 1 2 | 4-10 (MISO) 3-03 | 1 2 | 3-05 (SCK)
* 4-17 | 3 4 | 4-18 4-12 | 3 4 | 3-06
* 4-16 5 6 | 4-15 4-11 5 6 | 3-04 (MOSI)
* 4-14 | 7 8 | 4-13 3-02 | 7 8 | 4-07
* 37 4-09 | 1 2 | 4-10 (MISO) 3-03 | 1 2 | 3-05 52 (SCK)
* 17 4-17 | 3 4 | 4-18 31 4-12 | 3 4 | 3-06 53
* 23 4-16 5 6 | 4-15 33 4-11 5 6 | 3-04 51 (MOSI)
* 27 4-14 | 7 8 | 4-13 49 3-02 | 7 8 | 4-07 41
* (GND) 3-07 | 9 10 | 3-01 (5V) (GND) 3-07 | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN AUX4_09_PIN
#define EXP1_02_PIN AUX4_10_PIN
#define EXP1_01_PIN AUX4_09 // 37
#define EXP1_02_PIN AUX4_10 // 35
#if ALL(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
#define EXP2_03_PIN AUX4_11_PIN
#define EXP2_05_PIN AUX4_12_PIN
#define EXP2_03_PIN AUX4_11 // 33
#define EXP2_05_PIN AUX4_12 // 31
#define EXP2_08_PIN -1 // RESET
#else
#define EXP2_03_PIN AUX4_12_PIN
#define EXP2_05_PIN AUX4_11_PIN
#define EXP2_08_PIN AUX4_07_PIN
#define EXP2_03_PIN AUX4_12 // 31
#define EXP2_05_PIN AUX4_11 // 33
#define EXP2_08_PIN AUX4_07 // 41
#endif
#endif
#endif
//////////////////////////
// LCDs and Controllers //
//////////////////////////
//
// LCD / Controller
//
#if HAS_WIRED_LCD && DISABLED(LCD_PINS_DEFINED)
#ifdef LCD_PINS_DEFINED
// LCD pins already defined by including header
#elif HAS_WIRED_LCD
//#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
@ -602,12 +608,12 @@
#elif ALL(IS_NEWPANEL, PANEL_ONE)
#define LCD_PINS_RS AUX2_06_PIN
#define LCD_PINS_EN AUX2_08_PIN
#define LCD_PINS_D4 AUX2_10_PIN
#define LCD_PINS_D5 AUX2_09_PIN
#define LCD_PINS_D6 AUX2_07_PIN
#define LCD_PINS_D7 AUX2_05_PIN
#define LCD_PINS_RS AUX2_06
#define LCD_PINS_EN AUX2_08
#define LCD_PINS_D4 AUX2_10
#define LCD_PINS_D5 AUX2_09
#define LCD_PINS_D6 AUX2_07
#define LCD_PINS_D7 AUX2_05
#elif ENABLED(TFTGLCD_PANEL_SPI)
@ -631,12 +637,12 @@
#error "CAUTION! ZONESTAR_LCD on RAMPS requires wiring modifications. It plugs into AUX2 but GND and 5V need to be swapped. See 'pins_RAMPS.h' for details. (Define NO_CONTROLLER_CUSTOM_WIRING_WARNING to suppress this warning.)"
#endif
#define LCD_PINS_RS AUX2_05_PIN
#define LCD_PINS_EN AUX2_07_PIN
#define LCD_PINS_D4 AUX2_04_PIN
#define LCD_PINS_D5 AUX2_06_PIN
#define LCD_PINS_D6 AUX2_08_PIN
#define LCD_PINS_D7 AUX2_10_PIN
#define LCD_PINS_RS AUX2_05
#define LCD_PINS_EN AUX2_07
#define LCD_PINS_D4 AUX2_04
#define LCD_PINS_D5 AUX2_06
#define LCD_PINS_D6 AUX2_08
#define LCD_PINS_D7 AUX2_10
#elif ENABLED(AZSMZ_12864)
@ -672,8 +678,8 @@
// Buttons attached to a shift register
// Not wired yet
//#define SHIFT_CLK_PIN 38
//#define SHIFT_LD_PIN AUX2_08_PIN
//#define SHIFT_OUT_PIN AUX2_06_PIN
//#define SHIFT_LD_PIN AUX2_08
//#define SHIFT_OUT_PIN AUX2_06
//#define SHIFT_EN_PIN EXP1_03_PIN
#endif
@ -707,30 +713,30 @@
#endif
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
#define LCD_BACKLIGHT_PIN AUX4_08_PIN
#define LCD_BACKLIGHT_PIN AUX4_08
#endif
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define BTN_EN1 AUX2_05_PIN
#define BTN_EN2 AUX2_03_PIN
#define BTN_ENC AUX2_04_PIN
#define BTN_EN1 AUX2_05
#define BTN_EN2 AUX2_03
#define BTN_ENC AUX2_04
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN AUX2_08_PIN
#define SD_DETECT_PIN AUX2_08
#endif
#elif ENABLED(LCD_I2C_PANELOLU2)
#define BTN_EN1 AUX4_04_PIN
#define BTN_EN2 AUX4_06_PIN
#define BTN_ENC AUX4_03_PIN
#define BTN_EN1 AUX4_04
#define BTN_EN2 AUX4_06
#define BTN_ENC AUX4_03
#define LCD_SDSS SDSS
#define KILL_PIN EXP2_08_PIN
#elif ENABLED(LCD_I2C_VIKI)
#define BTN_EN1 AUX2_06_PIN // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains AUX2-06 and AUX2-08.
#define BTN_EN2 AUX2_08_PIN
#define BTN_EN1 AUX2_06 // https://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains AUX2-06 and AUX2-08.
#define BTN_EN2 AUX2_08
#define BTN_ENC -1
#define LCD_SDSS SDSS
@ -740,19 +746,19 @@
#elif ANY(VIKI2, miniVIKI)
#define DOGLCD_CS AUX4_05_PIN
#define DOGLCD_A0 AUX2_07_PIN
#define DOGLCD_CS AUX4_05
#define DOGLCD_A0 AUX2_07
#define LCD_SCREEN_ROTATE 180 // 0, 90, 180, 270
#ifndef BEEPER_PIN
#define BEEPER_PIN EXP2_05_PIN
#endif
#define STAT_LED_RED_PIN AUX4_03_PIN
#define STAT_LED_RED_PIN AUX4_03
#define STAT_LED_BLUE_PIN EXP1_02_PIN
#define BTN_EN1 22
#define BTN_EN2 7
#define BTN_ENC AUX4_08_PIN
#define BTN_ENC AUX4_08
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
@ -837,19 +843,19 @@
#ifndef BEEPER_PIN
#define BEEPER_PIN AUX2_08_PIN
#endif
#define LCD_BACKLIGHT_PIN AUX2_10_PIN
#define LCD_BACKLIGHT_PIN AUX2_10
#define DOGLCD_A0 AUX2_07_PIN
#define DOGLCD_CS AUX2_09_PIN
#define DOGLCD_A0 AUX2_07
#define DOGLCD_CS AUX2_09
#define BTN_EN1 AUX2_06_PIN
#define BTN_EN2 AUX2_04_PIN
#define BTN_ENC AUX2_03_PIN
#define BTN_EN1 AUX2_06
#define BTN_EN2 AUX2_04
#define BTN_ENC AUX2_03
#ifndef SD_DETECT_PIN
#define SD_DETECT_PIN AUX3_02_PIN
#define SD_DETECT_PIN AUX3_02
#endif
#define KILL_PIN AUX2_05_PIN
#define KILL_PIN AUX2_05
#elif ENABLED(ZONESTAR_LCD)
@ -883,9 +889,9 @@
#endif
#if ENABLED(PANEL_ONE) // Buttons connect directly to AUX-2
#define BTN_EN1 AUX2_03_PIN
#define BTN_EN2 AUX2_04_PIN
#define BTN_ENC AUX3_02_PIN
#define BTN_EN1 AUX2_03
#define BTN_EN2 AUX2_04
#define BTN_ENC AUX3_02
#else
#define BTN_EN1 EXP1_01_PIN
#define BTN_EN2 EXP1_02_PIN
@ -902,17 +908,17 @@
#endif // HAS_WIRED_LCD && !LCD_PINS_DEFINED
#if IS_RRW_KEYPAD && !HAS_ADC_BUTTONS
#define SHIFT_OUT_PIN AUX2_06_PIN
#define SHIFT_CLK_PIN AUX2_07_PIN
#define SHIFT_LD_PIN AUX2_08_PIN
#define SHIFT_OUT_PIN AUX2_06
#define SHIFT_CLK_PIN AUX2_07
#define SHIFT_LD_PIN AUX2_08
#ifndef BTN_EN1
#define BTN_EN1 AUX2_05_PIN
#define BTN_EN1 AUX2_05
#endif
#ifndef BTN_EN2
#define BTN_EN2 AUX2_03_PIN
#define BTN_EN2 AUX2_03
#endif
#ifndef BTN_ENC
#define BTN_ENC AUX2_04_PIN
#define BTN_ENC AUX2_04
#endif
#endif

View file

@ -57,6 +57,8 @@
#define CASE_LIGHT_PIN 65
#endif
#define SERVO1_PIN 12
#include "pins_RAMPS.h"
#ifndef BEEPER_PIN

View file

@ -113,6 +113,8 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
#define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
#define SPINDLE_DIR_PIN 43
#if HAS_CUTTER
#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
#define SPINDLE_DIR_PIN 43
#endif

View file

@ -22,7 +22,7 @@
#pragma once
/**
* Arduino Mega with RAMPS v1.4Plus, also known as 3DYMY version, pin assignments
* Arduino Mega with RAMPS v1.4Plus, aka 3DYMY version
* ATmega2560, ATmega1280
*
* Applies to the following boards:
@ -64,32 +64,32 @@
#define E1_ENABLE_PIN 24
#define E1_CS_PIN -1
/** 3DYMY Expansion Headers
* ------ ------
* 37 | 1 2 | 35 (MISO) 50 | 1 2 | 52 (SCK)
* 31 | 3 4 | 41 29 | 3 4 | 53
* 33 5 6 | 23 25 5 6 | 51 (MOSI)
* 42 | 7 8 | 44 49 | 7 8 | 27
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
/** 3DYMY Expansion Headers
* ------ ------
* (BEEP) 37 | 1 2 | 35 (ENC) (MISO) 50 | 1 2 | 52 (SCK)
* (LCD_EN) 31 | 3 4 | 41 (LCD_RS) (EN1) 29 | 3 4 | 53 (SDSS)
* (LCD_D4) 33 5 6 | 23 (LCD_D5) (EN2) 25 5 6 | 51 (MOSI)
* (LCD_D6) 42 | 7 8 | 44 (LCD_D7) (SD_DET) 49 | 7 8 | 27 (KILL)
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN 37
#define EXP1_02_PIN 35
#define EXP1_03_PIN 31
#define EXP1_04_PIN 41
#define EXP1_05_PIN 33
#define EXP1_06_PIN 23
#define EXP1_07_PIN 42
#define EXP1_08_PIN 44
#define EXP1_01_PIN 37 // BEEPER
#define EXP1_02_PIN 35 // ENC
#define EXP1_03_PIN 31 // LCD_EN
#define EXP1_04_PIN 41 // LCD_RS
#define EXP1_05_PIN 33 // LCD_D4
#define EXP1_06_PIN 23 // LCD_D5
#define EXP1_07_PIN 42 // LCD_D6
#define EXP1_08_PIN 44 // LCD_D7
#define EXP2_01_PIN 50
#define EXP2_02_PIN 52
#define EXP2_03_PIN 29
#define EXP2_04_PIN 53
#define EXP2_05_PIN 25
#define EXP2_06_PIN 51
#define EXP2_07_PIN 49
#define EXP2_08_PIN 27
#define EXP2_01_PIN 50 // MISO
#define EXP2_02_PIN 52 // SCK
#define EXP2_03_PIN 29 // EN1
#define EXP2_04_PIN 53 // SDSS
#define EXP2_05_PIN 25 // EN2
#define EXP2_06_PIN 51 // MOSI
#define EXP2_07_PIN 49 // SD_DET
#define EXP2_08_PIN 27 // KILL
#include "pins_RAMPS.h"

View file

@ -219,16 +219,14 @@
//
// TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 51
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 50
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 53
#endif
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 51
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 50
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 53
#endif
//
@ -246,13 +244,10 @@
#endif
#endif
//////////////////////////
// LCDs and Controllers //
//////////////////////////
//
// LCD / Controller
//
//
// LCD Display output pins
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 45
#define LCD_PINS_RS 19

View file

@ -53,9 +53,6 @@
#ifndef X_MIN_PIN
#define X_MIN_PIN 37
#endif
#ifndef X_MIN_PIN
#define X_MIN_PIN 37
#endif
#ifndef X_MAX_PIN
#define X_MAX_PIN 36
#endif
@ -193,6 +190,7 @@
//
// LCD / Controller
//
#if ANY(MKS_12864OLED, MKS_12864OLED_SSD1306)
#define LCD_PINS_DC 38 // Set as output on init
#define LCD_PINS_RS 41 // Pull low for 1s to init

View file

@ -75,33 +75,33 @@
* 5V 5V 5V 5V 5V 5V
*/
/** Expansion Headers
* ------ ------
* 37 | 1 2 | 35 (MISO) 50 | 1 2 | 52 (SCK)
* 17 | 3 4 | 16 31 | 3 4 | 53
* 23 5 6 | 25 33 5 6 | 51 (MOSI)
* 27 | 7 8 | 29 49 | 7 8 | 41
* (GND) | 9 10 | (5V) (GND) | 9 10 | RESET
* ------ ------
* EXP1 EXP2
/** Expansion Headers
* ------ ------
* (BEEP) 37 | 1 2 | 35 (ENC) (MISO) 50 | 1 2 | 52 (SCK)
* (LCD_EN) 17 | 3 4 | 16 (LCD_RS) (EN1) 31 | 3 4 | 53 (SDSS)
* (LCD_D4) 23 5 6 | 25 (LCD_D5) (EN2) 33 5 6 | 51 (MOSI)
* (LCD_D6) 27 | 7 8 | 29 (LCD_D7) (SD_DET) 49 | 7 8 | 41 (KILL)
* GND | 9 10 | 5V GND | 9 10 | RESET
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN 37
#define EXP1_02_PIN 35
#define EXP1_03_PIN 17
#define EXP1_04_PIN 16
#define EXP1_05_PIN 23
#define EXP1_06_PIN 25
#define EXP1_07_PIN 27
#define EXP1_08_PIN 29
#define 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
#define EXP2_04_PIN 53
#define EXP2_05_PIN 33
#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
#define EXP2_08_PIN 41
#define EXP2_07_PIN 49 // SD_DET
#define EXP2_08_PIN 41 // KILL
//
// AnyCubic pin mappings
@ -119,7 +119,9 @@
// Chiron uses AUX header for Y and Z endstops
#define Y_STOP_PIN 42 // AUX (1)
#define Z_STOP_PIN 43 // AUX (2)
#define Z2_MIN_PIN 18 // Z-
#ifndef Z2_STOP_PIN
#define Z2_STOP_PIN 18 // Z-
#endif
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN 2 // X+

View file

@ -21,7 +21,11 @@
*/
#pragma once
// ATmega2560
/**
* TT OSCAR by YM Tech.LTD
*
* ATmega2560
*/
#include "env_validate.h"
@ -73,12 +77,12 @@
#define Z_STEP_PIN 46
#define Z_DIR_PIN 48
#define Z_ENABLE_PIN 62
#define Z_CS_PIN 53
#define Z_CS_PIN 53 // EXP2-4
#define E0_STEP_PIN 26
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 24
#define E0_CS_PIN 49
#define E0_CS_PIN 49 // EXP2-7
#define E1_STEP_PIN 36
#define E1_DIR_PIN 34
@ -152,16 +156,14 @@
//
// Default pins for TMC software SPI
//
//#if ENABLED(TMC_USE_SW_SPI)
// #ifndef TMC_SPI_MOSI
// #define TMC_SPI_MOSI 66
// #endif
// #ifndef TMC_SPI_MISO
// #define TMC_SPI_MISO 44
// #endif
// #ifndef TMC_SPI_SCK
// #define TMC_SPI_SCK 64
// #endif
//#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
//
@ -211,11 +213,11 @@
//
// Misc. Functions
//
#define SDSS 53
#define SDSS 53 // EXP2-4
#define LED_PIN 13
//#ifndef FILWIDTH_PIN
// #define FILWIDTH_PIN 5 // Analog Input
// #define FILWIDTH_PIN 5 // Analog Input
//#endif
// DIO 4 (Servos plug) for the runout sensor.
@ -259,16 +261,52 @@
#define E_MUX0_PIN 58 // Y_CS_PIN
#endif
#ifndef E_MUX1_PIN
#define E_MUX1_PIN 53 // Z_CS_PIN
#define E_MUX1_PIN 53 // EXP2-4
#endif
#ifndef E_MUX2_PIN
#define E_MUX2_PIN 49 // En_CS_PIN
#define E_MUX2_PIN 49 // EXP2-7
#endif
#endif
//////////////////////////
// LCDs and Controllers //
//////////////////////////
/** TT OSCAR Expansion Headers
* ------
* -- | 1 2 | --
* -- 3 4 | --
* -- 5 6 | --
* 49 | 7 8 | --
* ------
* AUX1
*
* ------ ------
* 37 | 1 2 | 35 (MISO) 44 | 1 2 | 52 (SCK)
* 17 | 3 4 | 41? 35 | 3 4 | 53
* 23 5 6 | 25 31 5 6 | 51 (MOSI)
* 27 | 7 8 | 29 49 | 7 8 | 41
* GND | 9 10 | 5V GND | 9 10 | --
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN 37 // BEEPER
#define EXP1_02_PIN 35 // ENC
#define EXP1_03_PIN 17 // ENC1
#define EXP1_04_PIN 41 // RESET
#define EXP1_05_PIN 23 // ENC2
#define EXP1_06_PIN 25 // D4
#define EXP1_07_PIN 27 // RS
#define EXP1_08_PIN 29 // EN
#define EXP2_01_PIN 44 // MISO
#define EXP2_02_PIN 52 // SCK
#define EXP2_03_PIN 35 // EN2 / EN1
#define EXP2_04_PIN 53 // SDSS
#define EXP2_05_PIN 31 // EN1 / EN2
#define EXP2_06_PIN 51 // MOSI
#define EXP2_07_PIN 49 // SD_DET
#define EXP2_08_PIN 41 // KILL / RESET
//
// LCD / Controller
//
#if HAS_WIRED_LCD
@ -277,9 +315,9 @@
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
#define LCD_PINS_EN 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 ALL(IS_NEWPANEL, PANEL_ONE)
@ -371,7 +409,7 @@
#endif
#define BTN_ENC 35
#define SD_DETECT_PIN 49
#define SD_DETECT_PIN EXP2_07_PIN
//#define KILL_PIN 41
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
@ -390,7 +428,7 @@
#define BTN_EN1 47
#define BTN_EN2 43
#define BTN_ENC 32
#define LCD_SDSS 53
#define LCD_SDSS EXP2_04_PIN
//#define KILL_PIN 41
#elif ENABLED(LCD_I2C_VIKI)
@ -399,8 +437,8 @@
#define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
#define BTN_ENC -1
#define LCD_SDSS 53
#define SD_DETECT_PIN 49
#define LCD_SDSS EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
#elif ANY(VIKI2, miniVIKI)
@ -415,7 +453,7 @@
#define BTN_EN2 7
#define BTN_ENC 39
#define SDSS 53
#define SDSS EXP2_04_PIN
#define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
//#define KILL_PIN 31
@ -433,8 +471,8 @@
#define BTN_EN2 37
#define BTN_ENC 31
#define LCD_SDSS 53
#define SD_DETECT_PIN 49
#define LCD_SDSS EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
//#define KILL_PIN 41
#elif ENABLED(MKS_MINI_12864)
@ -449,8 +487,8 @@
#define BTN_EN1 31
#define BTN_EN2 33
#define BTN_ENC 35
//#define SDSS 53
#define SD_DETECT_PIN 49
//#define SDSS EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
//#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
@ -469,8 +507,8 @@
#define BTN_EN2 63
#define BTN_ENC 59
#define SDSS 53
#define SD_DETECT_PIN 49
#define SDSS EXP2_04_PIN
#define SD_DETECT_PIN EXP2_07_PIN
//#define KILL_PIN 64
//#define LCD_CONTRAST_INIT 190
@ -500,7 +538,7 @@
#endif
#if ENABLED(G3D_PANEL)
#define SD_DETECT_PIN 49
#define SD_DETECT_PIN EXP2_07_PIN
//#define KILL_PIN 41
#endif

View file

@ -118,6 +118,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 18
@ -162,6 +163,8 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 10 // Pullup!
#define SPINDLE_DIR_PIN 11 // use the EXP3 PWM header
#if HAS_CUTTER
#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
#define SPINDLE_LASER_ENA_PIN 10 // Pullup!
#define SPINDLE_DIR_PIN 11 // use the EXP3 PWM header
#endif

View file

@ -166,6 +166,7 @@
//
// LCD / Controller
//
#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
#define LCD_PINS_RS 24

View file

@ -29,14 +29,10 @@
#define BOARD_INFO_NAME "VORON Design v2"
#define MOSFET_C_PIN 11
#include "pins_RAMPS.h"
//
// Heaters / Fans
//
#undef FAN0_PIN
#define MOSFET_C_PIN 11
#define FAN0_PIN 5 // Using the pin for the controller fan since controller fan is always on.
#define CONTROLLER_FAN_PIN 8
@ -50,7 +46,9 @@
#define E1_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan (same pin for both extruders since it's the same fan)
#endif
#include "pins_RAMPS.h"
//
// LCDs and Controllers
// LCD / Controller
//
#undef BEEPER_PIN

View file

@ -39,8 +39,6 @@
//
// Heaters / Fans
//
#define HEATER_1_PIN 7
#define FAN0_PIN 9 // PH6 ** Pin18 ** PWM9
#define FAN1_PIN 6
//

View file

@ -329,16 +329,16 @@
#define EXP2_08_PIN 41
#endif
//////////////////////////
// LCDs and Controllers //
//////////////////////////
//
// LCD / Controller
//
#if ENABLED(ZONESTAR_12864LCD)
#define LCDSCREEN_NAME "ZONESTAR LCD12864"
#define LCD_SDSS 16
#define LCD_PINS_RS 16 // ST7920_CS_PIN LCD_PIN_RS (PIN4 of LCD module)
#define LCD_PINS_EN 23 // ST7920_DAT_PIN LCD_PIN_R/W (PIN5 of LCD module)
#define LCD_PINS_D4 17 // ST7920_CLK_PIN LCD_PIN_ENABLE (PIN6 of LCD module)
#define LCD_PINS_RS 16 // ST7920 CS (LCD-4)
#define LCD_PINS_EN 23 // ST7920 DAT LCD-R/W (LCD-5)
#define LCD_PINS_D4 17 // ST7920 CLK LCD-ENA (LCD-6)
#define BTN_EN2 25
#define BTN_EN1 27
#define BTN_ENC 29
@ -347,9 +347,9 @@
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define LCDSCREEN_NAME "Reprap LCD12864"
// Use EXP1 & EXP2 connector
#define LCD_PINS_RS 16 // ST7920_CS_PIN LCD_PIN_RS
#define LCD_PINS_EN 17 // ST7920_DAT_PIN LCD_PIN_ENABLE
#define LCD_PINS_D4 23 // ST7920_CLK_PIN LCD_PIN_R/W
#define LCD_PINS_RS 16 // ST7920 CS
#define LCD_PINS_EN 17 // ST7920 DAT
#define LCD_PINS_D4 23 // ST7920 CLK LCD-R/W
#define BTN_EN1 31
#define BTN_EN2 33
#define BTN_ENC 35

View file

@ -183,16 +183,14 @@
//
// TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 66
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 44
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 64
#endif
#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

View file

@ -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 ALL(ALLOW_MEGA1280, ALLOW_MEGA2560) && NOT_TARGET(__SAM3X8E__, __AVR_ATmega1280__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due or Mega' in 'Tools > Board.'"
@ -31,3 +32,5 @@
#undef ALLOW_MEGA1280
#undef ALLOW_MEGA2560
#endif

View file

@ -148,12 +148,12 @@
//
// LCD / Controller
//
#if IS_RRD_FG_SC
#define LCD_PINS_RS 18
#define LCD_PINS_EN 15
#define LCD_PINS_D4 19
#define BEEPER_PIN 64
#undef UI_VOLTAGE_LEVEL
#define UI_VOLTAGE_LEVEL 1
#endif

View file

@ -180,6 +180,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1

View file

@ -145,19 +145,17 @@
#endif
//
// Software SPI pins for TMC2130 stepper drivers.
// SPI pins for TMC2130 stepper drivers.
// Required for the Archim2 board.
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 28 // PD3
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 26 // PD1
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 27 // PD2
#endif
#ifndef TMC_SPI_MOSI
#define TMC_SPI_MOSI 28 // PD3
#endif
#ifndef TMC_SPI_MISO
#define TMC_SPI_MISO 26 // PD1
#endif
#ifndef TMC_SPI_SCK
#define TMC_SPI_SCK 27 // PD2
#endif
//
@ -237,6 +235,7 @@
//
// LCD / Controller
//
#if ANY(HAS_WIRED_LCD, TOUCH_UI_ULTIPANEL, TOUCH_UI_FTDI_EVE)
#define BEEPER_PIN 23 // D24 PA15_CTS1
#define LCD_PINS_RS 17 // D17 PA12_RXD1

View file

@ -111,6 +111,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define LCD_PINS_RS 42

View file

@ -69,7 +69,10 @@
#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
#define TEMP_1_PIN 2 // Analog Input (unused)
#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
#define TEMP_BOARD_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
#ifndef TEMP_BOARD_PIN
#define TEMP_BOARD_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
#endif
// SPI for MAX Thermocouple
#if !HAS_MEDIA
@ -100,6 +103,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define LCD_PINS_RS 42

View file

@ -145,6 +145,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#define BTN_EN1 48

View file

@ -224,6 +224,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if ENABLED(RADDS_DISPLAY)

View file

@ -45,21 +45,16 @@
#define BOARD_INFO_NAME "RAMPS Duo"
#define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h"
//
// Temperature Sensors
//
#undef TEMP_0_PIN
#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
#define TEMP_1_PIN 11 // Analog Input
#undef TEMP_BED_PIN
#define TEMP_BED_PIN 10 // Analog Input
#define ALLOW_SAM3X8E
#include "../ramps/pins_RAMPS.h"
// SPI for MAX Thermocouple
#undef TEMP_0_CS_PIN
#if !HAS_MEDIA
@ -71,6 +66,7 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if ALL(IS_NEWPANEL, PANEL_ONE)

View file

@ -134,7 +134,9 @@
#define SDSS 4
#define LED_PIN 13
/** ------ ------
/**
* RAMPS-FD LCD adapter
* ------ ------
* 37 | 1 2 | 35 (MISO) 50 | 1 2 | 76 (SCK)
* 29 | 3 4 | 27 (EN2) 31 | 3 4 | 4 (SD_SS)
* 25 5 6 | 23 (EN1) 33 5 6 | 75 (MOSI)
@ -164,8 +166,8 @@
//
// LCD / Controller
//
#if HAS_WIRED_LCD
// ramps-fd lcd adaptor
#define BEEPER_PIN EXP1_01_PIN
@ -181,8 +183,8 @@
#endif
#if ENABLED(FYSETC_MINI_12864)
#define DOGLCD_CS LCD_PINS_EN
#define DOGLCD_A0 LCD_PINS_RS
#define DOGLCD_CS EXP1_08_PIN
#define DOGLCD_A0 EXP1_07_PIN
#define DOGLCD_SCK EXP2_02_PIN
#define DOGLCD_MOSI EXP2_06_PIN

View file

@ -95,6 +95,7 @@
//
// LCD / Controller
//
#if ENABLED(AZSMZ_12864)
// Support for AZSMZ 12864 LCD with SD Card 3D printer smart controller control panel

View file

@ -195,27 +195,28 @@
* ------ ------
* EXP1 EXP2
*/
#define EXP1_01_PIN 62
#define EXP1_02_PIN 40
#define EXP1_03_PIN 64
#define EXP1_04_PIN 63
#define EXP1_05_PIN 48
#define EXP1_06_PIN 50
#define EXP1_07_PIN 52
#define EXP1_08_PIN 53
#define EXP1_01_PIN 62 // BEEPER
#define EXP1_02_PIN 40 // ENC
#define EXP1_03_PIN 64 // LCD_EN
#define EXP1_04_PIN 63 // LCD_RS
#define EXP1_05_PIN 48 // LCD_D4 / RESET
#define EXP1_06_PIN 50 // LCD_D5
#define EXP1_07_PIN 52 // LCD_D6
#define EXP1_08_PIN 53 // LCD_D7 / ENABLE
#define EXP2_01_PIN 74 // MISO
#define EXP2_02_PIN 76 // SCK
#define EXP2_03_PIN 44
#define EXP2_04_PIN 10
#define EXP2_05_PIN 42
#define EXP2_03_PIN 44 // EN1
#define EXP2_04_PIN 10 // SDSS
#define EXP2_05_PIN 42 // EN2
#define EXP2_06_PIN 75 // MOSI
#define EXP2_07_PIN 51
#define EXP2_07_PIN 51 // SD DET
#define EXP2_08_PIN -1 // RESET
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if ANY(RADDS_DISPLAY, IS_RRD_SC, IS_RRD_FG_SC)

Some files were not shown because too many files have changed in this diff Show more