update code base to Marlin 2.0.9.2
This commit is contained in:
28
Marlin/src/pins/stm32f4/env_validate.h
Normal file
28
Marlin/src/pins/stm32f4/env_validate.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if NOT_TARGET(STM32F4) && (DISABLED(ALLOW_STM32DUINO) || NOT_TARGET(STM32F4xx))
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#undef ALLOW_STM32DUINO
|
225
Marlin/src/pins/stm32f4/pins_ANET_ET4.h
Normal file
225
Marlin/src/pins/stm32f4/pins_ANET_ET4.h
Normal file
@@ -0,0 +1,225 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "Anet ET4 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "Anet ET4 1.x"
|
||||
#endif
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
//
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
//#define IIC_BL24CXX_EEPROM // Use I2C EEPROM onboard IC (AT24C04C, Size 4KB, PageSize 16B)
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#elif ENABLED(IIC_BL24CXX_EEPROM)
|
||||
#define IIC_EEPROM_SDA PB11
|
||||
#define IIC_EEPROM_SCL PB10
|
||||
#define EEPROM_DEVICE_ADDRESS 0xA0
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PC13
|
||||
#define Y_STOP_PIN PE12
|
||||
#define Z_STOP_PIN PE11
|
||||
|
||||
//
|
||||
// Z Probe
|
||||
//
|
||||
#if ENABLED(BLTOUCH)
|
||||
#error "You will need to use 24V to 5V converter and remove one resistor and capacitor from the motherboard. See https://github.com/davidtgbe/Marlin/blob/bugfix-2.0.x/docs/Tutorials/bltouch-en.md for more information. Comment out this line to proceed at your own risk."
|
||||
#define SERVO0_PIN PC3
|
||||
#elif !defined(Z_MIN_PROBE_PIN)
|
||||
#define Z_MIN_PROBE_PIN PC3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PA8
|
||||
#endif
|
||||
|
||||
//
|
||||
// LED PIN
|
||||
//
|
||||
#define LED_PIN PD12
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB6
|
||||
#define X_DIR_PIN PB5
|
||||
#define X_ENABLE_PIN PB7
|
||||
|
||||
#define Y_STEP_PIN PB3
|
||||
#define Y_DIR_PIN PD6
|
||||
#define Y_ENABLE_PIN PB4
|
||||
|
||||
#define Z_STEP_PIN PA12
|
||||
#define Z_DIR_PIN PA11
|
||||
#define Z_ENABLE_PIN PA15
|
||||
|
||||
#define E0_STEP_PIN PB9
|
||||
#define E0_DIR_PIN PB8
|
||||
#define E0_ENABLE_PIN PE0
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PA1
|
||||
#define TEMP_BED_PIN PA4
|
||||
|
||||
//
|
||||
// Heaters
|
||||
//
|
||||
#define HEATER_0_PIN PA0
|
||||
#define HEATER_BED_PIN PE2
|
||||
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#define FAN_PIN PE3 // Layer fan
|
||||
#define FAN1_PIN PE1 // Hotend fan
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN FAN1_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_TFT || HAS_FSMC_TFT
|
||||
#define TFT_RESET_PIN PE6
|
||||
#define TFT_CS_PIN PD7
|
||||
#define TFT_RS_PIN PD13
|
||||
|
||||
#if HAS_FSMC_TFT
|
||||
#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
|
||||
#define FSMC_CS_PIN TFT_CS_PIN
|
||||
#define FSMC_RS_PIN TFT_RS_PIN
|
||||
#define TFT_INTERFACE_FSMC_8BIT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Touch Screen
|
||||
// https://ldm-systems.ru/f/doc/catalog/HY-TFT-2,8/XPT2046.pdf
|
||||
//
|
||||
#if NEED_TOUCH_PINS
|
||||
#define TOUCH_CS_PIN PB2
|
||||
#define TOUCH_SCK_PIN PB0
|
||||
#define TOUCH_MOSI_PIN PE5
|
||||
#define TOUCH_MISO_PIN PE4
|
||||
#define TOUCH_INT_PIN PB1
|
||||
#endif
|
||||
|
||||
#if ENABLED(ANET_ET5_TFT35)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X 17125
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y -11307
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X -26
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y 337
|
||||
#endif
|
||||
#ifndef TOUCH_ORIENTATION
|
||||
#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
#endif
|
||||
#elif ENABLED(ANET_ET4_TFT28)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -11838
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 8776
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 333
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -17
|
||||
#endif
|
||||
#ifndef TOUCH_ORIENTATION
|
||||
#define TOUCH_ORIENTATION TOUCH_PORTRAIT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
//#define SDIO_SUPPORT
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION CUSTOM_CABLE
|
||||
#endif
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
|
||||
#define SDIO_D0_PIN PC8
|
||||
#define SDIO_D1_PIN PC9
|
||||
#define SDIO_D2_PIN PC10
|
||||
#define SDIO_D3_PIN PC11
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
|
||||
#ifndef SD_DETECT_PIN
|
||||
#define SD_DETECT_PIN PD3
|
||||
#endif
|
||||
|
||||
#endif
|
33
Marlin/src/pins/stm32f4/pins_ANET_ET4P.h
Normal file
33
Marlin/src/pins/stm32f4/pins_ANET_ET4P.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "Anet ET4P 1.x"
|
||||
|
||||
//
|
||||
// TMC2208 Configuration_adv defaults for Anet ET4P-MB_V1.x
|
||||
//
|
||||
#if !AXIS_DRIVER_TYPE_X(TMC2208_STANDALONE) || !AXIS_DRIVER_TYPE_Y(TMC2208_STANDALONE) || !AXIS_DRIVER_TYPE_Z(TMC2208_STANDALONE) || !AXIS_DRIVER_TYPE_E0(TMC2208_STANDALONE)
|
||||
#error "ANET_ET4P requires ([XYZ]|E0)_DRIVER_TYPE set to TMC2208_STANDALONE."
|
||||
#endif
|
||||
|
||||
#include "pins_ANET_ET4.h"
|
21
Marlin/src/pins/stm32f4/pins_ARMED.h
Executable file → Normal file
21
Marlin/src/pins/stm32f4/pins_ARMED.h
Executable file → Normal file
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Arm'ed supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
#define BOARD_INFO_NAME "Arm'ed"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#define I2C_EEPROM
|
||||
|
||||
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
||||
#define E2END 0xFFF // 4KB
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -206,9 +206,6 @@
|
||||
|
||||
#if HAS_TMC_UART
|
||||
// TMC2208/TMC2209 stepper drivers
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN EXT0_PIN
|
||||
#define X_SERIAL_RX_PIN EXT0_PIN
|
||||
|
||||
@@ -227,5 +224,5 @@
|
||||
#define Z2_SERIAL_RX_PIN EXT4_PIN
|
||||
#define Z2_SERIAL_TX_PIN EXT4_PIN
|
||||
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
@@ -1,285 +0,0 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(__STM32F1__) && !defined(__STM32F4__)
|
||||
#error "Oops! Select an STM32F1/4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* 21017 Victor Perez Marlin for stm32f1 test
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Beast STM32"
|
||||
#define DEFAULT_MACHINE_NAME "STM32F103RET6"
|
||||
|
||||
// Enable I2C_EEPROM for testing
|
||||
#define I2C_EEPROM
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE0
|
||||
#define X_DIR_PIN PE1
|
||||
#define X_ENABLE_PIN PC0
|
||||
#define X_MIN_PIN PD5
|
||||
#define X_MAX_PIN -1
|
||||
|
||||
#define Y_STEP_PIN PE2
|
||||
#define Y_DIR_PIN PE3
|
||||
#define Y_ENABLE_PIN PC1
|
||||
#define Y_MIN_PIN PD6
|
||||
#define Y_MAX_PIN
|
||||
|
||||
#define Z_STEP_PIN PE4
|
||||
#define Z_DIR_PIN PE5
|
||||
#define Z_ENABLE_PIN PC2
|
||||
#define Z_MIN_PIN PD7
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
#define Y2_STEP_PIN -1
|
||||
#define Y2_DIR_PIN -1
|
||||
#define Y2_ENABLE_PIN -1
|
||||
|
||||
#define Z2_STEP_PIN -1
|
||||
#define Z2_DIR_PIN -1
|
||||
#define Z2_ENABLE_PIN -1
|
||||
|
||||
#define E0_STEP_PIN PE6
|
||||
#define E0_DIR_PIN PE7
|
||||
#define E0_ENABLE_PIN PC3
|
||||
|
||||
/**
|
||||
* TODO: Currently using same Enable pin to all steppers.
|
||||
*/
|
||||
|
||||
#define E1_STEP_PIN PE8
|
||||
#define E1_DIR_PIN PE9
|
||||
#define E1_ENABLE_PIN PC4
|
||||
|
||||
#define E2_STEP_PIN PE10
|
||||
#define E2_DIR_PIN PE11
|
||||
#define E2_ENABLE_PIN PC5
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA15
|
||||
#define LED_PIN PB2
|
||||
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PD12 // EXTRUDER 1
|
||||
#define HEATER_1_PIN PD13
|
||||
#define HEATER_2_PIN PD14
|
||||
|
||||
#define HEATER_BED_PIN PB9 // BED
|
||||
#define HEATER_BED2_PIN -1 // BED2
|
||||
#define HEATER_BED3_PIN -1 // BED3
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PB10
|
||||
#endif
|
||||
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PA0 // Analog Input
|
||||
#define TEMP_0_PIN PA1 // Analog Input
|
||||
#define TEMP_1_PIN PA2 // Analog Input
|
||||
#define TEMP_2_PIN PA3 // Analog Input
|
||||
|
||||
//
|
||||
// LCD Pins
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
|
||||
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
#define LCD_PINS_RS 49 // CS chip select /SS chip slave select
|
||||
#define LCD_PINS_ENABLE 51 // SID (MOSI)
|
||||
#define LCD_PINS_D4 52 // SCK (CLK) clock
|
||||
#elif BOTH(NEWPANEL, PANEL_ONE)
|
||||
#define LCD_PINS_RS PB8
|
||||
#define LCD_PINS_ENABLE PD2
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#else
|
||||
#define LCD_PINS_RS PB8
|
||||
#define LCD_PINS_ENABLE PD2
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#if DISABLED(NEWPANEL)
|
||||
#define BEEPER_PIN 33
|
||||
// Buttons attached to a shift register
|
||||
// Not wired yet
|
||||
//#define SHIFT_CLK 38
|
||||
//#define SHIFT_LD 42
|
||||
//#define SHIFT_OUT 40
|
||||
//#define SHIFT_EN 17
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(NEWPANEL)
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||
|
||||
#define BEEPER_PIN 37
|
||||
|
||||
#define BTN_EN1 31
|
||||
#define BTN_EN2 33
|
||||
#define BTN_ENC 35
|
||||
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
|
||||
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
|
||||
#define LCD_BACKLIGHT_PIN 39
|
||||
#endif
|
||||
|
||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
#define SD_DETECT_PIN 42
|
||||
|
||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||
|
||||
#define BTN_EN1 47
|
||||
#define BTN_EN2 43
|
||||
#define BTN_ENC 32
|
||||
#define LCD_SDSS 53
|
||||
#define SD_DETECT_PIN -1
|
||||
#define KILL_PIN 41
|
||||
|
||||
#elif ENABLED(LCD_I2C_VIKI)
|
||||
|
||||
#define BTN_EN1 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
|
||||
#define BTN_EN2 7 // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
|
||||
|
||||
#define BTN_ENC -1
|
||||
#define LCD_SDSS 53
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#elif ANY(VIKI2, miniVIKI)
|
||||
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 45
|
||||
#define LCD_SCREEN_ROT_180
|
||||
|
||||
#define BTN_EN1 22
|
||||
#define BTN_EN2 7
|
||||
#define BTN_ENC 39
|
||||
|
||||
#define SDSS 53
|
||||
#define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
|
||||
|
||||
#define KILL_PIN 31
|
||||
|
||||
#define STAT_LED_RED_PIN 32
|
||||
#define STAT_LED_BLUE_PIN 35
|
||||
|
||||
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
|
||||
|
||||
#define BTN_EN1 35
|
||||
#define BTN_EN2 37
|
||||
#define BTN_ENC 31
|
||||
#define SD_DETECT_PIN 49
|
||||
#define LCD_SDSS 53
|
||||
#define KILL_PIN 41
|
||||
#define BEEPER_PIN 23
|
||||
#define DOGLCD_CS 29
|
||||
#define DOGLCD_A0 27
|
||||
#define LCD_BACKLIGHT_PIN 33
|
||||
|
||||
#elif ENABLED(MINIPANEL)
|
||||
|
||||
#define BEEPER_PIN 42
|
||||
// Pins for DOGM SPI LCD Support
|
||||
#define DOGLCD_A0 44
|
||||
#define DOGLCD_CS 66
|
||||
#define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
|
||||
#define SDSS 53
|
||||
|
||||
#define KILL_PIN 64
|
||||
// GLCD features
|
||||
// Uncomment screen orientation
|
||||
//#define LCD_SCREEN_ROT_90
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
//#define LCD_SCREEN_ROT_270
|
||||
// The encoder and click button
|
||||
#define BTN_EN1 40
|
||||
#define BTN_EN2 63
|
||||
#define BTN_ENC 59
|
||||
// not connected to a pin
|
||||
#define SD_DETECT_PIN 49
|
||||
|
||||
#else
|
||||
|
||||
// Beeper on AUX-4
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
// Buttons directly attached to AUX-2
|
||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||
#define BTN_EN1 64
|
||||
#define BTN_EN2 59
|
||||
#define BTN_ENC 63
|
||||
#define SHIFT_OUT 40
|
||||
#define SHIFT_CLK 44
|
||||
#define SHIFT_LD 42
|
||||
#elif ENABLED(PANEL_ONE)
|
||||
#define BTN_EN1 59 // AUX2 PIN 3
|
||||
#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
|
||||
#endif
|
||||
|
||||
#if ENABLED(G3D_PANEL)
|
||||
#define SD_DETECT_PIN 49
|
||||
#define KILL_PIN 41
|
||||
#else
|
||||
//#define SD_DETECT_PIN -1 // Ramps doesn't use this
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // NEWPANEL
|
||||
|
||||
#endif // HAS_SPI_LCD
|
29
Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
Executable file → Normal file
29
Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
Executable file → Normal file
@@ -16,20 +16,21 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* STM32F407VET6 with RAMPS-like shield
|
||||
* 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
|
||||
* 'Black' STM32F407VET6 board - https://www.stm32duino.com/viewtopic.php?t=485
|
||||
* Shield - https://github.com/jmz52/Hardware
|
||||
*/
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
@@ -40,8 +41,8 @@
|
||||
#define DEFAULT_MACHINE_NAME "STM32F407VET6"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
//#define E2END 0x1FFF // 8KB
|
||||
#define SRAM_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -132,6 +133,10 @@
|
||||
#define DOGLCD_CS LCD_PINS_D5
|
||||
#define DOGLCD_A0 LCD_PINS_D6
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
//
|
||||
// Onboard SD support
|
||||
//
|
||||
@@ -142,14 +147,18 @@
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
189
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Executable file → Normal file
189
Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
Executable file → Normal file
@@ -16,25 +16,33 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "BIGTREE BTT002 V1.0 supports up to 1 hotends / E-steppers."
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "BIGTREE BTT002 V1.0 only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE Btt002 1.0"
|
||||
#define BOARD_INFO_NAME "BTT BTT002 V1.0"
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -129,23 +137,20 @@
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial ##
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PE2
|
||||
#define X_SERIAL_RX_PIN PE2
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE4
|
||||
#define Z_SERIAL_RX_PIN PE4
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD7
|
||||
#define E0_SERIAL_RX_PIN PD7
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -153,6 +158,7 @@
|
||||
//
|
||||
#define TEMP_0_PIN PA2 // T0 <-> E0
|
||||
#define TEMP_1_PIN PA0 // T1 <-> E1
|
||||
#define TEMP_BOARD_PIN PC2 // Onboard thermistor, NTC100K
|
||||
#define TEMP_BED_PIN PA1 // T2 <-> Bed
|
||||
#define TEMP_PROBE_PIN PC3 // Shares J4 connector with PD1
|
||||
|
||||
@@ -164,77 +170,128 @@
|
||||
#define FAN_PIN PB8 // Fan1
|
||||
#define FAN1_PIN PB9 // Fan0
|
||||
|
||||
// HAL SPI1 pins
|
||||
#define CUSTOM_SPI_PINS
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define SCK_PIN PA5 // SPI1 SCLK
|
||||
#define SS_PIN PA4 // SPI1 SSEL
|
||||
#define MISO_PIN PA6 // SPI1 MISO
|
||||
#define MOSI_PIN PA7 // SPI1 MOSI
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA4
|
||||
|
||||
/**
|
||||
* -------------------------------------BTT002 V1.0-----------------------------------------------
|
||||
* _____ _____ |
|
||||
* PA3 | · · | GND 5V | · · | GND |
|
||||
* NRESET | · · | PC4(SD_DET) (LCD_D7) PE13 | · · | PE12 (LCD_D6) |
|
||||
* (MOSI)PA7 | · · | PB0(BTN_EN2) (LCD_D5) PE11 | · · | PE10 (LCD_D4) |
|
||||
* (SD_SS)PA4 | · · | PC5(BTN_EN1) (LCD_RS) PE8 | · · | PE9 (LCD_EN) |
|
||||
* (SCK)PA5 | · · | PA6(MISO) (BTN_ENC) PB1 | · · | PE7 (BEEPER) |
|
||||
*  ̄ ̄  ̄ ̄ |
|
||||
* EXP2 EXP1 |
|
||||
* ---------------------------------------------------------------------------------------------
|
||||
* -----------------------------------BTT002 V1.0----------------------------------------
|
||||
* ------ ------ |
|
||||
* PA3 | 1 2 | GND 5V | 1 2 | GND |
|
||||
* NRESET | 3 4 | PC4 (SD_DET) (LCD_D7) PE13 | 3 4 | PE12 (LCD_D6) |
|
||||
* (MOSI) PA7 | 5 6 | PB0 (BTN_EN2) (LCD_D5) PE11 | 5 6 | PE10 (LCD_D4) |
|
||||
* (SD_SS) PA4 | 7 8 | PC5 (BTN_EN1) (LCD_RS) PE8 | 7 8 | PE9 (LCD_EN) |
|
||||
* (SCK) PA5 | 9 10 | PA6 (MISO) (BTN_ENC) PB1 | 9 10 | PE7 (BEEPER) |
|
||||
* ------ ------ |
|
||||
* EXP2 EXP1 |
|
||||
* --------------------------------------------------------------------------------------
|
||||
*/
|
||||
#define EXP1_03_PIN PE13
|
||||
#define EXP1_04_PIN PE12
|
||||
#define EXP1_05_PIN PE11
|
||||
#define EXP1_06_PIN PE10
|
||||
#define EXP1_07_PIN PE8
|
||||
#define EXP1_08_PIN PE9
|
||||
#define EXP1_09_PIN PB1
|
||||
#define EXP1_10_PIN PE7
|
||||
|
||||
#define EXP2_01_PIN PA3
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN PC4
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PB0
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PC5
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
// HAL SPI1 pins
|
||||
#define SD_SCK_PIN EXP2_09_PIN // SPI1 SCLK
|
||||
#define SD_SS_PIN EXP2_07_PIN // SPI1 SSEL
|
||||
#define SD_MISO_PIN EXP2_10_PIN // SPI1 MISO
|
||||
#define SD_MOSI_PIN EXP2_05_PIN // SPI1 MOSI
|
||||
|
||||
#define SDSS EXP2_07_PIN
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PE7
|
||||
#define BTN_ENC PB1
|
||||
#if HAS_WIRED_LCD
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PE12
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 PE9
|
||||
#define BTN_EN2 PE10
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE PE13
|
||||
#define LCD_PINS_D4 PE11
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PE8
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 PC5
|
||||
#define BTN_EN2 PB0
|
||||
#define SD_DETECT_PIN PC4
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_SDSS PA4
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE PE9
|
||||
#define LCD_PINS_D4 PE10
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_MISO EXP2_10_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#define FORCE_SOFT_SPI
|
||||
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PE11
|
||||
#define LCD_PINS_D6 PE12
|
||||
#define LCD_PINS_D7 PE13
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
//
|
||||
// RGB LEDs
|
||||
|
379
Marlin/src/pins/stm32f4/pins_BTT_E3_RRF.h
Normal file
379
Marlin/src/pins/stm32f4/pins_BTT_E3_RRF.h
Normal file
@@ -0,0 +1,379 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if NOT_TARGET(STM32F4)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "BTT E3 RRF"
|
||||
#endif
|
||||
|
||||
// Add-on board for IDEX conversion
|
||||
//#define BTT_E3_RRF_IDEX_BOARD
|
||||
|
||||
// Onboard I2C EEPROM
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PB0 // SERVOS
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PC0 // X-STOP
|
||||
#define Y_STOP_PIN PC1 // Y-STOP
|
||||
#define Z_STOP_PIN PC2 // Z-STOP
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#if X2_USE_ENDSTOP == _XMAX_
|
||||
#define X_MAX_PIN FPC2_PIN // X2-STOP
|
||||
#elif X2_USE_ENDSTOP == _XMIN_
|
||||
#define X_MIN_PIN FPC2_PIN // X2-STOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe must be this pin
|
||||
//
|
||||
#define Z_MIN_PROBE_PIN PC5 // PROBE
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PC3 // E0-STOP
|
||||
#endif
|
||||
|
||||
#if !defined(FIL1_RUNOUT2_PIN) && ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define FIL_RUNOUT2_PIN FPC3_PIN // E1-STOP
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power-loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PE0 // Power Loss Detection: PWR-DET
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PD7
|
||||
#define X_STEP_PIN PD5
|
||||
#define X_DIR_PIN PD4
|
||||
|
||||
#define Y_ENABLE_PIN PD3
|
||||
#define Y_STEP_PIN PD0
|
||||
#define Y_DIR_PIN PA15
|
||||
|
||||
#define Z_ENABLE_PIN PD14
|
||||
#define Z_STEP_PIN PC6
|
||||
#define Z_DIR_PIN PC7
|
||||
|
||||
#define E0_ENABLE_PIN PD10
|
||||
#define E0_STEP_PIN PD12
|
||||
#define E0_DIR_PIN PD13
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define E1_ENABLE_PIN FPC7_PIN // E1EN
|
||||
#define E1_STEP_PIN FPC5_PIN // E1STP
|
||||
#define E1_DIR_PIN FPC4_PIN // E1DIR
|
||||
|
||||
#define X2_ENABLE_PIN FPC13_PIN // X2EN
|
||||
#define X2_STEP_PIN FPC11_PIN // X2STP
|
||||
#define X2_DIR_PIN FPC10_PIN // X2DIR
|
||||
#endif
|
||||
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*/
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN PD6
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PD1
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD15
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD11
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define X2_SERIAL_TX_PIN FPC12_PIN // X2UART
|
||||
#define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN FPC6_PIN // E1UART
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PA1 // Analog Input "TB"
|
||||
#define TEMP_0_PIN PA0 // Analog Input "TH0"
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define TEMP_1_PIN FPC9_PIN // Analog Input "TH1"
|
||||
#define PT100_PIN FPC8_PIN // Analog Input "PT100" (INA826)
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN PB4 // "HB"
|
||||
#define HEATER_0_PIN PB3 // "HE0"
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define HEATER_1_PIN FPC16_PIN // "HE1"
|
||||
#endif
|
||||
|
||||
#define FAN_PIN PB5 // "FAN0"
|
||||
|
||||
#ifndef CONTROLLER_FAN_PIN
|
||||
#define CONTROLLER_FAN_PIN PB6 // "FAN1"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define FAN1_PIN FPC15_PIN // "FAN0" in IDEX board
|
||||
#define FAN2_PIN FPC14_PIN // "FAN1" in IDEX board
|
||||
#else
|
||||
//#define FAN1_PIN PB6 // "FAN1"
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#ifndef NEOPIXEL_PIN
|
||||
#define NEOPIXEL_PIN PB7 // LED driving pin
|
||||
#endif
|
||||
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PE1 // Power Supply Control
|
||||
#endif
|
||||
|
||||
/**
|
||||
* BTT E3 RRF
|
||||
* -----
|
||||
* 5V | 1 2 | GND
|
||||
* (LCD_EN) PE11 | 3 4 | PB1 (LCD_RS)
|
||||
* (LCD_D4) PE10 | 5 6 PB2 (BTN_EN2)
|
||||
* RESET | 7 8 | PE7 (BTN_EN1)
|
||||
* (BTN_ENC) PE9 | 9 10| PE8 (BEEPER)
|
||||
* -----
|
||||
* EXP1
|
||||
*/
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define BEEPER_PIN PE8
|
||||
#define BTN_ENC PE9
|
||||
|
||||
#define BTN_EN1 PE7
|
||||
#define BTN_EN2 PB2
|
||||
|
||||
#define LCD_PINS_RS PB1
|
||||
#define LCD_PINS_ENABLE PE11
|
||||
#define LCD_PINS_D4 PE10
|
||||
|
||||
#elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_E3_RRF.h' for details. Comment out this line to continue."
|
||||
|
||||
#define LCD_PINS_RS PE10
|
||||
#define LCD_PINS_ENABLE PE9
|
||||
#define LCD_PINS_D4 PB1
|
||||
#define LCD_PINS_D5 PB2
|
||||
#define LCD_PINS_D6 PE7
|
||||
#define LCD_PINS_D7 PE8
|
||||
#define ADC_KEYPAD_PIN PB0 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
|
||||
|
||||
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
|
||||
|
||||
#define BTN_ENC PE9
|
||||
#define BTN_EN1 PE7
|
||||
#define BTN_EN2 PB2
|
||||
|
||||
#define DOGLCD_CS PB1
|
||||
#define DOGLCD_A0 PE10
|
||||
#define DOGLCD_SCK PE8
|
||||
#define DOGLCD_MOSI PE11
|
||||
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
|
||||
#error "CAUTION! TFTGLCD_PANEL_SPI requires wiring modifications. See 'pins_BTT_E3_RRF.h' for details. Comment out this line to continue."
|
||||
|
||||
/**
|
||||
* TFTGLCD_PANEL_SPI display pinout
|
||||
*
|
||||
* Board Display
|
||||
* ----- -----
|
||||
* 5V | 1 2 | GND (SPI1-MISO) MISO | 1 2 | SCK (SPI1-SCK)
|
||||
* (FREE) PE11 | 3 4 | PB1 (LCD_CS) (PE7) LCD_CS | 3 4 | SD_CS (PB2)
|
||||
* (FREE) PE10 | 5 6 | PB2 (SD_CS) (FREE) | 5 6 | MOSI (SPI1-MOSI)
|
||||
* RESET | 7 8 | PE7 (MOD_RESET) (PE8) SD_DET | 7 8 | (FREE)
|
||||
* (BEEPER) PE9 | 9 10| PE8 (SD_DET) GND | 9 10| 5V
|
||||
* ----- -----
|
||||
* EXP1 EXP1
|
||||
*
|
||||
* Needs custom cable:
|
||||
*
|
||||
* Board Adapter Display
|
||||
* _________
|
||||
* EXP1-1 ----------- EXP1-10
|
||||
* EXP1-2 ----------- EXP1-9
|
||||
* SPI1-4 ----------- EXP1-6
|
||||
* EXP1-4 ----------- FREE
|
||||
* SPI1-3 ----------- EXP1-2
|
||||
* EXP1-6 ----------- EXP1-4
|
||||
* EXP1-7 ----------- FREE
|
||||
* EXP1-8 ----------- EXP1-3
|
||||
* SPI1-1 ----------- EXP1-1
|
||||
* EXP1-10 ----------- EXP1-7
|
||||
*/
|
||||
|
||||
#define TFTGLCD_CS PE7
|
||||
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error "Only CR10_STOCKDISPLAY, ZONESTAR_LCD, ENDER2_STOCKDISPLAY, MKS_MINI_12864, and TFTGLCD_PANEL_(SPI|I2C) are currently supported on the BTT_E3_RRF."
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if BOTH(TOUCH_UI_FTDI_EVE, LCD_FYSETC_TFT81050)
|
||||
|
||||
#error "CAUTION! LCD_FYSETC_TFT81050 requires wiring modifications. See 'pins_BTT_E3_RRF.h' for details. Comment out this line to continue."
|
||||
|
||||
/** FYSETC TFT TFT81050 display pinout
|
||||
*
|
||||
* Board Display
|
||||
* ----- -----
|
||||
* 5V | 1 2 | GND (SPI1-MISO) MISO | 1 2 | SCK (SPI1-SCK)
|
||||
* (FREE) PE11 | 3 4 | PB1 (LCD_CS) (PE7) MOD_RESET | 3 4 | SD_CS (PB2)
|
||||
* (FREE) PE10 | 5 6 | PB2 (SD_CS) (PB1) LCD_CS | 5 6 | MOSI (SPI1-MOSI)
|
||||
* RESET | 7 8 | PE7 (MOD_RESET) (PE8) SD_DET | 7 8 | RESET
|
||||
* (BEEPER) PE9 | 9 10| PE8 (SD_DET) GND | 9 10| 5V
|
||||
* ----- -----
|
||||
* EXP1 EXP1
|
||||
*
|
||||
* Needs custom cable:
|
||||
*
|
||||
* Board Adapter Display
|
||||
* _________
|
||||
* EXP1-1 ----------- EXP1-10
|
||||
* EXP1-2 ----------- EXP1-9
|
||||
* SPI1-4 ----------- EXP1-6
|
||||
* EXP1-4 ----------- EXP1-5
|
||||
* SPI1-3 ----------- EXP1-2
|
||||
* EXP1-6 ----------- EXP1-4
|
||||
* EXP1-7 ----------- EXP1-8
|
||||
* EXP1-8 ----------- EXP1-3
|
||||
* SPI1-1 ----------- EXP1-1
|
||||
* EXP1-10 ----------- EXP1-7
|
||||
*/
|
||||
|
||||
#define CLCD_SPI_BUS 1 // SPI1 connector
|
||||
|
||||
#define BEEPER_PIN PE9
|
||||
|
||||
#define CLCD_MOD_RESET PE7
|
||||
#define CLCD_SPI_CS PB1
|
||||
|
||||
#endif // TOUCH_UI_FTDI_EVE && LCD_FYSETC_TFT81050
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
#define SDIO_D0_PIN PC8
|
||||
#define SDIO_D1_PIN PC9
|
||||
#define SDIO_D2_PIN PC10
|
||||
#define SDIO_D3_PIN PC11
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
//#define SDIO_CLOCK 48000000
|
||||
#define SD_DETECT_PIN PC4
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "SD CUSTOM_CABLE is not compatible with BTT E3 RRF."
|
||||
#endif
|
||||
|
||||
//
|
||||
// WIFI
|
||||
//
|
||||
|
||||
#define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
|
||||
#define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
|
||||
#define ESP_WIFI_MODULE_RESET_PIN PA4
|
||||
#define ESP_WIFI_MODULE_ENABLE_PIN PA5
|
||||
#define ESP_WIFI_MODULE_GPIO0_PIN PA6
|
||||
|
||||
#if ENABLED(BTT_E3_RRF_IDEX_BOARD)
|
||||
#define FPC2_PIN PB11
|
||||
#define FPC3_PIN PB10
|
||||
#define FPC4_PIN PE12
|
||||
#define FPC5_PIN PE13
|
||||
#define FPC6_PIN PE14
|
||||
#define FPC7_PIN PE15
|
||||
#define FPC8_PIN PA3
|
||||
#define FPC9_PIN PA2
|
||||
#define FPC10_PIN PA8
|
||||
#define FPC11_PIN PC15
|
||||
#define FPC12_PIN PC14
|
||||
#define FPC13_PIN PC13
|
||||
#define FPC14_PIN PE6
|
||||
#define FPC15_PIN PE5
|
||||
#define FPC16_PIN PE4
|
||||
#define FPC17_PIN PE3
|
||||
#endif
|
448
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
Executable file → Normal file
448
Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
Executable file → Normal file
@@ -16,57 +16,105 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#include "env_validate.h"
|
||||
|
||||
#if E_STEPPERS > MAX_E_STEPPERS
|
||||
#error "Marlin extruder/hotends limit! Increase MAX_E_STEPPERS to continue."
|
||||
#elif HOTENDS > 8 || E_STEPPERS > 8
|
||||
#error "BIGTREE GTR V1.0 supports up to 8 hotends / E-steppers."
|
||||
#elif HOTENDS > MAX_EXTRUDERS || E_STEPPERS > MAX_EXTRUDERS
|
||||
#error "Marlin extruder/hotends limit! Increase MAX_EXTRUDERS to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE GTR 1.0"
|
||||
#define BOARD_INFO_NAME "BTT GTR V1.0"
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define I2C_EEPROM
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
// Onboard I2C EEPROM
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB (24C64 ... 64Kb = 8KB)
|
||||
|
||||
#define TP // Enable to define servo and probe pins
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
#define M5_EXTENDER // The M5 extender is attached
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#if ENABLED(TP)
|
||||
#define SERVO0_PIN PB11
|
||||
#define SERVO0_PIN PB11 // BLTOUCH
|
||||
#define SOL0_PIN PC7 // Toolchanger
|
||||
|
||||
#if ENABLED(TOOL_SENSOR)
|
||||
#define TOOL_SENSOR1_PIN PH6
|
||||
#define TOOL_SENSOR2_PIN PI4
|
||||
//#define TOOL_SENSOR3_PIN PF4
|
||||
#else
|
||||
#define PS_ON_PIN PH6
|
||||
#endif
|
||||
|
||||
#define PS_ON_PIN PH6
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
//
|
||||
#define X_DIAG_PIN PF2 // X-
|
||||
#define Y_DIAG_PIN PC13 // Y-
|
||||
#define Z_DIAG_PIN PE0 // Z-
|
||||
#define E0_DIAG_PIN PG14 // X+
|
||||
#define E1_DIAG_PIN PG9 // Y+
|
||||
#define E2_DIAG_PIN PD3 // Z+
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PF2
|
||||
#define X_MAX_PIN PG14
|
||||
#define Y_MIN_PIN PC13
|
||||
#define Y_MAX_PIN PG9
|
||||
#define Z_MIN_PIN PE0
|
||||
#define Z_MAX_PIN PD3
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN E0_DIAG_PIN // X+
|
||||
#else
|
||||
#define X_MIN_PIN E0_DIAG_PIN // X+
|
||||
#endif
|
||||
#else
|
||||
#define X_MIN_PIN X_DIAG_PIN // X-
|
||||
#define X_MAX_PIN E0_DIAG_PIN // X+
|
||||
#endif
|
||||
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN E1_DIAG_PIN // Y+
|
||||
#else
|
||||
#define Y_MIN_PIN E1_DIAG_PIN // Y+
|
||||
#endif
|
||||
#else
|
||||
#define Y_MIN_PIN Y_DIAG_PIN // Y-
|
||||
#define Y_MAX_PIN E1_DIAG_PIN // Y+
|
||||
#endif
|
||||
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN E2_DIAG_PIN // Z+
|
||||
#else
|
||||
#define Z_MIN_PIN E2_DIAG_PIN // Z+
|
||||
#endif
|
||||
#else
|
||||
#define Z_MIN_PIN Z_DIAG_PIN // Z-
|
||||
#define Z_MAX_PIN E2_DIAG_PIN // Z+
|
||||
#endif
|
||||
|
||||
//
|
||||
// Pins on the extender
|
||||
//
|
||||
//#define X_MIN_PIN PI4
|
||||
//#define X2_MIN_PIN PF12
|
||||
//#define Y_MIN_PIN PF4
|
||||
//#define Y2_MIN_PIN PI7
|
||||
//#define Z_MIN_PIN PF6
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
#define X2_STOP_PIN PI4 // M5 M1_STOP
|
||||
#define Y2_STOP_PIN PF12 // M5 M5_STOP
|
||||
#define Z2_STOP_PIN PF4 // M5 M2_STOP
|
||||
#define Z3_STOP_PIN PI7 // M5 M4_STOP
|
||||
#define Z4_STOP_PIN PF6 // M5 M3_STOP
|
||||
#endif
|
||||
|
||||
#if ENABLED(TP) && !defined(Z_MIN_PROBE_PIN)
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PH11 // Z Probe must be PH11
|
||||
#endif
|
||||
|
||||
@@ -115,39 +163,43 @@
|
||||
#define E2_CS_PIN PC12
|
||||
#endif
|
||||
|
||||
#define E3_STEP_PIN PF3
|
||||
#define E3_DIR_PIN PG3
|
||||
#define E3_ENABLE_PIN PF8
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PG4
|
||||
#endif
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
|
||||
#define E4_STEP_PIN PD14
|
||||
#define E4_DIR_PIN PD11
|
||||
#define E4_ENABLE_PIN PG2
|
||||
#ifndef E4_CS_PIN
|
||||
#define E4_CS_PIN PE15
|
||||
#endif
|
||||
#define E3_STEP_PIN PF3
|
||||
#define E3_DIR_PIN PG3
|
||||
#define E3_ENABLE_PIN PF8
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PG4
|
||||
#endif
|
||||
|
||||
#define E5_STEP_PIN PE12
|
||||
#define E5_DIR_PIN PE10
|
||||
#define E5_ENABLE_PIN PF14
|
||||
#ifndef E5_CS_PIN
|
||||
#define E5_CS_PIN PE7
|
||||
#endif
|
||||
#define E4_STEP_PIN PD14
|
||||
#define E4_DIR_PIN PD11
|
||||
#define E4_ENABLE_PIN PG2
|
||||
#ifndef E4_CS_PIN
|
||||
#define E4_CS_PIN PE15
|
||||
#endif
|
||||
|
||||
#define E6_STEP_PIN PG0
|
||||
#define E6_DIR_PIN PG1
|
||||
#define E6_ENABLE_PIN PE8
|
||||
#ifndef E6_CS_PIN
|
||||
#define E6_CS_PIN PF15
|
||||
#endif
|
||||
#define E5_STEP_PIN PE12
|
||||
#define E5_DIR_PIN PE10
|
||||
#define E5_ENABLE_PIN PF14
|
||||
#ifndef E5_CS_PIN
|
||||
#define E5_CS_PIN PE7
|
||||
#endif
|
||||
|
||||
#define E6_STEP_PIN PG0
|
||||
#define E6_DIR_PIN PG1
|
||||
#define E6_ENABLE_PIN PE8
|
||||
#ifndef E6_CS_PIN
|
||||
#define E6_CS_PIN PF15
|
||||
#endif
|
||||
|
||||
#define E7_STEP_PIN PH12
|
||||
#define E7_DIR_PIN PH15
|
||||
#define E7_ENABLE_PIN PI0
|
||||
#ifndef E7_CS_PIN
|
||||
#define E7_CS_PIN PH14
|
||||
#endif
|
||||
|
||||
#define E7_STEP_PIN PH12
|
||||
#define E7_DIR_PIN PH15
|
||||
#define E7_ENABLE_PIN PI0
|
||||
#ifndef E7_CS_PIN
|
||||
#define E7_CS_PIN PH14
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -172,7 +224,7 @@
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
@@ -181,50 +233,49 @@
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
//#define E5_HARDWARE_SERIAL Serial1
|
||||
//#define E6_HARDWARE_SERIAL Serial1
|
||||
//#define E7_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1 // M5 MOTOR 1
|
||||
//#define E4_HARDWARE_SERIAL Serial1 // M5 MOTOR 2
|
||||
//#define E5_HARDWARE_SERIAL Serial1 // M5 MOTOR 3
|
||||
//#define E6_HARDWARE_SERIAL Serial1 // M5 MOTOR 4
|
||||
//#define E7_HARDWARE_SERIAL Serial1 // M5 MOTOR 5
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC14
|
||||
#define X_SERIAL_RX_PIN PC14
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE1
|
||||
#define Y_SERIAL_RX_PIN PE1
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PB5
|
||||
#define Z_SERIAL_RX_PIN PB5
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PG10
|
||||
#define E0_SERIAL_RX_PIN PG10
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD4
|
||||
#define E1_SERIAL_RX_PIN PD4
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PC12
|
||||
#define E2_SERIAL_RX_PIN PC12
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
#define E3_SERIAL_TX_PIN PG4
|
||||
#define E3_SERIAL_RX_PIN PG4
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
#define E3_SERIAL_TX_PIN PG4
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
|
||||
#define E4_SERIAL_TX_PIN PE15
|
||||
#define E4_SERIAL_RX_PIN PE15
|
||||
#define E4_SERIAL_TX_PIN PE15
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
|
||||
#define E5_SERIAL_TX_PIN PE7
|
||||
#define E5_SERIAL_RX_PIN PE7
|
||||
#define E5_SERIAL_TX_PIN PE7
|
||||
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
|
||||
|
||||
#define E6_SERIAL_TX_PIN PF15
|
||||
#define E6_SERIAL_RX_PIN PF15
|
||||
#define E6_SERIAL_TX_PIN PF15
|
||||
#define E6_SERIAL_RX_PIN E6_SERIAL_TX_PIN
|
||||
|
||||
#define E7_SERIAL_TX_PIN PH14
|
||||
#define E7_SERIAL_RX_PIN PH14
|
||||
#define E7_SERIAL_TX_PIN PH14
|
||||
#define E7_SERIAL_RX_PIN E7_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -234,27 +285,29 @@
|
||||
#define TEMP_1_PIN PC2 // T2 <-> E1
|
||||
#define TEMP_2_PIN PC3 // T3 <-> E2
|
||||
|
||||
#define TEMP_3_PIN PA3 // T4 <-> E3
|
||||
#define TEMP_4_PIN PF9 // T5 <-> E4
|
||||
#define TEMP_5_PIN PF10 // T6 <-> E5
|
||||
#define TEMP_6_PIN PF7 // T7 <-> E6
|
||||
#define TEMP_7_PIN PF5 // T8 <-> E7
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
#define TEMP_3_PIN PA3 // M5 TEMP1
|
||||
#define TEMP_4_PIN PF9 // M5 TEMP2
|
||||
#define TEMP_5_PIN PF10 // M5 TEMP3
|
||||
#define TEMP_6_PIN PF7 // M5 TEMP4
|
||||
#define TEMP_7_PIN PF5 // M5 TEMP5
|
||||
#endif
|
||||
|
||||
#define TEMP_BED_PIN PC0 // T0 <-> Bed
|
||||
|
||||
// SPI for Max6675 or Max31855 Thermocouple
|
||||
// SPI for MAX Thermocouple
|
||||
// Uses a separate SPI bus
|
||||
// If you have a two-way thermocouple, you can customize two THERMO_CSx_PIN pins (x:1~2)
|
||||
// If you have a two-way thermocouple, you can customize two TEMP_x_CS_PIN pins (x:0~1)
|
||||
|
||||
#define THERMO_SCK_PIN PI1 // SCK
|
||||
#define THERMO_DO_PIN PI2 // MISO
|
||||
#define THERMO_CS1_PIN PH9 // CS1
|
||||
#define THERMO_CS2_PIN PH2 // CS2
|
||||
#define TEMP_0_CS_PIN PH9 // GTR K-TEMP
|
||||
#define TEMP_0_SCK_PIN PI1 // SCK
|
||||
#define TEMP_0_MISO_PIN PI2 // MISO
|
||||
//#define TEMP_0_MOSI_PIN ... // For MAX31865
|
||||
|
||||
#define MAX6675_SS_PIN THERMO_CS1_PIN
|
||||
#define MAX6675_SS2_PIN THERMO_CS2_PIN
|
||||
#define MAX6675_SCK_PIN THERMO_SCK_PIN
|
||||
#define MAX6675_DO_PIN THERMO_DO_PIN
|
||||
#define TEMP_1_CS_PIN PH2 // M5 K-TEMP
|
||||
#define TEMP_1_SCK_PIN TEMP_0_SCK_PIN
|
||||
#define TEMP_1_MISO_PIN TEMP_0_MISO_PIN
|
||||
//#define TEMP_1_MOSI_PIN TEMP_0_MOSI_PIN
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
@@ -263,11 +316,13 @@
|
||||
#define HEATER_1_PIN PA1 // Heater1
|
||||
#define HEATER_2_PIN PB0 // Heater2
|
||||
|
||||
#define HEATER_3_PIN PD15 // Heater3
|
||||
#define HEATER_4_PIN PD13 // Heater4
|
||||
#define HEATER_5_PIN PD12 // Heater5
|
||||
#define HEATER_6_PIN PE13 // Heater6
|
||||
#define HEATER_7_PIN PI6 // Heater7
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
#define HEATER_3_PIN PD15 // M5 HEAT1
|
||||
#define HEATER_4_PIN PD13 // M5 HEAT2
|
||||
#define HEATER_5_PIN PD12 // M5 HEAT3
|
||||
#define HEATER_6_PIN PE13 // M5 HEAT4
|
||||
#define HEATER_7_PIN PI6 // M5 HEAT5
|
||||
#endif
|
||||
|
||||
#define HEATER_BED_PIN PA2 // Hotbed
|
||||
|
||||
@@ -275,117 +330,166 @@
|
||||
#define FAN1_PIN PE6 // Fan1
|
||||
#define FAN2_PIN PC8 // Fan2
|
||||
|
||||
#define FAN3_PIN PI5 // Fan3
|
||||
#define FAN4_PIN PE9 // Fan4
|
||||
#define FAN5_PIN PE11 // Fan5
|
||||
//#define FAN6_PIN PC9 // Fan6
|
||||
//#define FAN7_PIN PE14 // Fan7
|
||||
|
||||
//
|
||||
// By default the onboard SD (SPI1) is enabled
|
||||
//
|
||||
#define CUSTOM_SPI_PINS
|
||||
#if DISABLED(CUSTOM_SPI_PINS)
|
||||
#define SDSS PB12
|
||||
#if ENABLED(M5_EXTENDER)
|
||||
#define FAN3_PIN PI5 // M5 FAN1
|
||||
#define FAN4_PIN PE9 // M5 FAN2
|
||||
#define FAN5_PIN PE11 // M5 FAN3
|
||||
//#define FAN6_PIN PC9 // M5 FAN4
|
||||
//#define FAN7_PIN PE14 // M5 FAN5
|
||||
#endif
|
||||
|
||||
// HAL SPI1 pins group
|
||||
#if ENABLED(CUSTOM_SPI_PINS)
|
||||
#define SDSS PA4
|
||||
#define SD_DETECT_PIN PC4
|
||||
#define LCD_SDSS PA4
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SS_PIN PA4 // Chip select for SD card used by Marlin
|
||||
//
|
||||
// By default the LCD SD (SPI2) is enabled
|
||||
// Onboard SD is on a completely separate SPI bus, and requires
|
||||
// overriding pins to access.
|
||||
//
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SDSS EXP2_07_PIN
|
||||
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
|
||||
#define SDSS PA4
|
||||
#define SD_SS_PIN SDSS
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PC4
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | · · | GND 5V | · · | GND
|
||||
* RESET | · · | PB10(SD_DETECT) (LCD_D7) PG5 | · · | PG6 (LCD_D6)
|
||||
* (MOSI)PB15 | · · | PH10(BTN_EN2) (LCD_D5) PG7 | · · | PG8 (LCD_D4)
|
||||
* (SD_SS)PB12 | · · | PD10(BTN_EN1) (LCD_RS) PA8 | · · | PC10 (LCD_EN)
|
||||
* (SCK)PB13 | · · | PB14(MISO) (BTN_ENC) PA15 | · · | PC11 (BEEPER)
|
||||
*  ̄ ̄  ̄ ̄
|
||||
* EXP2 EXP1
|
||||
* ------ ------
|
||||
* NC | 1 2 | GND 5V | 1 2 | GND
|
||||
* RESET | 3 4 | PB10 (SD_DETECT) (LCD_D7) PG5 | 3 4 | PG6 (LCD_D6)
|
||||
* (MOSI) PB15 | 5 6 | PH10 (BTN_EN2) (LCD_D5) PG7 | 5 6 | PG8 (LCD_D4)
|
||||
* (SD_SS) PB12 | 7 8 | PD10 (BTN_EN1) (LCD_RS) PA8 | 7 8 | PC10 (LCD_EN)
|
||||
* (SCK) PB13 | 9 10 | PB14 (MISO) (BTN_ENC) PA15 | 9 10 | PC11 (BEEPER)
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
#define EXP1_03_PIN PG5
|
||||
#define EXP1_04_PIN PG6
|
||||
#define EXP1_05_PIN PG7
|
||||
#define EXP1_06_PIN PG8
|
||||
#define EXP1_07_PIN PA8
|
||||
#define EXP1_08_PIN PC10
|
||||
#define EXP1_09_PIN PA15
|
||||
#define EXP1_10_PIN PC11
|
||||
|
||||
#define EXP2_04_PIN PB10
|
||||
#define EXP2_05_PIN PB15
|
||||
#define EXP2_06_PIN PH10
|
||||
#define EXP2_07_PIN PB12
|
||||
#define EXP2_08_PIN PD10
|
||||
#define EXP2_09_PIN PB13
|
||||
#define EXP2_10_PIN PB14
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PC11
|
||||
#define BTN_ENC PA15
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI)
|
||||
|
||||
#define TFT_CS_PIN EXP2_07_PIN
|
||||
#define TFT_A0_PIN EXP2_04_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_04_PIN
|
||||
#define TOUCH_MISO_PIN EXP1_05_PIN
|
||||
#define TOUCH_MOSI_PIN EXP1_08_PIN
|
||||
#define TOUCH_SCK_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_07_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define LCD_PINS_RS PA8
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define BTN_EN1 PD10
|
||||
#define BTN_EN2 PH10
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE PG7
|
||||
#define LCD_PINS_D4 PG8
|
||||
|
||||
//#undef ST7920_DELAY_1
|
||||
//#undef ST7920_DELAY_2
|
||||
//#undef ST7920_DELAY_3
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SOFTWARE_SPI
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PA8
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 PD10
|
||||
#define BTN_EN2 PH10
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#if DISABLED(CUSTOM_SPI_PINS)
|
||||
#define SD_DETECT_PIN PB10
|
||||
#define LCD_SDSS PB12
|
||||
#endif
|
||||
|
||||
#define LCD_PINS_ENABLE PC10
|
||||
#define LCD_PINS_D4 PG8
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS PC10
|
||||
#define DOGLCD_A0 PA8
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SOFTWARE_SPI
|
||||
#endif
|
||||
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN PG8 // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PG7
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PG6
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PG5
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PF13
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PG7
|
||||
#define LCD_PINS_D6 PG6
|
||||
#define LCD_PINS_D7 PG5
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
|
||||
//#define DOGLCD_CS PB12
|
||||
//#define DOGLCD_A0 PA8
|
||||
//#define LCD_PINS_DC PB14
|
||||
//#define DOGLCD_MOSI PB15
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#undef TP
|
||||
#undef M5_EXTENDER
|
||||
|
26
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_0.h
Normal file
26
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_0.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "BTT OCTOPUS V1.0"
|
||||
|
||||
#include "pins_BTT_OCTOPUS_V1_common.h"
|
26
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_1.h
Normal file
26
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_1.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "BTT OCTOPUS V1.1"
|
||||
|
||||
#include "pins_BTT_OCTOPUS_V1_common.h"
|
527
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h
Normal file
527
Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h
Normal file
@@ -0,0 +1,527 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
// Onboard I2C EEPROM
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x8000 // 32KB (24C32A)
|
||||
#define I2C_SCL_PIN PB8
|
||||
#define I2C_SDA_PIN PB9
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
// Avoid conflict with TIMER_TONE
|
||||
#define STEP_TIMER 10
|
||||
|
||||
//
|
||||
// Servos
|
||||
#define SERVO0_PIN PB6
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN PA13
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
//
|
||||
#define X_DIAG_PIN PG6 // X-STOP
|
||||
#define Y_DIAG_PIN PG9 // Y-STOP
|
||||
#define Z_DIAG_PIN PG10 // Z-STOP
|
||||
#define Z2_DIAG_PIN PG11 // Z2-STOP
|
||||
#define E0_DIAG_PIN PG12 // E0DET
|
||||
#define E1_DIAG_PIN PG13 // E1DET
|
||||
#define E2_DIAG_PIN PG14 // E2DET
|
||||
#define E3_DIAG_PIN PG15 // E3DET
|
||||
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PB7
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN E0_DIAG_PIN // E0DET
|
||||
#else
|
||||
#define X_MIN_PIN E0_DIAG_PIN // E0DET
|
||||
#endif
|
||||
#elif EITHER(X_DUAL_ENDSTOPS, DUAL_X_CARRIAGE)
|
||||
#ifndef X_MIN_PIN
|
||||
#define X_MIN_PIN X_DIAG_PIN // X-STOP
|
||||
#endif
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN E0_DIAG_PIN // E0DET
|
||||
#endif
|
||||
#else
|
||||
#define X_STOP_PIN X_DIAG_PIN // X-STOP
|
||||
#endif
|
||||
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN E1_DIAG_PIN // E1DET
|
||||
#else
|
||||
#define Y_MIN_PIN E1_DIAG_PIN // E1DET
|
||||
#endif
|
||||
#elif ENABLED(Y_DUAL_ENDSTOPS)
|
||||
#ifndef Y_MIN_PIN
|
||||
#define Y_MIN_PIN Y_DIAG_PIN // Y-STOP
|
||||
#endif
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN E1_DIAG_PIN // E1DET
|
||||
#endif
|
||||
#else
|
||||
#define Y_STOP_PIN Y_DIAG_PIN // Y-STOP
|
||||
#endif
|
||||
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN E2_DIAG_PIN // PWRDET
|
||||
#else
|
||||
#define Z_MIN_PIN E2_DIAG_PIN // PWRDET
|
||||
#endif
|
||||
#elif ENABLED(Z_MULTI_ENDSTOPS)
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN Z_DIAG_PIN // Z-STOP
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN E2_DIAG_PIN // PWRDET
|
||||
#endif
|
||||
#else
|
||||
#define Z_STOP_PIN Z_DIAG_PIN // Z-STOP
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PG12 // E0DET
|
||||
#define FIL_RUNOUT2_PIN PG13 // E1DET
|
||||
#define FIL_RUNOUT3_PIN PG14 // E2DET
|
||||
#define FIL_RUNOUT4_PIN PG15 // E3DET
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PE11 // PS-ON
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PC0 // PWRDET
|
||||
#endif
|
||||
|
||||
//
|
||||
// NeoPixel LED
|
||||
//
|
||||
#ifndef NEOPIXEL_PIN
|
||||
#define NEOPIXEL_PIN PB0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PF13 // MOTOR 0
|
||||
#define X_DIR_PIN PF12
|
||||
#define X_ENABLE_PIN PF14
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PC4
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PG0 // MOTOR 1
|
||||
#define Y_DIR_PIN PG1
|
||||
#define Y_ENABLE_PIN PF15
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PD11
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PF11 // MOTOR 2
|
||||
#define Z_DIR_PIN PG3
|
||||
#define Z_ENABLE_PIN PG5
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PC6
|
||||
#endif
|
||||
|
||||
#define Z2_STEP_PIN PG4 // MOTOR 3
|
||||
#define Z2_DIR_PIN PC1
|
||||
#define Z2_ENABLE_PIN PA0
|
||||
#ifndef Z2_CS_PIN
|
||||
#define Z2_CS_PIN PC7
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PF9 // MOTOR 4
|
||||
#define E0_DIR_PIN PF10
|
||||
#define E0_ENABLE_PIN PG2
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PF2
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PC13 // MOTOR 5
|
||||
#define E1_DIR_PIN PF0
|
||||
#define E1_ENABLE_PIN PF1
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PE4
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PE2 // MOTOR 6
|
||||
#define E2_DIR_PIN PE3
|
||||
#define E2_ENABLE_PIN PD4
|
||||
#ifndef E2_CS_PIN
|
||||
|
||||
#define E2_CS_PIN PE1
|
||||
#endif
|
||||
|
||||
#define E3_STEP_PIN PE6 // MOTOR 7
|
||||
#define E3_DIR_PIN PA14
|
||||
#define E3_ENABLE_PIN PE0
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PD3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PF3 // TB
|
||||
#if TEMP_SENSOR_0 == 20
|
||||
#define TEMP_0_PIN PF8 // PT100 Connector
|
||||
#else
|
||||
#define TEMP_0_PIN PF4 // TH0
|
||||
#endif
|
||||
#define TEMP_1_PIN PF5 // TH1
|
||||
#define TEMP_2_PIN PF6 // TH2
|
||||
#define TEMP_3_PIN PF7 // TH3
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN PA1 // Hotbed
|
||||
#define HEATER_0_PIN PA2 // Heater0
|
||||
#define HEATER_1_PIN PA3 // Heater1
|
||||
#define HEATER_2_PIN PB10 // Heater2
|
||||
#define HEATER_3_PIN PB11 // Heater3
|
||||
|
||||
#define FAN_PIN PA8 // Fan0
|
||||
#define FAN1_PIN PE5 // Fan1
|
||||
#define FAN2_PIN PD12 // Fan2
|
||||
#define FAN3_PIN PD13 // Fan3
|
||||
#define FAN4_PIN PD14 // Fan4
|
||||
#define FAN5_PIN PD15 // Fan5
|
||||
|
||||
//
|
||||
// SD Support
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#if HAS_WIRED_LCD
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#else
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PA7
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PA6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PA5
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
#define X_SERIAL_TX_PIN PC4
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PD11
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PC6
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define Z2_SERIAL_TX_PIN PC7
|
||||
#define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PF2
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PE4
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PE1
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
#define E3_SERIAL_TX_PIN PD3
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) PE8 |10 9 | PE7 (BTN_ENC) (MISO) PA6 |10 9 | PA5 (SCK)
|
||||
* (LCD_EN) PE9 | 8 7 | PE10 (LCD_RS) (BTN_EN1) PB2 | 8 7 | PA4 (SD_SS)
|
||||
* (LCD_D4) PE12 6 5 | PE13 (LCD_D5) (BTN_EN2) PB1 6 5 | PA7 (MOSI)
|
||||
* (LCD_D6) PE14 | 4 3 | PE15 (LCD_D7) (SD_DETECT) PC15 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PE15
|
||||
#define EXP1_04_PIN PE14
|
||||
#define EXP1_05_PIN PE13
|
||||
#define EXP1_06_PIN PE12
|
||||
#define EXP1_07_PIN PE10
|
||||
#define EXP1_08_PIN PE9
|
||||
#define EXP1_09_PIN PE7
|
||||
#define EXP1_10_PIN PE8
|
||||
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN PC15
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PB2
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PB1
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
|
||||
//
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
#ifndef SD_DETECT_STATE
|
||||
#define SD_DETECT_STATE HIGH
|
||||
#elif SD_DETECT_STATE == LOW
|
||||
#error "BOARD_BTT_OCTOPUS_V1_0 onboard SD requires SD_DETECT_STATE set to HIGH."
|
||||
#endif
|
||||
#define SD_DETECT_PIN PC14
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SDSS PA4
|
||||
#define SD_SS_PIN SDSS
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PC15
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_MOTOR_EXPANSION)
|
||||
/**
|
||||
* ------ ------
|
||||
* NC | 1 2 | GND NC | 1 2 | GND
|
||||
* NC | 3 4 | M1EN M2EN | 3 4 | M3EN
|
||||
* M1STP | 5 6 M1DIR M1RX | 5 6 M1DIAG
|
||||
* M2DIR | 7 8 | M2STP M2RX | 7 8 | M2DIAG
|
||||
* M3DIR | 9 10 | M3STP M3RX | 9 10 | M3DIAG
|
||||
* ------ ------
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
|
||||
// M1 on Driver Expansion Module
|
||||
#define E4_STEP_PIN EXP2_05_PIN
|
||||
#define E4_DIR_PIN EXP2_06_PIN
|
||||
#define E4_ENABLE_PIN EXP2_04_PIN
|
||||
#define E4_DIAG_PIN EXP1_06_PIN
|
||||
#define E4_CS_PIN EXP1_05_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E4_SERIAL_TX_PIN EXP1_05_PIN
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
// M2 on Driver Expansion Module
|
||||
#define E5_STEP_PIN EXP2_08_PIN
|
||||
#define E5_DIR_PIN EXP2_07_PIN
|
||||
#define E5_ENABLE_PIN EXP1_03_PIN
|
||||
#define E5_DIAG_PIN EXP1_08_PIN
|
||||
#define E5_CS_PIN EXP1_07_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E5_SERIAL_TX_PIN EXP1_07_PIN
|
||||
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
// M3 on Driver Expansion Module
|
||||
#define E6_STEP_PIN EXP2_10_PIN
|
||||
#define E6_DIR_PIN EXP2_09_PIN
|
||||
#define E6_ENABLE_PIN EXP1_04_PIN
|
||||
#define E6_DIAG_PIN EXP1_10_PIN
|
||||
#define E6_CS_PIN EXP1_09_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E6_SERIAL_TX_PIN EXP1_09_PIN
|
||||
#define E6_SERIAL_RX_PIN E6_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
#endif // BTT_MOTOR_EXPANSION
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 120
|
||||
#define BOARD_ST7920_DELAY_2 80
|
||||
#define BOARD_ST7920_DELAY_3 580
|
||||
#endif
|
||||
|
||||
#if HAS_SPI_TFT
|
||||
#define TFT_CS_PIN EXP2_07_PIN
|
||||
#define TFT_A0_PIN EXP2_04_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
|
||||
#define TOUCH_INT_PIN EXP1_04_PIN
|
||||
#define TOUCH_MISO_PIN EXP1_05_PIN
|
||||
#define TOUCH_MOSI_PIN EXP1_08_PIN
|
||||
#define TOUCH_SCK_PIN EXP1_06_PIN
|
||||
#define TOUCH_CS_PIN EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// WIFI
|
||||
//
|
||||
|
||||
/**
|
||||
* -------
|
||||
* GND | 9 | | 8 | 3.3V
|
||||
* (ESP-CS) PB12 | 10 | | 7 | PB15 (ESP-MOSI)
|
||||
* 3.3V | 11 | | 6 | PB14 (ESP-MISO)
|
||||
* (ESP-IO0) PD7 | 12 | | 5 | PB13 (ESP-CLK)
|
||||
* (ESP-IO4) PD10 | 13 | | 4 | NC
|
||||
* NC | 14 | | 3 | PE15 (ESP-EN)
|
||||
* (ESP-RX) PD8 | 15 | | 2 | NC
|
||||
* (ESP-TX) PD9 | 16 | | 1 | PE14 (ESP-RST)
|
||||
* -------
|
||||
* WIFI
|
||||
*/
|
||||
#define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
|
||||
#define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
|
||||
#define ESP_WIFI_MODULE_RESET_PIN PG7
|
||||
#define ESP_WIFI_MODULE_ENABLE_PIN PG8
|
||||
#define ESP_WIFI_MODULE_GPIO0_PIN PD7
|
||||
#define ESP_WIFI_MODULE_GPIO4_PIN PD10
|
262
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
Executable file → Normal file
262
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
Executable file → Normal file
@@ -16,269 +16,15 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef TARGET_STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BIGTREE SKR Pro 1.1" // redefined?
|
||||
#define BOARD_INFO_NAME "BTT SKR Pro V1.1"
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PB10
|
||||
#define X_MAX_PIN PE15
|
||||
#define Y_MIN_PIN PE12
|
||||
#define Y_MAX_PIN PE10
|
||||
#define Z_MIN_PIN PG8
|
||||
#define Z_MAX_PIN PG5
|
||||
|
||||
//
|
||||
// Z Probe must be this pins
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PA2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE9
|
||||
#define X_DIR_PIN PF1
|
||||
#define X_ENABLE_PIN PF2
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PA15
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE8
|
||||
#define Y_ENABLE_PIN PD7
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PB8
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PE13
|
||||
#define Z_DIR_PIN PC2
|
||||
#define Z_ENABLE_PIN PC0
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PB9
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PE14
|
||||
#define E0_DIR_PIN PA0
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PB3
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PD15
|
||||
#define E1_DIR_PIN PE7
|
||||
#define E1_ENABLE_PIN PA3
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PG15
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PD13
|
||||
#define E2_DIR_PIN PG9
|
||||
#define E2_ENABLE_PIN PF0
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PG12
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PC12
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PC11
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PC10
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC13
|
||||
#define X_SERIAL_RX_PIN PC13
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN PE3
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE1
|
||||
#define Z_SERIAL_RX_PIN PE1
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD4
|
||||
#define E0_SERIAL_RX_PIN PD4
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD1
|
||||
#define E1_SERIAL_RX_PIN PD1
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD6
|
||||
#define E2_SERIAL_RX_PIN PD6
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PF4 // T1 <-> E0
|
||||
#define TEMP_1_PIN PF5 // T2 <-> E1
|
||||
#define TEMP_2_PIN PF6 // T3 <-> E2
|
||||
#define TEMP_BED_PIN PF3 // T0 <-> Bed
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB1 // Heater0
|
||||
#define HEATER_1_PIN PD14 // Heater1
|
||||
#define HEATER_2_PIN PB0 // Heater1
|
||||
#define HEATER_BED_PIN PD12 // Hotbed
|
||||
#define FAN_PIN PC8 // Fan0
|
||||
#define FAN1_PIN PE5 // Fan1
|
||||
#define FAN2_PIN PE6 // Fan2
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// NOT compatible with LCD
|
||||
//
|
||||
#if SDCARD_CONNECTION == ONBOARD && !HAS_SPI_LCD
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS PA4
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PB5
|
||||
#else
|
||||
#define SDSS PB12
|
||||
#endif
|
||||
|
||||
/**
|
||||
* _____ _____
|
||||
* NC | · · | GND 5V | · · | GND
|
||||
* RESET | · · | PF12(SD_DETECT) (LCD_D7) PG7 | · · | PG6 (LCD_D6)
|
||||
* (MOSI)PB15 | · · | PF11(BTN_EN2) (LCD_D5) PG3 | · · | PG2 (LCD_D4)
|
||||
* (SD_SS)PB12 | · · | PG10(BTN_EN1) (LCD_RS) PD10 | · · | PD11 (LCD_EN)
|
||||
* (SCK)PB13 | · · | PB14(MISO) (BTN_ENC) PA8 | · · | PG4 (BEEPER)
|
||||
*  ̄ ̄  ̄ ̄
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PG4
|
||||
#define BTN_ENC PA8
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PG6
|
||||
|
||||
#define BTN_EN1 PD11
|
||||
#define BTN_EN2 PG2
|
||||
|
||||
#define LCD_PINS_ENABLE PG7
|
||||
#define LCD_PINS_D4 PG3
|
||||
|
||||
// CR10_Stock Display needs a different delay setting on SKR PRO v1.1, so undef it here.
|
||||
// It will be defined again at the #HAS_GRAPHICAL_LCD section below.
|
||||
#undef ST7920_DELAY_1
|
||||
#undef ST7920_DELAY_2
|
||||
#undef ST7920_DELAY_3
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PD10
|
||||
|
||||
#define BTN_EN1 PG10
|
||||
#define BTN_EN2 PF11
|
||||
#define SD_DETECT_PIN PF12
|
||||
|
||||
#define LCD_SDSS PB12
|
||||
|
||||
#define LCD_PINS_ENABLE PD11
|
||||
#define LCD_PINS_D4 PG2
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS PD11
|
||||
#define DOGLCD_A0 PD10
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN PG2 // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PG3
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PG6
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PG7
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PG3
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PG3
|
||||
#define LCD_PINS_D6 PG6
|
||||
#define LCD_PINS_D7 PG7
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
#include "pins_BTT_SKR_PRO_common.h"
|
||||
|
30
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_2.h
Normal file
30
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_2.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "BIGTREE SKR Pro V1.2 supports up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "BTT SKR Pro V1.2"
|
||||
|
||||
#include "pins_BTT_SKR_PRO_common.h"
|
532
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h
Normal file
532
Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_common.h
Normal file
@@ -0,0 +1,532 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
// If you have the BigTreeTech driver expansion module, enable BTT_MOTOR_EXPANSION
|
||||
// https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT
|
||||
//#define BTT_MOTOR_EXPANSION
|
||||
|
||||
#if BOTH(HAS_WIRED_LCD, BTT_MOTOR_EXPANSION)
|
||||
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
|
||||
#define EXP_MOT_USE_EXP2_ONLY 1
|
||||
#else
|
||||
#error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA1
|
||||
#define SERVO1_PIN PC9
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
//
|
||||
#define X_DIAG_PIN PB10 // X-
|
||||
#define Y_DIAG_PIN PE12 // Y-
|
||||
#define Z_DIAG_PIN PG8 // Z-
|
||||
#define E0_DIAG_PIN PE15 // E0
|
||||
#define E1_DIAG_PIN PE10 // E1
|
||||
#define E2_DIAG_PIN PG5 // E2
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN PE15 // E0
|
||||
#else
|
||||
#define X_MIN_PIN PE15 // E0
|
||||
#endif
|
||||
#else
|
||||
#define X_MIN_PIN PB10 // X-
|
||||
#define X_MAX_PIN PE15 // E0
|
||||
#endif
|
||||
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN PE10 // E1
|
||||
#else
|
||||
#define Y_MIN_PIN PE10 // E1
|
||||
#endif
|
||||
#else
|
||||
#define Y_MIN_PIN PE12 // Y-
|
||||
#define Y_MAX_PIN PE10 // E1
|
||||
#endif
|
||||
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN PG5 // E2
|
||||
#else
|
||||
#define Z_MIN_PIN PG5 // E2
|
||||
#endif
|
||||
#else
|
||||
#define Z_MIN_PIN PG8 // Z-
|
||||
#define Z_MAX_PIN PG5 // E2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe must be this pin
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PA2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PE15
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN PE10
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT3_PIN
|
||||
#define FIL_RUNOUT3_PIN PG5
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE9
|
||||
#define X_DIR_PIN PF1
|
||||
#define X_ENABLE_PIN PF2
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PA15
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE8
|
||||
#define Y_ENABLE_PIN PD7
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PB8
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PE13
|
||||
#define Z_DIR_PIN PC2
|
||||
#define Z_ENABLE_PIN PC0
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PB9
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PE14
|
||||
#define E0_DIR_PIN PA0
|
||||
#define E0_ENABLE_PIN PC3
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PB3
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PD15
|
||||
#define E1_DIR_PIN PE7
|
||||
#define E1_ENABLE_PIN PA3
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PG15
|
||||
#endif
|
||||
|
||||
#define E2_STEP_PIN PD13
|
||||
#define E2_DIR_PIN PG9
|
||||
#define E2_ENABLE_PIN PF0
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PG12
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PC12
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PC11
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PC10
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
#define X_SERIAL_TX_PIN PC13
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE1
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD4
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD1
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD6
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
// Use ADC pins without pullup for sensors that don't need a pullup.
|
||||
//
|
||||
#if TEMP_SENSOR_0_IS_AD8495 || TEMP_SENSOR_0 == 20
|
||||
#define TEMP_0_PIN PF8
|
||||
#else
|
||||
#define TEMP_0_PIN PF4 // T1 <-> E0
|
||||
#endif
|
||||
#if TEMP_SENSOR_1_IS_AD8495 || TEMP_SENSOR_1 == 20
|
||||
#define TEMP_1_PIN PF9
|
||||
#else
|
||||
#define TEMP_1_PIN PF5 // T2 <-> E1
|
||||
#endif
|
||||
#if TEMP_SENSOR_2_IS_AD8495 || TEMP_SENSOR_2 == 20
|
||||
#define TEMP_2_PIN PF10
|
||||
#else
|
||||
#define TEMP_2_PIN PF6 // T3 <-> E2
|
||||
#endif
|
||||
#if TEMP_SENSOR_BED_IS_AD8495 || TEMP_SENSOR_BED == 20
|
||||
#define TEMP_BED_PIN PF7
|
||||
#else
|
||||
#define TEMP_BED_PIN PF3 // T0 <-> Bed
|
||||
#endif
|
||||
|
||||
#if TEMP_SENSOR_PROBE && !defined(TEMP_PROBE_PIN)
|
||||
#if TEMP_SENSOR_PROBE_IS_AD8495 || TEMP_SENSOR_PROBE == 20
|
||||
#if HOTENDS == 2
|
||||
#define TEMP_PROBE_PIN PF10
|
||||
#elif HOTENDS < 2
|
||||
#define TEMP_PROBE_PIN PF9
|
||||
#endif
|
||||
#else
|
||||
#if HOTENDS == 2
|
||||
#define TEMP_PROBE_PIN TEMP_2_PIN
|
||||
#elif HOTENDS < 2
|
||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if TEMP_SENSOR_CHAMBER && !defined(TEMP_CHAMBER_PIN)
|
||||
#if TEMP_SENSOR_CHAMBER_IS_AD8495 || TEMP_SENSOR_CHAMBER == 20
|
||||
#define TEMP_CHAMBER_PIN PF10
|
||||
#else
|
||||
#define TEMP_CHAMBER_PIN TEMP_2_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters
|
||||
//
|
||||
#define HEATER_0_PIN PB1 // Heater0
|
||||
#define HEATER_1_PIN PD14 // Heater1
|
||||
#if TEMP_SENSOR_CHAMBER && HOTENDS < 3
|
||||
#define HEATER_CHAMBER_PIN PB0 // Heater2
|
||||
#else
|
||||
#define HEATER_2_PIN PB0 // Heater2
|
||||
#endif
|
||||
#define HEATER_BED_PIN PD12 // Hotbed
|
||||
|
||||
//
|
||||
// Fans
|
||||
//
|
||||
#define FAN_PIN PC8 // Fan0
|
||||
#define FAN1_PIN PE5 // Fan1
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN FAN1_PIN
|
||||
#endif
|
||||
|
||||
#if !defined(CONTROLLER_FAN_PIN) && ENABLED(USE_CONTROLLER_FAN) && HOTENDS < 2
|
||||
#define CONTROLLER_FAN_PIN PE6 // Fan2
|
||||
#else
|
||||
#define FAN2_PIN PE6 // Fan2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) PG4 |10 9 | PA8 (BTN_ENC) (MISO) PB14 |10 9 | PB13 (SCK)
|
||||
* (LCD_EN) PD11 | 8 7 | PD10 (LCD_RS) (BTN_EN1) PG10 | 8 7 | PB12 (SD_SS)
|
||||
* (LCD_D4) PG2 6 5 | PG3 (LCD_D5) (BTN_EN2) PF11 6 5 | PB15 (MOSI)
|
||||
* (LCD_D6) PG6 | 4 3 | PG7 (LCD_D7) (SD_DETECT) PF12 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PG7
|
||||
#define EXP1_04_PIN PG6
|
||||
#define EXP1_05_PIN PG3
|
||||
#define EXP1_06_PIN PG2
|
||||
#define EXP1_07_PIN PD10
|
||||
#define EXP1_08_PIN PD11
|
||||
#define EXP1_09_PIN PA8
|
||||
#define EXP1_10_PIN PG4
|
||||
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN PF12
|
||||
#define EXP2_05_PIN PB15
|
||||
#define EXP2_06_PIN PF11
|
||||
#define EXP2_07_PIN PB12
|
||||
#define EXP2_08_PIN PG10
|
||||
#define EXP2_09_PIN PB13
|
||||
#define EXP2_10_PIN PB14
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
|
||||
//
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#define SDSS EXP2_07_PIN
|
||||
|
||||
#elif SD_CONNECTION_IS(ONBOARD)
|
||||
|
||||
// The SKR Pro's ONBOARD SD interface is on SPI1.
|
||||
// Due to a pull resistor on the clock line, it needs to use SPI Data Mode 3 to
|
||||
// function with Hardware SPI. This is not currently configurable in the HAL,
|
||||
// so force Software SPI to work around this issue.
|
||||
#define SOFTWARE_SPI
|
||||
#define SDSS PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PB5
|
||||
#define SD_DETECT_PIN PB11
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_MOTOR_EXPANSION)
|
||||
/** ----- -----
|
||||
* NC | . . | GND NC | . . | GND
|
||||
* NC | . . | M1EN M2EN | . . | M3EN
|
||||
* M1STP | . . M1DIR M1RX | . . M1DIAG
|
||||
* M2DIR | . . | M2STP M2RX | . . | M2DIAG
|
||||
* M3DIR | . . | M3STP M3RX | . . | M3DIAG
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
*
|
||||
* NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
|
||||
*/
|
||||
|
||||
// M1 on Driver Expansion Module
|
||||
#define E3_STEP_PIN EXP2_05_PIN
|
||||
#define E3_DIR_PIN EXP2_06_PIN
|
||||
#define E3_ENABLE_PIN EXP2_04_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E3_DIAG_PIN EXP1_06_PIN
|
||||
#define E3_CS_PIN EXP1_05_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E3_SERIAL_TX_PIN EXP1_05_PIN
|
||||
#define E3_SERIAL_RX_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// M2 on Driver Expansion Module
|
||||
#define E4_STEP_PIN EXP2_08_PIN
|
||||
#define E4_DIR_PIN EXP2_07_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E4_ENABLE_PIN EXP1_03_PIN
|
||||
#define E4_DIAG_PIN EXP1_08_PIN
|
||||
#define E4_CS_PIN EXP1_07_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E4_SERIAL_TX_PIN EXP1_07_PIN
|
||||
#define E4_SERIAL_RX_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E4_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
// M3 on Driver Expansion Module
|
||||
#define E5_STEP_PIN EXP2_10_PIN
|
||||
#define E5_DIR_PIN EXP2_09_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E5_ENABLE_PIN EXP1_04_PIN
|
||||
#define E5_DIAG_PIN EXP1_10_PIN
|
||||
#define E5_CS_PIN EXP1_09_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E5_SERIAL_TX_PIN EXP1_09_PIN
|
||||
#define E5_SERIAL_RX_PIN EXP1_09_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E5_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
#endif // BTT_MOTOR_EXPANSION
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 125
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_2
|
||||
#define BOARD_ST7920_DELAY_2 90
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_3
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// WIFI
|
||||
//
|
||||
|
||||
/**
|
||||
* -----
|
||||
* TX | 1 2 | GND Enable PG1 // Must be high for module to run
|
||||
* Enable | 3 4 | GPIO2 Reset PG0 // active low, probably OK to leave floating
|
||||
* Reset | 5 6 | GPIO0 GPIO2 PF15 // must be high (ESP3D software configures this with a pullup so OK to leave as floating)
|
||||
* 3.3V | 7 8 | RX GPIO0 PF14 // Leave as unused (ESP3D software configures this with a pullup so OK to leave as floating)
|
||||
* -----
|
||||
* W1
|
||||
*/
|
||||
#define ESP_WIFI_MODULE_COM 6 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
|
||||
#define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
|
||||
#define ESP_WIFI_MODULE_RESET_PIN PG0
|
||||
#define ESP_WIFI_MODULE_ENABLE_PIN PG1
|
||||
#define ESP_WIFI_MODULE_GPIO0_PIN PF14
|
||||
#define ESP_WIFI_MODULE_GPIO2_PIN PF15
|
29
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_REV_A.h
Normal file
29
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_REV_A.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "BTT SKR V2 Rev.A"
|
||||
|
||||
#error "SKR V2 Rev.A requires modification or drivers may be damaged. See https://bit.ly/3t5d9JQ for more information. Comment out this line to continue."
|
||||
#define DISABLE_DRIVER_SAFE_POWER_PROTECT
|
||||
|
||||
#include "pins_BTT_SKR_V2_0_common.h"
|
26
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_REV_B.h
Normal file
26
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_REV_B.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "BTT SKR V2 Rev.B"
|
||||
|
||||
#include "pins_BTT_SKR_V2_0_common.h"
|
526
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h
Normal file
526
Marlin/src/pins/stm32f4/pins_BTT_SKR_V2_0_common.h
Normal file
@@ -0,0 +1,526 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
// If you have the BigTreeTech driver expansion module, enable BTT_MOTOR_EXPANSION
|
||||
// https://github.com/bigtreetech/BTT-Expansion-module/tree/master/BTT%20EXP-MOT
|
||||
//#define BTT_MOTOR_EXPANSION
|
||||
|
||||
#if BOTH(HAS_WIRED_LCD, BTT_MOTOR_EXPANSION)
|
||||
#if EITHER(CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY)
|
||||
#define EXP_MOT_USE_EXP2_ONLY 1
|
||||
#else
|
||||
#error "You can't use both an LCD and a Motor Expansion Module on EXP1/EXP2 at the same time."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
// Avoid conflict with TIMER_TONE
|
||||
#define STEP_TIMER 10
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PE5
|
||||
|
||||
//
|
||||
// Trinamic Stallguard pins
|
||||
//
|
||||
#define X_DIAG_PIN PC1 // X-STOP
|
||||
#define Y_DIAG_PIN PC3 // Y-STOP
|
||||
#define Z_DIAG_PIN PC0 // Z-STOP
|
||||
#define E0_DIAG_PIN PC2 // E0DET
|
||||
#define E1_DIAG_PIN PA0 // E1DET
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#ifdef X_STALL_SENSITIVITY
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#if X_HOME_TO_MIN
|
||||
#define X_MAX_PIN PC2 // E0DET
|
||||
#else
|
||||
#define X_MIN_PIN PC2 // E0DET
|
||||
#endif
|
||||
#elif ENABLED(X_DUAL_ENDSTOPS)
|
||||
#ifndef X_MIN_PIN
|
||||
#define X_MIN_PIN PC1 // X-STOP
|
||||
#endif
|
||||
#ifndef X_MAX_PIN
|
||||
#define X_MAX_PIN PC2 // E0DET
|
||||
#endif
|
||||
#else
|
||||
#define X_STOP_PIN PC1 // X-STOP
|
||||
#endif
|
||||
|
||||
#ifdef Y_STALL_SENSITIVITY
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#if Y_HOME_TO_MIN
|
||||
#define Y_MAX_PIN PA0 // E1DET
|
||||
#else
|
||||
#define Y_MIN_PIN PA0 // E1DET
|
||||
#endif
|
||||
#elif ENABLED(Y_DUAL_ENDSTOPS)
|
||||
#ifndef Y_MIN_PIN
|
||||
#define Y_MIN_PIN PC3 // Y-STOP
|
||||
#endif
|
||||
#ifndef Y_MAX_PIN
|
||||
#define Y_MAX_PIN PA0 // E1DET
|
||||
#endif
|
||||
#else
|
||||
#define Y_STOP_PIN PC3 // Y-STOP
|
||||
#endif
|
||||
|
||||
#ifdef Z_STALL_SENSITIVITY
|
||||
#define Z_STOP_PIN Z_DIAG_PIN
|
||||
#if Z_HOME_TO_MIN
|
||||
#define Z_MAX_PIN PC15 // PWRDET
|
||||
#else
|
||||
#define Z_MIN_PIN PC15 // PWRDET
|
||||
#endif
|
||||
#elif ENABLED(Z_MULTI_ENDSTOPS)
|
||||
#ifndef Z_MIN_PIN
|
||||
#define Z_MIN_PIN PC0 // Z-STOP
|
||||
#endif
|
||||
#ifndef Z_MAX_PIN
|
||||
#define Z_MAX_PIN PC15 // PWRDET
|
||||
#endif
|
||||
#else
|
||||
#ifndef Z_STOP_PIN
|
||||
#define Z_STOP_PIN PC0 // Z-STOP
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PE4
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PC2 // E0DET
|
||||
#define FIL_RUNOUT2_PIN PA0 // E1DET
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#ifndef PS_ON_PIN
|
||||
#define PS_ON_PIN PE8 // PS-ON
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Loss Detection
|
||||
//
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PC15 // PWRDET
|
||||
#endif
|
||||
|
||||
//
|
||||
// Control pin of driver/heater/fan power supply
|
||||
//
|
||||
#define SAFE_POWER_PIN PC13
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PE2
|
||||
#define X_DIR_PIN PE1
|
||||
#define X_ENABLE_PIN PE3
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PE0
|
||||
#endif
|
||||
|
||||
#define Y_STEP_PIN PD5
|
||||
#define Y_DIR_PIN PD4
|
||||
#define Y_ENABLE_PIN PD6
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PD3
|
||||
#endif
|
||||
|
||||
#define Z_STEP_PIN PA15
|
||||
#define Z_DIR_PIN PA8
|
||||
#define Z_ENABLE_PIN PD1
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PD0
|
||||
#endif
|
||||
|
||||
#define E0_STEP_PIN PD15
|
||||
#define E0_DIR_PIN PD14
|
||||
#define E0_ENABLE_PIN PC7
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PC6
|
||||
#endif
|
||||
|
||||
#define E1_STEP_PIN PD11
|
||||
#define E1_DIR_PIN PD10
|
||||
#define E1_ENABLE_PIN PD13
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PD12
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PA1 // TB
|
||||
#define TEMP_0_PIN PA2 // TH0
|
||||
#define TEMP_1_PIN PA3 // TH1
|
||||
|
||||
#if HOTENDS == 1 && DISABLED(HEATERS_PARALLEL)
|
||||
#if TEMP_SENSOR_PROBE
|
||||
#define TEMP_PROBE_PIN TEMP_1_PIN
|
||||
#elif TEMP_SENSOR_CHAMBER
|
||||
#define TEMP_CHAMBER_PIN TEMP_1_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#ifndef HEATER_0_PIN
|
||||
#define HEATER_0_PIN PB3 // Heater0
|
||||
#endif
|
||||
#ifndef HEATER_1_PIN
|
||||
#define HEATER_1_PIN PB4 // Heater1
|
||||
#endif
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN PD7 // Hotbed
|
||||
#endif
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PB7 // Fan0
|
||||
#endif
|
||||
#ifndef FAN1_PIN
|
||||
#define FAN1_PIN PB6 // Fan1
|
||||
#endif
|
||||
#ifndef FAN2_PIN
|
||||
#define FAN2_PIN PB5 // Fan2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PE14
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PA14
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PE15
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
#define X_SERIAL_TX_PIN PE0
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PD3
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD0
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PC6
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD12
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Connection
|
||||
//
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION LCD
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ----- -----
|
||||
* NC | 1 2 | GND 5V | 1 2 | GND
|
||||
* RESET | 3 4 | PC4 (SD_DETECT) (LCD_D7) PE13 | 3 4 | PE12 (LCD_D6)
|
||||
* (MOSI) PA7 | 5 6 PB2 (BTN_EN2) (LCD_D5) PE11 | 5 6 PE10 (LCD_D4)
|
||||
* (SD_SS) PA4 | 7 8 | PE7 (BTN_EN1) (LCD_RS) PE9 | 7 8 | PB1 (LCD_EN)
|
||||
* (SCK) PA5 | 9 10| PA6 (MISO) (BTN_ENC) PB0 | 9 10| PC5 (BEEPER)
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
#define EXP1_03_PIN PE13
|
||||
#define EXP1_04_PIN PE12
|
||||
#define EXP1_05_PIN PE11
|
||||
#define EXP1_06_PIN PE10
|
||||
#define EXP1_07_PIN PE9
|
||||
#define EXP1_08_PIN PB1
|
||||
#define EXP1_09_PIN PB0
|
||||
#define EXP1_10_PIN PC5
|
||||
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN PC4
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PB2
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PE7
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// Must use soft SPI because Marlin's default hardware SPI is tied to LCD's EXP2
|
||||
//
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
#define SDIO_D0_PIN PC8
|
||||
#define SDIO_D1_PIN PC9
|
||||
#define SDIO_D2_PIN PC10
|
||||
#define SDIO_D3_PIN PC11
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SDSS PA4
|
||||
#define SD_SS_PIN SDSS
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_DETECT_PIN PC4
|
||||
|
||||
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
|
||||
#error "CUSTOM_CABLE is not a supported SDCARD_CONNECTION for this board"
|
||||
#endif
|
||||
|
||||
#if ENABLED(BTT_MOTOR_EXPANSION)
|
||||
/** ----- -----
|
||||
* NC | . . | GND NC | . . | GND
|
||||
* NC | . . | M1EN M2EN | . . | M3EN
|
||||
* M1STP | . . M1DIR M1RX | . . M1DIAG
|
||||
* M2DIR | . . | M2STP M2RX | . . | M2DIAG
|
||||
* M3DIR | . . | M3STP M3RX | . . | M3DIAG
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
*
|
||||
* NB In EXP_MOT_USE_EXP2_ONLY mode EXP1 is not used and M2EN and M3EN need to be jumpered to M1EN
|
||||
*/
|
||||
|
||||
// M1 on Driver Expansion Module
|
||||
#define E2_STEP_PIN EXP2_05_PIN
|
||||
#define E2_DIR_PIN EXP2_06_PIN
|
||||
#define E2_ENABLE_PIN EXP2_04_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E2_DIAG_PIN EXP1_06_PIN
|
||||
#define E2_CS_PIN EXP1_05_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E2_SERIAL_TX_PIN EXP1_05_PIN
|
||||
#define E2_SERIAL_RX_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// M2 on Driver Expansion Module
|
||||
#define E3_STEP_PIN EXP2_08_PIN
|
||||
#define E3_DIR_PIN EXP2_07_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E3_ENABLE_PIN EXP1_03_PIN
|
||||
#define E3_DIAG_PIN EXP1_08_PIN
|
||||
#define E3_CS_PIN EXP1_07_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E3_SERIAL_TX_PIN EXP1_07_PIN
|
||||
#define E3_SERIAL_RX_PIN EXP1_07_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E3_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
// M3 on Driver Expansion Module
|
||||
#define E4_STEP_PIN EXP2_10_PIN
|
||||
#define E4_DIR_PIN EXP2_09_PIN
|
||||
#if !EXP_MOT_USE_EXP2_ONLY
|
||||
#define E4_ENABLE_PIN EXP1_04_PIN
|
||||
#define E4_DIAG_PIN EXP1_10_PIN
|
||||
#define E4_CS_PIN EXP1_09_PIN
|
||||
#if HAS_TMC_UART
|
||||
#define E4_SERIAL_TX_PIN EXP1_09_PIN
|
||||
#define E4_SERIAL_RX_PIN EXP1_09_PIN
|
||||
#endif
|
||||
#else
|
||||
#define E4_ENABLE_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
#endif // BTT_MOTOR_EXPANSION
|
||||
|
||||
//
|
||||
// LCDs and Controllers
|
||||
//
|
||||
#if IS_TFTGLCD_PANEL
|
||||
|
||||
#if ENABLED(TFTGLCD_PANEL_SPI)
|
||||
#define TFTGLCD_CS EXP2_08_PIN
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#ifndef BOARD_ST7920_DELAY_1
|
||||
#define BOARD_ST7920_DELAY_1 120
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_2
|
||||
#define BOARD_ST7920_DELAY_2 80
|
||||
#endif
|
||||
#ifndef BOARD_ST7920_DELAY_3
|
||||
#define BOARD_ST7920_DELAY_3 580
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// NeoPixel LED
|
||||
//
|
||||
#ifndef NEOPIXEL_PIN
|
||||
#define NEOPIXEL_PIN PE6
|
||||
#endif
|
||||
|
||||
//
|
||||
// WIFI
|
||||
//
|
||||
|
||||
/**
|
||||
* -------
|
||||
* GND | 9 | | 8 | 3.3V
|
||||
* (ESP-CS) PB12 | 10 | | 7 | PB15 (ESP-MOSI)
|
||||
* 3.3V | 11 | | 6 | PB14 (ESP-MISO)
|
||||
* (ESP-IO0) PB10 | 12 | | 5 | PB13 (ESP-CLK)
|
||||
* (ESP-IO4) PB11 | 13 | | 4 | NC
|
||||
* NC | 14 | | 3 | 3.3V (ESP-EN)
|
||||
* (ESP-RX) PD8 | 15 | | 2 | NC
|
||||
* (ESP-TX) PD9 | 16 | | 1 | PC14 (ESP-RST)
|
||||
* -------
|
||||
* WIFI
|
||||
*/
|
||||
#define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this
|
||||
#define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2
|
||||
#define ESP_WIFI_MODULE_RESET_PIN PC14
|
||||
#define ESP_WIFI_MODULE_GPIO0_PIN PB10
|
||||
#define ESP_WIFI_MODULE_GPIO4_PIN PB11
|
173
Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
Executable file → Normal file
173
Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
Executable file → Normal file
@@ -16,14 +16,15 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 6 || E_STEPPERS > 6
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 6 || E_STEPPERS > 6
|
||||
#error "FLYF407ZG supports up to 6 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
@@ -31,8 +32,30 @@
|
||||
#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLYF407ZG"
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
#undef E2END
|
||||
#define E2END 0xFFF // 4KB
|
||||
// Avoid conflict with fans and TIMER_TONE
|
||||
#define TEMP_TIMER 3
|
||||
#define STEP_TIMER 5
|
||||
|
||||
//
|
||||
// EEPROM Emulation
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define SRAM_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across
|
||||
// the 128kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#elif ENABLED(I2C_EEPROM)
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
|
||||
#endif
|
||||
|
||||
#ifndef MARLIN_EEPROM_SIZE
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -140,55 +163,89 @@
|
||||
#define HEATER_2_PIN PE6
|
||||
#define HEATER_3_PIN PE5
|
||||
#define HEATER_4_PIN PE4
|
||||
#define HEATER_5_PIN PA2
|
||||
#define HEATER_5_PIN PE3
|
||||
#define HEATER_BED_PIN PE2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PF8
|
||||
#endif
|
||||
#define FAN1_PIN PF9
|
||||
#define FAN2_PIN PE3
|
||||
#define FAN2_PIN PA2
|
||||
#define FAN3_PIN PA1
|
||||
#define FAN4_PIN PE13
|
||||
#define FAN5_PIN PB11
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* PB10 |10 9 | PE15 PB14 |10 9 | PB13
|
||||
* PE14 | 8 7 | PE12 PC5 | 8 7 | PF11
|
||||
* PE10 6 5 | PE9 PC4 6 5 | PB15
|
||||
* PE8 | 4 3 | PE7 PB2 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | NC
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PE7
|
||||
#define EXP1_04_PIN PE8
|
||||
#define EXP1_05_PIN PE9
|
||||
#define EXP1_06_PIN PE10
|
||||
#define EXP1_07_PIN PE12
|
||||
#define EXP1_08_PIN PE14
|
||||
#define EXP1_09_PIN PE15
|
||||
#define EXP1_10_PIN PB10
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN PB2
|
||||
#define EXP2_05_PIN PB15
|
||||
#define EXP2_06_PIN PC4
|
||||
#define EXP2_07_PIN PF11
|
||||
#define EXP2_08_PIN PC5
|
||||
#define EXP2_09_PIN PB13
|
||||
#define EXP2_10_PIN PB14
|
||||
|
||||
//
|
||||
// Onboard SD support
|
||||
//
|
||||
|
||||
#define SDIO_D0_PIN PC8
|
||||
#define SDIO_D1_PIN PC9
|
||||
//#define SD_CARD_DETECT_PIN PC13
|
||||
#define SDIO_D2_PIN PC10
|
||||
#define SDIO_D3_PIN PC11
|
||||
#define SDIO_CK_PIN PC12
|
||||
#define SDIO_CMD_PIN PD2
|
||||
|
||||
#if !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == ONBOARD
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SDSS PC11
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#endif
|
||||
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SDSS EXP2_07_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// Trinamic Software SPI
|
||||
//
|
||||
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PB15
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK EXP2_09_PIN
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PB14
|
||||
#define TMC_SW_MISO EXP2_10_PIN
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PB13
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI EXP2_05_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -198,52 +255,48 @@
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN PG13
|
||||
#define X_SERIAL_RX_PIN PG13
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PG10
|
||||
#define Y_SERIAL_RX_PIN PG10
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD5
|
||||
#define Z_SERIAL_RX_PIN PD5
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD1
|
||||
#define E0_SERIAL_RX_PIN PD1
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PA14
|
||||
#define E1_SERIAL_RX_PIN PA14
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PG6
|
||||
#define E2_SERIAL_RX_PIN PG6
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
#define E3_SERIAL_TX_PIN PG3
|
||||
#define E3_SERIAL_RX_PIN PG3
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
|
||||
#define E4_SERIAL_TX_PIN PD10
|
||||
#define E4_SERIAL_RX_PIN PD10
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
|
||||
#define E5_SERIAL_TX_PIN PB12
|
||||
#define E5_SERIAL_RX_PIN PB12
|
||||
|
||||
#define E5_SERIAL_RX_PIN E5_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define SCK_PIN PB13
|
||||
#define MISO_PIN PB14
|
||||
#define MOSI_PIN PB15
|
||||
#define SDSS PF11
|
||||
#define SD_DETECT_PIN PB2
|
||||
#define BEEPER_PIN PB10
|
||||
#define LCD_PINS_RS PE12
|
||||
#define LCD_PINS_ENABLE PE14
|
||||
#define LCD_PINS_D4 PE10
|
||||
#define LCD_PINS_D5 PE9
|
||||
#define LCD_PINS_D6 PE8
|
||||
#define LCD_PINS_D7 PE7
|
||||
#define BTN_EN1 PC4
|
||||
#define BTN_EN2 PC5
|
||||
#define BTN_ENC PE15
|
||||
#if IS_RRD_SC
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#define BTN_EN1 EXP2_06_PIN
|
||||
#define BTN_EN2 EXP2_08_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
@@ -251,15 +304,9 @@
|
||||
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 715
|
||||
#endif
|
||||
|
258
Marlin/src/pins/stm32f4/pins_FYSETC_CHEETAH_V20.h
Normal file
258
Marlin/src/pins/stm32f4/pins_FYSETC_CHEETAH_V20.h
Normal file
@@ -0,0 +1,258 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "env_validate.h"
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "3D Printer"
|
||||
|
||||
#define BOARD_INFO_NAME "FYSETC Cheetah V2.0"
|
||||
#define BOARD_WEBSITE_URL "fysetc.com"
|
||||
|
||||
// USB Flash Drive support
|
||||
//#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
#if EITHER(NO_EEPROM_SELECTED, FLASH_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
|
||||
#define FLASH_SECTOR 2
|
||||
#define FLASH_UNIT_SIZE 0x4000 // 16k
|
||||
#define FLASH_ADDRESS_START 0x8008000
|
||||
#endif
|
||||
|
||||
//
|
||||
// Z Probe
|
||||
//
|
||||
#if ENABLED(BLTOUCH)
|
||||
#error "You need to set jumper to 5v for Bltouch, then comment out this line to proceed."
|
||||
#define SERVO0_PIN PA0
|
||||
#elif !defined(Z_MIN_PROBE_PIN)
|
||||
#define Z_MIN_PROBE_PIN PA0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PB4
|
||||
#define Y_STOP_PIN PB3
|
||||
#define Z_STOP_PIN PB1
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PB5
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PC0
|
||||
#define X_DIR_PIN PC1
|
||||
#define X_ENABLE_PIN PA8
|
||||
|
||||
#define Y_STEP_PIN PC14
|
||||
#define Y_DIR_PIN PC13
|
||||
#define Y_ENABLE_PIN PC15
|
||||
|
||||
#define Z_STEP_PIN PB9
|
||||
#define Z_DIR_PIN PB8
|
||||
#define Z_ENABLE_PIN PC2
|
||||
|
||||
#define E0_STEP_PIN PB2
|
||||
#define E0_DIR_PIN PA15
|
||||
#define E0_ENABLE_PIN PD2
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_HARDWARE_SERIAL Serial2
|
||||
#define Y_HARDWARE_SERIAL Serial2
|
||||
#define Z_HARDWARE_SERIAL Serial2
|
||||
#define E0_HARDWARE_SERIAL Serial2
|
||||
|
||||
// Default TMC slave addresses
|
||||
#ifndef X_SLAVE_ADDRESS
|
||||
#define X_SLAVE_ADDRESS 0
|
||||
#endif
|
||||
#ifndef Y_SLAVE_ADDRESS
|
||||
#define Y_SLAVE_ADDRESS 2
|
||||
#endif
|
||||
#ifndef Z_SLAVE_ADDRESS
|
||||
#define Z_SLAVE_ADDRESS 1
|
||||
#endif
|
||||
#ifndef E0_SLAVE_ADDRESS
|
||||
#define E0_SLAVE_ADDRESS 3
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PC6
|
||||
#define HEATER_BED_PIN PC7
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PA1
|
||||
#endif
|
||||
#define FAN1_PIN PC8
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_BED_PIN PC5 // Analog Input
|
||||
#define TEMP_0_PIN PC4 // Analog Input
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PA4
|
||||
#define SD_DETECT_PIN PC3
|
||||
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB0
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PB7
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PB6
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ----- -----
|
||||
* 5V | 1 2 | GND 5V | 1 2 | GND
|
||||
* RESET | 3 4 | PC3 (SD_DETECT) (LCD_D7) PB7 | 3 4 | PB6 (LCD_D6)
|
||||
* (SD_MOSI) PA7 5 6 | PC11 (BTN_EN2) (LCD_D5) PB14 5 6 | PB13 (LCD_D4)
|
||||
* (SD_SS) PA4 | 7 8 | PC10 (BTN_EN1) (LCD_RS) PB12 | 7 8 | PB15 (LCD_EN)
|
||||
* (SD_SCK) PA5 | 9 10| PA6 (SD_MISO) (BTN_ENC) PC12 | 9 10| PC9 (BEEPER)
|
||||
* ----- -----
|
||||
* EXP2 EXP1
|
||||
*/
|
||||
|
||||
/**
|
||||
* -----
|
||||
* (BEEPER) PC9 | 1 2 | PC12 (BTN_ENC)
|
||||
* (BTN_EN1) PC10 | 3 4 | PB14 (LCD_D5/MISO)
|
||||
* (BTN_EN2) PC11 5 6 | PB13 (LCD_D4/SCK)
|
||||
* (LCD_RS) PB12 | 7 8 | PB15 (LCD_EN/MOSI)
|
||||
* GND | 9 10| 5V
|
||||
* -----
|
||||
* EXP3
|
||||
*/
|
||||
|
||||
#define EXP1_03_PIN PB7
|
||||
#define EXP1_04_PIN PB6
|
||||
#define EXP1_05_PIN PB14
|
||||
#define EXP1_06_PIN PB13
|
||||
#define EXP1_07_PIN PB12
|
||||
#define EXP1_08_PIN PB15
|
||||
#define EXP1_09_PIN PC12
|
||||
#define EXP1_10_PIN PC9
|
||||
|
||||
#define EXP2_03_PIN -1
|
||||
#define EXP2_04_PIN PC3
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PC11
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PC10
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 EXP2_06_PIN
|
||||
#define BTN_EN2 EXP2_08_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
#endif
|
||||
|
||||
#if ENABLED(TOUCH_UI_FTDI_EVE)
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define CLCD_MOD_RESET EXP2_08_PIN
|
||||
#define CLCD_SPI_CS EXP2_06_PIN
|
||||
#endif
|
266
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
Executable file → Normal file
266
Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
Executable file → Normal file
@@ -16,45 +16,49 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "RUMBA32 supports up to 3 hotends / E-steppers."
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "FYSETC S6 supports up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "FYSETC_S6"
|
||||
#define BOARD_INFO_NAME "FYSETC S6"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
#endif
|
||||
|
||||
// change the prio to 3 , 2 is for software serial
|
||||
//#define TEMP_TIMER_IRQ_PRIO 3
|
||||
// Avoid conflict with TIMER_TONE defined in variant
|
||||
#define STEP_TIMER 10
|
||||
|
||||
//
|
||||
// EEPROM Emulation
|
||||
//
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM
|
||||
#endif
|
||||
//#define SRAM_EEPROM_EMULATION
|
||||
//#define I2C_EEPROM
|
||||
#ifdef I2C_EEPROM
|
||||
#undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
|
||||
#define E2END 0xFFF // 4KB
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#elif ENABLED(I2C_EEPROM)
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA3
|
||||
#ifndef SERVO0_PIN
|
||||
#define SERVO0_PIN PA3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -79,7 +83,9 @@
|
||||
//
|
||||
#define X_STEP_PIN PE11
|
||||
#define X_DIR_PIN PE10
|
||||
#define X_ENABLE_PIN PE12
|
||||
#ifndef X_ENABLE_PIN
|
||||
#define X_ENABLE_PIN PE12
|
||||
#endif
|
||||
#define X_CS_PIN PE7
|
||||
|
||||
#define Y_STEP_PIN PD8
|
||||
@@ -112,26 +118,42 @@
|
||||
// TMC2208/TMC2209 stepper drivers
|
||||
//
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PE9
|
||||
#define X_SERIAL_RX_PIN PE8
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE14
|
||||
#define Y_SERIAL_RX_PIN PE13
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD11
|
||||
#define Z_SERIAL_RX_PIN PD12
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD3
|
||||
#define E0_SERIAL_RX_PIN PA15
|
||||
|
||||
#define E1_SERIAL_TX_PIN PC4
|
||||
#define E1_SERIAL_RX_PIN PC5
|
||||
|
||||
#define E2_SERIAL_TX_PIN PE1
|
||||
#define E2_SERIAL_RX_PIN PE0
|
||||
#ifndef X_SERIAL_TX_PIN
|
||||
#define X_SERIAL_TX_PIN PE9
|
||||
#endif
|
||||
#ifndef X_SERIAL_RX_PIN
|
||||
#define X_SERIAL_RX_PIN PE8
|
||||
#endif
|
||||
#ifndef Y_SERIAL_TX_PIN
|
||||
#define Y_SERIAL_TX_PIN PE14
|
||||
#endif
|
||||
#ifndef Y_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_RX_PIN PE13
|
||||
#endif
|
||||
#ifndef Z_SERIAL_TX_PIN
|
||||
#define Z_SERIAL_TX_PIN PD11
|
||||
#endif
|
||||
#ifndef Z_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_RX_PIN PD12
|
||||
#endif
|
||||
#ifndef E0_SERIAL_TX_PIN
|
||||
#define E0_SERIAL_TX_PIN PD3
|
||||
#endif
|
||||
#ifndef E0_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_RX_PIN PA15
|
||||
#endif
|
||||
#ifndef E1_SERIAL_TX_PIN
|
||||
#define E1_SERIAL_TX_PIN PC4
|
||||
#endif
|
||||
#ifndef E1_SERIAL_RX_PIN
|
||||
#define E1_SERIAL_RX_PIN PC5
|
||||
#endif
|
||||
#ifndef E2_SERIAL_TX_PIN
|
||||
#define E2_SERIAL_TX_PIN PE1
|
||||
#endif
|
||||
#ifndef E2_SERIAL_RX_PIN
|
||||
#define E2_SERIAL_RX_PIN PE0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
@@ -145,112 +167,158 @@
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB3
|
||||
#define HEATER_1_PIN PB4
|
||||
#define HEATER_2_PIN PB15
|
||||
#define HEATER_BED_PIN PC8
|
||||
#ifndef HEATER_0_PIN
|
||||
#define HEATER_0_PIN PB3
|
||||
#endif
|
||||
#ifndef HEATER_1_PIN
|
||||
#define HEATER_1_PIN PB4
|
||||
#endif
|
||||
#ifndef HEATER_2_PIN
|
||||
#define HEATER_2_PIN PB15
|
||||
#endif
|
||||
#ifndef HEATER_BED_PIN
|
||||
#define HEATER_BED_PIN PC8
|
||||
#endif
|
||||
|
||||
#define FAN_PIN PB0
|
||||
#define FAN1_PIN PB1
|
||||
#define FAN2_PIN PB2
|
||||
|
||||
//
|
||||
// SPI
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define LED_PIN PB14
|
||||
//#define BTN_PIN PC10
|
||||
//#define PS_ON_PIN PE11
|
||||
//#define KILL_PIN PC5
|
||||
|
||||
#define SDSS PA4
|
||||
#define SD_DETECT_PIN PB10
|
||||
/**
|
||||
* ------ ------
|
||||
* PC9 |10 9 | PA8 PA6 |10 9 | PA5
|
||||
* PC11 | 8 7 | PD2 PC6 | 8 7 | PA4
|
||||
* PC10 6 5 | PC12 PC7 6 5 | PA7
|
||||
* PD0 | 4 3 | PD1 PB10 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | 5V
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PD1
|
||||
#define EXP1_04_PIN PD0
|
||||
#define EXP1_05_PIN PC12
|
||||
#define EXP1_06_PIN PC10
|
||||
#define EXP1_07_PIN PD2
|
||||
#define EXP1_08_PIN PC11
|
||||
#define EXP1_09_PIN PA8
|
||||
#define EXP1_10_PIN PC9
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN PB10
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PC7
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PC6
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
//
|
||||
// SPI / SD Card
|
||||
//
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
|
||||
#define SDSS EXP2_07_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#define BEEPER_PIN PC9
|
||||
#define BTN_ENC PA8
|
||||
#if ENABLED(FYSETC_242_OLED_12864)
|
||||
|
||||
#define BTN_EN1 EXP1_10_PIN
|
||||
#define BTN_EN2 EXP1_03_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define BEEPER_PIN EXP2_08_PIN
|
||||
|
||||
#define LCD_PINS_DC EXP1_05_PIN
|
||||
#define LCD_PINS_RS EXP2_06_PIN // LCD_RST
|
||||
#define DOGLCD_CS EXP1_07_PIN
|
||||
#define DOGLCD_MOSI EXP1_06_PIN
|
||||
#define DOGLCD_SCK EXP1_08_PIN
|
||||
#define DOGLCD_A0 LCD_PINS_DC
|
||||
#define FORCE_SOFT_SPI
|
||||
|
||||
#define KILL_PIN -1 // NC
|
||||
#define NEOPIXEL_PIN EXP1_04_PIN
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
#define LCD_PINS_RS PD0
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
|
||||
#define BTN_EN1 PC11
|
||||
#define BTN_EN2 PC10
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE PD1
|
||||
#define LCD_PINS_D4 PC12
|
||||
|
||||
// CR10_Stock Display needs a different delay setting on SKR PRO v1.1, so undef it here.
|
||||
// It will be defined again at the #HAS_GRAPHICAL_LCD section below.
|
||||
#undef ST7920_DELAY_1
|
||||
#undef ST7920_DELAY_2
|
||||
#undef ST7920_DELAY_3
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_RS PD2
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
|
||||
#define BTN_EN1 PC6
|
||||
#define BTN_EN2 PC7
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
|
||||
#define LCD_SDSS PA4
|
||||
#define LCD_SDSS EXP2_07_PIN
|
||||
|
||||
#define LCD_PINS_ENABLE PC11
|
||||
#define LCD_PINS_D4 PC10
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
|
||||
#if ENABLED(FYSETC_MINI_12864)
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel
|
||||
#define DOGLCD_CS PC11
|
||||
#define DOGLCD_A0 PD2
|
||||
// See https://wiki.fysetc.com/Mini12864_Panel
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#if ENABLED(FYSETC_GENERIC_12864_1_1)
|
||||
#define LCD_BACKLIGHT_PIN PD0
|
||||
#define LCD_BACKLIGHT_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#define LCD_RESET_PIN PC10 // Must be high or open for LCD to operate normally.
|
||||
#define LCD_RESET_PIN EXP1_06_PIN // Must be high or open for LCD to operate normally.
|
||||
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PC12
|
||||
#define RGB_LED_R_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PD0
|
||||
#define RGB_LED_G_PIN EXP1_04_PIN
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PD1
|
||||
#define RGB_LED_B_PIN EXP1_03_PIN
|
||||
#endif
|
||||
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
||||
#define NEOPIXEL_PIN PC12
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#endif
|
||||
#endif // !FYSETC_MINI_12864
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 PC12
|
||||
#define LCD_PINS_D6 PD0
|
||||
#define LCD_PINS_D7 PD1
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
#endif
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#endif // HAS_SPI_LCD
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 640
|
||||
#endif
|
||||
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB6
|
||||
|
65
Marlin/src/pins/stm32f4/pins_FYSETC_S6_V2_0.h
Normal file
65
Marlin/src/pins/stm32f4/pins_FYSETC_S6_V2_0.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define BOARD_INFO_NAME "FYSETC S6 2.0"
|
||||
|
||||
//
|
||||
// EEPROM Emulation
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
#undef NO_EEPROM_SELECTED
|
||||
//#define FLASH_EEPROM_EMULATION
|
||||
#define I2C_EEPROM
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PE9
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN PE8
|
||||
#define Y_SERIAL_TX_PIN PC4
|
||||
#define Z_SERIAL_TX_PIN PD12
|
||||
#define E0_SERIAL_TX_PIN PA15
|
||||
#define E1_SERIAL_TX_PIN PC5
|
||||
#define E2_SERIAL_TX_PIN PE0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#define TMC_USE_SW_SPI
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PE14
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PE13
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PE12
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "pins_FYSETC_S6.h"
|
123
Marlin/src/pins/stm32f4/pins_FYSETC_SPIDER.h
Normal file
123
Marlin/src/pins/stm32f4/pins_FYSETC_SPIDER.h
Normal file
@@ -0,0 +1,123 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_INFO_NAME "FYSETC SPIDER"
|
||||
#endif
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
#endif
|
||||
|
||||
//
|
||||
// EEPROM Emulation
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
#undef NO_EEPROM_SELECTED
|
||||
//#define FLASH_EEPROM_EMULATION
|
||||
//#define SRAM_EEPROM_EMULATION
|
||||
#define I2C_EEPROM
|
||||
#endif
|
||||
|
||||
#if ENABLED(I2C_EEPROM)
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X2_STEP_PIN PD12
|
||||
#define X2_DIR_PIN PC4
|
||||
#define X2_ENABLE_PIN PE8
|
||||
#define X2_CS_PIN PA15
|
||||
|
||||
#define Z2_STEP_PIN PE1
|
||||
#define Z2_DIR_PIN PE0
|
||||
#define Z2_ENABLE_PIN PC5
|
||||
#define Z2_CS_PIN PD11
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB15
|
||||
#define HEATER_1_PIN PC8
|
||||
#define HEATER_2_PIN PB3
|
||||
#define HEATER_BED_PIN PB4
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PE9
|
||||
|
||||
//
|
||||
// Servos
|
||||
// Z_MAX_PIN only works in input mode
|
||||
//
|
||||
#define SERVO0_PIN PA2
|
||||
|
||||
#if HAS_TMC_UART
|
||||
#define X_SERIAL_TX_PIN PE7
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define X2_SERIAL_TX_PIN PA15
|
||||
#define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE15
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD10
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define Z2_SERIAL_TX_PIN PD11
|
||||
#define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD7
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PC14
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PC15
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#define TMC_USE_SW_SPI
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PE14
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PE13
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PE12
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "FYSETC SPIDER supports up to 3 hotends / E-steppers."
|
||||
#else
|
||||
#include "pins_FYSETC_S6.h"
|
||||
#endif
|
@@ -1,189 +0,0 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* To build with Arduino IDE use "Discovery F407VG"
|
||||
* To build with PlatformIO use environment "STM32F4"
|
||||
*/
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Misc. STM32F4"
|
||||
#define DEFAULT_MACHINE_NAME "STM32F407VET6"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#ifndef E2END
|
||||
#define E2END 0xFFF // 4KB
|
||||
#endif
|
||||
|
||||
// Ignore temp readings during development.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PE0
|
||||
#define X_MAX_PIN -1
|
||||
#define Y_MIN_PIN PE1
|
||||
#define Y_MAX_PIN -1
|
||||
#define Z_MIN_PIN PE14
|
||||
#define Z_MAX_PIN -1
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PA4
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
|
||||
#define X_STEP_PIN PD3
|
||||
#define X_DIR_PIN PD2
|
||||
#define X_ENABLE_PIN PD0
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PD1
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PE11
|
||||
#define Y_DIR_PIN PE10
|
||||
#define Y_ENABLE_PIN PE13
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE12
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PD6
|
||||
#define Z_DIR_PIN PD7
|
||||
#define Z_ENABLE_PIN PD4
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PD5
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PB5
|
||||
#define E0_DIR_PIN PB6
|
||||
#define E0_ENABLE_PIN PB3
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PB4
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN PE4
|
||||
#define E1_DIR_PIN PE2
|
||||
#define E1_ENABLE_PIN PE3
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE5
|
||||
//#endif
|
||||
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
|
||||
#define TEMP_0_PIN PC0 // Analog Input
|
||||
#define TEMP_1_PIN PC1 // Analog Input
|
||||
#define TEMP_BED_PIN PC2 // Analog Input
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
|
||||
#define HEATER_0_PIN PA1
|
||||
#define HEATER_1_PIN PA2
|
||||
#define HEATER_BED_PIN PA0
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PC6
|
||||
#endif
|
||||
#define FAN1_PIN PC7
|
||||
#define FAN2_PIN PC8
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
|
||||
//#define CASE_LIGHT_PIN_CI PF13
|
||||
//#define CASE_LIGHT_PIN_DO PF14
|
||||
//#define NEOPIXEL_PIN PF13
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
|
||||
//#define E_MUX0_PIN PG3
|
||||
//#define E_MUX1_PIN PG4
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
|
||||
//#define SERVO0_PIN PE13
|
||||
//#define SERVO1_PIN PE14
|
||||
|
||||
#define SDSS PE7
|
||||
#define SS_PIN PE7
|
||||
#define LED_PIN PB7 //Alive
|
||||
#define PS_ON_PIN PA10
|
||||
#define KILL_PIN PA8
|
||||
#define PWR_LOSS PA4 //Power loss / nAC_FAULT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
#define SD_DETECT_PIN PA15
|
||||
#define BEEPER_PIN PC9
|
||||
#define LCD_PINS_RS PE9
|
||||
#define LCD_PINS_ENABLE PE8
|
||||
#define LCD_PINS_D4 PB12
|
||||
#define LCD_PINS_D5 PB13
|
||||
#define LCD_PINS_D6 PB14
|
||||
#define LCD_PINS_D7 PB15
|
||||
#define BTN_EN1 PC4
|
||||
#define BTN_EN2 PC5
|
||||
#define BTN_ENC PC3
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
|
||||
#define FIL_RUNOUT_PIN PA3
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#endif
|
157
Marlin/src/pins/stm32f4/pins_INDEX_REV03.h
Normal file
157
Marlin/src/pins/stm32f4/pins_INDEX_REV03.h
Normal file
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* STM32F407VET6 on Index PnP Mobo Rev03
|
||||
* Website - https://indexmachines.io/
|
||||
*/
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "Index Mobo Rev03"
|
||||
#define DEFAULT_MACHINE_NAME "Index Pick and Place"
|
||||
|
||||
/**
|
||||
* By default, the extra stepper motor configuration is:
|
||||
* I = Left Head
|
||||
* J = Right Head
|
||||
* K = Auxiliary (Conveyor belt)
|
||||
*/
|
||||
|
||||
#define SRAM_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PB10
|
||||
#define SERVO1_PIN PB11
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_STOP_PIN PC6
|
||||
#define Y_STOP_PIN PD15
|
||||
#define Z_STOP_PIN PD14
|
||||
|
||||
// None of these require limit switches by default, so we leave these commented
|
||||
// here for your reference.
|
||||
// #define I_MIN_PIN PA8
|
||||
// #define I_MAX_PIN PA8
|
||||
// #define J_MIN_PIN PD13
|
||||
// #define J_MAX_PIN PD13
|
||||
// #define K_MIN_PIN PC9
|
||||
// #define K_MAX_PIN PC9
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB15
|
||||
#define X_DIR_PIN PB14
|
||||
#define X_ENABLE_PIN PD9
|
||||
#define X_SERIAL_TX_PIN PD8
|
||||
#define X_SERIAL_RX_PIN PD8
|
||||
|
||||
#define Y_STEP_PIN PE15
|
||||
#define Y_DIR_PIN PE14
|
||||
#define Y_ENABLE_PIN PB13
|
||||
#define Y_SERIAL_TX_PIN PB12
|
||||
#define Y_SERIAL_RX_PIN PB12
|
||||
|
||||
#define Z_STEP_PIN PE7
|
||||
#define Z_DIR_PIN PB1
|
||||
#define Z_ENABLE_PIN PE9
|
||||
#define Z_SERIAL_TX_PIN PE8
|
||||
#define Z_SERIAL_RX_PIN PE8
|
||||
|
||||
#define I_STEP_PIN PC4
|
||||
#define I_DIR_PIN PA4
|
||||
#define I_ENABLE_PIN PB0
|
||||
#define I_SERIAL_TX_PIN PC5
|
||||
#define I_SERIAL_RX_PIN PC5
|
||||
|
||||
#define J_STEP_PIN PE11
|
||||
#define J_DIR_PIN PE10
|
||||
#define J_ENABLE_PIN PE13
|
||||
#define J_SERIAL_TX_PIN PE12
|
||||
#define J_SERIAL_RX_PIN PE12
|
||||
#define K_SERIAL_TX_PIN PA2
|
||||
#define K_SERIAL_RX_PIN PA2
|
||||
|
||||
#define K_STEP_PIN PD6
|
||||
#define K_DIR_PIN PD7
|
||||
#define K_ENABLE_PIN PA3
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
|
||||
// Not required for this board. Fails to compile otherwise.
|
||||
// PD0 is not connected on this board.
|
||||
#define TEMP_0_PIN PD0
|
||||
|
||||
// General use mosfets, useful for things like pumps and solenoids
|
||||
#define FAN_PIN PE2
|
||||
#define FAN1_PIN PE3
|
||||
#define FAN2_PIN PE4
|
||||
#define FAN3_PIN PE5
|
||||
|
||||
// Neopixel Rings
|
||||
#define NEOPIXEL_PIN PC7
|
||||
#define NEOPIXEL2_PIN PC8
|
||||
|
||||
// SPI
|
||||
#define MISO_PIN PB4
|
||||
#define MOSI_PIN PB5
|
||||
#define SCK_PIN PB3
|
||||
|
||||
// I2C
|
||||
#define I2C_SDA_PIN PB7
|
||||
#define I2C_SCL_PIN PB6
|
||||
|
||||
/**
|
||||
* The index mobo rev03 has 3 aux ports. We define them here so they may be used
|
||||
* in other places and to make sure someone doesn't have to go look up the pinout
|
||||
* in the board files. Each 12 pin aux port has this pinout:
|
||||
*
|
||||
* VDC 1 2 GND
|
||||
* 3.3V 3 4 SCL (I2C_SCL_PIN)
|
||||
* PWM1 5 6 SDA (I2C_SDA_PIN)
|
||||
* PWM2 7 8 CIPO (MISO_PIN)
|
||||
* A1 9 10 COPI (MOSI_PIN)
|
||||
* A2 11 12 SCK (SCK_PIN)
|
||||
*/
|
||||
#define INDEX_AUX1_PWM1 PA15
|
||||
#define INDEX_AUX1_PWM2 PA5
|
||||
#define INDEX_AUX1_A1 PC0
|
||||
#define INDEX_AUX1_A2 PC1
|
||||
|
||||
#define INDEX_AUX2_PWM1 PA6
|
||||
#define INDEX_AUX2_PWM2 PA7
|
||||
#define INDEX_AUX2_A1 PC2
|
||||
#define INDEX_AUX2_A2 PC3
|
||||
|
||||
#define INDEX_AUX3_PWM1 PB8
|
||||
#define INDEX_AUX3_PWM2 PB9
|
||||
#define INDEX_AUX3_A1 PA0
|
||||
#define INDEX_AUX3_A2 PA1
|
210
Marlin/src/pins/stm32f4/pins_LERDGE_K.h
Executable file → Normal file
210
Marlin/src/pins/stm32f4/pins_LERDGE_K.h
Executable file → Normal file
@@ -2,6 +2,9 @@
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
@@ -13,29 +16,37 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "LERDGE K supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Lerdge K"
|
||||
#define DEFAULT_MACHINE_NAME "LERDGE"
|
||||
|
||||
#define I2C_EEPROM
|
||||
// EEPROM
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define I2C_EEPROM
|
||||
#define SOFT_I2C_EEPROM // Force the use of Software I2C
|
||||
#define I2C_SCL_PIN PG14
|
||||
#define I2C_SDA_PIN PG13
|
||||
#define MARLIN_EEPROM_SIZE 0x10000
|
||||
#endif
|
||||
|
||||
// Ignore temp readings during develpment.
|
||||
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
//#define SERVO0_PIN PD12
|
||||
#define SERVO0_PIN PB11
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -48,14 +59,14 @@
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PB15
|
||||
// #define Z_MIN_PROBE_PIN PG6
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PE6
|
||||
#define FIL_RUNOUT2_PIN PE7
|
||||
#define FIL_RUNOUT_PIN PE5
|
||||
#define FIL_RUNOUT2_PIN PE6
|
||||
|
||||
//
|
||||
// Steppers
|
||||
@@ -64,37 +75,94 @@
|
||||
#define X_DIR_PIN PB10
|
||||
#define X_ENABLE_PIN PG0
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PE0
|
||||
// #define X_CS_PIN PB2
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PF14
|
||||
#define Y_DIR_PIN PF15
|
||||
#define Y_ENABLE_PIN PF13
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE1
|
||||
// #define Y_CS_PIN PE2
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PF11
|
||||
#define Z_DIR_PIN PF12
|
||||
#define Z_ENABLE_PIN PC5
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PE2
|
||||
// #define Z_CS_PIN PE3
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PC14
|
||||
#define E0_DIR_PIN PC13
|
||||
#define E0_ENABLE_PIN PC15
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PE3
|
||||
// #define E0_CS_PIN PE4
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN PF1
|
||||
#define E1_DIR_PIN PF0
|
||||
#define E1_ENABLE_PIN PF2
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE4
|
||||
// #define E1_CS_PIN PE1
|
||||
//#endif
|
||||
|
||||
//#define Z2_STEP_PIN PF4
|
||||
//#define Z2_DIR_PIN PF3
|
||||
//#define Z2_ENABLE_PIN PF5
|
||||
//#define Z2_STOP_PIN PG2
|
||||
//#ifndef Z2_CS_PIN
|
||||
// #define Z2_CS_PIN PE0
|
||||
//#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*/
|
||||
#ifndef X_SERIAL_TX_PIN
|
||||
#define X_SERIAL_TX_PIN PB2
|
||||
#endif
|
||||
#ifndef X_SERIAL_RX_PIN
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
#endif
|
||||
#ifndef Y_SERIAL_TX_PIN
|
||||
#define Y_SERIAL_TX_PIN PE2
|
||||
#endif
|
||||
#ifndef Y_SERIAL_RX_PIN
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
#endif
|
||||
#ifndef Z_SERIAL_TX_PIN
|
||||
#define Z_SERIAL_TX_PIN PE3
|
||||
#endif
|
||||
#ifndef Z_SERIAL_RX_PIN
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
#endif
|
||||
#ifndef E0_SERIAL_TX_PIN
|
||||
#define E0_SERIAL_TX_PIN PE4
|
||||
#endif
|
||||
#ifndef E0_SERIAL_RX_PIN
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
#endif
|
||||
#ifndef E1_SERIAL_TX_PIN
|
||||
#define E1_SERIAL_TX_PIN PE1
|
||||
#endif
|
||||
#ifndef E1_SERIAL_RX_PIN
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
#endif
|
||||
// Ex-motor can be any... X2/Y2/Z2 or E2
|
||||
#ifndef EX_SERIAL_TX_PIN
|
||||
#define EX_SERIAL_TX_PIN PE0
|
||||
#endif
|
||||
#ifndef EX_SERIAL_RX_PIN
|
||||
#define EX_SERIAL_RX_PIN EX_SERIAL_TX_PIN
|
||||
#endif
|
||||
//#define Z2_SERIAL_RX_PIN EX_SERIAL_RX_PIN
|
||||
//#define Z2_SERIAL_TX_PIN EX_SERIAL_TX_PIN
|
||||
//#define E2_SERIAL_RX_PIN EX_SERIAL_RX_PIN
|
||||
//#define E2_SERIAL_TX_PIN EX_SERIAL_TX_PIN
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -102,6 +170,12 @@
|
||||
#define TEMP_1_PIN PC2 // Analog Input
|
||||
#define TEMP_BED_PIN PC0 // Analog Input
|
||||
|
||||
// Lergde-K can choose thermocouple/thermistor mode in software.
|
||||
// For use with thermistors, these pins must be OUT/LOW.
|
||||
// This is done automatically.
|
||||
#define TEMP_0_TR_ENABLE_PIN PF10
|
||||
#define TEMP_1_TR_ENABLE_PIN PF9
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
@@ -110,68 +184,90 @@
|
||||
#define HEATER_BED_PIN PA2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PC15
|
||||
#define FAN_PIN PF7
|
||||
#endif
|
||||
#define FAN1_PIN PF6
|
||||
#define FAN2_PIN PF7
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
#define FAN1_PIN PF6
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN PB1
|
||||
#endif
|
||||
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN PB0
|
||||
#endif
|
||||
|
||||
#define CONTROLLER_FAN_PIN PF8
|
||||
|
||||
//
|
||||
// LED / Lighting
|
||||
//
|
||||
//#define CASE_LIGHT_PIN_CI -1
|
||||
//#define CASE_LIGHT_PIN_DO -1
|
||||
#define LED_PIN PA15 // Status LED
|
||||
//#define CASE_LIGHT_PIN PB6 // LED Ribbon Connector (PWM TIM4_CH1)
|
||||
//#define NEOPIXEL_PIN -1
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi-Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN -1
|
||||
//#define E_MUX1_PIN -1
|
||||
#ifndef RGB_LED_R_PIN
|
||||
#define RGB_LED_R_PIN PB8 // swap R and G pin for compatibility with real wires
|
||||
#endif
|
||||
#ifndef RGB_LED_G_PIN
|
||||
#define RGB_LED_G_PIN PB7
|
||||
#endif
|
||||
#ifndef RGB_LED_B_PIN
|
||||
#define RGB_LED_B_PIN PB9
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD support
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
#define SDIO_CLOCK 4800000
|
||||
#define SD_DETECT_PIN PA8
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
#define SDSS PC11
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PC11
|
||||
#define LED_PIN PC7 // Alive
|
||||
#define PS_ON_PIN -1
|
||||
#define PS_ON_PIN PA4
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
#define POWER_LOSS_PIN PA4 // Power-loss / nAC_FAULT
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
// TFT with FSMC interface
|
||||
//
|
||||
#if HAS_FSMC_TFT
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#define ST7796S_INVERTED
|
||||
|
||||
// TODO: Replace these with the correct FSMC pins, once known
|
||||
#define SD_DETECT_PIN -1
|
||||
#define BEEPER_PIN PD12
|
||||
#define LCD_PINS_RS -1
|
||||
#define LCD_PINS_ENABLE -1
|
||||
#define LCD_PINS_D4 -1
|
||||
#define LCD_PINS_D5 -1
|
||||
#define LCD_PINS_D6 -1
|
||||
#define LCD_PINS_D7 -1
|
||||
#define TFT_RESET_PIN PD6
|
||||
#define TFT_BACKLIGHT_PIN PD3
|
||||
|
||||
#define BTN_EN1 PE3
|
||||
#define BTN_EN2 PE4
|
||||
#define BTN_ENC PE2
|
||||
#define FSMC_CS_PIN PD7
|
||||
#define FSMC_RS_PIN PD11
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#define TFT_CS_PIN FSMC_CS_PIN
|
||||
#define TFT_RS_PIN FSMC_RS_PIN
|
||||
|
||||
#define TOUCH_CS_PIN PG15
|
||||
#define TOUCH_SCK_PIN PB3
|
||||
#define TOUCH_MOSI_PIN PB5
|
||||
#define TOUCH_MISO_PIN PB4
|
||||
#define TOUCH_INT_PIN PG12
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BEEPER_PIN PC7
|
||||
#define BTN_EN1 PG11
|
||||
#define BTN_EN2 PG10
|
||||
#define BTN_ENC PG9
|
||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||
#define ENCODER_STEPS_PER_MENU_ITEM 2
|
||||
#endif
|
||||
#endif
|
||||
|
231
Marlin/src/pins/stm32f4/pins_LERDGE_S.h
Normal file
231
Marlin/src/pins/stm32f4/pins_LERDGE_S.h
Normal file
@@ -0,0 +1,231 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "LERDGE S supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Lerdge S"
|
||||
#define DEFAULT_MACHINE_NAME "LERDGE"
|
||||
|
||||
#define STEP_TIMER 4
|
||||
#define TEMP_TIMER 2
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PD12
|
||||
//#define SERVO1_PIN -1
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_MIN_PIN PG9
|
||||
#define Y_MIN_PIN PG10
|
||||
#define Z_MIN_PIN PG11
|
||||
|
||||
#define X_MAX_PIN PG12
|
||||
#define Y_MAX_PIN PG13
|
||||
#define Z_MAX_PIN PG14
|
||||
|
||||
//
|
||||
// Filament runout
|
||||
//
|
||||
#define FIL_RUNOUT_PIN PC5
|
||||
|
||||
//
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
#ifndef Z_MIN_PROBE_PIN
|
||||
#define Z_MIN_PROBE_PIN PG8
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PF7
|
||||
#define X_DIR_PIN PF8
|
||||
#define X_ENABLE_PIN PF6
|
||||
|
||||
#define Y_STEP_PIN PF10
|
||||
#define Y_DIR_PIN PF11
|
||||
#define Y_ENABLE_PIN PF9
|
||||
|
||||
#define Z_STEP_PIN PF13
|
||||
#define Z_DIR_PIN PF14
|
||||
#define Z_ENABLE_PIN PF12
|
||||
|
||||
#define E0_STEP_PIN PG0
|
||||
#define E0_DIR_PIN PG1
|
||||
#define E0_ENABLE_PIN PF15
|
||||
|
||||
#define E1_STEP_PIN PG3
|
||||
#define E1_DIR_PIN PG4
|
||||
#define E1_ENABLE_PIN PG2
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC0 // See below for activation of thermistor readings
|
||||
#define TEMP_1_PIN PC1 // See below for activation of thermistor readings
|
||||
#define TEMP_BED_PIN PC3
|
||||
|
||||
// Lergde-S can choose thermocouple/thermistor mode in software.
|
||||
// For use with thermistors, these pins must be OUT/LOW.
|
||||
// This is done automatically.
|
||||
#define TEMP_0_TR_ENABLE_PIN PF3
|
||||
#define TEMP_1_TR_ENABLE_PIN PF4
|
||||
|
||||
// MAX6675 Cold-Junction-Compensated K-Thermocouple to Digital Converter (0°C to +1024°C)
|
||||
// https://datasheets.maximintegrated.com/en/ds/MAX6675.pdf
|
||||
|
||||
#define TEMP_0_CS_PIN PC4 // max6675 datasheet: /CS pin, found with multimeter, not tested and likely wrong
|
||||
#define TEMP_0_SCK_PIN PB3 // max6675 datasheet: SCK pin, found with multimeter, not tested
|
||||
#define TEMP_0_MISO_PIN PB4 // max6675 datasheet: SO pin, found with multimeter, not tested
|
||||
|
||||
// Expansion board with second max6675
|
||||
// Warning: Some boards leave the slot unpopulated.
|
||||
|
||||
//#define TEMP_1_CS_PIN PF1 // max6675 datasheet: /CS pin, found with multimeter, not tested
|
||||
//#define TEMP_1_SCK_PIN PB3 // max6675 datasheet: SCK pin, found with multimeter, not tested
|
||||
//#define TEMP_1_MISO_PIN PB4 // max6675 datasheet: SO pin, found with multimeter, not tested
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PA0
|
||||
#define HEATER_1_PIN PA1
|
||||
#define HEATER_BED_PIN PA3
|
||||
|
||||
#define FAN_PIN PA15 // heater 0 fan 1
|
||||
#define FAN1_PIN PB10 // heater 1 fan 2
|
||||
#define FAN2_PIN PF5 // heater 0 fan 2 and heater 1 fan 1 (two sockets, switched together)
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN PF5
|
||||
#endif
|
||||
|
||||
//
|
||||
// Průša i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN -1
|
||||
//#define E_MUX1_PIN -1
|
||||
|
||||
//
|
||||
// LED / Lighting
|
||||
//
|
||||
//Lerdge-S board has two LED connectors (this is the one on the mainboard)
|
||||
#define CASE_LIGHT_PIN PC7
|
||||
|
||||
//on the dual extrusion addon board is a RGB connector
|
||||
#define RGB_LED_R_PIN PC7 // Shared with the mainboard LED light connector (CASE_LIGHT_PIN)
|
||||
#define RGB_LED_G_PIN PB0
|
||||
#define RGB_LED_B_PIN PB1
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN PC6 // Mainboard soldered green LED
|
||||
#define PS_ON_PIN PB2 // Board has a power module connector
|
||||
#define KILL_PIN -1 // There is no reset button on the LCD
|
||||
#define POWER_LOSS_PIN -1 // PB2 could be used for this as well
|
||||
|
||||
//
|
||||
// SD support
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
#define SDIO_CLOCK 4800000
|
||||
#define SD_DETECT_PIN PG15
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
#define SDSS PC11
|
||||
#endif
|
||||
|
||||
//
|
||||
// Persistent Storage
|
||||
// If no option is selected below the SD Card will be used
|
||||
// Prefer the I2C option (F-RAM) to store Marlin settings, SPI option is not working yet
|
||||
|
||||
//#define SPI_EEPROM
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#if ENABLED(SPI_EEPROM) // SPI EEPROM Winbond W25Q128 (128Mbits) https://www.pjrc.com/teensy/W25Q128FV.pdf
|
||||
#define SPI_CHAN_EEPROM1 1
|
||||
#define SPI_EEPROM1_CS_PIN PB12 // datasheet: /CS pin, found with multimeter, not tested
|
||||
#define EEPROM_SCK_PIN PB13 // datasheet: CLK pin, found with multimeter, not tested
|
||||
#define EEPROM_MISO_PIN PB14 // datasheet: DO pin, found with multimeter, not tested
|
||||
#define EEPROM_MOSI_PIN PB15 // datasheet: DI pin, found with multimeter, not tested
|
||||
#define EEPROM_PAGE_SIZE 0x1000U // 4KB (from datasheet)
|
||||
#define MARLIN_EEPROM_SIZE 16UL * (EEPROM_PAGE_SIZE) // Limit to 64KB for now...
|
||||
#elif ENABLED(I2C_EEPROM) // FM24CL64BG (CYP1813) 64Kbit F-RAM
|
||||
#define SOFT_I2C_EEPROM // Force the use of Software I2C
|
||||
#define I2C_SDA_PIN PG13
|
||||
#define I2C_SCL_PIN PG14 // To be confirmed on the Lerdge S, but probably same as the K
|
||||
#define MARLIN_EEPROM_SIZE 0x10000
|
||||
#else
|
||||
#define MARLIN_EEPROM_SIZE 0x800U // On SD, Limit to 2KB, require this amount of RAM
|
||||
#endif
|
||||
|
||||
//
|
||||
// TFT with FSMC interface
|
||||
//
|
||||
#if HAS_FSMC_TFT
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#define ST7796S_INVERTED
|
||||
|
||||
#define TFT_RESET_PIN PD6
|
||||
#define TFT_BACKLIGHT_PIN PD3
|
||||
|
||||
#define FSMC_CS_PIN PD7
|
||||
#define FSMC_RS_PIN PD11
|
||||
|
||||
#define TFT_CS_PIN FSMC_CS_PIN
|
||||
#define TFT_RS_PIN FSMC_RS_PIN
|
||||
|
||||
#define TOUCH_CS_PIN PB6
|
||||
#define TOUCH_SCK_PIN PB3
|
||||
#define TOUCH_MOSI_PIN PB5
|
||||
#define TOUCH_MISO_PIN PB4
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BEEPER_PIN PD13
|
||||
#define BTN_EN1 PC15
|
||||
#define BTN_EN2 PC14
|
||||
#define BTN_ENC PC13
|
||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||
#define ENCODER_STEPS_PER_MENU_ITEM 2
|
||||
#endif
|
||||
#endif
|
138
Marlin/src/pins/stm32f4/pins_LERDGE_X.h
Executable file → Normal file
138
Marlin/src/pins/stm32f4/pins_LERDGE_X.h
Executable file → Normal file
@@ -2,6 +2,9 @@
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
@@ -13,27 +16,36 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "LERDGE X supports up to 2 hotends / E-steppers."
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 1 || E_STEPPERS > 1
|
||||
#error "LERDGE X only supports one hotend / E-stepper. Comment out this line to continue."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "Lerdge X"
|
||||
#define DEFAULT_MACHINE_NAME "LERDGE"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
#define STEP_TIMER 4
|
||||
#define TEMP_TIMER 2
|
||||
|
||||
#define I2C_EEPROM
|
||||
#define I2C_SCL_PIN PB8
|
||||
#define I2C_SDA_PIN PB9
|
||||
#define MARLIN_EEPROM_SIZE 0x10000 // FM24CL64 F-RAM 64K (8Kx8)
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
//#define SERVO0_PIN PD12
|
||||
//#define SERVO1_PIN -1
|
||||
//#define SERVO0_PIN PD13
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -51,7 +63,7 @@
|
||||
// Z Probe (when not Z_MIN_PIN)
|
||||
//
|
||||
//#ifndef Z_MIN_PROBE_PIN
|
||||
// #define Z_MIN_PROBE_PIN PB15
|
||||
// #define Z_MIN_PROBE_PIN PB15
|
||||
//#endif
|
||||
|
||||
//
|
||||
@@ -60,37 +72,18 @@
|
||||
#define X_STEP_PIN PB10
|
||||
#define X_DIR_PIN PB2
|
||||
#define X_ENABLE_PIN PB11
|
||||
//#ifndef X_CS_PIN
|
||||
// #define X_CS_PIN PD1
|
||||
//#endif
|
||||
|
||||
#define Y_STEP_PIN PB0
|
||||
#define Y_DIR_PIN PC5
|
||||
#define Y_ENABLE_PIN PB1
|
||||
//#ifndef Y_CS_PIN
|
||||
// #define Y_CS_PIN PE12
|
||||
//#endif
|
||||
|
||||
#define Z_STEP_PIN PA7
|
||||
#define Z_DIR_PIN PA6
|
||||
#define Z_ENABLE_PIN PC4
|
||||
//#ifndef Z_CS_PIN
|
||||
// #define Z_CS_PIN PD5
|
||||
//#endif
|
||||
|
||||
#define E0_STEP_PIN PA4
|
||||
#define E0_DIR_PIN PA3
|
||||
#define E0_ENABLE_PIN PA5
|
||||
//#ifndef E0_CS_PIN
|
||||
// #define E0_CS_PIN PB4
|
||||
//#endif
|
||||
|
||||
#define E1_STEP_PIN -1
|
||||
#define E1_DIR_PIN -1
|
||||
#define E1_ENABLE_PIN -1
|
||||
//#ifndef E1_CS_PIN
|
||||
// #define E1_CS_PIN PE5
|
||||
//#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
@@ -106,19 +99,15 @@
|
||||
#define HEATER_1_PIN -1
|
||||
#define HEATER_BED_PIN PA2
|
||||
|
||||
#ifndef FAN_PIN
|
||||
// #define FAN_PIN PC15
|
||||
#endif
|
||||
//#ifndef FAN_PIN
|
||||
// #define FAN_PIN PC15
|
||||
//#endif
|
||||
#define FAN1_PIN PC15
|
||||
#define FAN2_PIN PA0
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN PC15 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN -1
|
||||
//#define E_MUX1_PIN -1
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN PC15 // FAN1_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// LED / Lighting
|
||||
@@ -127,48 +116,61 @@
|
||||
//#define CASE_LIGHT_PIN_DO -1
|
||||
//#define NEOPIXEL_PIN -1
|
||||
|
||||
//
|
||||
// SD support (On board)
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
#define SD_DETECT_PIN PA8
|
||||
#define SDIO_CLOCK 4800000
|
||||
#if DISABLED(SDIO_SUPPORT)
|
||||
#define SOFTWARE_SPI
|
||||
#define SD_SCK_PIN PC12
|
||||
#define SD_MISO_PIN PC8
|
||||
#define SD_MOSI_PIN PD2
|
||||
#define SD_SS_PIN PC11
|
||||
#define SDSS PC11
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define SDSS PC11
|
||||
#define LED_PIN PC7 // Alive
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
#define POWER_LOSS_PIN -1 // Power-loss / nAC_FAULT
|
||||
|
||||
#define SCK_PIN PC12
|
||||
#define MISO_PIN PC8
|
||||
#define MOSI_PIN PD2
|
||||
#define SS_PIN PC11
|
||||
// Lerdge supports auto-power off and power loss sense through a single pin.
|
||||
#define POWER_LOSS_PIN PC14 // Power-loss / nAC_FAULT
|
||||
|
||||
//
|
||||
// SD support
|
||||
// TFT with FSMC interface
|
||||
//
|
||||
#define SDIO_SUPPORT
|
||||
#if HAS_FSMC_TFT
|
||||
#ifndef TFT_DRIVER
|
||||
#define TFT_DRIVER ST7796
|
||||
#endif
|
||||
#define ST7796S_INVERTED
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#define FSMC_CS_PIN PD7
|
||||
#define FSMC_RS_PIN PD11
|
||||
|
||||
// The LCD is initialized in FSMC mode
|
||||
#define SD_DETECT_PIN -1
|
||||
#define BEEPER_PIN PD12
|
||||
#define TFT_RESET_PIN PD6
|
||||
#define TFT_BACKLIGHT_PIN PD3
|
||||
|
||||
#define BTN_EN1 PE3
|
||||
#define BTN_EN2 PE4
|
||||
#define BTN_ENC PE2
|
||||
#define TFT_CS_PIN FSMC_CS_PIN
|
||||
#define TFT_RS_PIN FSMC_RS_PIN
|
||||
|
||||
#define LCD_RESET_PIN PD6
|
||||
#define LCD_BACKLIGHT_PIN PD3
|
||||
#define FSMC_CS_PIN PD4
|
||||
#define FSMC_RS_PIN PD11
|
||||
#define TOUCH_CS PB6
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(715)
|
||||
#define TOUCH_CS_PIN PB6
|
||||
#define TOUCH_SCK_PIN PB3
|
||||
#define TOUCH_MOSI_PIN PB5
|
||||
#define TOUCH_MISO_PIN PB4
|
||||
#endif
|
||||
|
||||
#if IS_NEWPANEL
|
||||
#define BEEPER_PIN PD12
|
||||
#define BTN_EN1 PE4
|
||||
#define BTN_EN2 PE3
|
||||
#define BTN_ENC PE2
|
||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||
#define ENCODER_STEPS_PER_MENU_ITEM 2
|
||||
#endif
|
||||
#endif
|
||||
|
385
Marlin/src/pins/stm32f4/pins_MKS_MONSTER8.h
Normal file
385
Marlin/src/pins/stm32f4/pins_MKS_MONSTER8.h
Normal file
@@ -0,0 +1,385 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 5
|
||||
#error "MKS Monster supports up to 3 hotends and 5 E-steppers."
|
||||
#elif HAS_FSMC_TFT
|
||||
#error "MKS Monster doesn't support FSMC-based TFT displays."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS Monster8 V1.x"
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//#define DISABLE_DEBUG
|
||||
|
||||
// Avoid conflict with TIMER_TONE
|
||||
#define STEP_TIMER 10
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#define I2C_EEPROM // Need use jumpers set i2c for EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#define I2C_SCL_PIN PB8 // I2C_SCL and CAN_RX
|
||||
#define I2C_SDA_PIN PB9 // I2C_SDA and CAN_TX
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA8 // Enable BLTOUCH
|
||||
|
||||
//
|
||||
// Limit Switches for diag signal
|
||||
//
|
||||
#define X_DIAG_PIN PA14 // Driver0 diag signal is connect to X-
|
||||
#define Y_DIAG_PIN PA15 // Driver1 diag signal is connect to Y-
|
||||
#define Z_DIAG_PIN PB13 // Driver2 diag signal is connect to Z-
|
||||
#define E0_DIAG_PIN PA13 // Driver3 diag signal is connect to X+
|
||||
#define E1_DIAG_PIN PC5 // Driver4 diag signal is connect to Y+
|
||||
#define E2_DIAG_PIN PB12 // Driver5 diag signal is connect to Z+
|
||||
#define E3_DIAG_PIN -1 // Driver6 diag signal is not connect
|
||||
#define E4_DIAG_PIN -1 // Driver7 diag signal is not connect
|
||||
|
||||
// Limit Switches for endstop
|
||||
#define X_MIN_PIN PA14
|
||||
#define X_MAX_PIN PA13
|
||||
#define Y_MIN_PIN PA15
|
||||
#define Y_MAX_PIN PC5
|
||||
#define Z_MIN_PIN PB13
|
||||
#define Z_MAX_PIN PB12
|
||||
|
||||
//
|
||||
// Steppers
|
||||
// Driver 0 1 2 3 4 5 6 7
|
||||
// For X Y Z E0 E1 E2 E3 E4(default pin settings)
|
||||
//
|
||||
//Driver0
|
||||
#define X_ENABLE_PIN PC15
|
||||
#define X_STEP_PIN PC14
|
||||
#define X_DIR_PIN PC13
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PE6
|
||||
#endif
|
||||
//Driver1
|
||||
#define Y_ENABLE_PIN PC15
|
||||
#define Y_STEP_PIN PE5
|
||||
#define Y_DIR_PIN PE4
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PE3
|
||||
#endif
|
||||
//Driver2
|
||||
#define Z_ENABLE_PIN PE2
|
||||
#define Z_STEP_PIN PE1
|
||||
#define Z_DIR_PIN PE0
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PB7
|
||||
#endif
|
||||
//Driver3
|
||||
#define E0_ENABLE_PIN PB6
|
||||
#define E0_STEP_PIN PB5
|
||||
#define E0_DIR_PIN PB4
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PB3
|
||||
#endif
|
||||
//Driver4
|
||||
#define E1_ENABLE_PIN PD7
|
||||
#define E1_STEP_PIN PD6
|
||||
#define E1_DIR_PIN PD5
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PD4
|
||||
#endif
|
||||
//Driver5
|
||||
#define E2_ENABLE_PIN PD3
|
||||
#define E2_STEP_PIN PD2
|
||||
#define E2_DIR_PIN PD1
|
||||
#ifndef E2_CS_PIN
|
||||
#define E2_CS_PIN PD0
|
||||
#endif
|
||||
//Driver6
|
||||
#define E3_ENABLE_PIN PC8
|
||||
#define E3_STEP_PIN PC7
|
||||
#define E3_DIR_PIN PC6
|
||||
#ifndef E3_CS_PIN
|
||||
#define E3_CS_PIN PD15
|
||||
#endif
|
||||
//Driver7
|
||||
#define E4_ENABLE_PIN PD14
|
||||
#define E4_STEP_PIN PD13
|
||||
#define E4_DIR_PIN PD12
|
||||
#ifndef E4_CS_PIN
|
||||
#define E4_CS_PIN PD11
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// This board only supports SW SPI for stepper drivers
|
||||
//
|
||||
#if HAS_TMC_SPI
|
||||
#define TMC_USE_SW_SPI
|
||||
#endif
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#if !defined(TMC_SW_MOSI) || TMC_SW_MOSI == -1
|
||||
#define TMC_SW_MOSI PE14
|
||||
#endif
|
||||
#if !defined(TMC_SW_MISO) || TMC_SW_MISO == -1
|
||||
#define TMC_SW_MISO PE13
|
||||
#endif
|
||||
#if !defined(TMC_SW_SCK) || TMC_SW_SCK == -1
|
||||
#define TMC_SW_SCK PE12
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// Software serial
|
||||
// No Hardware serial for steppers
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PE6
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE3
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PB7
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PB3
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD4
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD0
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
|
||||
#define E3_SERIAL_TX_PIN PD15
|
||||
#define E3_SERIAL_RX_PIN E3_SERIAL_TX_PIN
|
||||
|
||||
#define E4_SERIAL_TX_PIN PD11
|
||||
#define E4_SERIAL_RX_PIN E4_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // TH0
|
||||
#define TEMP_1_PIN PC2 // TH1
|
||||
#define TEMP_2_PIN PC3 // TH2
|
||||
#define TEMP_BED_PIN PC0 // TB
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PB1 // HE0
|
||||
#define HEATER_1_PIN PB0 // HE1
|
||||
#define HEATER_2_PIN PA3 // HE2
|
||||
#define HEATER_BED_PIN PB10 // H-BED
|
||||
|
||||
#define FAN_PIN PA2 // FAN0
|
||||
#define FAN1_PIN PA1 // FAN1
|
||||
#define FAN2_PIN PA0 // FAN2
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define PW_DET PC5 // Y+
|
||||
#define PW_OFF PB12 // Z+
|
||||
#define MT_DET_1_PIN PW_DET
|
||||
#define MT_DET_2_PIN PW_OFF
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN MT_DET_1_PIN
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN MT_DET_2_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(MKS_PWC)
|
||||
#define PS_ON_PIN PW_OFF
|
||||
#define KILL_PIN PW_DET
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
// Random Info
|
||||
#define USB_SERIAL -1 // USB Serial
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* (BEEPER) PB2 |10 9 | PE10 (BTN_ENC) (SPI1 MISO) PA6 |10 9 | PA5 (SPI1 SCK)
|
||||
* (LCD_EN) PE11 | 8 7 | PD10 (LCD_RS) (BTN_EN1) PE9 | 8 7 | PA4 (SPI1 CS)
|
||||
* (LCD_D4) PD9 6 5 | PD8 (LCD_D5) (BTN_EN2) PE8 6 5 | PA7 (SPI1 MOSI)
|
||||
* (LCD_D6) PE15 | 4 3 | PE7 (LCD_D7) (SPI1_RS) PB11 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | 3.3V
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PE7
|
||||
#define EXP1_04_PIN PE15
|
||||
#define EXP1_05_PIN PD8
|
||||
#define EXP1_06_PIN PD9
|
||||
#define EXP1_07_PIN PD10
|
||||
#define EXP1_08_PIN PE11
|
||||
#define EXP1_09_PIN PE10
|
||||
#define EXP1_10_PIN PB2
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN PB11
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PE8
|
||||
#define EXP2_07_PIN PA4
|
||||
#define EXP2_08_PIN PE9
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define ENABLE_SPI3
|
||||
#define SD_SS_PIN -1
|
||||
#define SDSS PC9
|
||||
#define SD_SCK_PIN PC10
|
||||
#define SD_MISO_PIN PC11
|
||||
#define SD_MOSI_PIN PC12
|
||||
#define SD_DETECT_PIN PC4 // SD_DETECT_PIN doesn't work with NO_SD_HOST_DRIVE disabled
|
||||
#elif SD_CONNECTION_IS(LCD)
|
||||
#define ENABLE_SPI1
|
||||
#define SDSS EXP2_07_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
#if ANY(TFT_COLOR_UI, TFT_CLASSIC_UI)
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_RST_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#define LCD_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
#endif
|
||||
#ifndef TFT_HEIGHT
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN // SPI1_NSS
|
||||
#define TOUCH_SCK_PIN EXP2_09_PIN // SPI1_SCK
|
||||
#define TOUCH_MISO_PIN EXP2_10_PIN // SPI1_MISO
|
||||
#define TOUCH_MOSI_PIN EXP2_05_PIN // SPI1_MOSI
|
||||
|
||||
#define LCD_READ_ID 0xD3
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TFT_BUFFER_SIZE 14400
|
||||
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -17253
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11579
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 514
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -24
|
||||
#endif
|
||||
#ifndef TOUCH_ORIENTATION
|
||||
#define TOUCH_ORIENTATION TOUCH_LANDSCAPE
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
// MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
//#define LCD_RESET_PIN -1
|
||||
#define DOGLCD_A0 PD11
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
//#define DOGLCD_SCK EXP2_09_PIN
|
||||
//#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864_V3)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define LCD_PINS_DC DOGLCD_A0
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#else
|
||||
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#endif
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
||||
#endif // !MKS_MINI_12864
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, HAS_WIRED_LCD)
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
10
Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
Executable file → Normal file
10
Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
Executable file → Normal file
@@ -16,19 +16,19 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS_ROBIN2 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#ifndef BOARD_INFO_NAME
|
||||
#define BOARD_NAME "MKS_ROBIN2"
|
||||
#define BOARD_INFO_NAME "MKS_ROBIN2"
|
||||
#endif
|
||||
|
||||
#ifndef DEFAULT_MACHINE_NAME
|
||||
|
45
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h
Normal file
45
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* MKS Robin nano V1.3 (STM32F407VET6) board pin assignments
|
||||
* https://github.com/makerbase-mks/MKS-Robin-Nano-V1.X/tree/master/hardware
|
||||
*/
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "MKS Robin Nano V1.3"
|
||||
|
||||
//
|
||||
// EEPROM
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//
|
||||
#if NO_EEPROM_SELECTED
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#endif
|
||||
|
||||
#define LED_PIN PB1
|
||||
|
||||
#include "../stm32f1/pins_MKS_ROBIN_NANO_common.h"
|
415
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3.h
Normal file
415
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3.h
Normal file
@@ -0,0 +1,415 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS Robin Nano V3 supports up to 2 hotends / E-steppers."
|
||||
#elif HAS_FSMC_TFT
|
||||
#error "MKS Robin Nano V3 doesn't support FSMC-based TFT displays."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS Robin Nano V3"
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
// Avoid conflict with TIMER_TONE
|
||||
#define STEP_TIMER 10
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#if EITHER(NO_EEPROM_SELECTED, I2C_EEPROM)
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#define I2C_SCL_PIN PB6
|
||||
#define I2C_SDA_PIN PB7
|
||||
#endif
|
||||
|
||||
//
|
||||
// Release PB4 (Z_DIR_PIN) from JTAG NRST role
|
||||
//
|
||||
//#define DISABLE_DEBUG
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA8 // Enable BLTOUCH
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_DIAG_PIN PA15
|
||||
#define Y_DIAG_PIN PD2
|
||||
#define Z_DIAG_PIN PC8
|
||||
#define E0_DIAG_PIN PC4
|
||||
#define E1_DIAG_PIN PE7
|
||||
|
||||
#define X_STOP_PIN X_DIAG_PIN
|
||||
#define Y_STOP_PIN Y_DIAG_PIN
|
||||
#define Z_MIN_PIN Z_DIAG_PIN
|
||||
#define Z_MAX_PIN E0_DIAG_PIN
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PE4
|
||||
#define X_STEP_PIN PE3
|
||||
#define X_DIR_PIN PE2
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PD5
|
||||
#endif
|
||||
|
||||
#define Y_ENABLE_PIN PE1
|
||||
#define Y_STEP_PIN PE0
|
||||
#define Y_DIR_PIN PB9
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PD7
|
||||
#endif
|
||||
|
||||
#define Z_ENABLE_PIN PB8
|
||||
#define Z_STEP_PIN PB5
|
||||
#define Z_DIR_PIN PB4
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PD4
|
||||
#endif
|
||||
|
||||
#define E0_ENABLE_PIN PB3
|
||||
#define E0_STEP_PIN PD6
|
||||
#define E0_DIR_PIN PD3
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PD9
|
||||
#endif
|
||||
|
||||
#define E1_ENABLE_PIN PA3
|
||||
#define E1_STEP_PIN PD15
|
||||
#define E1_DIR_PIN PA1
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PD8
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
// This board only supports SW SPI for stepper drivers
|
||||
//
|
||||
#if HAS_TMC_SPI
|
||||
#define TMC_USE_SW_SPI
|
||||
#endif
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#if !defined(TMC_SW_MOSI) || TMC_SW_MOSI == -1
|
||||
#define TMC_SW_MOSI PD14
|
||||
#endif
|
||||
#if !defined(TMC_SW_MISO) || TMC_SW_MISO == -1
|
||||
#define TMC_SW_MISO PD1
|
||||
#endif
|
||||
#if !defined(TMC_SW_SCK) || TMC_SW_SCK == -1
|
||||
#define TMC_SW_SCK PD0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// Software serial
|
||||
// No Hardware serial for steppers
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PD5
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PD7
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD4
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD9
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD8
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // TH1
|
||||
#define TEMP_1_PIN PA2 // TH2
|
||||
#define TEMP_BED_PIN PC0 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PE5 // HEATER1
|
||||
#define HEATER_1_PIN PB0 // HEATER2
|
||||
#define HEATER_BED_PIN PA0 // HOT BED
|
||||
|
||||
#define FAN_PIN PC14 // FAN
|
||||
#define FAN1_PIN PB1 // FAN1
|
||||
|
||||
//
|
||||
// Thermocouples
|
||||
//
|
||||
//#define TEMP_0_CS_PIN HEATER_0_PIN // TC1 - CS1
|
||||
//#define TEMP_0_CS_PIN HEATER_1_PIN // TC2 - CS2
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#if HAS_TFT_LVGL_UI
|
||||
#define MT_DET_1_PIN PA4 // MT_DET
|
||||
#define MT_DET_2_PIN PE6
|
||||
#define MT_DET_PIN_STATE LOW
|
||||
#endif
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN MT_DET_1_PIN
|
||||
#endif
|
||||
#ifndef FIL_RUNOUT2_PIN
|
||||
#define FIL_RUNOUT2_PIN MT_DET_2_PIN
|
||||
#endif
|
||||
|
||||
#ifndef POWER_LOSS_PIN
|
||||
#define POWER_LOSS_PIN PA13 // PW_DET
|
||||
#endif
|
||||
|
||||
//#define SUICIDE_PIN PB2
|
||||
//#define LED_PIN PB2
|
||||
//#define KILL_PIN PA2
|
||||
//#define KILL_PIN_STATE LOW
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(MKS_PWC)
|
||||
#if ENABLED(TFT_LVGL_UI)
|
||||
#undef PSU_CONTROL
|
||||
#undef MKS_PWC
|
||||
#define SUICIDE_PIN PB2
|
||||
#define SUICIDE_PIN_STATE LOW
|
||||
#else
|
||||
#define PS_ON_PIN PB2 // PW_OFF
|
||||
#endif
|
||||
#define KILL_PIN PA13 // PW_DET
|
||||
#define KILL_PIN_STATE HIGH
|
||||
#endif
|
||||
|
||||
// Random Info
|
||||
#define USB_SERIAL -1 // USB Serial
|
||||
#define WIFI_SERIAL 3 // USART3
|
||||
#define MKS_WIFI_MODULE_SERIAL 1 // USART1
|
||||
#define MKS_WIFI_MODULE_SPI 2 // SPI2
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
// MKS WIFI MODULE
|
||||
#if ENABLED(MKS_WIFI_MODULE)
|
||||
#define WIFI_IO0_PIN PC13
|
||||
#define WIFI_IO1_PIN PC7
|
||||
#define WIFI_RESET_PIN PE9
|
||||
#endif
|
||||
|
||||
// MKS TEST
|
||||
#if ENABLED(MKS_TEST)
|
||||
#define MKS_TEST_POWER_LOSS_PIN PA13 // PW_DET
|
||||
#define MKS_TEST_PS_ON_PIN PB2 // PW_OFF
|
||||
#endif
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
//
|
||||
// detect pin doesn't work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define ENABLE_SPI3
|
||||
#define SD_SS_PIN -1
|
||||
#define SDSS PC9
|
||||
#define SD_SCK_PIN PC10
|
||||
#define SD_MISO_PIN PC11
|
||||
#define SD_MOSI_PIN PC12
|
||||
#define SD_DETECT_PIN PD12
|
||||
#endif
|
||||
|
||||
#define SPI_FLASH
|
||||
#if ENABLED(SPI_FLASH)
|
||||
#define HAS_SPI_FLASH 1
|
||||
#define SPI_DEVICE 2
|
||||
#define SPI_FLASH_SIZE 0x1000000
|
||||
#define SPI_FLASH_CS_PIN PB12
|
||||
#define SPI_FLASH_MOSI_PIN PC3
|
||||
#define SPI_FLASH_MISO_PIN PC2
|
||||
#define SPI_FLASH_SCK_PIN PB13
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ------ ------
|
||||
* (BEEPER) PC5 |10 9 | PE13 (BTN_ENC) (SPI1 MISO) PA6 |10 9 | PA5 (SPI1 SCK)
|
||||
* (LCD_EN) PD13 | 8 7 | PC6 (LCD_RS) (BTN_EN1) PE8 | 8 7 | PE10 (SPI1 CS)
|
||||
* (LCD_D4) PE14 6 5 | PE15 (LCD_D5) (BTN_EN2) PE11 6 5 | PA7 (SPI1 MOSI)
|
||||
* (LCD_D6) PD11 | 4 3 | PD10 (LCD_D7) (SPI1_RS) PE12 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | 3.3V
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PD10
|
||||
#define EXP1_04_PIN PD11
|
||||
#define EXP1_05_PIN PE15
|
||||
#define EXP1_06_PIN PE14
|
||||
#define EXP1_07_PIN PC6
|
||||
#define EXP1_08_PIN PD13
|
||||
#define EXP1_09_PIN PE13
|
||||
#define EXP1_10_PIN PC5
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN PE12
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PE11
|
||||
#define EXP2_07_PIN PE10
|
||||
#define EXP2_08_PIN PE8
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
//
|
||||
// SPI SD Card
|
||||
//
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define ENABLE_SPI1
|
||||
#define SDSS EXP2_07_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI)
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_RST_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#define LCD_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
#endif
|
||||
#ifndef TFT_HEIGHT
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN // SPI1_NSS
|
||||
#define TOUCH_SCK_PIN EXP2_09_PIN // SPI1_SCK
|
||||
#define TOUCH_MISO_PIN EXP2_10_PIN // SPI1_MISO
|
||||
#define TOUCH_MOSI_PIN EXP2_05_PIN // SPI1_MOSI
|
||||
|
||||
#define LCD_READ_ID 0xD3
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
#define TFT_BUFFER_SIZE 14400
|
||||
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -17253
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11579
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 514
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -24
|
||||
#endif
|
||||
#ifndef TOUCH_ORIENTATION
|
||||
#define TOUCH_ORIENTATION TOUCH_LANDSCAPE
|
||||
#endif
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
// MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
//#define LCD_RESET_PIN -1
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
//#define DOGLCD_SCK EXP2_09_PIN
|
||||
//#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
// Required for MKS_MINI_12864 with this board
|
||||
//#define MKS_LCD12864B
|
||||
//#undef SHOW_BOOTSCREEN
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864_V3)
|
||||
#define DOGLCD_CS EXP1_08_PIN
|
||||
#define DOGLCD_A0 EXP1_07_PIN
|
||||
#define LCD_PINS_DC DOGLCD_A0
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
#define LCD_RESET_PIN EXP1_06_PIN
|
||||
#define NEOPIXEL_PIN EXP1_05_PIN
|
||||
#define DOGLCD_MOSI EXP2_05_PIN
|
||||
#define DOGLCD_SCK EXP2_09_PIN
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define FORCE_SOFT_SPI
|
||||
#endif
|
||||
//#define LCD_SCREEN_ROT_180
|
||||
|
||||
#else // !MKS_MINI_12864
|
||||
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#endif
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
||||
#endif // !MKS_MINI_12864
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI, HAS_WIRED_LCD)
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
380
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_PRO_V2.h
Normal file
380
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_PRO_V2.h
Normal file
@@ -0,0 +1,380 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "MKS Robin Nano V3 supports up to 1 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define BOARD_INFO_NAME "MKS Robin PRO V2"
|
||||
|
||||
// Avoid conflict with TIMER_TONE
|
||||
#define STEP_TIMER 10
|
||||
|
||||
// Use one of these or SDCard-based Emulation will be used
|
||||
//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
|
||||
//#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
|
||||
// USB Flash Drive support
|
||||
#define HAS_OTG_USB_HOST_SUPPORT
|
||||
|
||||
//
|
||||
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
|
||||
//
|
||||
//#define DISABLE_DEBUG
|
||||
|
||||
//
|
||||
// Note: MKS Robin board is using SPI2 interface.
|
||||
//
|
||||
//#define SPI_MODULE 2
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#define SERVO0_PIN PA8 // Enable BLTOUCH
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#define X_DIAG_PIN PA15
|
||||
#define Y_DIAG_PIN PA12
|
||||
#define Z_DIAG_PIN PA11
|
||||
#define E0_DIAG_PIN PC4
|
||||
#define E1_DIAG_PIN PE7
|
||||
|
||||
#define X_STOP_PIN PA15
|
||||
#define Y_STOP_PIN PA12
|
||||
#define Z_MIN_PIN PA11
|
||||
#define Z_MAX_PIN PC4
|
||||
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PA4 // MT_DET
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_ENABLE_PIN PE4
|
||||
#define X_STEP_PIN PE3
|
||||
#define X_DIR_PIN PE2
|
||||
#ifndef X_CS_PIN
|
||||
#define X_CS_PIN PD5
|
||||
#endif
|
||||
|
||||
#define Y_ENABLE_PIN PE1
|
||||
#define Y_STEP_PIN PE0
|
||||
#define Y_DIR_PIN PB9
|
||||
#ifndef Y_CS_PIN
|
||||
#define Y_CS_PIN PD7
|
||||
#endif
|
||||
|
||||
#define Z_ENABLE_PIN PB8
|
||||
#define Z_STEP_PIN PB5
|
||||
#define Z_DIR_PIN PB4
|
||||
#ifndef Z_CS_PIN
|
||||
#define Z_CS_PIN PD4
|
||||
#endif
|
||||
|
||||
#define E0_ENABLE_PIN PB3
|
||||
#define E0_STEP_PIN PD6
|
||||
#define E0_DIR_PIN PD3
|
||||
#ifndef E0_CS_PIN
|
||||
#define E0_CS_PIN PD9
|
||||
#endif
|
||||
|
||||
#define E1_ENABLE_PIN PA3
|
||||
#define E1_STEP_PIN PD15
|
||||
#define E1_DIR_PIN PA1
|
||||
#ifndef E1_CS_PIN
|
||||
#define E1_CS_PIN PD8
|
||||
#endif
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PD14
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PD1
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PD0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
*
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
//#define Z_HARDWARE_SERIAL Serial1
|
||||
//#define Z2_HARDWARE_SERIAL Serial1
|
||||
//#define E0_HARDWARE_SERIAL Serial1
|
||||
//#define E1_HARDWARE_SERIAL Serial1
|
||||
//#define E2_HARDWARE_SERIAL Serial1
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
#define X_SERIAL_TX_PIN PD5
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PD7
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PD4
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD9
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD8
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif // HAS_TMC_UART
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
#define TEMP_0_PIN PC1 // TH1
|
||||
#define TEMP_1_PIN PC2 // TH2
|
||||
#define TEMP_BED_PIN PC0 // TB1
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_0_PIN PC3 // HEATER1
|
||||
#define HEATER_1_PIN PB0 // HEATER2
|
||||
#define HEATER_BED_PIN PA0 // HOT BED
|
||||
|
||||
#define FAN_PIN PB1 // FAN
|
||||
|
||||
//
|
||||
// Thermocouples
|
||||
//
|
||||
//#define TEMP_0_CS_PIN PE5 // TC1 - CS1
|
||||
//#define TEMP_0_CS_PIN PE6 // TC2 - CS2
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
//#define POWER_LOSS_PIN PA2 // PW_DET
|
||||
//#define PS_ON_PIN PA3 // PW_OFF
|
||||
|
||||
//
|
||||
// Power Supply Control
|
||||
//
|
||||
#if ENABLED(MKS_PWC)
|
||||
#define SUICIDE_PIN PB2
|
||||
#define KILL_PIN PA2
|
||||
#define KILL_PIN_STATE LOW
|
||||
#else
|
||||
#define LED_PIN PB2
|
||||
#endif
|
||||
|
||||
#ifndef SDCARD_CONNECTION
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
//#define USE_NEW_SPI_API 1
|
||||
|
||||
//
|
||||
// Onboard SD card
|
||||
// NOT compatible with LCD
|
||||
//
|
||||
// Detect pin doesn't work when ONBOARD and NO_SD_HOST_DRIVE disabled
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#if USE_NEW_SPI_API
|
||||
#define SD_SPI MARLIN_SPI(HardwareSPI3, PC9)
|
||||
#else
|
||||
#define ENABLE_SPI3
|
||||
#define SD_SS_PIN -1
|
||||
#define SDSS PC9
|
||||
#define SD_SCK_PIN PC10
|
||||
#define SD_MISO_PIN PC11
|
||||
#define SD_MOSI_PIN PC12
|
||||
#endif
|
||||
#define SD_DETECT_PIN PD12
|
||||
#endif
|
||||
|
||||
/** ------ ------
|
||||
* (BEEPER) PC5 |10 9 | PE13 (BTN_ENC) (SPI1 MISO) PA6 |10 9 | PA5 (SPI1 SCK)
|
||||
* (LCD_EN) PD13 | 8 7 | PC6 (LCD_RS) (BTN_EN1) PE8 | 8 7 | PE10 (SPI1 CS)
|
||||
* (LCD_D4) PE14 6 5 | PE15 (LCD_D5) (BTN_EN2) PE11 6 5 | PA7 (SPI1 MOSI)
|
||||
* (LCD_D6) PD11 | 4 3 | PD10 (LCD_D7) (SPI DET) PE12 | 4 3 | RESET
|
||||
* GND | 2 1 | 5V GND | 2 1 | 3.3V
|
||||
* ------ ------
|
||||
* EXP1 EXP2
|
||||
*/
|
||||
#define EXP1_03_PIN PD10
|
||||
#define EXP1_04_PIN PD11
|
||||
#define EXP1_05_PIN PE15
|
||||
#define EXP1_06_PIN PE14
|
||||
#define EXP1_07_PIN PC6
|
||||
#define EXP1_08_PIN PD13
|
||||
#define EXP1_09_PIN PE13
|
||||
#define EXP1_10_PIN PC5
|
||||
|
||||
#define EXP2_03_PIN -1 // RESET
|
||||
#define EXP2_04_PIN PE12
|
||||
#define EXP2_05_PIN PA7
|
||||
#define EXP2_06_PIN PE11
|
||||
#define EXP2_07_PIN PE10
|
||||
#define EXP2_08_PIN PE8
|
||||
#define EXP2_09_PIN PA5
|
||||
#define EXP2_10_PIN PA6
|
||||
|
||||
//
|
||||
// LCD SD
|
||||
//
|
||||
/*
|
||||
#if SD_CONNECTION_IS(LCD)
|
||||
#define ENABLE_SPI1
|
||||
#define SDSS EXP2_07_PIN
|
||||
#define SD_SCK_PIN EXP2_09_PIN
|
||||
#define SD_MISO_PIN EXP2_10_PIN
|
||||
#define SD_MOSI_PIN EXP2_05_PIN
|
||||
#define SD_DETECT_PIN EXP2_04_PIN
|
||||
#endif
|
||||
*/
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
#define SPI_FLASH
|
||||
#define HAS_SPI_FLASH 1
|
||||
#define SPI_DEVICE 2
|
||||
#define SPI_FLASH_SIZE 0x1000000
|
||||
#if ENABLED(SPI_FLASH)
|
||||
#define SPI_FLASH_CS_PIN PB12
|
||||
#define SPI_FLASH_MOSI_PIN PB15
|
||||
#define SPI_FLASH_MISO_PIN PB14
|
||||
#define SPI_FLASH_SCK_PIN PB13
|
||||
#endif
|
||||
|
||||
#if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI)
|
||||
#ifndef TOUCH_CALIBRATION_X
|
||||
#define TOUCH_CALIBRATION_X -17253
|
||||
#endif
|
||||
#ifndef TOUCH_CALIBRATION_Y
|
||||
#define TOUCH_CALIBRATION_Y 11579
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_X
|
||||
#define TOUCH_OFFSET_X 514
|
||||
#endif
|
||||
#ifndef TOUCH_OFFSET_Y
|
||||
#define TOUCH_OFFSET_Y -24
|
||||
#endif
|
||||
#ifndef TOUCH_ORIENTATION
|
||||
#define TOUCH_ORIENTATION TOUCH_LANDSCAPE
|
||||
#endif
|
||||
|
||||
#define TFT_CS_PIN EXP1_04_PIN
|
||||
#define TFT_SCK_PIN EXP2_09_PIN
|
||||
#define TFT_MISO_PIN EXP2_10_PIN
|
||||
#define TFT_MOSI_PIN EXP2_05_PIN
|
||||
#define TFT_DC_PIN EXP1_03_PIN
|
||||
#define TFT_RST_PIN EXP1_07_PIN
|
||||
#define TFT_A0_PIN TFT_DC_PIN
|
||||
|
||||
#define TFT_RESET_PIN EXP1_07_PIN
|
||||
#define TFT_BACKLIGHT_PIN EXP1_08_PIN
|
||||
|
||||
#define TOUCH_BUTTONS_HW_SPI
|
||||
#define TOUCH_BUTTONS_HW_SPI_DEVICE 1
|
||||
|
||||
#define LCD_BACKLIGHT_PIN EXP1_08_PIN
|
||||
#ifndef TFT_WIDTH
|
||||
#define TFT_WIDTH 480
|
||||
#endif
|
||||
#ifndef TFT_HEIGHT
|
||||
#define TFT_HEIGHT 320
|
||||
#endif
|
||||
|
||||
#define TOUCH_CS_PIN EXP1_06_PIN // SPI1_NSS
|
||||
#define TOUCH_SCK_PIN EXP2_09_PIN // SPI1_SCK
|
||||
#define TOUCH_MISO_PIN EXP2_10_PIN // SPI1_MISO
|
||||
#define TOUCH_MOSI_PIN EXP2_05_PIN // SPI1_MOSI
|
||||
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
|
||||
#define LCD_READ_ID 0xD3
|
||||
#define LCD_USE_DMA_SPI
|
||||
|
||||
//#define TFT_DRIVER ST7796
|
||||
#define TFT_BUFFER_SIZE 14400
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#define BEEPER_PIN EXP1_10_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_08_PIN
|
||||
#define LCD_PINS_RS EXP1_07_PIN
|
||||
#define BTN_EN1 EXP2_08_PIN
|
||||
#define BTN_EN2 EXP2_06_PIN
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
// MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
|
||||
#if ENABLED(MKS_MINI_12864)
|
||||
//#define LCD_BACKLIGHT_PIN -1
|
||||
//#define LCD_RESET_PIN -1
|
||||
#define DOGLCD_A0 EXP1_04_PIN
|
||||
#define DOGLCD_CS EXP1_05_PIN
|
||||
//#define DOGLCD_SCK EXP2_09_PIN
|
||||
//#define DOGLCD_MOSI EXP2_05_PIN
|
||||
|
||||
// Required for MKS_MINI_12864 with this board
|
||||
//#define MKS_LCD12864B
|
||||
//#undef SHOW_BOOTSCREEN
|
||||
|
||||
#else // !MKS_MINI_12864
|
||||
|
||||
#define LCD_PINS_D4 EXP1_06_PIN
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#define LCD_PINS_D5 EXP1_05_PIN
|
||||
#define LCD_PINS_D6 EXP1_04_PIN
|
||||
#define LCD_PINS_D7 EXP1_03_PIN
|
||||
#endif
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 600
|
||||
|
||||
#endif // !MKS_MINI_12864
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
57
Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
Executable file → Normal file
57
Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
Executable file → Normal file
@@ -16,27 +16,62 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* Pin assignments for the MKS RUMBA32
|
||||
* Pin assignments for the RUMBA32
|
||||
*
|
||||
* https://aus3d.com.au/rumba32
|
||||
* https://github.com/Aus3D/RUMBA32
|
||||
*
|
||||
* The MKS and Aus3D versions have the same pinout but the MKS version
|
||||
* has some added resistors and LEDs. The resistors needed for the
|
||||
* TMC2208/9 UART interface are among the additions. Also added were
|
||||
* connectors and resistors dedicated to the TMC2130 sensorless homing
|
||||
* interface.
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "Aus3D RUMBA32"
|
||||
#define BOARD_INFO_NAME "RUMBA32"
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
//#define I2C_EEPROM
|
||||
#if NO_EEPROM_SELECTED
|
||||
#if MB(RUMBA32_V1_0)
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#elif MB(RUMBA32_V1_1)
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB (24LC64T-I/OT)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
#include "pins_RUMBA32_common.h"
|
||||
|
||||
#if MB(RUMBA32_V1_1)
|
||||
|
||||
#define SERVO0_PIN PA15
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// TMC2208/TMC2209 stepper drivers - Software Serial is used according to below pins
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PA14
|
||||
#define X_SERIAL_RX_PIN PC14
|
||||
|
||||
#define Y_SERIAL_TX_PIN PA13
|
||||
#define Y_SERIAL_RX_PIN PE4
|
||||
|
||||
#define Z_SERIAL_TX_PIN PB10
|
||||
#define Z_SERIAL_RX_PIN PE0
|
||||
|
||||
#define E0_SERIAL_TX_PIN PD11
|
||||
#define E0_SERIAL_RX_PIN PC13
|
||||
|
||||
#define E1_SERIAL_TX_PIN PB3
|
||||
#define E1_SERIAL_RX_PIN PD5
|
||||
|
||||
#define E2_SERIAL_TX_PIN PB4
|
||||
#define E2_SERIAL_RX_PIN PD1
|
||||
#endif
|
||||
#endif
|
||||
|
67
Marlin/src/pins/stm32f4/pins_RUMBA32_BTT.h
Normal file
67
Marlin/src/pins/stm32f4/pins_RUMBA32_BTT.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* No offical schematics have been found.
|
||||
* But these differences where noted in https://github.com/bigtreetech/Rumba32/issues/1
|
||||
*/
|
||||
|
||||
#define BOARD_INFO_NAME "RUMBA32 (BTT)"
|
||||
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x2000 // 8KB (24LC64T-I/OT)
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
#include "pins_RUMBA32_common.h"
|
||||
|
||||
#define SERVO0_PIN PA15 // Pin is not broken out, is a test point only.
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// TMC2208/TMC2209 Software Serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC14 // BTT Rumba32 only uses 1 pin for UART
|
||||
#define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
|
||||
|
||||
#define Y_SERIAL_TX_PIN PE4
|
||||
#define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
|
||||
|
||||
#define Z_SERIAL_TX_PIN PE0
|
||||
#define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
|
||||
|
||||
#define E0_SERIAL_TX_PIN PC13
|
||||
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
|
||||
|
||||
#define E1_SERIAL_TX_PIN PD5
|
||||
#define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
|
||||
|
||||
#define E2_SERIAL_TX_PIN PD1
|
||||
#define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
|
||||
#endif
|
46
Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
Executable file → Normal file
46
Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
Executable file → Normal file
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
@@ -35,27 +35,19 @@
|
||||
|
||||
#define BOARD_INFO_NAME "MKS RUMBA32"
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
#define ENABLE_SPI1
|
||||
//#define I2C_EEPROM
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define FLASH_EEPROM_EMULATION
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#endif
|
||||
|
||||
#if ENABLED(FLASH_EEPROM_EMULATION)
|
||||
// Decrease delays and flash wear by spreading writes across the
|
||||
// 128 kB sector allocated for EEPROM emulation.
|
||||
#define FLASH_EEPROM_LEVELING
|
||||
#endif
|
||||
|
||||
#include "pins_RUMBA32_common.h"
|
||||
|
||||
//
|
||||
// Software SPI pins for TMC2130 stepper drivers
|
||||
//
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PA7
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PA6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PA5
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TMC_UART
|
||||
/**
|
||||
* TMC2208/TMC2209 stepper drivers
|
||||
@@ -63,7 +55,7 @@
|
||||
* Hardware serial communication ports.
|
||||
* If undefined software serial is used according to the pins below
|
||||
*/
|
||||
//#define X_HARDWARE_SERIAL Serial
|
||||
//#define X_HARDWARE_SERIAL Serial1
|
||||
//#define X2_HARDWARE_SERIAL Serial1
|
||||
//#define Y_HARDWARE_SERIAL Serial1
|
||||
//#define Y2_HARDWARE_SERIAL Serial1
|
||||
@@ -75,9 +67,6 @@
|
||||
//#define E3_HARDWARE_SERIAL Serial1
|
||||
//#define E4_HARDWARE_SERIAL Serial1
|
||||
|
||||
//
|
||||
// Software serial
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PA3
|
||||
#define X_SERIAL_RX_PIN PC14
|
||||
|
||||
@@ -96,14 +85,3 @@
|
||||
#define E2_SERIAL_TX_PIN PD12
|
||||
#define E2_SERIAL_RX_PIN PD1
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if HAS_GRAPHICAL_LCD
|
||||
#define BOARD_ST7920_DELAY_1 DELAY_NS(96)
|
||||
#define BOARD_ST7920_DELAY_2 DELAY_NS(48)
|
||||
#define BOARD_ST7920_DELAY_3 DELAY_NS(600)
|
||||
#endif
|
||||
|
64
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
Executable file → Normal file
64
Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
Executable file → Normal file
@@ -16,7 +16,7 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
@@ -25,20 +25,28 @@
|
||||
* Common pin assignments for all RUMBA32 boards
|
||||
*/
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 3 || E_STEPPERS > 3
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 3 || E_STEPPERS > 3
|
||||
#error "RUMBA32 boards support up to 3 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define RUMBA32_V1_0
|
||||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
|
||||
|
||||
//#define I2C_EEPROM
|
||||
#ifdef E2END
|
||||
#undef E2END
|
||||
#endif
|
||||
#define E2END 0xFFF // 4KB
|
||||
// Use soft PWM for fans - PWM is not working properly when paired with STM32 Arduino Core v1.7.0
|
||||
// This can be removed when Core version is updated and PWM behaviour is fixed.
|
||||
#define FAN_SOFT_PWM
|
||||
|
||||
//
|
||||
// Configure Timers
|
||||
// TIM6 is used for TONE
|
||||
// TIM7 is used for SERVO
|
||||
// TIMER_SERIAL defaults to TIM7 and must be overridden in the platformio.h file if SERVO will also be used.
|
||||
// This will be difficult to solve from the Arduino IDE, without modifying the RUMBA32 variant
|
||||
// included with the STM32 framework.
|
||||
|
||||
#define STEP_TIMER 10
|
||||
#define TEMP_TIMER 14
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
@@ -83,6 +91,18 @@
|
||||
#define E2_ENABLE_PIN PD0
|
||||
#define E2_CS_PIN PD1
|
||||
|
||||
#if ENABLED(TMC_USE_SW_SPI)
|
||||
#ifndef TMC_SW_MOSI
|
||||
#define TMC_SW_MOSI PA7
|
||||
#endif
|
||||
#ifndef TMC_SW_MISO
|
||||
#define TMC_SW_MISO PA6
|
||||
#endif
|
||||
#ifndef TMC_SW_SCK
|
||||
#define TMC_SW_SCK PA5
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temperature Sensors
|
||||
//
|
||||
@@ -104,17 +124,16 @@
|
||||
#define FAN1_PIN PA8
|
||||
|
||||
//
|
||||
// I2C
|
||||
// SPI
|
||||
//
|
||||
#define SCK_PIN PA5
|
||||
#define MISO_PIN PA6
|
||||
#define MOSI_PIN PA7
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
//
|
||||
#define LED_PIN PB14
|
||||
#define BTN_PIN PC10
|
||||
#define PS_ON_PIN PE11
|
||||
#define KILL_PIN PC5
|
||||
|
||||
@@ -125,7 +144,7 @@
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
|
||||
#define BTN_EN1 PB2
|
||||
#define BTN_EN2 PB1
|
||||
@@ -140,10 +159,21 @@
|
||||
#define DOGLCD_A0 PE14
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTIPANEL)
|
||||
#if IS_ULTIPANEL
|
||||
#define LCD_PINS_D5 PE13
|
||||
#define LCD_PINS_D6 PE14
|
||||
#define LCD_PINS_D7 PE15
|
||||
|
||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // HAS_WIRED_LCD
|
||||
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 640
|
||||
#endif
|
||||
|
39
Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
Executable file → Normal file
39
Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
Executable file → Normal file
@@ -16,9 +16,10 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
// Source: https://github.com/stm32duino/Arduino_Core_STM32/blob/master/variants/ST3DP001_EVAL/variant.cpp
|
||||
|
||||
@@ -38,11 +39,7 @@
|
||||
* C Runtime Library: "newlib Nano (default)"
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef STM32F4
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#endif
|
||||
#include "env_validate.h"
|
||||
|
||||
#ifndef MACHINE_NAME
|
||||
#define MACHINE_NAME "STEVAL-3DP001V1"
|
||||
@@ -120,13 +117,13 @@
|
||||
#define L6470_CHAIN_MOSI_PIN 19 // PA7
|
||||
#define L6470_CHAIN_SS_PIN 16 // PA4
|
||||
|
||||
//#define SCK_PIN L6470_CHAIN_SCK_PIN
|
||||
//#define MISO_PIN L6470_CHAIN_MISO_PIN
|
||||
//#define MOSI_PIN L6470_CHAIN_MOSI_PIN
|
||||
//#define SD_SCK_PIN L6470_CHAIN_SCK_PIN
|
||||
//#define SD_MISO_PIN L6470_CHAIN_MISO_PIN
|
||||
//#define SD_MOSI_PIN L6470_CHAIN_MOSI_PIN
|
||||
#else
|
||||
//#define SCK_PIN 13 // PB13 SPI_S
|
||||
//#define MISO_PIN 12 // PB14 SPI_M
|
||||
//#define MOSI_PIN 11 // PB15 SPI_M
|
||||
//#define SD_SCK_PIN 13 // PB13 SPI_S
|
||||
//#define SD_MISO_PIN 12 // PB14 SPI_M
|
||||
//#define SD_MOSI_PIN 11 // PB15 SPI_M
|
||||
#endif
|
||||
|
||||
/**
|
||||
@@ -166,13 +163,15 @@
|
||||
|
||||
#define FAN_PIN 57 // PC4 E1_FAN PWM pin, Part cooling fan FET
|
||||
#define FAN1_PIN 58 // PC5 E2_FAN PWM pin, Extruder fan FET
|
||||
#define ORIG_E0_AUTO_FAN_PIN FAN1_PIN
|
||||
#define FAN2_PIN 59 // PE8 E3_FAN PWM pin, Controller fan FET
|
||||
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN 58 // FAN1_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc functions
|
||||
//
|
||||
#define SDSS 16 // PA4 SPI_CS
|
||||
#define LED_PIN -1 // 9 // PE1 green LED Heart beat
|
||||
#define PS_ON_PIN -1
|
||||
#define KILL_PIN -1
|
||||
@@ -239,18 +238,22 @@
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
#endif
|
||||
|
||||
#if SDCARD_CONNECTION == ONBOARD
|
||||
#if SD_CONNECTION_IS(ONBOARD)
|
||||
#define SDIO_SUPPORT // Use SDIO for onboard SD
|
||||
|
||||
#ifndef SDIO_SUPPORT
|
||||
#define SOFTWARE_SPI // Use soft SPI for onboard SD
|
||||
#define SDSS SDIO_D3_PIN
|
||||
#define SCK_PIN SDIO_CK_PIN
|
||||
#define MISO_PIN SDIO_D0_PIN
|
||||
#define MOSI_PIN SDIO_CMD_PIN
|
||||
#define SD_SCK_PIN SDIO_CK_PIN
|
||||
#define SD_MISO_PIN SDIO_D0_PIN
|
||||
#define SD_MOSI_PIN SDIO_CMD_PIN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SDSS
|
||||
#define SDSS 16 // PA4 SPI_CS
|
||||
#endif
|
||||
|
||||
// OTG
|
||||
// 30 // PA11 OTG_DM
|
||||
// 31 // PA12 OTG_DP
|
||||
|
261
Marlin/src/pins/stm32f4/pins_TH3D_EZBOARD_LITE_V2.h
Normal file
261
Marlin/src/pins/stm32f4/pins_TH3D_EZBOARD_LITE_V2.h
Normal file
@@ -0,0 +1,261 @@
|
||||
/**
|
||||
* Marlin 3D Printer Firmware
|
||||
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
||||
*
|
||||
* Based on Sprinter and grbl.
|
||||
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#define BOARD_INFO_NAME "TH3D EZBoard Lite V2"
|
||||
#define BOARD_WEBSITE_URL "th3dstudio.com"
|
||||
|
||||
//#define V3_EZABL_ON_SERVO // As in TH3D Firmware Config
|
||||
|
||||
#define DISABLE_JTAGSWD // Disabling J-tag and Debug via SWD
|
||||
|
||||
// Onboard I2C EEPROM
|
||||
#if NO_EEPROM_SELECTED
|
||||
#define I2C_EEPROM
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
#define I2C_SCL_PIN PB6
|
||||
#define I2C_SDA_PIN PB7
|
||||
#undef NO_EEPROM_SELECTED
|
||||
#endif
|
||||
|
||||
//
|
||||
// Neopixels
|
||||
//
|
||||
#define NEOPIXEL_PIN PA8
|
||||
|
||||
//
|
||||
// Servos
|
||||
//
|
||||
#if ENABLED(V3_EZABL_ON_SERVO)
|
||||
#define SERVO0_PIN -1
|
||||
#else
|
||||
#define SERVO0_PIN PA2
|
||||
#endif
|
||||
|
||||
//
|
||||
// Limit Switches
|
||||
//
|
||||
#if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
|
||||
// Sensorless homing pins
|
||||
#if ENABLED(X_AXIS_SENSORLESS_HOMING)
|
||||
#define X_STOP_PIN PB4
|
||||
#else
|
||||
#define X_STOP_PIN PC1
|
||||
#endif
|
||||
|
||||
#if ENABLED(Y_AXIS_SENSORLESS_HOMING)
|
||||
#define Y_STOP_PIN PB9
|
||||
#else
|
||||
#define Y_STOP_PIN PC2
|
||||
#endif
|
||||
|
||||
//#define Z_STOP_PIN PC15 // Don't use sensorless homing on Z!
|
||||
|
||||
#define E_STOP_PIN PB10
|
||||
#else
|
||||
// Standard Endstop Pins
|
||||
#define X_STOP_PIN PC1
|
||||
#define Y_STOP_PIN PC2
|
||||
#endif
|
||||
|
||||
#if ENABLED(V3_EZABL_ON_SERVO)
|
||||
#define Z_STOP_PIN PA2
|
||||
#else
|
||||
#define Z_STOP_PIN PC3
|
||||
#endif
|
||||
|
||||
//
|
||||
// Filament Runout Sensor
|
||||
//
|
||||
#ifndef FIL_RUNOUT_PIN
|
||||
#define FIL_RUNOUT_PIN PC0
|
||||
#endif
|
||||
|
||||
//
|
||||
// Steppers
|
||||
//
|
||||
#define X_STEP_PIN PB3
|
||||
#define X_DIR_PIN PD2
|
||||
#define X_ENABLE_PIN PB5
|
||||
|
||||
#define Y_STEP_PIN PB8
|
||||
#define Y_DIR_PIN PC13
|
||||
#define Y_ENABLE_PIN PC12
|
||||
|
||||
#define Z_STEP_PIN PA3
|
||||
#define Z_DIR_PIN PB1
|
||||
#define Z_ENABLE_PIN PC14
|
||||
|
||||
#define E0_STEP_PIN PA15
|
||||
#define E0_DIR_PIN PB11
|
||||
#define E0_ENABLE_PIN PB2
|
||||
|
||||
#if HAS_TMC_UART
|
||||
//
|
||||
// Hardware Serial on UART4, Single Wire, 0-3 addresses
|
||||
//
|
||||
#define X_SERIAL_TX_PIN PC10
|
||||
#define X_SERIAL_RX_PIN PC11
|
||||
|
||||
#define Y_SERIAL_TX_PIN PC10
|
||||
#define Y_SERIAL_RX_PIN PC11
|
||||
|
||||
#define Z_SERIAL_TX_PIN PC10
|
||||
#define Z_SERIAL_RX_PIN PC11
|
||||
|
||||
#define E0_SERIAL_TX_PIN PC10
|
||||
#define E0_SERIAL_RX_PIN PC11
|
||||
|
||||
// Reduce baud rate to improve software serial reliability
|
||||
#define TMC_BAUD_RATE 19200
|
||||
#endif
|
||||
|
||||
//
|
||||
// Temp Sensors
|
||||
// 3.3V max when defined as an Analog Input!
|
||||
//
|
||||
#define TEMP_0_PIN PA1 // Analog Input PA1
|
||||
#define TEMP_BED_PIN PA0 // Analog Input PA0
|
||||
|
||||
//
|
||||
// Heaters / Fans
|
||||
//
|
||||
#define HEATER_BED_PIN PC9
|
||||
#define HEATER_0_PIN PC8
|
||||
#ifndef FAN_PIN
|
||||
#define FAN_PIN PC6
|
||||
#endif
|
||||
#define FAN1_PIN PC7
|
||||
|
||||
//
|
||||
// Auto fans
|
||||
//
|
||||
#define AUTO_FAN_PIN PC7
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E1_AUTO_FAN_PIN
|
||||
#define E1_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
#ifndef E2_AUTO_FAN_PIN
|
||||
#define E2_AUTO_FAN_PIN AUTO_FAN_PIN
|
||||
#endif
|
||||
|
||||
//
|
||||
// SD Card
|
||||
//
|
||||
|
||||
#define SDCARD_CONNECTION ONBOARD
|
||||
|
||||
//#define SOFTWARE_SPI
|
||||
#define CUSTOM_SPI_PINS
|
||||
#define SDSS PA4
|
||||
#define SD_SCK_PIN PA5
|
||||
#define SD_MISO_PIN PA6
|
||||
#define SD_MOSI_PIN PA7
|
||||
#define SD_SS_PIN SDSS
|
||||
//#define SD_DETECT_PIN -1
|
||||
//#define ONBOARD_SD_CS_PIN SDSS
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
|
||||
/**
|
||||
* ______
|
||||
* 5V | 1 2 | GND
|
||||
* PB15 | 3 4 | PB12
|
||||
* PB13 | 5 6 PC5
|
||||
* ---- | 7 8 | PC4
|
||||
* PB0 | 9 10 | PA14
|
||||
* ------
|
||||
* EXP1
|
||||
*
|
||||
* LCD_PINS_D5, D6, and D7 are not present in the EXP1 connector, and will need to be
|
||||
* defined to use the REPRAP_DISCOUNT_SMART_CONTROLLER.
|
||||
*
|
||||
* A remote SD card is currently not supported because the pins routed to the EXP2
|
||||
* connector are shared with the onboard SD card.
|
||||
*/
|
||||
#define EXP1_03_PIN PB15
|
||||
#define EXP1_04_PIN PB12
|
||||
#define EXP1_05_PIN PB13
|
||||
#define EXP1_06_PIN PC5
|
||||
//#define EXP1_07_PIN -1
|
||||
#define EXP1_08_PIN PC4
|
||||
#define EXP1_09_PIN PB0
|
||||
#define EXP1_10_PIN PA14
|
||||
|
||||
#if ENABLED(CR10_STOCKDISPLAY)
|
||||
/** ______
|
||||
* 5V | 1 2 | GND
|
||||
* LCD_EN | 3 4 | LCD_RS
|
||||
* LCD_D4 | 5 6 EN2
|
||||
* RESET | 7 8 | EN1
|
||||
* ENC | 9 10 | BEEPER
|
||||
* ------
|
||||
*/
|
||||
#ifdef DISABLE_JTAGSWD
|
||||
#define BEEPER_PIN EXP1_10_PIN // Not connected in dev board
|
||||
#endif
|
||||
#define LCD_PINS_RS EXP1_04_PIN
|
||||
#define LCD_PINS_ENABLE EXP1_03_PIN
|
||||
#define LCD_PINS_D4 EXP1_05_PIN
|
||||
//#define KILL_PIN -1
|
||||
|
||||
#define BOARD_ST7920_DELAY_1 600
|
||||
#define BOARD_ST7920_DELAY_2 750
|
||||
#define BOARD_ST7920_DELAY_3 750
|
||||
|
||||
#elif ENABLED(MKS_MINI_12864)
|
||||
/** ______
|
||||
* 5V | 1 2 | GND
|
||||
* SPI-MOSI | 3 4 | SPI-CS
|
||||
* A0 | 5 6 EN2
|
||||
* -- | 7 8 | EN1
|
||||
* ENC | 9 10 | SPI-SCK
|
||||
* ------
|
||||
*/
|
||||
#define DOGLCD_CS EXP1_04_PIN
|
||||
#define DOGLCD_A0 EXP1_05_PIN
|
||||
#define DOGLCD_SCK EXP1_10_PIN
|
||||
#define DOGLCD_MOSI EXP1_03_PIN
|
||||
#define LCD_CONTRAST_INIT 160
|
||||
#define LCD_CONTRAST_MIN 120
|
||||
#define LCD_CONTRAST_MAX 180
|
||||
#define FORCE_SOFT_SPI
|
||||
#define LCD_BACKLIGHT_PIN -1
|
||||
|
||||
#elif HAS_WIRED_LCD
|
||||
|
||||
#error "Only CR10_STOCKDISPLAY or MKS_MINI_12864 are supported with TH3D EZBoard V2."
|
||||
|
||||
#endif
|
||||
|
||||
#if EITHER(CR10_STOCKDISPLAY, MKS_MINI_12864)
|
||||
#define BTN_EN1 EXP1_08_PIN
|
||||
#define BTN_EN2 EXP1_06_PIN
|
||||
#define BTN_ENC EXP1_09_PIN
|
||||
#endif
|
52
Marlin/src/pins/stm32f4/pins_VAKE403D.h
Executable file → Normal file
52
Marlin/src/pins/stm32f4/pins_VAKE403D.h
Executable file → Normal file
@@ -16,23 +16,23 @@
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#if !defined(STM32F4) && !defined(STM32F4xx)
|
||||
#error "Oops! Select an STM32F4 board in 'Tools > Board.'"
|
||||
#elif HOTENDS > 2 || E_STEPPERS > 2
|
||||
#define ALLOW_STM32DUINO
|
||||
#include "env_validate.h"
|
||||
|
||||
#if HOTENDS > 2 || E_STEPPERS > 2
|
||||
#error "STM32F4 supports up to 2 hotends / E-steppers."
|
||||
#endif
|
||||
|
||||
#define DEFAULT_MACHINE_NAME "STM32F446VET6"
|
||||
#define BOARD_NAME "STM32F4 VAkE"
|
||||
#define BOARD_INFO_NAME "STM32F4 VAkE"
|
||||
|
||||
//#define I2C_EEPROM
|
||||
|
||||
#define E2END 0xFFF // EEPROM end address (4kB)
|
||||
#define MARLIN_EEPROM_SIZE 0x1000 // 4KB
|
||||
|
||||
//
|
||||
// Servos
|
||||
@@ -100,16 +100,16 @@
|
||||
#define E1_CS_PIN PB0
|
||||
#endif
|
||||
|
||||
#define SCK_PIN PE12 // PA5 // SPI1 for SD card
|
||||
#define MISO_PIN PE13 // PA6
|
||||
#define MOSI_PIN PE14 // PA7
|
||||
#define SD_SCK_PIN PE12 // PA5 // SPI1 for SD card
|
||||
#define SD_MISO_PIN PE13 // PA6
|
||||
#define SD_MOSI_PIN PE14 // PA7
|
||||
|
||||
// added for SD card : optional or not ???
|
||||
//#define SD_CHIP_SELECT_PIN SDSS // The default chip select pin for the SD card is SS.
|
||||
// The following three pins must not be redefined for hardware SPI.
|
||||
//#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
|
||||
//#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
|
||||
//#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
|
||||
//#define SPI_MOSI_PIN SD_MOSI_PIN // SPI Master Out Slave In pin
|
||||
//#define SPI_MISO_PIN SD_MISO_PIN // SPI Master In Slave Out pin
|
||||
//#define SPI_SCK_PIN SD_SCK_PIN // SPI Clock pin
|
||||
|
||||
//
|
||||
// Temperature Sensors (Analog inputs)
|
||||
@@ -135,7 +135,9 @@
|
||||
#define FAN1_PIN PB5 // PA0
|
||||
#define FAN2_PIN PB4 // PA1
|
||||
|
||||
#define ORIG_E0_AUTO_FAN_PIN PD13 // Use this by NOT overriding E0_AUTO_FAN_PIN
|
||||
#ifndef E0_AUTO_FAN_PIN
|
||||
#define E0_AUTO_FAN_PIN PD13
|
||||
#endif
|
||||
|
||||
//
|
||||
// Misc. Functions
|
||||
@@ -146,7 +148,7 @@
|
||||
//#define NEOPIXEL_PIN PF13
|
||||
|
||||
//
|
||||
// Prusa i3 MK2 Multi Material Multiplexer Support
|
||||
// Průša i3 MK2 Multi Material Multiplexer Support
|
||||
//
|
||||
//#define E_MUX0_PIN PG3
|
||||
//#define E_MUX1_PIN PG4
|
||||
@@ -158,13 +160,13 @@
|
||||
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SD_DETECT_PIN PB7
|
||||
#define SS_PIN PB_15 // USD_CS -> CS for onboard SD
|
||||
#define SD_SS_PIN PB_15 // USD_CS -> CS for onboard SD
|
||||
#endif
|
||||
|
||||
//
|
||||
// LCD / Controller
|
||||
//
|
||||
#if HAS_SPI_LCD
|
||||
#if HAS_WIRED_LCD
|
||||
#if ENABLED(SDSUPPORT)
|
||||
#define SDSS PB6 // CS for SD card in LCD
|
||||
#endif
|
||||
@@ -180,15 +182,9 @@
|
||||
#define BTN_ENC PB12
|
||||
#endif
|
||||
|
||||
//
|
||||
// ST7920 Delays
|
||||
//
|
||||
#ifndef ST7920_DELAY_1
|
||||
#define ST7920_DELAY_1 DELAY_NS(96)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_2
|
||||
#define ST7920_DELAY_2 DELAY_NS(48)
|
||||
#endif
|
||||
#ifndef ST7920_DELAY_3
|
||||
#define ST7920_DELAY_3 DELAY_NS(715)
|
||||
// Alter timing for graphical display
|
||||
#if ENABLED(U8GLIB_ST7920)
|
||||
#define BOARD_ST7920_DELAY_1 96
|
||||
#define BOARD_ST7920_DELAY_2 48
|
||||
#define BOARD_ST7920_DELAY_3 715
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user