diff --git a/Marlin/Configuration (2).h b/Marlin/Configuration (2).h
deleted file mode 100644
index a92557977f..0000000000
--- a/Marlin/Configuration (2).h
+++ /dev/null
@@ -1,2257 +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 .
- *
- */
-#pragma once
-
-/**
- * Configuration.h
- *
- * Basic settings such as:
- *
- * - Type of electronics
- * - Type of temperature sensor
- * - Printer geometry
- * - Endstop configuration
- * - LCD controller
- * - Extra features
- *
- * Advanced settings can be found in Configuration_adv.h
- *
- */
-#define CONFIGURATION_H_VERSION 020005
-
-//===========================================================================
-//============================= Getting Started =============================
-//===========================================================================
-
-/**
- * Here are some standard links for getting your machine calibrated:
- *
- * http://reprap.org/wiki/Calibration
- * http://youtu.be/wAL9d7FgInk
- * http://calculator.josefprusa.cz
- * http://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
- * http://www.thingiverse.com/thing:5573
- * https://sites.google.com/site/repraplogphase/calibration-of-your-reprap
- * http://www.thingiverse.com/thing:298812
- */
-
-//===========================================================================
-//============================= DELTA Printer ===============================
-//===========================================================================
-// For a Delta printer start with one of the configuration files in the
-// config/examples/delta directory and customize for your machine.
-//
-
-//===========================================================================
-//============================= SCARA Printer ===============================
-//===========================================================================
-// For a SCARA printer start with the configuration files in
-// config/examples/SCARA and customize for your machine.
-//
-
-// @section info
-
-// Author info of this build printed to the host during boot and M115
-#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
-//#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes)
-
-/**
- * *** VENDORS PLEASE READ ***
- *
- * Marlin allows you to add a custom boot image for Graphical LCDs.
- * With this option Marlin will first show your custom screen followed
- * by the standard Marlin logo with version number and web URL.
- *
- * We encourage you to take advantage of this new feature and we also
- * respectfully request that you retain the unmodified Marlin boot screen.
- */
-
-// Show the Marlin bootscreen on startup. ** ENABLE FOR PRODUCTION **
-#define SHOW_BOOTSCREEN
-
-// Show the bitmap in Marlin/_Bootscreen.h on startup.
-//#define SHOW_CUSTOM_BOOTSCREEN
-
-// Show the bitmap in Marlin/_Statusscreen.h on the status screen.
-//#define CUSTOM_STATUS_SCREEN_IMAGE
-
-// @section machine
-
-/**
- * Select the serial port on the board to use for communication with the host.
- * This allows the connection of wireless adapters (for instance) to non-default port pins.
- * Note: The first serial port (-1 or 0) will always be used by the Arduino bootloader.
- *
- * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
- */
-#define SERIAL_PORT 0
-
-/**
- * Select a secondary serial port on the board to use for communication with the host.
- * This allows the connection of wireless adapters (for instance) to non-default port pins.
- * Serial port -1 is the USB emulated serial port, if available.
- *
- * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
- */
-//#define SERIAL_PORT_2 -1
-
-/**
- * This setting determines the communication speed of the printer.
- *
- * 250000 works in most cases, but you might try a lower speed if
- * you commonly experience drop-outs during host printing.
- * You may try up to 1000000 to speed up SD file transfer.
- *
- * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000]
- */
-#define BAUDRATE 250000
-
-// Enable the Bluetooth serial interface on AT90USB devices
-//#define BLUETOOTH
-
-// Choose the name from boards.h that matches your setup
-#ifndef MOTHERBOARD
- #define MOTHERBOARD BOARD_RAMPS_14_EFB
-#endif
-
-// Name displayed in the LCD "Ready" message and Info menu
-//#define CUSTOM_MACHINE_NAME "3D Printer"
-
-// Printer's unique ID, used by some programs to differentiate between machines.
-// Choose your own or use a service like http://www.uuidgenerator.net/version4
-//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
-
-// @section extruder
-
-// This defines the number of extruders
-// :[1, 2, 3, 4, 5, 6, 7, 8]
-#define EXTRUDERS 1
-
-// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.
-#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0
-
-// For Cyclops or any "multi-extruder" that shares a single nozzle.
-//#define SINGLENOZZLE
-
-/**
- * Průša MK2 Single Nozzle Multi-Material Multiplexer, and variants.
- *
- * This device allows one stepper driver on a control board to drive
- * two to eight stepper motors, one at a time, in a manner suitable
- * for extruders.
- *
- * This option only allows the multiplexer to switch on tool-change.
- * Additional options to configure custom E moves are pending.
- */
-//#define MK2_MULTIPLEXER
-#if ENABLED(MK2_MULTIPLEXER)
- // Override the default DIO selector pins here, if needed.
- // Some pins files may provide defaults for these pins.
- //#define E_MUX0_PIN 40 // Always Required
- //#define E_MUX1_PIN 42 // Needed for 3 to 8 inputs
- //#define E_MUX2_PIN 44 // Needed for 5 to 8 inputs
-#endif
-
-/**
- * Prusa Multi-Material Unit v2
- *
- * Requires NOZZLE_PARK_FEATURE to park print head in case MMU unit fails.
- * Requires EXTRUDERS = 5
- *
- * For additional configuration see Configuration_adv.h
- */
-//#define PRUSA_MMU2
-
-// A dual extruder that uses a single stepper motor
-//#define SWITCHING_EXTRUDER
-#if ENABLED(SWITCHING_EXTRUDER)
- #define SWITCHING_EXTRUDER_SERVO_NR 0
- #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]
- #if EXTRUDERS > 3
- #define SWITCHING_EXTRUDER_E23_SERVO_NR 1
- #endif
-#endif
-
-// A dual-nozzle that uses a servomotor to raise/lower one (or both) of the nozzles
-//#define SWITCHING_NOZZLE
-#if ENABLED(SWITCHING_NOZZLE)
- #define SWITCHING_NOZZLE_SERVO_NR 0
- //#define SWITCHING_NOZZLE_E1_SERVO_NR 1 // If two servos are used, the index of the second
- #define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1 (single servo) or lowered/raised (dual servo)
-#endif
-
-/**
- * Two separate X-carriages with extruders that connect to a moving part
- * via a solenoid docking mechanism. Requires SOL1_PIN and SOL2_PIN.
- */
-//#define PARKING_EXTRUDER
-
-/**
- * Two separate X-carriages with extruders that connect to a moving part
- * via a magnetic docking mechanism using movements and no solenoid
- *
- * project : https://www.thingiverse.com/thing:3080893
- * movements : https://youtu.be/0xCEiG9VS3k
- * https://youtu.be/Bqbcs0CU2FE
- */
-//#define MAGNETIC_PARKING_EXTRUDER
-
-#if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
-
- #define PARKING_EXTRUDER_PARKING_X { -78, 184 } // X positions for parking the extruders
- #define PARKING_EXTRUDER_GRAB_DISTANCE 1 // (mm) Distance to move beyond the parking point to grab the extruder
- //#define MANUAL_SOLENOID_CONTROL // Manual control of docking solenoids with M380 S / M381
-
- #if ENABLED(PARKING_EXTRUDER)
-
- #define PARKING_EXTRUDER_SOLENOIDS_INVERT // If enabled, the solenoid is NOT magnetized with applied voltage
- #define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW // LOW or HIGH pin signal energizes the coil
- #define PARKING_EXTRUDER_SOLENOIDS_DELAY 250 // (ms) Delay for magnetic field. No delay if 0 or not defined.
- //#define MANUAL_SOLENOID_CONTROL // Manual control of docking solenoids with M380 S / M381
-
- #elif ENABLED(MAGNETIC_PARKING_EXTRUDER)
-
- #define MPE_FAST_SPEED 9000 // (mm/m) Speed for travel before last distance point
- #define MPE_SLOW_SPEED 4500 // (mm/m) Speed for last distance travel to park and couple
- #define MPE_TRAVEL_DISTANCE 10 // (mm) Last distance point
- #define MPE_COMPENSATION 0 // Offset Compensation -1 , 0 , 1 (multiplier) only for coupling
-
- #endif
-
-#endif
-
-/**
- * Switching Toolhead
- *
- * Support for swappable and dockable toolheads, such as
- * the E3D Tool Changer. Toolheads are locked with a servo.
- */
-//#define SWITCHING_TOOLHEAD
-
-/**
- * Magnetic Switching Toolhead
- *
- * Support swappable and dockable toolheads with a magnetic
- * docking mechanism using movement and no servo.
- */
-//#define MAGNETIC_SWITCHING_TOOLHEAD
-
-/**
- * Electromagnetic Switching Toolhead
- *
- * Parking for CoreXY / HBot kinematics.
- * Toolheads are parked at one edge and held with an electromagnet.
- * Supports more than 2 Toolheads. See https://youtu.be/JolbsAKTKf4
- */
-//#define ELECTROMAGNETIC_SWITCHING_TOOLHEAD
-
-#if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
- #define SWITCHING_TOOLHEAD_Y_POS 235 // (mm) Y position of the toolhead dock
- #define SWITCHING_TOOLHEAD_Y_SECURITY 10 // (mm) Security distance Y axis
- #define SWITCHING_TOOLHEAD_Y_CLEAR 60 // (mm) Minimum distance from dock for unobstructed X axis
- #define SWITCHING_TOOLHEAD_X_POS { 215, 0 } // (mm) X positions for parking the extruders
- #if ENABLED(SWITCHING_TOOLHEAD)
- #define SWITCHING_TOOLHEAD_SERVO_NR 2 // Index of the servo connector
- #define SWITCHING_TOOLHEAD_SERVO_ANGLES { 0, 180 } // (degrees) Angles for Lock, Unlock
- #elif ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)
- #define SWITCHING_TOOLHEAD_Y_RELEASE 5 // (mm) Security distance Y axis
- #define SWITCHING_TOOLHEAD_X_SECURITY { 90, 150 } // (mm) Security distance X axis (T0,T1)
- //#define PRIME_BEFORE_REMOVE // Prime the nozzle before release from the dock
- #if ENABLED(PRIME_BEFORE_REMOVE)
- #define SWITCHING_TOOLHEAD_PRIME_MM 20 // (mm) Extruder prime length
- #define SWITCHING_TOOLHEAD_RETRACT_MM 10 // (mm) Retract after priming length
- #define SWITCHING_TOOLHEAD_PRIME_FEEDRATE 300 // (mm/m) Extruder prime feedrate
- #define SWITCHING_TOOLHEAD_RETRACT_FEEDRATE 2400 // (mm/m) Extruder retract feedrate
- #endif
- #elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
- #define SWITCHING_TOOLHEAD_Z_HOP 2 // (mm) Z raise for switching
- #endif
-#endif
-
-/**
- * "Mixing Extruder"
- * - Adds G-codes M163 and M164 to set and "commit" the current mix factors.
- * - Extends the stepping routines to move multiple steppers in proportion to the mix.
- * - Optional support for Repetier Firmware's 'M164 S' supporting virtual tools.
- * - This implementation supports up to two mixing extruders.
- * - Enable DIRECT_MIXING_IN_G1 for M165 and mixing in G1 (from Pia Taubert's reference implementation).
- */
-//#define MIXING_EXTRUDER
-#if ENABLED(MIXING_EXTRUDER)
- #define MIXING_STEPPERS 2 // Number of steppers in your mixing extruder
- #define MIXING_VIRTUAL_TOOLS 16 // Use the Virtual Tool method with M163 and M164
- //#define DIRECT_MIXING_IN_G1 // Allow ABCDHI mix factors in G1 movement commands
- //#define GRADIENT_MIX // Support for gradient mixing with M166 and LCD
- #if ENABLED(GRADIENT_MIX)
- //#define GRADIENT_VTOOL // Add M166 T to use a V-tool index as a Gradient alias
- #endif
-#endif
-
-// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
-// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
-// For the other hotends it is their distance from the extruder 0 hotend.
-//#define HOTEND_OFFSET_X { 0.0, 20.00 } // (mm) relative X-offset for each nozzle
-//#define HOTEND_OFFSET_Y { 0.0, 5.00 } // (mm) relative Y-offset for each nozzle
-//#define HOTEND_OFFSET_Z { 0.0, 0.00 } // (mm) relative Z-offset for each nozzle
-
-// @section machine
-
-/**
- * Power Supply Control
- *
- * Enable and connect the power supply to the PS_ON_PIN.
- * Specify whether the power supply is active HIGH or active LOW.
- */
-//#define PSU_CONTROL
-//#define PSU_NAME "Power Supply"
-
-#if ENABLED(PSU_CONTROL)
- #define PSU_ACTIVE_HIGH false // Set 'false' for ATX, 'true' for X-Box
-
- //#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80
- //#define PSU_POWERUP_DELAY 100 // (ms) Delay for the PSU to warm up to full power
-
- //#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
- #if ENABLED(AUTO_POWER_CONTROL)
- #define AUTO_POWER_FANS // Turn on PSU if fans need power
- #define AUTO_POWER_E_FANS
- #define AUTO_POWER_CONTROLLERFAN
- #define AUTO_POWER_CHAMBER_FAN
- //#define AUTO_POWER_E_TEMP 50 // (°C) Turn on PSU over this temperature
- //#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) Turn on PSU over this temperature
- #define POWER_TIMEOUT 30
- #endif
-#endif
-
-// @section temperature
-
-//===========================================================================
-//============================= Thermal Settings ============================
-//===========================================================================
-
-/**
- * --NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table
- *
- * Temperature sensors available:
- *
- * -5 : PT100 / PT1000 with MAX31865 (only for sensors 0-1)
- * -3 : thermocouple with MAX31855 (only for sensors 0-1)
- * -2 : thermocouple with MAX6675 (only for sensors 0-1)
- * -4 : thermocouple with AD8495
- * -1 : thermocouple with AD595
- * 0 : not used
- * 1 : 100k thermistor - best choice for EPCOS 100k (4.7k pullup)
- * 331 : (3.3V scaled thermistor 1 table for MEGA)
- * 332 : (3.3V scaled thermistor 1 table for DUE)
- * 2 : 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
- * 3 : Mendel-parts thermistor (4.7k pullup)
- * 4 : 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
- * 5 : 100K thermistor - ATC Semitec 104GT-2/104NT-4-R025H42G (Used in ParCan & J-Head) (4.7k pullup)
- * 501 : 100K Zonestar (Tronxy X3A) Thermistor
- * 512 : 100k RPW-Ultra hotend thermistor (4.7k pullup)
- * 6 : 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)
- * 7 : 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)
- * 71 : 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)
- * 8 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
- * 9 : 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
- * 10 : 100k RS thermistor 198-961 (4.7k pullup)
- * 11 : 100k beta 3950 1% thermistor (4.7k pullup)
- * 12 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)
- * 13 : 100k Hisens 3950 1% up to 300°C for hotend "Simple ONE " & "Hotend "All In ONE"
- * 15 : 100k thermistor calibration for JGAurora A5 hotend
- * 18 : ATC Semitec 204GT-2 (4.7k pullup) Dagoma.Fr - MKS_Base_DKU001327
- * 20 : Pt100 with circuit in the Ultimainboard V2.x with 5v excitation (AVR)
- * 21 : Pt100 with circuit in the Ultimainboard V2.x with 3.3v excitation (STM32 \ LPC176x....)
- * 201 : Pt100 with circuit in Overlord, similar to Ultimainboard V2.x
- * 60 : 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
- * 61 : 100k Formbot / Vivedino 3950 350C thermistor 4.7k pullup
- * 66 : 4.7M High Temperature thermistor from Dyze Design
- * 67 : 450C thermistor from SliceEngineering
- * 70 : the 100K thermistor found in the bq Hephestos 2
- * 75 : 100k Generic Silicon Heat Pad with NTC 100K MGB18-104F39050L32 thermistor
- * 99 : 100k thermistor with a 10K pull-up resistor (found on some Wanhao i3 machines)
- *
- * 1k ohm pullup tables - This is atypical, and requires changing out the 4.7k pullup for 1k.
- * (but gives greater accuracy and more stable PID)
- * 51 : 100k thermistor - EPCOS (1k pullup)
- * 52 : 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
- * 55 : 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)
- *
- * 1047 : Pt1000 with 4k7 pullup
- * 1010 : Pt1000 with 1k pullup (non standard)
- * 147 : Pt100 with 4k7 pullup
- * 110 : Pt100 with 1k pullup (non standard)
- *
- * 1000 : Custom - Specify parameters in Configuration_adv.h
- *
- * Use these for Testing or Development purposes. NEVER for production machine.
- * 998 : Dummy Table that ALWAYS reads 25°C or the temperature defined below.
- * 999 : Dummy Table that ALWAYS reads 100°C or the temperature defined below.
- */
-#define TEMP_SENSOR_0 1
-#define TEMP_SENSOR_1 0
-#define TEMP_SENSOR_2 0
-#define TEMP_SENSOR_3 0
-#define TEMP_SENSOR_4 0
-#define TEMP_SENSOR_5 0
-#define TEMP_SENSOR_6 0
-#define TEMP_SENSOR_7 0
-#define TEMP_SENSOR_BED 0
-#define TEMP_SENSOR_PROBE 0
-#define TEMP_SENSOR_CHAMBER 0
-
-// Dummy thermistor constant temperature readings, for use with 998 and 999
-#define DUMMY_THERMISTOR_998_VALUE 25
-#define DUMMY_THERMISTOR_999_VALUE 100
-
-// Use temp sensor 1 as a redundant sensor with sensor 0. If the readings
-// from the two sensors differ too much the print will be aborted.
-//#define TEMP_SENSOR_1_AS_REDUNDANT
-#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
-
-#define TEMP_RESIDENCY_TIME 10 // (seconds) Time to wait for hotend to "settle" in M109
-#define TEMP_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer
-#define TEMP_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target
-
-#define TEMP_BED_RESIDENCY_TIME 10 // (seconds) Time to wait for bed to "settle" in M190
-#define TEMP_BED_WINDOW 1 // (°C) Temperature proximity for the "temperature reached" timer
-#define TEMP_BED_HYSTERESIS 3 // (°C) Temperature proximity considered "close enough" to the target
-
-// Below this temperature the heater will be switched off
-// because it probably indicates a broken thermistor wire.
-#define HEATER_0_MINTEMP 5
-#define HEATER_1_MINTEMP 5
-#define HEATER_2_MINTEMP 5
-#define HEATER_3_MINTEMP 5
-#define HEATER_4_MINTEMP 5
-#define HEATER_5_MINTEMP 5
-#define HEATER_6_MINTEMP 5
-#define HEATER_7_MINTEMP 5
-#define BED_MINTEMP 5
-
-// Above this temperature the heater will be switched off.
-// This can protect components from overheating, but NOT from shorts and failures.
-// (Use MINTEMP for thermistor short/failure protection.)
-#define HEATER_0_MAXTEMP 275
-#define HEATER_1_MAXTEMP 275
-#define HEATER_2_MAXTEMP 275
-#define HEATER_3_MAXTEMP 275
-#define HEATER_4_MAXTEMP 275
-#define HEATER_5_MAXTEMP 275
-#define HEATER_6_MAXTEMP 275
-#define HEATER_7_MAXTEMP 275
-#define BED_MAXTEMP 150
-
-//===========================================================================
-//============================= PID Settings ================================
-//===========================================================================
-// PID Tuning Guide here: http://reprap.org/wiki/PID_Tuning
-
-// Comment the following line to disable PID and enable bang-bang.
-#define PIDTEMP
-#define BANG_MAX 255 // Limits current to nozzle while in bang-bang mode; 255=full current
-#define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
-#define PID_K1 0.95 // Smoothing factor within any PID loop
-#if ENABLED(PIDTEMP)
- //#define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of PROGMEM)
- //#define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of PROGMEM)
- //#define PID_DEBUG // Sends debug data to the serial port.
- //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
- //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
- //#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders)
- // Set/get with gcode: M301 E[extruder number, 0-2]
- #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
- // is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
-
- // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
-
- // Ultimaker
- #define DEFAULT_Kp 22.2
- #define DEFAULT_Ki 1.08
- #define DEFAULT_Kd 114
-
- // MakerGear
- //#define DEFAULT_Kp 7.0
- //#define DEFAULT_Ki 0.1
- //#define DEFAULT_Kd 12
-
- // Mendel Parts V9 on 12V
- //#define DEFAULT_Kp 63.0
- //#define DEFAULT_Ki 2.25
- //#define DEFAULT_Kd 440
-
-#endif // PIDTEMP
-
-//===========================================================================
-//====================== PID > Bed Temperature Control ======================
-//===========================================================================
-
-/**
- * PID Bed Heating
- *
- * If this option is enabled set PID constants below.
- * If this option is disabled, bang-bang will be used and BED_LIMIT_SWITCHING will enable hysteresis.
- *
- * The PID frequency will be the same as the extruder PWM.
- * If PID_dT is the default, and correct for the hardware/configuration, that means 7.689Hz,
- * which is fine for driving a square wave into a resistive load and does not significantly
- * impact FET heating. This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W
- * heater. If your configuration is significantly different than this and you don't understand
- * the issues involved, don't use bed PID until someone else verifies that your hardware works.
- */
-//#define PIDTEMPBED
-
-//#define BED_LIMIT_SWITCHING
-
-/**
- * Max Bed Power
- * Applies to all forms of bed control (PID, bang-bang, and bang-bang with hysteresis).
- * When set to any value below 255, enables a form of PWM to the bed that acts like a divider
- * so don't use it unless you are OK with PWM on your bed. (See the comment on enabling PIDTEMPBED)
- */
-#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
-
-#if ENABLED(PIDTEMPBED)
- //#define MIN_BED_POWER 0
- //#define PID_BED_DEBUG // Sends debug data to the serial port.
-
- //120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
- //from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
- #define DEFAULT_bedKp 10.00
- #define DEFAULT_bedKi .023
- #define DEFAULT_bedKd 305.4
-
- //120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
- //from pidautotune
- //#define DEFAULT_bedKp 97.1
- //#define DEFAULT_bedKi 1.41
- //#define DEFAULT_bedKd 1675.16
-
- // FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
-#endif // PIDTEMPBED
-
-// @section extruder
-
-/**
- * Prevent extrusion if the temperature is below EXTRUDE_MINTEMP.
- * Add M302 to set the minimum extrusion temperature and/or turn
- * cold extrusion prevention on and off.
- *
- * *** IT IS HIGHLY RECOMMENDED TO LEAVE THIS OPTION ENABLED! ***
- */
-#define PREVENT_COLD_EXTRUSION
-#define EXTRUDE_MINTEMP 170
-
-/**
- * Prevent a single extrusion longer than EXTRUDE_MAXLENGTH.
- * Note: For Bowden Extruders make this large enough to allow load/unload.
- */
-#define PREVENT_LENGTHY_EXTRUDE
-#define EXTRUDE_MAXLENGTH 200
-
-//===========================================================================
-//======================== Thermal Runaway Protection =======================
-//===========================================================================
-
-/**
- * Thermal Protection provides additional protection to your printer from damage
- * and fire. Marlin always includes safe min and max temperature ranges which
- * protect against a broken or disconnected thermistor wire.
- *
- * The issue: If a thermistor falls out, it will report the much lower
- * temperature of the air in the room, and the the firmware will keep
- * the heater on.
- *
- * If you get "Thermal Runaway" or "Heating failed" errors the
- * details can be tuned in Configuration_adv.h
- */
-
-#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
-#define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed
-#define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber
-
-//===========================================================================
-//============================= Mechanical Settings =========================
-//===========================================================================
-
-// @section machine
-
-// Uncomment one of these options to enable CoreXY, CoreXZ, or CoreYZ kinematics
-// either in the usual order or reversed
-//#define COREXY
-//#define COREXZ
-//#define COREYZ
-//#define COREYX
-//#define COREZX
-//#define COREZY
-
-//===========================================================================
-//============================== Endstop Settings ===========================
-//===========================================================================
-
-// @section homing
-
-// Specify here all the endstop connectors that are connected to any endstop or probe.
-// Almost all printers will be using one per axis. Probes will use one or more of the
-// extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
-#define USE_XMIN_PLUG
-#define USE_YMIN_PLUG
-#define USE_ZMIN_PLUG
-//#define USE_XMAX_PLUG
-//#define USE_YMAX_PLUG
-//#define USE_ZMAX_PLUG
-
-// Enable pullup for all endstops to prevent a floating state
-#define ENDSTOPPULLUPS
-#if DISABLED(ENDSTOPPULLUPS)
- // Disable ENDSTOPPULLUPS to set pullups individually
- //#define ENDSTOPPULLUP_XMAX
- //#define ENDSTOPPULLUP_YMAX
- //#define ENDSTOPPULLUP_ZMAX
- //#define ENDSTOPPULLUP_XMIN
- //#define ENDSTOPPULLUP_YMIN
- //#define ENDSTOPPULLUP_ZMIN
- //#define ENDSTOPPULLUP_ZMIN_PROBE
-#endif
-
-// Enable pulldown for all endstops to prevent a floating state
-//#define ENDSTOPPULLDOWNS
-#if DISABLED(ENDSTOPPULLDOWNS)
- // Disable ENDSTOPPULLDOWNS to set pulldowns individually
- //#define ENDSTOPPULLDOWN_XMAX
- //#define ENDSTOPPULLDOWN_YMAX
- //#define ENDSTOPPULLDOWN_ZMAX
- //#define ENDSTOPPULLDOWN_XMIN
- //#define ENDSTOPPULLDOWN_YMIN
- //#define ENDSTOPPULLDOWN_ZMIN
- //#define ENDSTOPPULLDOWN_ZMIN_PROBE
-#endif
-
-// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
-#define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define Z_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
-#define Z_MIN_PROBE_ENDSTOP_INVERTING false // Set to true to invert the logic of the probe.
-
-/**
- * Stepper Drivers
- *
- * These settings allow Marlin to tune stepper driver timing and enable advanced options for
- * stepper drivers that support them. You may also override timing options in Configuration_adv.h.
- *
- * A4988 is assumed for unspecified drivers.
- *
- * Options: A4988, A5984, DRV8825, LV8729, L6470, L6474, POWERSTEP01,
- * TB6560, TB6600, TMC2100,
- * TMC2130, TMC2130_STANDALONE, TMC2160, TMC2160_STANDALONE,
- * TMC2208, TMC2208_STANDALONE, TMC2209, TMC2209_STANDALONE,
- * TMC26X, TMC26X_STANDALONE, TMC2660, TMC2660_STANDALONE,
- * TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE
- * :['A4988', 'A5984', 'DRV8825', 'LV8729', 'L6470', 'L6474', 'POWERSTEP01', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE']
- */
-//#define X_DRIVER_TYPE A4988
-//#define Y_DRIVER_TYPE A4988
-//#define Z_DRIVER_TYPE A4988
-//#define X2_DRIVER_TYPE A4988
-//#define Y2_DRIVER_TYPE A4988
-//#define Z2_DRIVER_TYPE A4988
-//#define Z3_DRIVER_TYPE A4988
-//#define Z4_DRIVER_TYPE A4988
-//#define E0_DRIVER_TYPE A4988
-//#define E1_DRIVER_TYPE A4988
-//#define E2_DRIVER_TYPE A4988
-//#define E3_DRIVER_TYPE A4988
-//#define E4_DRIVER_TYPE A4988
-//#define E5_DRIVER_TYPE A4988
-//#define E6_DRIVER_TYPE A4988
-//#define E7_DRIVER_TYPE A4988
-
-// Enable this feature if all enabled endstop pins are interrupt-capable.
-// This will remove the need to poll the interrupt pins, saving many CPU cycles.
-//#define ENDSTOP_INTERRUPTS_FEATURE
-
-/**
- * Endstop Noise Threshold
- *
- * Enable if your probe or endstops falsely trigger due to noise.
- *
- * - Higher values may affect repeatability or accuracy of some bed probes.
- * - To fix noise install a 100nF ceramic capacitor inline with the switch.
- * - This feature is not required for common micro-switches mounted on PCBs
- * based on the Makerbot design, which already have the 100nF capacitor.
- *
- * :[2,3,4,5,6,7]
- */
-//#define ENDSTOP_NOISE_THRESHOLD 2
-
-//=============================================================================
-//============================== Movement Settings ============================
-//=============================================================================
-// @section motion
-
-/**
- * Default Settings
- *
- * These settings can be reset by M502
- *
- * Note that if EEPROM is enabled, saved values will override these.
- */
-
-/**
- * With this option each E stepper can have its own factors for the
- * following movement settings. If fewer factors are given than the
- * total number of extruders, the last value applies to the rest.
- */
-//#define DISTINCT_E_FACTORS
-
-/**
- * Default Axis Steps Per Unit (steps/mm)
- * Override with M92
- * X, Y, Z, E0 [, E1[, E2...]]
- */
-#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 4000, 500 }
-
-/**
- * Default Max Feed Rate (mm/s)
- * Override with M203
- * X, Y, Z, E0 [, E1[, E2...]]
- */
-#define DEFAULT_MAX_FEEDRATE { 300, 300, 5, 25 }
-
-//#define LIMITED_MAX_FR_EDITING // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2
-#if ENABLED(LIMITED_MAX_FR_EDITING)
- #define MAX_FEEDRATE_EDIT_VALUES { 600, 600, 10, 50 } // ...or, set your own edit limits
-#endif
-
-/**
- * Default Max Acceleration (change/s) change = mm/s
- * (Maximum start speed for accelerated moves)
- * Override with M201
- * X, Y, Z, E0 [, E1[, E2...]]
- */
-#define DEFAULT_MAX_ACCELERATION { 3000, 3000, 100, 10000 }
-
-//#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2
-#if ENABLED(LIMITED_MAX_ACCEL_EDITING)
- #define MAX_ACCEL_EDIT_VALUES { 6000, 6000, 200, 20000 } // ...or, set your own edit limits
-#endif
-
-/**
- * Default Acceleration (change/s) change = mm/s
- * Override with M204
- *
- * M204 P Acceleration
- * M204 R Retract Acceleration
- * M204 T Travel Acceleration
- */
-#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E acceleration for printing moves
-#define DEFAULT_RETRACT_ACCELERATION 3000 // E acceleration for retracts
-#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z acceleration for travel (non printing) moves
-
-/**
- * Default Jerk limits (mm/s)
- * Override with M205 X Y Z E
- *
- * "Jerk" specifies the minimum speed change that requires acceleration.
- * When changing speed and direction, if the difference is less than the
- * value set here, it may happen instantaneously.
- */
-//#define CLASSIC_JERK
-#if ENABLED(CLASSIC_JERK)
- #define DEFAULT_XJERK 10.0
- #define DEFAULT_YJERK 10.0
- #define DEFAULT_ZJERK 0.3
-
- //#define TRAVEL_EXTRA_XYJERK 0.0 // Additional jerk allowance for all travel moves
-
- //#define LIMITED_JERK_EDITING // Limit edit via M205 or LCD to DEFAULT_aJERK * 2
- #if ENABLED(LIMITED_JERK_EDITING)
- #define MAX_JERK_EDIT_VALUES { 20, 20, 0.6, 10 } // ...or, set your own edit limits
- #endif
-#endif
-
-#define DEFAULT_EJERK 5.0 // May be used by Linear Advance
-
-/**
- * Junction Deviation Factor
- *
- * See:
- * https://reprap.org/forum/read.php?1,739819
- * http://blog.kyneticcnc.com/2018/10/computing-junction-deviation-for-marlin.html
- */
-#if DISABLED(CLASSIC_JERK)
- #define JUNCTION_DEVIATION_MM 0.013 // (mm) Distance from real junction edge
-#endif
-
-/**
- * S-Curve Acceleration
- *
- * This option eliminates vibration during printing by fitting a Bézier
- * curve to move acceleration, producing much smoother direction changes.
- *
- * See https://github.com/synthetos/TinyG/wiki/Jerk-Controlled-Motion-Explained
- */
-//#define S_CURVE_ACCELERATION
-
-//===========================================================================
-//============================= Z Probe Options =============================
-//===========================================================================
-// @section probes
-
-//
-// See http://marlinfw.org/docs/configuration/probes.html
-//
-
-/**
- * Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
- *
- * Enable this option for a probe connected to the Z Min endstop pin.
- */
-#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
-
-/**
- * Z_MIN_PROBE_PIN
- *
- * Define this pin if the probe is not connected to Z_MIN_PIN.
- * If not defined the default pin for the selected MOTHERBOARD
- * will be used. Most of the time the default is what you want.
- *
- * - The simplest option is to use a free endstop connector.
- * - Use 5V for powered (usually inductive) sensors.
- *
- * - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
- * - For simple switches connect...
- * - normally-closed switches to GND and D32.
- * - normally-open switches to 5V and D32.
- *
- */
-//#define Z_MIN_PROBE_PIN 32 // Pin 32 is the RAMPS default
-
-/**
- * Probe Type
- *
- * Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
- * Activate one of these to use Auto Bed Leveling below.
- */
-
-/**
- * The "Manual Probe" provides a means to do "Auto" Bed Leveling without a probe.
- * Use G29 repeatedly, adjusting the Z height at each point with movement commands
- * or (with LCD_BED_LEVELING) the LCD controller.
- */
-//#define PROBE_MANUALLY
-//#define MANUAL_PROBE_START_Z 0.2
-
-/**
- * A Fix-Mounted Probe either doesn't deploy or needs manual deployment.
- * (e.g., an inductive probe or a nozzle-based probe-switch.)
- */
-//#define FIX_MOUNTED_PROBE
-
-/**
- * Use the nozzle as the probe, as with a conductive
- * nozzle system or a piezo-electric smart effector.
- */
-//#define NOZZLE_AS_PROBE
-
-/**
- * Z Servo Probe, such as an endstop switch on a rotating arm.
- */
-//#define Z_PROBE_SERVO_NR 0 // Defaults to SERVO 0 connector.
-//#define Z_SERVO_ANGLES { 70, 0 } // Z Servo Deploy and Stow angles
-
-/**
- * The BLTouch probe uses a Hall effect sensor and emulates a servo.
- */
-//#define BLTOUCH
-
-/**
- * Touch-MI Probe by hotends.fr
- *
- * This probe is deployed and activated by moving the X-axis to a magnet at the edge of the bed.
- * By default, the magnet is assumed to be on the left and activated by a home. If the magnet is
- * on the right, enable and set TOUCH_MI_DEPLOY_XPOS to the deploy position.
- *
- * Also requires: BABYSTEPPING, BABYSTEP_ZPROBE_OFFSET, Z_SAFE_HOMING,
- * and a minimum Z_HOMING_HEIGHT of 10.
- */
-//#define TOUCH_MI_PROBE
-#if ENABLED(TOUCH_MI_PROBE)
- #define TOUCH_MI_RETRACT_Z 0.5 // Height at which the probe retracts
- //#define TOUCH_MI_DEPLOY_XPOS (X_MAX_BED + 2) // For a magnet on the right side of the bed
- //#define TOUCH_MI_MANUAL_DEPLOY // For manual deploy (LCD menu)
-#endif
-
-// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN)
-//#define SOLENOID_PROBE
-
-// A sled-mounted probe like those designed by Charles Bell.
-//#define Z_PROBE_SLED
-//#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
-
-// A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice.
-//#define RACK_AND_PINION_PROBE
-#if ENABLED(RACK_AND_PINION_PROBE)
- #define Z_PROBE_DEPLOY_X X_MIN_POS
- #define Z_PROBE_RETRACT_X X_MAX_POS
-#endif
-
-// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J
-// When the pin is defined you can use M672 to set/reset the probe sensivity.
-//#define DUET_SMART_EFFECTOR
-#if ENABLED(DUET_SMART_EFFECTOR)
- #define SMART_EFFECTOR_MOD_PIN -1 // Connect a GPIO pin to the Smart Effector MOD pin
-#endif
-
-/**
- * Use StallGuard2 to probe the bed with the nozzle.
- * Requires stallGuard-capable Trinamic stepper drivers.
- * CAUTION: This can damage machines with Z lead screws.
- * Take extreme care when setting up this feature.
- */
-//#define SENSORLESS_PROBING
-
-//
-// For Z_PROBE_ALLEN_KEY see the Delta example configurations.
-//
-
-/**
- * Z Probe to nozzle (X,Y) offset, relative to (0, 0).
- *
- * In the following example the X and Y offsets are both positive:
- *
- * #define NOZZLE_TO_PROBE_OFFSET { 10, 10, 0 }
- *
- * +-- BACK ---+
- * | |
- * L | (+) P | R <-- probe (20,20)
- * E | | I
- * F | (-) N (+) | G <-- nozzle (10,10)
- * T | | H
- * | (-) | T
- * | |
- * O-- FRONT --+
- * (0,0)
- *
- * Specify a Probe position as { X, Y, Z }
- */
-#define NOZZLE_TO_PROBE_OFFSET { 10, 10, 0 }
-
-// Most probes should stay away from the edges of the bed, but
-// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
-#define MIN_PROBE_EDGE 10
-
-// X and Y axis travel speed (mm/m) between probes
-#define XY_PROBE_SPEED 8000
-
-// Feedrate (mm/m) for the first approach when double-probing (MULTIPLE_PROBING == 2)
-#define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
-
-// Feedrate (mm/m) for the "accurate" probe of each point
-#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
-
-/**
- * Multiple Probing
- *
- * You may get improved results by probing 2 or more times.
- * With EXTRA_PROBING the more atypical reading(s) will be disregarded.
- *
- * A total of 2 does fast/slow probes with a weighted average.
- * A total of 3 or more adds more slow probes, taking the average.
- */
-//#define MULTIPLE_PROBING 2
-//#define EXTRA_PROBING 1
-
-/**
- * Z probes require clearance when deploying, stowing, and moving between
- * probe points to avoid hitting the bed and other hardware.
- * Servo-mounted probes require extra space for the arm to rotate.
- * Inductive probes need space to keep from triggering early.
- *
- * Use these settings to specify the distance (mm) to raise the probe (or
- * lower the bed). The values set here apply over and above any (negative)
- * probe Z Offset set with NOZZLE_TO_PROBE_OFFSET, M851, or the LCD.
- * Only integer values >= 1 are valid here.
- *
- * Example: `M851 Z-5` with a CLEARANCE of 4 => 9mm from bed to nozzle.
- * But: `M851 Z+1` with a CLEARANCE of 2 => 2mm from bed to nozzle.
- */
-#define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow
-#define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
-#define Z_CLEARANCE_MULTI_PROBE 5 // Z Clearance between multiple probes
-//#define Z_AFTER_PROBING 5 // Z position after probing is done
-
-#define Z_PROBE_LOW_POINT -2 // Farthest distance below the trigger-point to go before stopping
-
-// For M851 give a range for adjusting the Z probe offset
-#define Z_PROBE_OFFSET_RANGE_MIN -20
-#define Z_PROBE_OFFSET_RANGE_MAX 20
-
-// Enable the M48 repeatability test to test probe accuracy
-//#define Z_MIN_PROBE_REPEATABILITY_TEST
-
-// Before deploy/stow pause for user confirmation
-//#define PAUSE_BEFORE_DEPLOY_STOW
-#if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)
- //#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe
-#endif
-
-/**
- * Enable one or more of the following if probing seems unreliable.
- * Heaters and/or fans can be disabled during probing to minimize electrical
- * noise. A delay can also be added to allow noise and vibration to settle.
- * These options are most useful for the BLTouch probe, but may also improve
- * readings with inductive probes and piezo sensors.
- */
-//#define PROBING_HEATERS_OFF // Turn heaters off when probing
-#if ENABLED(PROBING_HEATERS_OFF)
- //#define WAIT_FOR_BED_HEATER // Wait for bed to heat back up between probes (to improve accuracy)
-#endif
-//#define PROBING_FANS_OFF // Turn fans off when probing
-//#define PROBING_STEPPERS_OFF // Turn steppers off (unless needed to hold position) when probing
-//#define DELAY_BEFORE_PROBING 200 // (ms) To prevent vibrations from triggering piezo sensors
-
-// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
-// :{ 0:'Low', 1:'High' }
-#define X_ENABLE_ON 0
-#define Y_ENABLE_ON 0
-#define Z_ENABLE_ON 0
-#define E_ENABLE_ON 0 // For all extruders
-
-// Disables axis stepper immediately when it's not being used.
-// WARNING: When motors turn off there is a chance of losing position accuracy!
-#define DISABLE_X false
-#define DISABLE_Y false
-#define DISABLE_Z false
-
-// Warn on display about possibly reduced accuracy
-//#define DISABLE_REDUCED_ACCURACY_WARNING
-
-// @section extruder
-
-#define DISABLE_E false // For all extruders
-#define DISABLE_INACTIVE_EXTRUDER // Keep only the active extruder enabled
-
-// @section machine
-
-// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
-#define INVERT_X_DIR false
-#define INVERT_Y_DIR true
-#define INVERT_Z_DIR false
-
-// @section extruder
-
-// For direct drive extruder v9 set to true, for geared extruder set to false.
-#define INVERT_E0_DIR false
-#define INVERT_E1_DIR false
-#define INVERT_E2_DIR false
-#define INVERT_E3_DIR false
-#define INVERT_E4_DIR false
-#define INVERT_E5_DIR false
-#define INVERT_E6_DIR false
-#define INVERT_E7_DIR false
-
-// @section homing
-
-//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
-
-//#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.
-
-//#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
- // Be sure to have this much clearance over your Z_MAX_POS to prevent grinding.
-
-//#define Z_AFTER_HOMING 10 // (mm) Height to move to after homing Z
-
-// Direction of endstops when homing; 1=MAX, -1=MIN
-// :[-1,1]
-#define X_HOME_DIR -1
-#define Y_HOME_DIR -1
-#define Z_HOME_DIR -1
-
-// @section machine
-
-// The size of the print bed
-#define X_BED_SIZE 200
-#define Y_BED_SIZE 200
-
-// Travel limits (mm) after homing, corresponding to endstop positions.
-#define X_MIN_POS 0
-#define Y_MIN_POS 0
-#define Z_MIN_POS 0
-#define X_MAX_POS X_BED_SIZE
-#define Y_MAX_POS Y_BED_SIZE
-#define Z_MAX_POS 200
-
-/**
- * Software Endstops
- *
- * - Prevent moves outside the set machine bounds.
- * - Individual axes can be disabled, if desired.
- * - X and Y only apply to Cartesian robots.
- * - Use 'M211' to set software endstops on/off or report current state
- */
-
-// Min software endstops constrain movement within minimum coordinate bounds
-#define MIN_SOFTWARE_ENDSTOPS
-#if ENABLED(MIN_SOFTWARE_ENDSTOPS)
- #define MIN_SOFTWARE_ENDSTOP_X
- #define MIN_SOFTWARE_ENDSTOP_Y
- #define MIN_SOFTWARE_ENDSTOP_Z
-#endif
-
-// Max software endstops constrain movement within maximum coordinate bounds
-#define MAX_SOFTWARE_ENDSTOPS
-#if ENABLED(MAX_SOFTWARE_ENDSTOPS)
- #define MAX_SOFTWARE_ENDSTOP_X
- #define MAX_SOFTWARE_ENDSTOP_Y
- #define MAX_SOFTWARE_ENDSTOP_Z
-#endif
-
-#if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
- //#define SOFT_ENDSTOPS_MENU_ITEM // Enable/Disable software endstops from the LCD
-#endif
-
-/**
- * Filament Runout Sensors
- * Mechanical or opto endstops are used to check for the presence of filament.
- *
- * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
- * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
- * By default the firmware assumes HIGH=FILAMENT PRESENT.
- */
-//#define FILAMENT_RUNOUT_SENSOR
-#if ENABLED(FILAMENT_RUNOUT_SENSOR)
- #define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
- #define FIL_RUNOUT_INVERTING false // Set to true to invert the logic of the sensor.
- #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
- //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
-
- // Set one or more commands to execute on filament runout.
- // (After 'M412 H' Marlin will ask the host to handle the process.)
- #define FILAMENT_RUNOUT_SCRIPT "M600"
-
- // After a runout is detected, continue printing this length of filament
- // before executing the runout script. Useful for a sensor at the end of
- // a feed tube. Requires 4 bytes SRAM per sensor, plus 4 bytes overhead.
- //#define FILAMENT_RUNOUT_DISTANCE_MM 25
-
- #ifdef FILAMENT_RUNOUT_DISTANCE_MM
- // Enable this option to use an encoder disc that toggles the runout pin
- // as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
- // large enough to avoid false positives.)
- //#define FILAMENT_MOTION_SENSOR
- #endif
-#endif
-
-//===========================================================================
-//=============================== Bed Leveling ==============================
-//===========================================================================
-// @section calibrate
-
-/**
- * Choose one of the options below to enable G29 Bed Leveling. The parameters
- * and behavior of G29 will change depending on your selection.
- *
- * If using a Probe for Z Homing, enable Z_SAFE_HOMING also!
- *
- * - AUTO_BED_LEVELING_3POINT
- * Probe 3 arbitrary points on the bed (that aren't collinear)
- * You specify the XY coordinates of all 3 points.
- * The result is a single tilted plane. Best for a flat bed.
- *
- * - AUTO_BED_LEVELING_LINEAR
- * Probe several points in a grid.
- * You specify the rectangle and the density of sample points.
- * The result is a single tilted plane. Best for a flat bed.
- *
- * - AUTO_BED_LEVELING_BILINEAR
- * Probe several points in a grid.
- * You specify the rectangle and the density of sample points.
- * The result is a mesh, best for large or uneven beds.
- *
- * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
- * A comprehensive bed leveling system combining the features and benefits
- * of other systems. UBL also includes integrated Mesh Generation, Mesh
- * Validation and Mesh Editing systems.
- *
- * - MESH_BED_LEVELING
- * Probe a grid manually
- * The result is a mesh, suitable for large or uneven beds. (See BILINEAR.)
- * For machines without a probe, Mesh Bed Leveling provides a method to perform
- * leveling in steps so you can manually adjust the Z height at each grid-point.
- * With an LCD controller the process is guided step-by-step.
- */
-//#define AUTO_BED_LEVELING_3POINT
-//#define AUTO_BED_LEVELING_LINEAR
-//#define AUTO_BED_LEVELING_BILINEAR
-//#define AUTO_BED_LEVELING_UBL
-//#define MESH_BED_LEVELING
-
-/**
- * Normally G28 leaves leveling disabled on completion. Enable
- * this option to have G28 restore the prior leveling state.
- */
-//#define RESTORE_LEVELING_AFTER_G28
-
-/**
- * Enable detailed logging of G28, G29, M48, etc.
- * Turn on with the command 'M111 S32'.
- * NOTE: Requires a lot of PROGMEM!
- */
-//#define DEBUG_LEVELING_FEATURE
-
-#if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL)
- // Gradually reduce leveling correction until a set height is reached,
- // at which point movement will be level to the machine's XY plane.
- // The height can be set with M420 Z
- #define ENABLE_LEVELING_FADE_HEIGHT
-
- // For Cartesian machines, instead of dividing moves on mesh boundaries,
- // split up moves into short segments like a Delta. This follows the
- // contours of the bed more closely than edge-to-edge straight moves.
- #define SEGMENT_LEVELED_MOVES
- #define LEVELED_SEGMENT_LENGTH 5.0 // (mm) Length of all segments (except the last one)
-
- /**
- * Enable the G26 Mesh Validation Pattern tool.
- */
- //#define G26_MESH_VALIDATION
- #if ENABLED(G26_MESH_VALIDATION)
- #define MESH_TEST_NOZZLE_SIZE 0.4 // (mm) Diameter of primary nozzle.
- #define MESH_TEST_LAYER_HEIGHT 0.2 // (mm) Default layer height for the G26 Mesh Validation Tool.
- #define MESH_TEST_HOTEND_TEMP 205 // (°C) Default nozzle temperature for the G26 Mesh Validation Tool.
- #define MESH_TEST_BED_TEMP 60 // (°C) Default bed temperature for the G26 Mesh Validation Tool.
- #define G26_XY_FEEDRATE 20 // (mm/s) Feedrate for XY Moves for the G26 Mesh Validation Tool.
- #define G26_RETRACT_MULTIPLIER 1.0 // G26 Q (retraction) used by default between mesh test elements.
- #endif
-
-#endif
-
-#if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
-
- // Set the number of grid points per dimension.
- #define GRID_MAX_POINTS_X 3
- #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
-
- // Probe along the Y axis, advancing X after each column
- //#define PROBE_Y_FIRST
-
- #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
-
- // Beyond the probed grid, continue the implied tilt?
- // Default is to maintain the height of the nearest edge.
- //#define EXTRAPOLATE_BEYOND_GRID
-
- //
- // Experimental Subdivision of the grid by Catmull-Rom method.
- // Synthesizes intermediate points to produce a more detailed mesh.
- //
- //#define ABL_BILINEAR_SUBDIVISION
- #if ENABLED(ABL_BILINEAR_SUBDIVISION)
- // Number of subdivisions between probe points
- #define BILINEAR_SUBDIVISIONS 3
- #endif
-
- #endif
-
-#elif ENABLED(AUTO_BED_LEVELING_UBL)
-
- //===========================================================================
- //========================= Unified Bed Leveling ============================
- //===========================================================================
-
- //#define MESH_EDIT_GFX_OVERLAY // Display a graphics overlay while editing the mesh
-
- #define MESH_INSET 1 // Set Mesh bounds as an inset region of the bed
- #define GRID_MAX_POINTS_X 10 // Don't use more than 15 points per axis, implementation limited.
- #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
-
- #define UBL_MESH_EDIT_MOVES_Z // Sophisticated users prefer no movement of nozzle
- #define UBL_SAVE_ACTIVE_ON_M500 // Save the currently active mesh in the current slot on M500
-
- //#define UBL_Z_RAISE_WHEN_OFF_MESH 2.5 // When the nozzle is off the mesh, this value is used
- // as the Z-Height correction value.
-
-#elif ENABLED(MESH_BED_LEVELING)
-
- //===========================================================================
- //=================================== Mesh ==================================
- //===========================================================================
-
- #define MESH_INSET 10 // Set Mesh bounds as an inset region of the bed
- #define GRID_MAX_POINTS_X 3 // Don't use more than 7 points per axis, implementation limited.
- #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
-
- //#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest Z at Z_MIN_POS
-
-#endif // BED_LEVELING
-
-/**
- * Add a bed leveling sub-menu for ABL or MBL.
- * Include a guided procedure if manual probing is enabled.
- */
-//#define LCD_BED_LEVELING
-
-#if ENABLED(LCD_BED_LEVELING)
- #define MESH_EDIT_Z_STEP 0.025 // (mm) Step size while manually probing Z axis.
- #define LCD_PROBE_Z_RANGE 4 // (mm) Z Range centered on Z_MIN_POS for LCD Z adjustment
- //#define MESH_EDIT_MENU // Add a menu to edit mesh points
-#endif
-
-// Add a menu item to move between bed corners for manual bed adjustment
-//#define LEVEL_BED_CORNERS
-
-#if ENABLED(LEVEL_BED_CORNERS)
- #define LEVEL_CORNERS_INSET_LFRB { 30, 30, 30, 30 } // (mm) Left, Front, Right, Back insets
- #define LEVEL_CORNERS_HEIGHT 0.0 // (mm) Z height of nozzle at leveling points
- #define LEVEL_CORNERS_Z_HOP 4.0 // (mm) Z height of nozzle between leveling points
- //#define LEVEL_CENTER_TOO // Move to the center after the last corner
-#endif
-
-/**
- * Commands to execute at the end of G29 probing.
- * Useful to retract or move the Z probe out of the way.
- */
-//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
-
-
-// @section homing
-
-// The center of the bed is at (X=0, Y=0)
-//#define BED_CENTER_AT_0_0
-
-// Manually set the home position. Leave these undefined for automatic settings.
-// For DELTA this is the top-center of the Cartesian print volume.
-//#define MANUAL_X_HOME_POS 0
-//#define MANUAL_Y_HOME_POS 0
-//#define MANUAL_Z_HOME_POS 0
-
-// Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
-//
-// With this feature enabled:
-//
-// - Allow Z homing only after X and Y homing AND stepper drivers still enabled.
-// - If stepper drivers time out, it will need X and Y homing again before Z homing.
-// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
-// - Prevent Z homing when the Z probe is outside bed area.
-//
-//#define Z_SAFE_HOMING
-
-#if ENABLED(Z_SAFE_HOMING)
- #define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2) // X point for Z homing when homing all axes (G28).
- #define Z_SAFE_HOMING_Y_POINT ((Y_BED_SIZE) / 2) // Y point for Z homing when homing all axes (G28).
-#endif
-
-// Homing speeds (mm/m)
-#define HOMING_FEEDRATE_XY (50*60)
-#define HOMING_FEEDRATE_Z (4*60)
-
-// Validate that endstops are triggered on homing moves
-#define VALIDATE_HOMING_ENDSTOPS
-
-// @section calibrate
-
-/**
- * Bed Skew Compensation
- *
- * This feature corrects for misalignment in the XYZ axes.
- *
- * Take the following steps to get the bed skew in the XY plane:
- * 1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
- * 2. For XY_DIAG_AC measure the diagonal A to C
- * 3. For XY_DIAG_BD measure the diagonal B to D
- * 4. For XY_SIDE_AD measure the edge A to D
- *
- * Marlin automatically computes skew factors from these measurements.
- * Skew factors may also be computed and set manually:
- *
- * - Compute AB : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
- * - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
- *
- * If desired, follow the same procedure for XZ and YZ.
- * Use these diagrams for reference:
- *
- * Y Z Z
- * ^ B-------C ^ B-------C ^ B-------C
- * | / / | / / | / /
- * | / / | / / | / /
- * | A-------D | A-------D | A-------D
- * +-------------->X +-------------->X +-------------->Y
- * XY_SKEW_FACTOR XZ_SKEW_FACTOR YZ_SKEW_FACTOR
- */
-//#define SKEW_CORRECTION
-
-#if ENABLED(SKEW_CORRECTION)
- // Input all length measurements here:
- #define XY_DIAG_AC 282.8427124746
- #define XY_DIAG_BD 282.8427124746
- #define XY_SIDE_AD 200
-
- // Or, set the default skew factors directly here
- // to override the above measurements:
- #define XY_SKEW_FACTOR 0.0
-
- //#define SKEW_CORRECTION_FOR_Z
- #if ENABLED(SKEW_CORRECTION_FOR_Z)
- #define XZ_DIAG_AC 282.8427124746
- #define XZ_DIAG_BD 282.8427124746
- #define YZ_DIAG_AC 282.8427124746
- #define YZ_DIAG_BD 282.8427124746
- #define YZ_SIDE_AD 200
- #define XZ_SKEW_FACTOR 0.0
- #define YZ_SKEW_FACTOR 0.0
- #endif
-
- // Enable this option for M852 to set skew at runtime
- //#define SKEW_CORRECTION_GCODE
-#endif
-
-//=============================================================================
-//============================= Additional Features ===========================
-//=============================================================================
-
-// @section extras
-
-/**
- * EEPROM
- *
- * Persistent storage to preserve configurable settings across reboots.
- *
- * M500 - Store settings to EEPROM.
- * M501 - Read settings from EEPROM. (i.e., Throw away unsaved changes)
- * M502 - Revert settings to "factory" defaults. (Follow with M500 to init the EEPROM.)
- */
-//#define EEPROM_SETTINGS // Persistent storage with M500 and M501
-//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
-#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
-#if ENABLED(EEPROM_SETTINGS)
- //#define EEPROM_AUTO_INIT // Init EEPROM automatically on any errors.
-#endif
-
-//
-// Host Keepalive
-//
-// When enabled Marlin will send a busy status message to the host
-// every couple of seconds when it can't accept commands.
-//
-#define HOST_KEEPALIVE_FEATURE // Disable this if your host doesn't like keepalive messages
-#define DEFAULT_KEEPALIVE_INTERVAL 2 // Number of seconds between "busy" messages. Set with M113.
-#define BUSY_WHILE_HEATING // Some hosts require "busy" messages even during heating
-
-//
-// G20/G21 Inch mode support
-//
-//#define INCH_MODE_SUPPORT
-
-//
-// M149 Set temperature units support
-//
-//#define TEMPERATURE_UNITS_SUPPORT
-
-// @section temperature
-
-// Preheat Constants
-#define PREHEAT_1_LABEL "PLA"
-#define PREHEAT_1_TEMP_HOTEND 180
-#define PREHEAT_1_TEMP_BED 70
-#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
-
-#define PREHEAT_2_LABEL "ABS"
-#define PREHEAT_2_TEMP_HOTEND 240
-#define PREHEAT_2_TEMP_BED 110
-#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
-
-/**
- * Nozzle Park
- *
- * Park the nozzle at the given XYZ position on idle or G27.
- *
- * The "P" parameter controls the action applied to the Z axis:
- *
- * P0 (Default) If Z is below park Z raise the nozzle.
- * P1 Raise the nozzle always to Z-park height.
- * P2 Raise the nozzle by Z-park amount, limited to Z_MAX_POS.
- */
-//#define NOZZLE_PARK_FEATURE
-
-#if ENABLED(NOZZLE_PARK_FEATURE)
- // Specify a park position as { X, Y, Z_raise }
- #define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
- #define NOZZLE_PARK_XY_FEEDRATE 100 // (mm/s) X and Y axes feedrate (also used for delta Z axis)
- #define NOZZLE_PARK_Z_FEEDRATE 5 // (mm/s) Z axis feedrate (not used for delta printers)
-#endif
-
-/**
- * Clean Nozzle Feature -- EXPERIMENTAL
- *
- * Adds the G12 command to perform a nozzle cleaning process.
- *
- * Parameters:
- * P Pattern
- * S Strokes / Repetitions
- * T Triangles (P1 only)
- *
- * Patterns:
- * P0 Straight line (default). This process requires a sponge type material
- * at a fixed bed location. "S" specifies strokes (i.e. back-forth motions)
- * between the start / end points.
- *
- * P1 Zig-zag pattern between (X0, Y0) and (X1, Y1), "T" specifies the
- * number of zig-zag triangles to do. "S" defines the number of strokes.
- * Zig-zags are done in whichever is the narrower dimension.
- * For example, "G12 P1 S1 T3" will execute:
- *
- * --
- * | (X0, Y1) | /\ /\ /\ | (X1, Y1)
- * | | / \ / \ / \ |
- * A | | / \ / \ / \ |
- * | | / \ / \ / \ |
- * | (X0, Y0) | / \/ \/ \ | (X1, Y0)
- * -- +--------------------------------+
- * |________|_________|_________|
- * T1 T2 T3
- *
- * P2 Circular pattern with middle at NOZZLE_CLEAN_CIRCLE_MIDDLE.
- * "R" specifies the radius. "S" specifies the stroke count.
- * Before starting, the nozzle moves to NOZZLE_CLEAN_START_POINT.
- *
- * Caveats: The ending Z should be the same as starting Z.
- * Attention: EXPERIMENTAL. G-code arguments may change.
- *
- */
-//#define NOZZLE_CLEAN_FEATURE
-
-#if ENABLED(NOZZLE_CLEAN_FEATURE)
- // Default number of pattern repetitions
- #define NOZZLE_CLEAN_STROKES 12
-
- // Default number of triangles
- #define NOZZLE_CLEAN_TRIANGLES 3
-
- // Specify positions for each tool as { { X, Y, Z }, { X, Y, Z } }
- // Dual hotend system may use { { -20, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) }, { 420, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) }}
- #define NOZZLE_CLEAN_START_POINT { { 30, 30, (Z_MIN_POS + 1) } }
- #define NOZZLE_CLEAN_END_POINT { { 100, 60, (Z_MIN_POS + 1) } }
-
- // Circular pattern radius
- #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
- // Circular pattern circle fragments number
- #define NOZZLE_CLEAN_CIRCLE_FN 10
- // Middle point of circle
- #define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
-
- // Move the nozzle to the initial position after cleaning
- #define NOZZLE_CLEAN_GOBACK
-
- // Enable for a purge/clean station that's always at the gantry height (thus no Z move)
- //#define NOZZLE_CLEAN_NO_Z
-#endif
-
-/**
- * Print Job Timer
- *
- * Automatically start and stop the print job timer on M104/M109/M190.
- *
- * M104 (hotend, no wait) - high temp = none, low temp = stop timer
- * M109 (hotend, wait) - high temp = start timer, low temp = stop timer
- * M190 (bed, wait) - high temp = start timer, low temp = none
- *
- * The timer can also be controlled with the following commands:
- *
- * M75 - Start the print job timer
- * M76 - Pause the print job timer
- * M77 - Stop the print job timer
- */
-#define PRINTJOB_TIMER_AUTOSTART
-
-/**
- * Print Counter
- *
- * Track statistical data such as:
- *
- * - Total print jobs
- * - Total successful print jobs
- * - Total failed print jobs
- * - Total time printing
- *
- * View the current statistics with M78.
- */
-//#define PRINTCOUNTER
-
-//=============================================================================
-//============================= LCD and SD support ============================
-//=============================================================================
-
-// @section lcd
-
-/**
- * LCD LANGUAGE
- *
- * Select the language to display on the LCD. These languages are available:
- *
- * en, an, bg, ca, cz, da, de, el, el_gr, es, eu, fi, fr, gl, hr, it, jp_kana,
- * ko_KR, nl, pl, pt, pt_br, ru, sk, tr, uk, vi, zh_CN, zh_TW, test
- *
- * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek', 'el_gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ru':'Russian', 'sk':'Slovak', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)', 'test':'TEST' }
- */
-#define LCD_LANGUAGE en
-
-/**
- * LCD Character Set
- *
- * Note: This option is NOT applicable to Graphical Displays.
- *
- * All character-based LCDs provide ASCII plus one of these
- * language extensions:
- *
- * - JAPANESE ... the most common
- * - WESTERN ... with more accented characters
- * - CYRILLIC ... for the Russian language
- *
- * To determine the language extension installed on your controller:
- *
- * - Compile and upload with LCD_LANGUAGE set to 'test'
- * - Click the controller to view the LCD menu
- * - The LCD will display Japanese, Western, or Cyrillic text
- *
- * See http://marlinfw.org/docs/development/lcd_language.html
- *
- * :['JAPANESE', 'WESTERN', 'CYRILLIC']
- */
-#define DISPLAY_CHARSET_HD44780 JAPANESE
-
-/**
- * Info Screen Style (0:Classic, 1:Prusa)
- *
- * :[0:'Classic', 1:'Prusa']
- */
-#define LCD_INFO_SCREEN_STYLE 0
-
-/**
- * SD CARD
- *
- * SD Card support is disabled by default. If your controller has an SD slot,
- * you must uncomment the following option or it won't work.
- *
- */
-//#define SDSUPPORT
-
-/**
- * SD CARD: SPI SPEED
- *
- * Enable one of the following items for a slower SPI transfer speed.
- * This may be required to resolve "volume init" errors.
- */
-//#define SPI_SPEED SPI_HALF_SPEED
-//#define SPI_SPEED SPI_QUARTER_SPEED
-//#define SPI_SPEED SPI_EIGHTH_SPEED
-
-/**
- * SD CARD: ENABLE CRC
- *
- * Use CRC checks and retries on the SD communication.
- */
-//#define SD_CHECK_AND_RETRY
-
-/**
- * LCD Menu Items
- *
- * Disable all menus and only display the Status Screen, or
- * just remove some extraneous menu items to recover space.
- */
-//#define NO_LCD_MENUS
-//#define SLIM_LCD_MENUS
-
-//
-// ENCODER SETTINGS
-//
-// This option overrides the default number of encoder pulses needed to
-// produce one step. Should be increased for high-resolution encoders.
-//
-//#define ENCODER_PULSES_PER_STEP 4
-
-//
-// Use this option to override the number of step signals required to
-// move between next/prev menu items.
-//
-//#define ENCODER_STEPS_PER_MENU_ITEM 1
-
-/**
- * Encoder Direction Options
- *
- * Test your encoder's behavior first with both options disabled.
- *
- * Reversed Value Edit and Menu Nav? Enable REVERSE_ENCODER_DIRECTION.
- * Reversed Menu Navigation only? Enable REVERSE_MENU_DIRECTION.
- * Reversed Value Editing only? Enable BOTH options.
- */
-
-//
-// This option reverses the encoder direction everywhere.
-//
-// Set this option if CLOCKWISE causes values to DECREASE
-//
-//#define REVERSE_ENCODER_DIRECTION
-
-//
-// This option reverses the encoder direction for navigating LCD menus.
-//
-// If CLOCKWISE normally moves DOWN this makes it go UP.
-// If CLOCKWISE normally moves UP this makes it go DOWN.
-//
-//#define REVERSE_MENU_DIRECTION
-
-//
-// This option reverses the encoder direction for Select Screen.
-//
-// If CLOCKWISE normally moves LEFT this makes it go RIGHT.
-// If CLOCKWISE normally moves RIGHT this makes it go LEFT.
-//
-//#define REVERSE_SELECT_DIRECTION
-
-//
-// Individual Axis Homing
-//
-// Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
-//
-//#define INDIVIDUAL_AXIS_HOMING_MENU
-
-//
-// SPEAKER/BUZZER
-//
-// If you have a speaker that can produce tones, enable it here.
-// By default Marlin assumes you have a buzzer with a fixed frequency.
-//
-//#define SPEAKER
-
-//
-// The duration and frequency for the UI feedback sound.
-// Set these to 0 to disable audio feedback in the LCD menus.
-//
-// Note: Test audio output with the G-Code:
-// M300 S P
-//
-//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
-//#define LCD_FEEDBACK_FREQUENCY_HZ 5000
-
-//=============================================================================
-//======================== LCD / Controller Selection =========================
-//======================== (Character-based LCDs) =========================
-//=============================================================================
-
-//
-// RepRapDiscount Smart Controller.
-// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
-//
-// Note: Usually sold with a white PCB.
-//
-//#define REPRAP_DISCOUNT_SMART_CONTROLLER
-
-//
-// Original RADDS LCD Display+Encoder+SDCardReader
-// http://doku.radds.org/dokumentation/lcd-display/
-//
-//#define RADDS_DISPLAY
-
-//
-// ULTIMAKER Controller.
-//
-//#define ULTIMAKERCONTROLLER
-
-//
-// ULTIPANEL as seen on Thingiverse.
-//
-//#define ULTIPANEL
-
-//
-// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
-// http://reprap.org/wiki/PanelOne
-//
-//#define PANEL_ONE
-
-//
-// GADGETS3D G3D LCD/SD Controller
-// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
-//
-// Note: Usually sold with a blue PCB.
-//
-//#define G3D_PANEL
-
-//
-// RigidBot Panel V1.0
-// http://www.inventapart.com/
-//
-//#define RIGIDBOT_PANEL
-
-//
-// Makeboard 3D Printer Parts 3D Printer Mini Display 1602 Mini Controller
-// https://www.aliexpress.com/item/32765887917.html
-//
-//#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
-
-//
-// ANET and Tronxy 20x4 Controller
-//
-//#define ZONESTAR_LCD // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
- // This LCD is known to be susceptible to electrical interference
- // which scrambles the display. Pressing any button clears it up.
- // This is a LCD2004 display with 5 analog buttons.
-
-//
-// Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
-//
-//#define ULTRA_LCD
-
-//=============================================================================
-//======================== LCD / Controller Selection =========================
-//===================== (I2C and Shift-Register LCDs) =====================
-//=============================================================================
-
-//
-// CONTROLLER TYPE: I2C
-//
-// Note: These controllers require the installation of Arduino's LiquidCrystal_I2C
-// library. For more info: https://github.com/kiyoshigawa/LiquidCrystal_I2C
-//
-
-//
-// Elefu RA Board Control Panel
-// http://www.elefu.com/index.php?route=product/product&product_id=53
-//
-//#define RA_CONTROL_PANEL
-
-//
-// Sainsmart (YwRobot) LCD Displays
-//
-// These require F.Malpartida's LiquidCrystal_I2C library
-// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
-//
-//#define LCD_SAINSMART_I2C_1602
-//#define LCD_SAINSMART_I2C_2004
-
-//
-// Generic LCM1602 LCD adapter
-//
-//#define LCM1602
-
-//
-// PANELOLU2 LCD with status LEDs,
-// separate encoder and click inputs.
-//
-// Note: This controller requires Arduino's LiquidTWI2 library v1.2.3 or later.
-// For more info: https://github.com/lincomatic/LiquidTWI2
-//
-// Note: The PANELOLU2 encoder click input can either be directly connected to
-// a pin (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
-//
-//#define LCD_I2C_PANELOLU2
-
-//
-// Panucatt VIKI LCD with status LEDs,
-// integrated click & L/R/U/D buttons, separate encoder inputs.
-//
-//#define LCD_I2C_VIKI
-
-//
-// CONTROLLER TYPE: Shift register panels
-//
-
-//
-// 2-wire Non-latching LCD SR from https://goo.gl/aJJ4sH
-// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
-//
-//#define SAV_3DLCD
-
-//
-// 3-wire SR LCD with strobe using 74HC4094
-// https://github.com/mikeshub/SailfishLCD
-// Uses the code directly from Sailfish
-//
-//#define FF_INTERFACEBOARD
-
-//=============================================================================
-//======================= LCD / Controller Selection =======================
-//========================= (Graphical LCDs) ========================
-//=============================================================================
-
-//
-// CONTROLLER TYPE: Graphical 128x64 (DOGM)
-//
-// IMPORTANT: The U8glib library is required for Graphical Display!
-// https://github.com/olikraus/U8glib_Arduino
-//
-
-//
-// RepRapDiscount FULL GRAPHIC Smart Controller
-// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
-//
-//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
-
-//
-// ReprapWorld Graphical LCD
-// https://reprapworld.com/?products_details&products_id/1218
-//
-//#define REPRAPWORLD_GRAPHICAL_LCD
-
-//
-// Activate one of these if you have a Panucatt Devices
-// Viki 2.0 or mini Viki with Graphic LCD
-// http://panucatt.com
-//
-//#define VIKI2
-//#define miniVIKI
-
-//
-// MakerLab Mini Panel with graphic
-// controller and SD support - http://reprap.org/wiki/Mini_panel
-//
-//#define MINIPANEL
-
-//
-// MaKr3d Makr-Panel with graphic controller and SD support.
-// http://reprap.org/wiki/MaKr3d_MaKrPanel
-//
-//#define MAKRPANEL
-
-//
-// Adafruit ST7565 Full Graphic Controller.
-// https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
-//
-//#define ELB_FULL_GRAPHIC_CONTROLLER
-
-//
-// BQ LCD Smart Controller shipped by
-// default with the BQ Hephestos 2 and Witbox 2.
-//
-//#define BQ_LCD_SMART_CONTROLLER
-
-//
-// Cartesio UI
-// http://mauk.cc/webshop/cartesio-shop/electronics/user-interface
-//
-//#define CARTESIO_UI
-
-//
-// LCD for Melzi Card with Graphical LCD
-//
-//#define LCD_FOR_MELZI
-
-//
-// Original Ulticontroller from Ultimaker 2 printer with SSD1309 I2C display and encoder
-// https://github.com/Ultimaker/Ultimaker2/tree/master/1249_Ulticontroller_Board_(x1)
-//
-//#define ULTI_CONTROLLER
-
-//
-// MKS MINI12864 with graphic controller and SD support
-// https://reprap.org/wiki/MKS_MINI_12864
-//
-//#define MKS_MINI_12864
-
-//
-// FYSETC variant of the MINI12864 graphic controller with SD support
-// https://wiki.fysetc.com/Mini12864_Panel/
-//
-//#define FYSETC_MINI_12864_X_X // Type C/D/E/F. No tunable RGB Backlight by default
-//#define FYSETC_MINI_12864_1_2 // Type C/D/E/F. Simple RGB Backlight (always on)
-//#define FYSETC_MINI_12864_2_0 // Type A/B. Discreet RGB Backlight
-//#define FYSETC_MINI_12864_2_1 // Type A/B. Neopixel RGB Backlight
-//#define FYSETC_GENERIC_12864_1_1 // Larger display with basic ON/OFF backlight.
-
-//
-// Factory display for Creality CR-10
-// https://www.aliexpress.com/item/32833148327.html
-//
-// This is RAMPS-compatible using a single 10-pin connector.
-// (For CR-10 owners who want to replace the Melzi Creality board but retain the display)
-//
-//#define CR10_STOCKDISPLAY
-
-//
-// Ender-2 OEM display, a variant of the MKS_MINI_12864
-//
-//#define ENDER2_STOCKDISPLAY
-
-//
-// ANET and Tronxy Graphical Controller
-//
-// Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
-// A clone of the RepRapDiscount full graphics display but with
-// different pins/wiring (see pins_ANET_10.h).
-//
-//#define ANET_FULL_GRAPHICS_LCD
-
-//
-// AZSMZ 12864 LCD with SD
-// https://www.aliexpress.com/item/32837222770.html
-//
-//#define AZSMZ_12864
-
-//
-// Silvergate GLCD controller
-// http://github.com/android444/Silvergate
-//
-//#define SILVER_GATE_GLCD_CONTROLLER
-
-//=============================================================================
-//============================== OLED Displays ==============================
-//=============================================================================
-
-//
-// SSD1306 OLED full graphics generic display
-//
-//#define U8GLIB_SSD1306
-
-//
-// SAV OLEd LCD module support using either SSD1306 or SH1106 based LCD modules
-//
-//#define SAV_3DGLCD
-#if ENABLED(SAV_3DGLCD)
- #define U8GLIB_SSD1306
- //#define U8GLIB_SH1106
-#endif
-
-//
-// TinyBoy2 128x64 OLED / Encoder Panel
-//
-//#define OLED_PANEL_TINYBOY2
-
-//
-// MKS OLED 1.3" 128 × 64 FULL GRAPHICS CONTROLLER
-// http://reprap.org/wiki/MKS_12864OLED
-//
-// Tiny, but very sharp OLED display
-//
-//#define MKS_12864OLED // Uses the SH1106 controller (default)
-//#define MKS_12864OLED_SSD1306 // Uses the SSD1306 controller
-
-//
-// Einstart S OLED SSD1306
-//
-//#define U8GLIB_SH1106_EINSTART
-
-//
-// Overlord OLED display/controller with i2c buzzer and LEDs
-//
-//#define OVERLORD_OLED
-
-//=============================================================================
-//========================== Extensible UI Displays ===========================
-//=============================================================================
-
-//
-// DGUS Touch Display with DWIN OS. (Choose one.)
-//
-//#define DGUS_LCD_UI_ORIGIN
-//#define DGUS_LCD_UI_FYSETC
-//#define DGUS_LCD_UI_HIPRECY
-
-//
-// Touch-screen LCD for Malyan M200 printers
-//
-//#define MALYAN_LCD
-
-//
-// Touch UI for FTDI EVE (FT800/FT810) displays
-// See Configuration_adv.h for all configuration options.
-//
-//#define TOUCH_UI_FTDI_EVE
-
-//
-// Third-party or vendor-customized controller interfaces.
-// Sources should be installed in 'src/lcd/extensible_ui'.
-//
-//#define EXTENSIBLE_UI
-
-//=============================================================================
-//=============================== Graphical TFTs ==============================
-//=============================================================================
-
-//
-// FSMC display (MKS Robin, Alfawise U20, JGAurora A5S, REXYZ A1, etc.)
-//
-//#define FSMC_GRAPHICAL_TFT
-
-//=============================================================================
-//============================ Other Controllers ============================
-//=============================================================================
-
-//
-// ADS7843/XPT2046 ADC Touchscreen such as ILI9341 2.8
-//
-//#define TOUCH_BUTTONS
-#if ENABLED(TOUCH_BUTTONS)
- #define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
- #define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
-
- #define XPT2046_X_CALIBRATION 12316
- #define XPT2046_Y_CALIBRATION -8981
- #define XPT2046_X_OFFSET -43
- #define XPT2046_Y_OFFSET 257
-#endif
-
-//
-// RepRapWorld REPRAPWORLD_KEYPAD v1.1
-// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
-//
-//#define REPRAPWORLD_KEYPAD
-//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // (mm) Distance to move per key-press
-
-//=============================================================================
-//=============================== Extra Features ==============================
-//=============================================================================
-
-// @section extras
-
-// Increase the FAN PWM frequency. Removes the PWM noise but increases heating in the FET/Arduino
-//#define FAST_PWM_FAN
-
-// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
-// which is not as annoying as with the hardware PWM. On the other hand, if this frequency
-// is too low, you should also increment SOFT_PWM_SCALE.
-//#define FAN_SOFT_PWM
-
-// Incrementing this by 1 will double the software PWM frequency,
-// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
-// However, control resolution will be halved for each increment;
-// at zero value, there are 128 effective control positions.
-// :[0,1,2,3,4,5,6,7]
-#define SOFT_PWM_SCALE 0
-
-// If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
-// be used to mitigate the associated resolution loss. If enabled,
-// some of the PWM cycles are stretched so on average the desired
-// duty cycle is attained.
-//#define SOFT_PWM_DITHER
-
-// Temperature status LEDs that display the hotend and bed temperature.
-// If all hotends, bed temperature, and target temperature are under 54C
-// then the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
-//#define TEMP_STAT_LEDS
-
-// SkeinForge sends the wrong arc g-codes when using Arc Point as fillet procedure
-//#define SF_ARC_FIX
-
-// Support for the BariCUDA Paste Extruder
-//#define BARICUDA
-
-// Support for BlinkM/CyzRgb
-//#define BLINKM
-
-// Support for PCA9632 PWM LED driver
-//#define PCA9632
-
-// Support for PCA9533 PWM LED driver
-// https://github.com/mikeshub/SailfishRGB_LED
-//#define PCA9533
-
-/**
- * RGB LED / LED Strip Control
- *
- * Enable support for an RGB LED connected to 5V digital pins, or
- * an RGB Strip connected to MOSFETs controlled by digital pins.
- *
- * Adds the M150 command to set the LED (or LED strip) color.
- * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
- * luminance values can be set from 0 to 255.
- * For Neopixel LED an overall brightness parameter is also available.
- *
- * *** CAUTION ***
- * LED Strips require a MOSFET Chip between PWM lines and LEDs,
- * as the Arduino cannot handle the current the LEDs will require.
- * Failure to follow this precaution can destroy your Arduino!
- * NOTE: A separate 5V power supply is required! The Neopixel LED needs
- * more current than the Arduino 5V linear regulator can produce.
- * *** CAUTION ***
- *
- * LED Type. Enable only one of the following two options.
- *
- */
-//#define RGB_LED
-//#define RGBW_LED
-
-#if EITHER(RGB_LED, RGBW_LED)
- //#define RGB_LED_R_PIN 34
- //#define RGB_LED_G_PIN 43
- //#define RGB_LED_B_PIN 35
- //#define RGB_LED_W_PIN -1
-#endif
-
-// Support for Adafruit Neopixel LED driver
-//#define NEOPIXEL_LED
-#if ENABLED(NEOPIXEL_LED)
- #define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
- #define NEOPIXEL_PIN 4 // LED driving pin
- //#define NEOPIXEL2_TYPE NEOPIXEL_TYPE
- //#define NEOPIXEL2_PIN 5
- #define NEOPIXEL_PIXELS 30 // Number of LEDs in the strip, larger of 2 strips if 2 neopixel strips are used
- #define NEOPIXEL_IS_SEQUENTIAL // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
- #define NEOPIXEL_BRIGHTNESS 127 // Initial brightness (0-255)
- //#define NEOPIXEL_STARTUP_TEST // Cycle through colors at startup
-
- // Use a single Neopixel LED for static (background) lighting
- //#define NEOPIXEL_BKGD_LED_INDEX 0 // Index of the LED to use
- //#define NEOPIXEL_BKGD_COLOR { 255, 255, 255, 0 } // R, G, B, W
-#endif
-
-/**
- * Printer Event LEDs
- *
- * During printing, the LEDs will reflect the printer status:
- *
- * - Gradually change from blue to violet as the heated bed gets to target temp
- * - Gradually change from violet to red as the hotend gets to temperature
- * - Change to white to illuminate work surface
- * - Change to green once print has finished
- * - Turn off after the print has finished and the user has pushed a button
- */
-#if ANY(BLINKM, RGB_LED, RGBW_LED, PCA9632, PCA9533, NEOPIXEL_LED)
- #define PRINTER_EVENT_LEDS
-#endif
-
-/**
- * R/C SERVO support
- * Sponsored by TrinityLabs, Reworked by codexmas
- */
-
-/**
- * Number of servos
- *
- * For some servo-related options NUM_SERVOS will be set automatically.
- * Set this manually if there are extra servos needing manual control.
- * Leave undefined or set to 0 to entirely disable the servo subsystem.
- */
-//#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
-
-// (ms) Delay before the next move will start, to give the servo time to reach its target angle.
-// 300ms is a good value but you can try less delay.
-// If the servo can't reach the requested position, increase it.
-#define SERVO_DELAY { 300 }
-
-// Only power servos during movement, otherwise leave off to prevent jitter
-//#define DEACTIVATE_SERVOS_AFTER_MOVE
-
-// Allow servo angle to be edited and saved to EEPROM
-//#define EDITABLE_SERVO_ANGLES
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index f05f49baaf..143d09b58a 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -1,9 +1,9 @@
-#define ABL_BLTOUCH // Replaces RGB LED
-#define GraphicalLCD // Will work next to MKS TFT
-#define TMC_2209 // Defaults to TMC2100
-#define ABL_UBL // Defaults to Bilinear
+//#define ABL_BLTOUCH // Replaces RGB LED
+//#define GraphicalLCD // Will work next to MKS TFT
+//#define TMC_2209 // Defaults to TMC2100
+//#define ABL_UBL // Defaults to Bilinear
//#define RunoutSensor // Tinymachines Lerdge Sensor
-#define RELOCATE_LED // Since the bltouch by default removed the LED, set this if you simply moved them off the hotend
+//#define RELOCATE_LED // Since the bltouch by default removed the LED, set this if you simply moved them off the hotend
//#define E3DHermeaExtruder
//#define SKR13
diff --git a/Marlin/Configuration_adv (2).h b/Marlin/Configuration_adv (2).h
deleted file mode 100644
index f5d80a3eb3..0000000000
--- a/Marlin/Configuration_adv (2).h
+++ /dev/null
@@ -1,3130 +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 .
- *
- */
-#pragma once
-
-/**
- * Configuration_adv.h
- *
- * Advanced settings.
- * Only change these if you know exactly what you're doing.
- * Some of these settings can damage your printer if improperly set!
- *
- * Basic settings can be found in Configuration.h
- *
- */
-#define CONFIGURATION_ADV_H_VERSION 020005
-
-// @section temperature
-
-//===========================================================================
-//=============================Thermal Settings ============================
-//===========================================================================
-
-//
-// Custom Thermistor 1000 parameters
-//
-#if TEMP_SENSOR_0 == 1000
- #define HOTEND0_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND0_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND0_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_1 == 1000
- #define HOTEND1_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND1_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND1_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_2 == 1000
- #define HOTEND2_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND2_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND2_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_3 == 1000
- #define HOTEND3_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND3_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND3_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_4 == 1000
- #define HOTEND4_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND4_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND4_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_5 == 1000
- #define HOTEND5_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND5_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND5_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_6 == 1000
- #define HOTEND6_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND6_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND6_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_7 == 1000
- #define HOTEND7_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define HOTEND7_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define HOTEND7_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_BED == 1000
- #define BED_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define BED_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define BED_BETA 3950 // Beta value
-#endif
-
-#if TEMP_SENSOR_CHAMBER == 1000
- #define CHAMBER_PULLUP_RESISTOR_OHMS 4700 // Pullup resistor
- #define CHAMBER_RESISTANCE_25C_OHMS 100000 // Resistance at 25C
- #define CHAMBER_BETA 3950 // Beta value
-#endif
-
-//
-// Hephestos 2 24V heated bed upgrade kit.
-// https://store.bq.com/en/heated-bed-kit-hephestos2
-//
-//#define HEPHESTOS2_HEATED_BED_KIT
-#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
- #undef TEMP_SENSOR_BED
- #define TEMP_SENSOR_BED 70
- #define HEATER_BED_INVERTING true
-#endif
-
-/**
- * Heated Chamber settings
- */
-#if TEMP_SENSOR_CHAMBER
- #define CHAMBER_MINTEMP 5
- #define CHAMBER_MAXTEMP 60
- #define TEMP_CHAMBER_HYSTERESIS 1 // (°C) Temperature proximity considered "close enough" to the target
- //#define CHAMBER_LIMIT_SWITCHING
- //#define HEATER_CHAMBER_PIN 44 // Chamber heater on/off pin
- //#define HEATER_CHAMBER_INVERTING false
-#endif
-
-#if DISABLED(PIDTEMPBED)
- #define BED_CHECK_INTERVAL 5000 // ms between checks in bang-bang control
- #if ENABLED(BED_LIMIT_SWITCHING)
- #define BED_HYSTERESIS 2 // Only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
- #endif
-#endif
-
-/**
- * Thermal Protection provides additional protection to your printer from damage
- * and fire. Marlin always includes safe min and max temperature ranges which
- * protect against a broken or disconnected thermistor wire.
- *
- * The issue: If a thermistor falls out, it will report the much lower
- * temperature of the air in the room, and the the firmware will keep
- * the heater on.
- *
- * The solution: Once the temperature reaches the target, start observing.
- * If the temperature stays too far below the target (hysteresis) for too
- * long (period), the firmware will halt the machine as a safety precaution.
- *
- * If you get false positives for "Thermal Runaway", increase
- * THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD
- */
-#if ENABLED(THERMAL_PROTECTION_HOTENDS)
- #define THERMAL_PROTECTION_PERIOD 40 // Seconds
- #define THERMAL_PROTECTION_HYSTERESIS 4 // Degrees Celsius
-
- //#define ADAPTIVE_FAN_SLOWING // Slow part cooling fan if temperature drops
- #if BOTH(ADAPTIVE_FAN_SLOWING, PIDTEMP)
- //#define NO_FAN_SLOWING_IN_PID_TUNING // Don't slow fan speed during M303
- #endif
-
- /**
- * Whenever an M104, M109, or M303 increases the target temperature, the
- * firmware will wait for the WATCH_TEMP_PERIOD to expire. If the temperature
- * hasn't increased by WATCH_TEMP_INCREASE degrees, the machine is halted and
- * requires a hard reset. This test restarts with any M104/M109/M303, but only
- * if the current temperature is far enough below the target for a reliable
- * test.
- *
- * If you get false positives for "Heating failed", increase WATCH_TEMP_PERIOD
- * and/or decrease WATCH_TEMP_INCREASE. WATCH_TEMP_INCREASE should not be set
- * below 2.
- */
- #define WATCH_TEMP_PERIOD 20 // Seconds
- #define WATCH_TEMP_INCREASE 2 // Degrees Celsius
-#endif
-
-/**
- * Thermal Protection parameters for the bed are just as above for hotends.
- */
-#if ENABLED(THERMAL_PROTECTION_BED)
- #define THERMAL_PROTECTION_BED_PERIOD 20 // Seconds
- #define THERMAL_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
-
- /**
- * As described above, except for the bed (M140/M190/M303).
- */
- #define WATCH_BED_TEMP_PERIOD 60 // Seconds
- #define WATCH_BED_TEMP_INCREASE 2 // Degrees Celsius
-#endif
-
-/**
- * Thermal Protection parameters for the heated chamber.
- */
-#if ENABLED(THERMAL_PROTECTION_CHAMBER)
- #define THERMAL_PROTECTION_CHAMBER_PERIOD 20 // Seconds
- #define THERMAL_PROTECTION_CHAMBER_HYSTERESIS 2 // Degrees Celsius
-
- /**
- * Heated chamber watch settings (M141/M191).
- */
- #define WATCH_CHAMBER_TEMP_PERIOD 60 // Seconds
- #define WATCH_CHAMBER_TEMP_INCREASE 2 // Degrees Celsius
-#endif
-
-#if ENABLED(PIDTEMP)
- // Add an experimental additional term to the heater power, proportional to the extrusion speed.
- // A well-chosen Kc value should add just enough power to melt the increased material volume.
- //#define PID_EXTRUSION_SCALING
- #if ENABLED(PID_EXTRUSION_SCALING)
- #define DEFAULT_Kc (100) //heating power=Kc*(e_speed)
- #define LPQ_MAX_LEN 50
- #endif
-
- /**
- * Add an experimental additional term to the heater power, proportional to the fan speed.
- * A well-chosen Kf value should add just enough power to compensate for power-loss from the cooling fan.
- * You can either just add a constant compensation with the DEFAULT_Kf value
- * or follow the instruction below to get speed-dependent compensation.
- *
- * Constant compensation (use only with fanspeeds of 0% and 100%)
- * ---------------------------------------------------------------------
- * A good starting point for the Kf-value comes from the calculation:
- * kf = (power_fan * eff_fan) / power_heater * 255
- * where eff_fan is between 0.0 and 1.0, based on fan-efficiency and airflow to the nozzle / heater.
- *
- * Example:
- * Heater: 40W, Fan: 0.1A * 24V = 2.4W, eff_fan = 0.8
- * Kf = (2.4W * 0.8) / 40W * 255 = 12.24
- *
- * Fan-speed dependent compensation
- * --------------------------------
- * 1. To find a good Kf value, set the hotend temperature, wait for it to settle, and enable the fan (100%).
- * Make sure PID_FAN_SCALING_LIN_FACTOR is 0 and PID_FAN_SCALING_ALTERNATIVE_DEFINITION is not enabled.
- * If you see the temperature drop repeat the test, increasing the Kf value slowly, until the temperature
- * drop goes away. If the temperature overshoots after enabling the fan, the Kf value is too big.
- * 2. Note the Kf-value for fan-speed at 100%
- * 3. Determine a good value for PID_FAN_SCALING_MIN_SPEED, which is around the speed, where the fan starts moving.
- * 4. Repeat step 1. and 2. for this fan speed.
- * 5. Enable PID_FAN_SCALING_ALTERNATIVE_DEFINITION and enter the two identified Kf-values in
- * PID_FAN_SCALING_AT_FULL_SPEED and PID_FAN_SCALING_AT_MIN_SPEED. Enter the minimum speed in PID_FAN_SCALING_MIN_SPEED
- */
- //#define PID_FAN_SCALING
- #if ENABLED(PID_FAN_SCALING)
- //#define PID_FAN_SCALING_ALTERNATIVE_DEFINITION
- #if ENABLED(PID_FAN_SCALING_ALTERNATIVE_DEFINITION)
- // The alternative definition is used for an easier configuration.
- // Just figure out Kf at fullspeed (255) and PID_FAN_SCALING_MIN_SPEED.
- // DEFAULT_Kf and PID_FAN_SCALING_LIN_FACTOR are calculated accordingly.
-
- #define PID_FAN_SCALING_AT_FULL_SPEED 13.0 //=PID_FAN_SCALING_LIN_FACTOR*255+DEFAULT_Kf
- #define PID_FAN_SCALING_AT_MIN_SPEED 6.0 //=PID_FAN_SCALING_LIN_FACTOR*PID_FAN_SCALING_MIN_SPEED+DEFAULT_Kf
- #define PID_FAN_SCALING_MIN_SPEED 10.0 // Minimum fan speed at which to enable PID_FAN_SCALING
-
- #define DEFAULT_Kf (255.0*PID_FAN_SCALING_AT_MIN_SPEED-PID_FAN_SCALING_AT_FULL_SPEED*PID_FAN_SCALING_MIN_SPEED)/(255.0-PID_FAN_SCALING_MIN_SPEED)
- #define PID_FAN_SCALING_LIN_FACTOR (PID_FAN_SCALING_AT_FULL_SPEED-DEFAULT_Kf)/255.0
-
- #else
- #define PID_FAN_SCALING_LIN_FACTOR (0) // Power loss due to cooling = Kf * (fan_speed)
- #define DEFAULT_Kf 10 // A constant value added to the PID-tuner
- #define PID_FAN_SCALING_MIN_SPEED 10 // Minimum fan speed at which to enable PID_FAN_SCALING
- #endif
- #endif
-#endif
-
-/**
- * Automatic Temperature:
- * The hotend target temperature is calculated by all the buffered lines of gcode.
- * The maximum buffered steps/sec of the extruder motor is called "se".
- * Start autotemp mode with M109 S B F
- * The target temperature is set to mintemp+factor*se[steps/sec] and is limited by
- * mintemp and maxtemp. Turn this off by executing M109 without F*
- * Also, if the temperature is set to a value below mintemp, it will not be changed by autotemp.
- * On an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode
- */
-#define AUTOTEMP
-#if ENABLED(AUTOTEMP)
- #define AUTOTEMP_OLDWEIGHT 0.98
-#endif
-
-// Extra options for the M114 "Current Position" report
-//#define M114_DETAIL // Use 'M114` for details to check planner calculations
-//#define M114_REALTIME // Real current position based on forward kinematics
-//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
-
-// Show Temperature ADC value
-// Enable for M105 to include ADC values read from temperature sensors.
-//#define SHOW_TEMP_ADC_VALUES
-
-/**
- * High Temperature Thermistor Support
- *
- * Thermistors able to support high temperature tend to have a hard time getting
- * good readings at room and lower temperatures. This means HEATER_X_RAW_LO_TEMP
- * will probably be caught when the heating element first turns on during the
- * preheating process, which will trigger a min_temp_error as a safety measure
- * and force stop everything.
- * To circumvent this limitation, we allow for a preheat time (during which,
- * min_temp_error won't be triggered) and add a min_temp buffer to handle
- * aberrant readings.
- *
- * If you want to enable this feature for your hotend thermistor(s)
- * uncomment and set values > 0 in the constants below
- */
-
-// The number of consecutive low temperature errors that can occur
-// before a min_temp_error is triggered. (Shouldn't be more than 10.)
-//#define MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED 0
-
-// The number of milliseconds a hotend will preheat before starting to check
-// the temperature. This value should NOT be set to the time it takes the
-// hot end to reach the target temperature, but the time it takes to reach
-// the minimum temperature your thermistor can read. The lower the better/safer.
-// This shouldn't need to be more than 30 seconds (30000)
-//#define MILLISECONDS_PREHEAT_TIME 0
-
-// @section extruder
-
-// Extruder runout prevention.
-// If the machine is idle and the temperature over MINTEMP
-// then extrude some filament every couple of SECONDS.
-//#define EXTRUDER_RUNOUT_PREVENT
-#if ENABLED(EXTRUDER_RUNOUT_PREVENT)
- #define EXTRUDER_RUNOUT_MINTEMP 190
- #define EXTRUDER_RUNOUT_SECONDS 30
- #define EXTRUDER_RUNOUT_SPEED 1500 // (mm/m)
- #define EXTRUDER_RUNOUT_EXTRUDE 5 // (mm)
-#endif
-
-// @section temperature
-
-// Calibration for AD595 / AD8495 sensor to adjust temperature measurements.
-// The final temperature is calculated as (measuredTemp * GAIN) + OFFSET.
-#define TEMP_SENSOR_AD595_OFFSET 0.0
-#define TEMP_SENSOR_AD595_GAIN 1.0
-#define TEMP_SENSOR_AD8495_OFFSET 0.0
-#define TEMP_SENSOR_AD8495_GAIN 1.0
-
-/**
- * Controller Fan
- * To cool down the stepper drivers and MOSFETs.
- *
- * The fan will turn on automatically whenever any stepper is enabled
- * and turn off after a set period after all steppers are turned off.
- */
-//#define USE_CONTROLLER_FAN
-#if ENABLED(USE_CONTROLLER_FAN)
- //#define CONTROLLER_FAN_PIN -1 // Set a custom pin for the controller fan
- #define CONTROLLERFAN_SECS 60 // Duration in seconds for the fan to run after all motors are disabled
- #define CONTROLLERFAN_SPEED 255 // 255 == full speed
- //#define CONTROLLERFAN_SPEED_Z_ONLY 127 // Reduce noise on machines that keep Z enabled
-#endif
-
-// When first starting the main fan, run it at full speed for the
-// given number of milliseconds. This gets the fan spinning reliably
-// before setting a PWM value. (Does not work with software PWM for fan on Sanguinololu)
-//#define FAN_KICKSTART_TIME 100
-
-// Some coolers may require a non-zero "off" state.
-//#define FAN_OFF_PWM 1
-
-/**
- * PWM Fan Scaling
- *
- * Define the min/max speeds for PWM fans (as set with M106).
- *
- * With these options the M106 0-255 value range is scaled to a subset
- * to ensure that the fan has enough power to spin, or to run lower
- * current fans with higher current. (e.g., 5V/12V fans with 12V/24V)
- * Value 0 always turns off the fan.
- *
- * Define one or both of these to override the default 0-255 range.
- */
-//#define FAN_MIN_PWM 50
-//#define FAN_MAX_PWM 128
-
-/**
- * FAST PWM FAN Settings
- *
- * Use to change the FAST FAN PWM frequency (if enabled in Configuration.h)
- * Combinations of PWM Modes, prescale values and TOP resolutions are used internally to produce a
- * frequency as close as possible to the desired frequency.
- *
- * FAST_PWM_FAN_FREQUENCY [undefined by default]
- * Set this to your desired frequency.
- * If left undefined this defaults to F = F_CPU/(2*255*1)
- * i.e., F = 31.4kHz on 16MHz microcontrollers or F = 39.2kHz on 20MHz microcontrollers.
- * These defaults are the same as with the old FAST_PWM_FAN implementation - no migration is required
- * NOTE: Setting very low frequencies (< 10 Hz) may result in unexpected timer behavior.
- *
- * USE_OCR2A_AS_TOP [undefined by default]
- * Boards that use TIMER2 for PWM have limitations resulting in only a few possible frequencies on TIMER2:
- * 16MHz MCUs: [62.5KHz, 31.4KHz (default), 7.8KHz, 3.92KHz, 1.95KHz, 977Hz, 488Hz, 244Hz, 60Hz, 122Hz, 30Hz]
- * 20MHz MCUs: [78.1KHz, 39.2KHz (default), 9.77KHz, 4.9KHz, 2.44KHz, 1.22KHz, 610Hz, 305Hz, 153Hz, 76Hz, 38Hz]
- * A greater range can be achieved by enabling USE_OCR2A_AS_TOP. But note that this option blocks the use of
- * PWM on pin OC2A. Only use this option if you don't need PWM on 0C2A. (Check your schematic.)
- * USE_OCR2A_AS_TOP sacrifices duty cycle control resolution to achieve this broader range of frequencies.
- */
-#if ENABLED(FAST_PWM_FAN)
- //#define FAST_PWM_FAN_FREQUENCY 31400
- //#define USE_OCR2A_AS_TOP
-#endif
-
-// @section extruder
-
-/**
- * Extruder cooling fans
- *
- * Extruder auto fans automatically turn on when their extruders'
- * temperatures go above EXTRUDER_AUTO_FAN_TEMPERATURE.
- *
- * Your board's pins file specifies the recommended pins. Override those here
- * or set to -1 to disable completely.
- *
- * Multiple extruders can be assigned to the same pin in which case
- * the fan will turn on when any selected extruder is above the threshold.
- */
-#define E0_AUTO_FAN_PIN -1
-#define E1_AUTO_FAN_PIN -1
-#define E2_AUTO_FAN_PIN -1
-#define E3_AUTO_FAN_PIN -1
-#define E4_AUTO_FAN_PIN -1
-#define E5_AUTO_FAN_PIN -1
-#define CHAMBER_AUTO_FAN_PIN -1
-
-#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
-#define EXTRUDER_AUTO_FAN_SPEED 255 // 255 == full speed
-#define CHAMBER_AUTO_FAN_TEMPERATURE 30
-#define CHAMBER_AUTO_FAN_SPEED 255
-
-/**
- * Part-Cooling Fan Multiplexer
- *
- * This feature allows you to digitally multiplex the fan output.
- * The multiplexer is automatically switched at tool-change.
- * Set FANMUX[012]_PINs below for up to 2, 4, or 8 multiplexed fans.
- */
-#define FANMUX0_PIN -1
-#define FANMUX1_PIN -1
-#define FANMUX2_PIN -1
-
-/**
- * M355 Case Light on-off / brightness
- */
-//#define CASE_LIGHT_ENABLE
-#if ENABLED(CASE_LIGHT_ENABLE)
- //#define CASE_LIGHT_PIN 4 // Override the default pin if needed
- #define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
- #define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
- #define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
- //#define CASE_LIGHT_MAX_PWM 128 // Limit pwm
- //#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
- //#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
- //#define CASE_LIGHT_USE_NEOPIXEL // Use Neopixel LED as case light, requires NEOPIXEL_LED.
- #if ENABLED(CASE_LIGHT_USE_NEOPIXEL)
- #define CASE_LIGHT_NEOPIXEL_COLOR { 255, 255, 255, 255 } // { Red, Green, Blue, White }
- #endif
-#endif
-
-// @section homing
-
-// If you want endstops to stay on (by default) even when not homing
-// enable this option. Override at any time with M120, M121.
-//#define ENDSTOPS_ALWAYS_ON_DEFAULT
-
-// @section extras
-
-//#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
-
-// Employ an external closed loop controller. Override pins here if needed.
-//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
-#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
- //#define CLOSED_LOOP_ENABLE_PIN -1
- //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
-#endif
-
-/**
- * Dual Steppers / Dual Endstops
- *
- * This section will allow you to use extra E drivers to drive a second motor for X, Y, or Z axes.
- *
- * For example, set X_DUAL_STEPPER_DRIVERS setting to use a second motor. If the motors need to
- * spin in opposite directions set INVERT_X2_VS_X_DIR. If the second motor needs its own endstop
- * set X_DUAL_ENDSTOPS. This can adjust for "racking." Use X2_USE_ENDSTOP to set the endstop plug
- * that should be used for the second endstop. Extra endstops will appear in the output of 'M119'.
- *
- * Use X_DUAL_ENDSTOP_ADJUSTMENT to adjust for mechanical imperfection. After homing both motors
- * this offset is applied to the X2 motor. To find the offset home the X axis, and measure the error
- * in X2. Dual endstop offsets can be set at runtime with 'M666 X Y Z'.
- */
-
-//#define X_DUAL_STEPPER_DRIVERS
-#if ENABLED(X_DUAL_STEPPER_DRIVERS)
- #define INVERT_X2_VS_X_DIR true // Set 'true' if X motors should rotate in opposite directions
- //#define X_DUAL_ENDSTOPS
- #if ENABLED(X_DUAL_ENDSTOPS)
- #define X2_USE_ENDSTOP _XMAX_
- #define X2_ENDSTOP_ADJUSTMENT 0
- #endif
-#endif
-
-//#define Y_DUAL_STEPPER_DRIVERS
-#if ENABLED(Y_DUAL_STEPPER_DRIVERS)
- #define INVERT_Y2_VS_Y_DIR true // Set 'true' if Y motors should rotate in opposite directions
- //#define Y_DUAL_ENDSTOPS
- #if ENABLED(Y_DUAL_ENDSTOPS)
- #define Y2_USE_ENDSTOP _YMAX_
- #define Y2_ENDSTOP_ADJUSTMENT 0
- #endif
-#endif
-
-//
-// For Z set the number of stepper drivers
-//
-#define NUM_Z_STEPPER_DRIVERS 1 // (1-4) Z options change based on how many
-
-#if NUM_Z_STEPPER_DRIVERS > 1
- //#define Z_MULTI_ENDSTOPS
- #if ENABLED(Z_MULTI_ENDSTOPS)
- #define Z2_USE_ENDSTOP _XMAX_
- #define Z2_ENDSTOP_ADJUSTMENT 0
- #if NUM_Z_STEPPER_DRIVERS >= 3
- #define Z3_USE_ENDSTOP _YMAX_
- #define Z3_ENDSTOP_ADJUSTMENT 0
- #endif
- #if NUM_Z_STEPPER_DRIVERS >= 4
- #define Z4_USE_ENDSTOP _ZMAX_
- #define Z4_ENDSTOP_ADJUSTMENT 0
- #endif
- #endif
-#endif
-
-/**
- * Dual X Carriage
- *
- * This setup has two X carriages that can move independently, each with its own hotend.
- * The carriages can be used to print an object with two colors or materials, or in
- * "duplication mode" it can print two identical or X-mirrored objects simultaneously.
- * The inactive carriage is parked automatically to prevent oozing.
- * X1 is the left carriage, X2 the right. They park and home at opposite ends of the X axis.
- * By default the X2 stepper is assigned to the first unused E plug on the board.
- *
- * The following Dual X Carriage modes can be selected with M605 S:
- *
- * 0 : (FULL_CONTROL) The slicer has full control over both X-carriages and can achieve optimal travel
- * results as long as it supports dual X-carriages. (M605 S0)
- *
- * 1 : (AUTO_PARK) The firmware automatically parks and unparks the X-carriages on tool-change so
- * that additional slicer support is not required. (M605 S1)
- *
- * 2 : (DUPLICATION) The firmware moves the second X-carriage and extruder in synchronization with
- * the first X-carriage and extruder, to print 2 copies of the same object at the same time.
- * Set the constant X-offset and temperature differential with M605 S2 X[offs] R[deg] and
- * follow with M605 S2 to initiate duplicated movement.
- *
- * 3 : (MIRRORED) Formbot/Vivedino-inspired mirrored mode in which the second extruder duplicates
- * the movement of the first except the second extruder is reversed in the X axis.
- * Set the initial X offset and temperature differential with M605 S2 X[offs] R[deg] and
- * follow with M605 S3 to initiate mirrored movement.
- */
-//#define DUAL_X_CARRIAGE
-#if ENABLED(DUAL_X_CARRIAGE)
- #define X1_MIN_POS X_MIN_POS // Set to X_MIN_POS
- #define X1_MAX_POS X_BED_SIZE // Set a maximum so the first X-carriage can't hit the parked second X-carriage
- #define X2_MIN_POS 80 // Set a minimum to ensure the second X-carriage can't hit the parked first X-carriage
- #define X2_MAX_POS 353 // Set this to the distance between toolheads when both heads are homed
- #define X2_HOME_DIR 1 // Set to 1. The second X-carriage always homes to the maximum endstop position
- #define X2_HOME_POS X2_MAX_POS // Default X2 home position. Set to X2_MAX_POS.
- // However: In this mode the HOTEND_OFFSET_X value for the second extruder provides a software
- // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
- // without modifying the firmware (through the "M218 T1 X???" command).
- // Remember: you should set the second extruder x-offset to 0 in your slicer.
-
- // This is the default power-up mode which can be later using M605.
- #define DEFAULT_DUAL_X_CARRIAGE_MODE DXC_AUTO_PARK_MODE
-
- // Default x offset in duplication mode (typically set to half print bed width)
- #define DEFAULT_DUPLICATION_X_OFFSET 100
-
-#endif // DUAL_X_CARRIAGE
-
-// Activate a solenoid on the active extruder with M380. Disable all with M381.
-// Define SOL0_PIN, SOL1_PIN, etc., for each extruder that has a solenoid.
-//#define EXT_SOLENOID
-
-// @section homing
-
-// Homing hits each endstop, retracts by these distances, then does a slower bump.
-#define X_HOME_BUMP_MM 5
-#define Y_HOME_BUMP_MM 5
-#define Z_HOME_BUMP_MM 2
-#define HOMING_BUMP_DIVISOR { 2, 2, 4 } // Re-Bump Speed Divisor (Divides the Homing Feedrate)
-//#define QUICK_HOME // If homing includes X and Y, do a diagonal move initially
-//#define HOMING_BACKOFF_MM { 2, 2, 2 } // (mm) Move away from the endstops after homing
-
-// When G28 is called, this option will make Y home before X
-//#define HOME_Y_BEFORE_X
-
-// Enable this if X or Y can't home without homing the other axis first.
-//#define CODEPENDENT_XY_HOMING
-
-#if ENABLED(BLTOUCH)
- /**
- * Either: Use the defaults (recommended) or: For special purposes, use the following DEFINES
- * Do not activate settings that the probe might not understand. Clones might misunderstand
- * advanced commands.
- *
- * Note: If the probe is not deploying, check a "Cmd: Reset" and "Cmd: Self-Test" and then
- * check the wiring of the BROWN, RED and ORANGE wires.
- *
- * Note: If the trigger signal of your probe is not being recognized, it has been very often
- * because the BLACK and WHITE wires needed to be swapped. They are not "interchangeable"
- * like they would be with a real switch. So please check the wiring first.
- *
- * Settings for all BLTouch and clone probes:
- */
-
- // Safety: The probe needs time to recognize the command.
- // Minimum command delay (ms). Enable and increase if needed.
- //#define BLTOUCH_DELAY 500
-
- /**
- * Settings for BLTOUCH Classic 1.2, 1.3 or BLTouch Smart 1.0, 2.0, 2.2, 3.0, 3.1, and most clones:
- */
-
- // Feature: Switch into SW mode after a deploy. It makes the output pulse longer. Can be useful
- // in special cases, like noisy or filtered input configurations.
- //#define BLTOUCH_FORCE_SW_MODE
-
- /**
- * Settings for BLTouch Smart 3.0 and 3.1
- * Summary:
- * - Voltage modes: 5V and OD (open drain - "logic voltage free") output modes
- * - High-Speed mode
- * - Disable LCD voltage options
- */
-
- /**
- * Danger: Don't activate 5V mode unless attached to a 5V-tolerant controller!
- * V3.0 or 3.1: Set default mode to 5V mode at Marlin startup.
- * If disabled, OD mode is the hard-coded default on 3.0
- * On startup, Marlin will compare its eeprom to this vale. If the selected mode
- * differs, a mode set eeprom write will be completed at initialization.
- * Use the option below to force an eeprom write to a V3.1 probe regardless.
- */
- //#define BLTOUCH_SET_5V_MODE
-
- /**
- * Safety: Activate if connecting a probe with an unknown voltage mode.
- * V3.0: Set a probe into mode selected above at Marlin startup. Required for 5V mode on 3.0
- * V3.1: Force a probe with unknown mode into selected mode at Marlin startup ( = Probe EEPROM write )
- * To preserve the life of the probe, use this once then turn it off and re-flash.
- */
- //#define BLTOUCH_FORCE_MODE_SET
-
- /**
- * Use "HIGH SPEED" mode for probing.
- * Danger: Disable if your probe sometimes fails. Only suitable for stable well-adjusted systems.
- * This feature was designed for Delta's with very fast Z moves however higher speed cartesians may function
- * If the machine cannot raise the probe fast enough after a trigger, it may enter a fault state.
- */
- //#define BLTOUCH_HS_MODE
-
- // Safety: Enable voltage mode settings in the LCD menu.
- //#define BLTOUCH_LCD_VOLTAGE_MENU
-
-#endif // BLTOUCH
-
-/**
- * Z Steppers Auto-Alignment
- * Add the G34 command to align multiple Z steppers using a bed probe.
- */
-//#define Z_STEPPER_AUTO_ALIGN
-#if ENABLED(Z_STEPPER_AUTO_ALIGN)
- // Define probe X and Y positions for Z1, Z2 [, Z3 [, Z4]]
- // If not defined, probe limits will be used.
- // Override with 'M422 S X Y'
- //#define Z_STEPPER_ALIGN_XY { { 10, 190 }, { 100, 10 }, { 190, 190 } }
-
- /**
- * Orientation for the automatically-calculated probe positions.
- * Override Z stepper align points with 'M422 S X Y'
- *
- * 2 Steppers: (0) (1)
- * | | 2 |
- * | 1 2 | |
- * | | 1 |
- *
- * 3 Steppers: (0) (1) (2) (3)
- * | 3 | 1 | 2 1 | 2 |
- * | | 3 | | 3 |
- * | 1 2 | 2 | 3 | 1 |
- *
- * 4 Steppers: (0) (1) (2) (3)
- * | 4 3 | 1 4 | 2 1 | 3 2 |
- * | | | | |
- * | 1 2 | 2 3 | 3 4 | 4 1 |
- *
- */
- #ifndef Z_STEPPER_ALIGN_XY
- //#define Z_STEPPERS_ORIENTATION 0
- #endif
-
- // Provide Z stepper positions for more rapid convergence in bed alignment.
- // Requires triple stepper drivers (i.e., set NUM_Z_STEPPER_DRIVERS to 3)
- //#define Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS
- #if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS)
- // Define Stepper XY positions for Z1, Z2, Z3 corresponding to
- // the Z screw positions in the bed carriage.
- // Define one position per Z stepper in stepper driver order.
- #define Z_STEPPER_ALIGN_STEPPER_XY { { 210.7, 102.5 }, { 152.6, 220.0 }, { 94.5, 102.5 } }
- #else
- // Amplification factor. Used to scale the correction step up or down in case
- // the stepper (spindle) position is farther out than the test point.
- #define Z_STEPPER_ALIGN_AMP 1.0 // Use a value > 1.0 NOTE: This may cause instability!
- #endif
-
- // On a 300mm bed a 5% grade would give a misalignment of ~1.5cm
- #define G34_MAX_GRADE 5 // (%) Maximum incline that G34 will handle
- #define Z_STEPPER_ALIGN_ITERATIONS 5 // Number of iterations to apply during alignment
- #define Z_STEPPER_ALIGN_ACC 0.02 // Stop iterating early if the accuracy is better than this
- #define RESTORE_LEVELING_AFTER_G34 // Restore leveling after G34 is done?
- // After G34, re-home Z (G28 Z) or just calculate it from the last probe heights?
- // Re-homing might be more precise in reproducing the actual 'G28 Z' homing height, especially on an uneven bed.
- #define HOME_AFTER_G34
-#endif
-
-// @section motion
-
-#define AXIS_RELATIVE_MODES { false, false, false, false }
-
-// Add a Duplicate option for well-separated conjoined nozzles
-//#define MULTI_NOZZLE_DUPLICATION
-
-// By default pololu step drivers require an active high signal. However, some high power drivers require an active low signal as step.
-#define INVERT_X_STEP_PIN false
-#define INVERT_Y_STEP_PIN false
-#define INVERT_Z_STEP_PIN false
-#define INVERT_E_STEP_PIN false
-
-// Default stepper release if idle. Set to 0 to deactivate.
-// Steppers will shut down DEFAULT_STEPPER_DEACTIVE_TIME seconds after the last move when DISABLE_INACTIVE_? is true.
-// Time can be set by M18 and M84.
-#define DEFAULT_STEPPER_DEACTIVE_TIME 120
-#define DISABLE_INACTIVE_X true
-#define DISABLE_INACTIVE_Y true
-#define DISABLE_INACTIVE_Z true // Set to false if the nozzle will fall down on your printed part when print has finished.
-#define DISABLE_INACTIVE_E true
-
-#define DEFAULT_MINIMUMFEEDRATE 0.0 // minimum feedrate
-#define DEFAULT_MINTRAVELFEEDRATE 0.0
-
-//#define HOME_AFTER_DEACTIVATE // Require rehoming after steppers are deactivated
-
-// Minimum time that a segment needs to take if the buffer is emptied
-#define DEFAULT_MINSEGMENTTIME 20000 // (ms)
-
-// If defined the movements slow down when the look ahead buffer is only half full
-#define SLOWDOWN
-
-// Frequency limit
-// See nophead's blog for more info
-// Not working O
-//#define XY_FREQUENCY_LIMIT 15
-
-// Minimum planner junction speed. Sets the default minimum speed the planner plans for at the end
-// of the buffer and all stops. This should not be much greater than zero and should only be changed
-// if unwanted behavior is observed on a user's machine when running at very slow speeds.
-#define MINIMUM_PLANNER_SPEED 0.05 // (mm/s)
-
-//
-// Backlash Compensation
-// Adds extra movement to axes on direction-changes to account for backlash.
-//
-//#define BACKLASH_COMPENSATION
-#if ENABLED(BACKLASH_COMPENSATION)
- // Define values for backlash distance and correction.
- // If BACKLASH_GCODE is enabled these values are the defaults.
- #define BACKLASH_DISTANCE_MM { 0, 0, 0 } // (mm)
- #define BACKLASH_CORRECTION 0.0 // 0.0 = no correction; 1.0 = full correction
-
- // Set BACKLASH_SMOOTHING_MM to spread backlash correction over multiple segments
- // to reduce print artifacts. (Enabling this is costly in memory and computation!)
- //#define BACKLASH_SMOOTHING_MM 3 // (mm)
-
- // Add runtime configuration and tuning of backlash values (M425)
- //#define BACKLASH_GCODE
-
- #if ENABLED(BACKLASH_GCODE)
- // Measure the Z backlash when probing (G29) and set with "M425 Z"
- #define MEASURE_BACKLASH_WHEN_PROBING
-
- #if ENABLED(MEASURE_BACKLASH_WHEN_PROBING)
- // When measuring, the probe will move up to BACKLASH_MEASUREMENT_LIMIT
- // mm away from point of contact in BACKLASH_MEASUREMENT_RESOLUTION
- // increments while checking for the contact to be broken.
- #define BACKLASH_MEASUREMENT_LIMIT 0.5 // (mm)
- #define BACKLASH_MEASUREMENT_RESOLUTION 0.005 // (mm)
- #define BACKLASH_MEASUREMENT_FEEDRATE Z_PROBE_SPEED_SLOW // (mm/m)
- #endif
- #endif
-#endif
-
-/**
- * Automatic backlash, position and hotend offset calibration
- *
- * Enable G425 to run automatic calibration using an electrically-
- * conductive cube, bolt, or washer mounted on the bed.
- *
- * G425 uses the probe to touch the top and sides of the calibration object
- * on the bed and measures and/or correct positional offsets, axis backlash
- * and hotend offsets.
- *
- * Note: HOTEND_OFFSET and CALIBRATION_OBJECT_CENTER must be set to within
- * ±5mm of true values for G425 to succeed.
- */
-//#define CALIBRATION_GCODE
-#if ENABLED(CALIBRATION_GCODE)
-
- #define CALIBRATION_MEASUREMENT_RESOLUTION 0.01 // mm
-
- #define CALIBRATION_FEEDRATE_SLOW 60 // mm/m
- #define CALIBRATION_FEEDRATE_FAST 1200 // mm/m
- #define CALIBRATION_FEEDRATE_TRAVEL 3000 // mm/m
-
- // The following parameters refer to the conical section of the nozzle tip.
- #define CALIBRATION_NOZZLE_TIP_HEIGHT 1.0 // mm
- #define CALIBRATION_NOZZLE_OUTER_DIAMETER 2.0 // mm
-
- // Uncomment to enable reporting (required for "G425 V", but consumes PROGMEM).
- //#define CALIBRATION_REPORTING
-
- // The true location and dimension the cube/bolt/washer on the bed.
- #define CALIBRATION_OBJECT_CENTER { 264.0, -22.0, -2.0 } // mm
- #define CALIBRATION_OBJECT_DIMENSIONS { 10.0, 10.0, 10.0 } // mm
-
- // Comment out any sides which are unreachable by the probe. For best
- // auto-calibration results, all sides must be reachable.
- #define CALIBRATION_MEASURE_RIGHT
- #define CALIBRATION_MEASURE_FRONT
- #define CALIBRATION_MEASURE_LEFT
- #define CALIBRATION_MEASURE_BACK
-
- // Probing at the exact top center only works if the center is flat. If
- // probing on a screwhead or hollow washer, probe near the edges.
- //#define CALIBRATION_MEASURE_AT_TOP_EDGES
-
- // Define the pin to read during calibration
- #ifndef CALIBRATION_PIN
- //#define CALIBRATION_PIN -1 // Define here to override the default pin
- #define CALIBRATION_PIN_INVERTING false // Set to true to invert the custom pin
- //#define CALIBRATION_PIN_PULLDOWN
- #define CALIBRATION_PIN_PULLUP
- #endif
-#endif
-
-/**
- * Adaptive Step Smoothing increases the resolution of multi-axis moves, particularly at step frequencies
- * below 1kHz (for AVR) or 10kHz (for ARM), where aliasing between axes in multi-axis moves causes audible
- * vibration and surface artifacts. The algorithm adapts to provide the best possible step smoothing at the
- * lowest stepping frequencies.
- */
-//#define ADAPTIVE_STEP_SMOOTHING
-
-/**
- * Custom Microstepping
- * Override as-needed for your setup. Up to 3 MS pins are supported.
- */
-//#define MICROSTEP1 LOW,LOW,LOW
-//#define MICROSTEP2 HIGH,LOW,LOW
-//#define MICROSTEP4 LOW,HIGH,LOW
-//#define MICROSTEP8 HIGH,HIGH,LOW
-//#define MICROSTEP16 LOW,LOW,HIGH
-//#define MICROSTEP32 HIGH,LOW,HIGH
-
-// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU.
-#define MICROSTEP_MODES { 16, 16, 16, 16, 16, 16 } // [1,2,4,8,16]
-
-/**
- * @section stepper motor current
- *
- * Some boards have a means of setting the stepper motor current via firmware.
- *
- * The power on motor currents are set by:
- * PWM_MOTOR_CURRENT - used by MINIRAMBO & ULTIMAIN_2
- * known compatible chips: A4982
- * DIGIPOT_MOTOR_CURRENT - used by BQ_ZUM_MEGA_3D, RAMBO & SCOOVO_X9H
- * known compatible chips: AD5206
- * DAC_MOTOR_CURRENT_DEFAULT - used by PRINTRBOARD_REVF & RIGIDBOARD_V2
- * known compatible chips: MCP4728
- * DIGIPOT_I2C_MOTOR_CURRENTS - used by 5DPRINT, AZTEEG_X3_PRO, AZTEEG_X5_MINI_WIFI, MIGHTYBOARD_REVE
- * known compatible chips: MCP4451, MCP4018
- *
- * Motor currents can also be set by M907 - M910 and by the LCD.
- * M907 - applies to all.
- * M908 - BQ_ZUM_MEGA_3D, RAMBO, PRINTRBOARD_REVF, RIGIDBOARD_V2 & SCOOVO_X9H
- * M909, M910 & LCD - only PRINTRBOARD_REVF & RIGIDBOARD_V2
- */
-//#define PWM_MOTOR_CURRENT { 1300, 1300, 1250 } // Values in milliamps
-//#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
-//#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
-
-// Use an I2C based DIGIPOT (e.g., Azteeg X3 Pro)
-//#define DIGIPOT_I2C
-#if ENABLED(DIGIPOT_I2C) && !defined(DIGIPOT_I2C_ADDRESS_A)
- /**
- * Common slave addresses:
- *
- * A (A shifted) B (B shifted) IC
- * Smoothie 0x2C (0x58) 0x2D (0x5A) MCP4451
- * AZTEEG_X3_PRO 0x2C (0x58) 0x2E (0x5C) MCP4451
- * AZTEEG_X5_MINI 0x2C (0x58) 0x2E (0x5C) MCP4451
- * AZTEEG_X5_MINI_WIFI 0x58 0x5C MCP4451
- * MIGHTYBOARD_REVE 0x2F (0x5E) MCP4018
- */
- #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
- #define DIGIPOT_I2C_ADDRESS_B 0x2D // unshifted slave address for second DIGIPOT
-#endif
-
-//#define DIGIPOT_MCP4018 // Requires library from https://github.com/stawel/SlowSoftI2CMaster
-#define DIGIPOT_I2C_NUM_CHANNELS 8 // 5DPRINT: 4 AZTEEG_X3_PRO: 8 MKS SBASE: 5
-// Actual motor currents in Amps. The number of entries must match DIGIPOT_I2C_NUM_CHANNELS.
-// These correspond to the physical drivers, so be mindful if the order is changed.
-#define DIGIPOT_I2C_MOTOR_CURRENTS { 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 } // AZTEEG_X3_PRO
-
-//===========================================================================
-//=============================Additional Features===========================
-//===========================================================================
-
-// @section lcd
-
-#if EITHER(ULTIPANEL, EXTENSIBLE_UI)
- #define MANUAL_FEEDRATE { 50*60, 50*60, 4*60, 60 } // Feedrates for manual moves along X, Y, Z, E from panel
- #define SHORT_MANUAL_Z_MOVE 0.025 // (mm) Smallest manual Z move (< 0.1mm)
- #if ENABLED(ULTIPANEL)
- #define MANUAL_E_MOVES_RELATIVE // Display extruder move distance rather than "position"
- #define ULTIPANEL_FEEDMULTIPLY // Encoder sets the feedrate multiplier on the Status Screen
- #endif
-#endif
-
-// Change values more rapidly when the encoder is rotated faster
-#define ENCODER_RATE_MULTIPLIER
-#if ENABLED(ENCODER_RATE_MULTIPLIER)
- #define ENCODER_10X_STEPS_PER_SEC 30 // (steps/s) Encoder rate for 10x speed
- #define ENCODER_100X_STEPS_PER_SEC 80 // (steps/s) Encoder rate for 100x speed
-#endif
-
-// Play a beep when the feedrate is changed from the Status Screen
-//#define BEEP_ON_FEEDRATE_CHANGE
-#if ENABLED(BEEP_ON_FEEDRATE_CHANGE)
- #define FEEDRATE_CHANGE_BEEP_DURATION 10
- #define FEEDRATE_CHANGE_BEEP_FREQUENCY 440
-#endif
-
-#if HAS_LCD_MENU
-
- // Include a page of printer information in the LCD Main Menu
- //#define LCD_INFO_MENU
- #if ENABLED(LCD_INFO_MENU)
- //#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
- #endif
-
- // BACK menu items keep the highlight at the top
- //#define TURBO_BACK_MENU_ITEM
-
- /**
- * LED Control Menu
- * Add LED Control to the LCD menu
- */
- //#define LED_CONTROL_MENU
- #if ENABLED(LED_CONTROL_MENU)
- #define LED_COLOR_PRESETS // Enable the Preset Color menu option
- #if ENABLED(LED_COLOR_PRESETS)
- #define LED_USER_PRESET_RED 255 // User defined RED value
- #define LED_USER_PRESET_GREEN 128 // User defined GREEN value
- #define LED_USER_PRESET_BLUE 0 // User defined BLUE value
- #define LED_USER_PRESET_WHITE 255 // User defined WHITE value
- #define LED_USER_PRESET_BRIGHTNESS 255 // User defined intensity
- //#define LED_USER_PRESET_STARTUP // Have the printer display the user preset color on startup
- #endif
- #endif
-
-#endif // HAS_LCD_MENU
-
-// Scroll a longer status message into view
-//#define STATUS_MESSAGE_SCROLLING
-
-// On the Info Screen, display XY with one decimal place when possible
-//#define LCD_DECIMAL_SMALL_XY
-
-// The timeout (in ms) to return to the status screen from sub-menus
-//#define LCD_TIMEOUT_TO_STATUS 15000
-
-// Add an 'M73' G-code to set the current percentage
-//#define LCD_SET_PROGRESS_MANUALLY
-
-// Show the E position (filament used) during printing
-//#define LCD_SHOW_E_TOTAL
-
-#if ENABLED(SHOW_BOOTSCREEN)
- #define BOOTSCREEN_TIMEOUT 4000 // (ms) Total Duration to display the boot screen(s)
-#endif
-
-#if HAS_GRAPHICAL_LCD && HAS_PRINT_PROGRESS
- //#define PRINT_PROGRESS_SHOW_DECIMALS // Show progress with decimal digits
- //#define SHOW_REMAINING_TIME // Display estimated time to completion
- #if ENABLED(SHOW_REMAINING_TIME)
- //#define USE_M73_REMAINING_TIME // Use remaining time from M73 command instead of estimation
- //#define ROTATE_PROGRESS_DISPLAY // Display (P)rogress, (E)lapsed, and (R)emaining time
- #endif
-#endif
-
-#if HAS_CHARACTER_LCD && HAS_PRINT_PROGRESS
- //#define LCD_PROGRESS_BAR // Show a progress bar on HD44780 LCDs for SD printing
- #if ENABLED(LCD_PROGRESS_BAR)
- #define PROGRESS_BAR_BAR_TIME 2000 // (ms) Amount of time to show the bar
- #define PROGRESS_BAR_MSG_TIME 3000 // (ms) Amount of time to show the status message
- #define PROGRESS_MSG_EXPIRE 0 // (ms) Amount of time to retain the status message (0=forever)
- //#define PROGRESS_MSG_ONCE // Show the message for MSG_TIME then clear it
- //#define LCD_PROGRESS_BAR_TEST // Add a menu item to test the progress bar
- #endif
-#endif
-
-#if ENABLED(SDSUPPORT)
-
- // The standard SD detect circuit reads LOW when media is inserted and HIGH when empty.
- // Enable this option and set to HIGH if your SD cards are incorrectly detected.
- //#define SD_DETECT_STATE HIGH
-
- #define SD_FINISHED_STEPPERRELEASE true // Disable steppers when SD Print is finished
- #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E" // You might want to keep the Z enabled so your bed stays in place.
-
- // Reverse SD sort to show "more recent" files first, according to the card's FAT.
- // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
- #define SDCARD_RATHERRECENTFIRST
-
- #define SD_MENU_CONFIRM_START // Confirm the selected SD file before printing
-
- //#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
-
- #define EVENT_GCODE_SD_STOP "G28XY" // G-code to run on Stop Print (e.g., "G28XY" or "G27")
-
- /**
- * Continue after Power-Loss (Creality3D)
- *
- * Store the current state to the SD Card at the start of each layer
- * during SD printing. If the recovery file is found at boot time, present
- * an option on the LCD screen to continue the print from the last-known
- * point in the file.
- *
- * If the machine reboots when resuming a print you may need to replace or
- * reformat the SD card. (Bad sectors delay startup triggering the watchdog.)
- */
- //#define POWER_LOSS_RECOVERY
- #if ENABLED(POWER_LOSS_RECOVERY)
- #define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
- //#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
- //#define POWER_LOSS_ZRAISE 2 // (mm) Z axis raise on resume (on power loss with UPS)
- //#define POWER_LOSS_PIN 44 // Pin to detect power loss. Set to -1 to disable default pin on boards without module.
- //#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
- //#define POWER_LOSS_PULL // Set pullup / pulldown as appropriate
- //#define POWER_LOSS_PURGE_LEN 20 // (mm) Length of filament to purge on resume
- //#define POWER_LOSS_RETRACT_LEN 10 // (mm) Length of filament to retract on fail. Requires backup power.
-
- // Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
- // especially with "vase mode" printing. Set too high and vases cannot be continued.
- #define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
- #endif
-
- /**
- * Sort SD file listings in alphabetical order.
- *
- * With this option enabled, items on SD cards will be sorted
- * by name for easier navigation.
- *
- * By default...
- *
- * - Use the slowest -but safest- method for sorting.
- * - Folders are sorted to the top.
- * - The sort key is statically allocated.
- * - No added G-code (M34) support.
- * - 40 item sorting limit. (Items after the first 40 are unsorted.)
- *
- * SD sorting uses static allocation (as set by SDSORT_LIMIT), allowing the
- * compiler to calculate the worst-case usage and throw an error if the SRAM
- * limit is exceeded.
- *
- * - SDSORT_USES_RAM provides faster sorting via a static directory buffer.
- * - SDSORT_USES_STACK does the same, but uses a local stack-based buffer.
- * - SDSORT_CACHE_NAMES will retain the sorted file listing in RAM. (Expensive!)
- * - SDSORT_DYNAMIC_RAM only uses RAM when the SD menu is visible. (Use with caution!)
- */
- //#define SDCARD_SORT_ALPHA
-
- // SD Card Sorting options
- #if ENABLED(SDCARD_SORT_ALPHA)
- #define SDSORT_LIMIT 40 // Maximum number of sorted items (10-256). Costs 27 bytes each.
- #define FOLDER_SORTING -1 // -1=above 0=none 1=below
- #define SDSORT_GCODE false // Allow turning sorting on/off with LCD and M34 g-code.
- #define SDSORT_USES_RAM false // Pre-allocate a static array for faster pre-sorting.
- #define SDSORT_USES_STACK false // Prefer the stack for pre-sorting to give back some SRAM. (Negated by next 2 options.)
- #define SDSORT_CACHE_NAMES false // Keep sorted items in RAM longer for speedy performance. Most expensive option.
- #define SDSORT_DYNAMIC_RAM false // Use dynamic allocation (within SD menus). Least expensive option. Set SDSORT_LIMIT before use!
- #define SDSORT_CACHE_VFATS 2 // Maximum number of 13-byte VFAT entries to use for sorting.
- // Note: Only affects SCROLL_LONG_FILENAMES with SDSORT_CACHE_NAMES but not SDSORT_DYNAMIC_RAM.
- #endif
-
- // This allows hosts to request long names for files and folders with M33
- //#define LONG_FILENAME_HOST_SUPPORT
-
- // Enable this option to scroll long filenames in the SD card menu
- //#define SCROLL_LONG_FILENAMES
-
- // Leave the heaters on after Stop Print (not recommended!)
- //#define SD_ABORT_NO_COOLDOWN
-
- /**
- * This option allows you to abort SD printing when any endstop is triggered.
- * This feature must be enabled with "M540 S1" or from the LCD menu.
- * To have any effect, endstops must be enabled during SD printing.
- */
- //#define SD_ABORT_ON_ENDSTOP_HIT
-
- /**
- * This option makes it easier to print the same SD Card file again.
- * On print completion the LCD Menu will open with the file selected.
- * You can just click to start the print, or navigate elsewhere.
- */
- //#define SD_REPRINT_LAST_SELECTED_FILE
-
- /**
- * Auto-report SdCard status with M27 S
- */
- //#define AUTO_REPORT_SD_STATUS
-
- /**
- * Support for USB thumb drives using an Arduino USB Host Shield or
- * equivalent MAX3421E breakout board. The USB thumb drive will appear
- * to Marlin as an SD card.
- *
- * The MAX3421E can be assigned the same pins as the SD card reader, with
- * the following pin mapping:
- *
- * SCLK, MOSI, MISO --> SCLK, MOSI, MISO
- * INT --> SD_DETECT_PIN [1]
- * SS --> SDSS
- *
- * [1] On AVR an interrupt-capable pin is best for UHS3 compatibility.
- */
- //#define USB_FLASH_DRIVE_SUPPORT
- #if ENABLED(USB_FLASH_DRIVE_SUPPORT)
- #define USB_CS_PIN SDSS
- #define USB_INTR_PIN SD_DETECT_PIN
-
- /**
- * USB Host Shield Library
- *
- * - UHS2 uses no interrupts and has been production-tested
- * on a LulzBot TAZ Pro with a 32-bit Archim board.
- *
- * - UHS3 is newer code with better USB compatibility. But it
- * is less tested and is known to interfere with Servos.
- * [1] This requires USB_INTR_PIN to be interrupt-capable.
- */
- //#define USE_UHS3_USB
- #endif
-
- /**
- * When using a bootloader that supports SD-Firmware-Flashing,
- * add a menu item to activate SD-FW-Update on the next reboot.
- *
- * Requires ATMEGA2560 (Arduino Mega)
- *
- * Tested with this bootloader:
- * https://github.com/FleetProbe/MicroBridge-Arduino-ATMega2560
- */
- //#define SD_FIRMWARE_UPDATE
- #if ENABLED(SD_FIRMWARE_UPDATE)
- #define SD_FIRMWARE_UPDATE_EEPROM_ADDR 0x1FF
- #define SD_FIRMWARE_UPDATE_ACTIVE_VALUE 0xF0
- #define SD_FIRMWARE_UPDATE_INACTIVE_VALUE 0xFF
- #endif
-
- // Add an optimized binary file transfer mode, initiated with 'M28 B1'
- //#define BINARY_FILE_TRANSFER
-
- /**
- * Set this option to one of the following (or the board's defaults apply):
- *
- * LCD - Use the SD drive in the external LCD controller.
- * ONBOARD - Use the SD drive on the control board. (No SD_DETECT_PIN. M21 to init.)
- * CUSTOM_CABLE - Use a custom cable to access the SD (as defined in a pins file).
- *
- * :[ 'LCD', 'ONBOARD', 'CUSTOM_CABLE' ]
- */
- //#define SDCARD_CONNECTION LCD
-
-#endif // SDSUPPORT
-
-/**
- * By default an onboard SD card reader may be shared as a USB mass-
- * storage device. This option hides the SD card from the host PC.
- */
-//#define NO_SD_HOST_DRIVE // Disable SD Card access over USB (for security).
-
-/**
- * Additional options for Graphical Displays
- *
- * Use the optimizations here to improve printing performance,
- * which can be adversely affected by graphical display drawing,
- * especially when doing several short moves, and when printing
- * on DELTA and SCARA machines.
- *
- * Some of these options may result in the display lagging behind
- * controller events, as there is a trade-off between reliable
- * printing performance versus fast display updates.
- */
-#if HAS_GRAPHICAL_LCD
- // Show SD percentage next to the progress bar
- //#define DOGM_SD_PERCENT
-
- // Enable to save many cycles by drawing a hollow frame on the Info Screen
- #define XYZ_HOLLOW_FRAME
-
- // Enable to save many cycles by drawing a hollow frame on Menu Screens
- #define MENU_HOLLOW_FRAME
-
- // A bigger font is available for edit items. Costs 3120 bytes of PROGMEM.
- // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
- //#define USE_BIG_EDIT_FONT
-
- // A smaller font may be used on the Info Screen. Costs 2300 bytes of PROGMEM.
- // Western only. Not available for Cyrillic, Kana, Turkish, Greek, or Chinese.
- //#define USE_SMALL_INFOFONT
-
- // Swap the CW/CCW indicators in the graphics overlay
- //#define OVERLAY_GFX_REVERSE
-
- /**
- * ST7920-based LCDs can emulate a 16 x 4 character display using
- * the ST7920 character-generator for very fast screen updates.
- * Enable LIGHTWEIGHT_UI to use this special display mode.
- *
- * Since LIGHTWEIGHT_UI has limited space, the position and status
- * message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
- * length of time to display the status message before clearing.
- *
- * Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
- * This will prevent position updates from being displayed.
- */
- #if ENABLED(U8GLIB_ST7920)
- // Enable this option and reduce the value to optimize screen updates.
- // The normal delay is 10µs. Use the lowest value that still gives a reliable display.
- //#define DOGM_SPI_DELAY_US 5
-
- //#define LIGHTWEIGHT_UI
- #if ENABLED(LIGHTWEIGHT_UI)
- #define STATUS_EXPIRE_SECONDS 20
- #endif
- #endif
-
- /**
- * Status (Info) Screen customizations
- * These options may affect code size and screen render time.
- * Custom status screens can forcibly override these settings.
- */
- //#define STATUS_COMBINE_HEATERS // Use combined heater images instead of separate ones
- //#define STATUS_HOTEND_NUMBERLESS // Use plain hotend icons instead of numbered ones (with 2+ hotends)
- #define STATUS_HOTEND_INVERTED // Show solid nozzle bitmaps when heating (Requires STATUS_HOTEND_ANIM)
- #define STATUS_HOTEND_ANIM // Use a second bitmap to indicate hotend heating
- #define STATUS_BED_ANIM // Use a second bitmap to indicate bed heating
- #define STATUS_CHAMBER_ANIM // Use a second bitmap to indicate chamber heating
- //#define STATUS_CUTTER_ANIM // Use a second bitmap to indicate spindle / laser active
- //#define STATUS_ALT_BED_BITMAP // Use the alternative bed bitmap
- //#define STATUS_ALT_FAN_BITMAP // Use the alternative fan bitmap
- //#define STATUS_FAN_FRAMES 3 // :[0,1,2,3,4] Number of fan animation frames
- //#define STATUS_HEAT_PERCENT // Show heating in a progress bar
- //#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving 399 bytes of flash)
- //#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~3260 (or ~940) bytes of PROGMEM.
-
- // Frivolous Game Options
- //#define MARLIN_BRICKOUT
- //#define MARLIN_INVADERS
- //#define MARLIN_SNAKE
- //#define GAMES_EASTER_EGG // Add extra blank lines above the "Games" sub-menu
-
-#endif // HAS_GRAPHICAL_LCD
-
-//
-// Additional options for DGUS / DWIN displays
-//
-#if HAS_DGUS_LCD
- #define DGUS_SERIAL_PORT 3
- #define DGUS_BAUDRATE 115200
-
- #define DGUS_RX_BUFFER_SIZE 128
- #define DGUS_TX_BUFFER_SIZE 48
- //#define DGUS_SERIAL_STATS_RX_BUFFER_OVERRUNS // Fix Rx overrun situation (Currently only for AVR)
-
- #define DGUS_UPDATE_INTERVAL_MS 500 // (ms) Interval between automatic screen updates
-
- #if EITHER(DGUS_LCD_UI_FYSETC, DGUS_LCD_UI_HIPRECY)
- #define DGUS_PRINT_FILENAME // Display the filename during printing
- #define DGUS_PREHEAT_UI // Display a preheat screen during heatup
-
- #if ENABLED(DGUS_LCD_UI_FYSETC)
- //#define DGUS_UI_MOVE_DIS_OPTION // Disabled by default for UI_FYSETC
- #else
- #define DGUS_UI_MOVE_DIS_OPTION // Enabled by default for UI_HIPRECY
- #endif
-
- #define DGUS_FILAMENT_LOADUNLOAD
- #if ENABLED(DGUS_FILAMENT_LOADUNLOAD)
- #define DGUS_FILAMENT_PURGE_LENGTH 10
- #define DGUS_FILAMENT_LOAD_LENGTH_PER_TIME 0.5 // (mm) Adjust in proportion to DGUS_UPDATE_INTERVAL_MS
- #endif
-
- #define DGUS_UI_WAITING // Show a "waiting" screen between some screens
- #if ENABLED(DGUS_UI_WAITING)
- #define DGUS_UI_WAITING_STATUS 10
- #define DGUS_UI_WAITING_STATUS_PERIOD 8 // Increase to slower waiting status looping
- #endif
- #endif
-#endif // HAS_DGUS_LCD
-
-//
-// Touch UI for the FTDI Embedded Video Engine (EVE)
-//
-#if ENABLED(TOUCH_UI_FTDI_EVE)
- // Display board used
- //#define LCD_FTDI_VM800B35A // FTDI 3.5" with FT800 (320x240)
- //#define LCD_4DSYSTEMS_4DLCD_FT843 // 4D Systems 4.3" (480x272)
- //#define LCD_HAOYU_FT800CB // Haoyu with 4.3" or 5" (480x272)
- //#define LCD_HAOYU_FT810CB // Haoyu with 5" (800x480)
- //#define LCD_ALEPHOBJECTS_CLCD_UI // Aleph Objects Color LCD UI
-
- // Correct the resolution if not using the stock TFT panel.
- //#define TOUCH_UI_320x240
- //#define TOUCH_UI_480x272
- //#define TOUCH_UI_800x480
-
- // Mappings for boards with a standard RepRapDiscount Display connector
- //#define AO_EXP1_PINMAP // AlephObjects CLCD UI EXP1 mapping
- //#define AO_EXP2_PINMAP // AlephObjects CLCD UI EXP2 mapping
- //#define CR10_TFT_PINMAP // Rudolph Riedel's CR10 pin mapping
- //#define S6_TFT_PINMAP // FYSETC S6 pin mapping
-
- //#define OTHER_PIN_LAYOUT // Define pins manually below
- #if ENABLED(OTHER_PIN_LAYOUT)
- // Pins for CS and MOD_RESET (PD) must be chosen
- #define CLCD_MOD_RESET 9
- #define CLCD_SPI_CS 10
-
- // If using software SPI, specify pins for SCLK, MOSI, MISO
- //#define CLCD_USE_SOFT_SPI
- #if ENABLED(CLCD_USE_SOFT_SPI)
- #define CLCD_SOFT_SPI_MOSI 11
- #define CLCD_SOFT_SPI_MISO 12
- #define CLCD_SOFT_SPI_SCLK 13
- #endif
- #endif
-
- // Display Orientation. An inverted (i.e. upside-down) display
- // is supported on the FT800. The FT810 and beyond also support
- // portrait and mirrored orientations.
- //#define TOUCH_UI_INVERTED
- //#define TOUCH_UI_PORTRAIT
- //#define TOUCH_UI_MIRRORED
-
- // UTF8 processing and rendering.
- // Unsupported characters are shown as '?'.
- //#define TOUCH_UI_USE_UTF8
- #if ENABLED(TOUCH_UI_USE_UTF8)
- // Western accents support. These accented characters use
- // combined bitmaps and require relatively little storage.
- #define TOUCH_UI_UTF8_WESTERN_CHARSET
- #if ENABLED(TOUCH_UI_UTF8_WESTERN_CHARSET)
- // Additional character groups. These characters require
- // full bitmaps and take up considerable storage:
- //#define TOUCH_UI_UTF8_SUPERSCRIPTS // ¹ ² ³
- //#define TOUCH_UI_UTF8_COPYRIGHT // © ®
- //#define TOUCH_UI_UTF8_GERMANIC // ß
- //#define TOUCH_UI_UTF8_SCANDINAVIAN // Æ Ð Ø Þ æ ð ø þ
- //#define TOUCH_UI_UTF8_PUNCTUATION // « » ¿ ¡
- //#define TOUCH_UI_UTF8_CURRENCY // ¢ £ ¤ ¥
- //#define TOUCH_UI_UTF8_ORDINALS // º ª
- //#define TOUCH_UI_UTF8_MATHEMATICS // ± × ÷
- //#define TOUCH_UI_UTF8_FRACTIONS // ¼ ½ ¾
- //#define TOUCH_UI_UTF8_SYMBOLS // µ ¶ ¦ § ¬
- #endif
- #endif
-
- // Use a smaller font when labels don't fit buttons
- #define TOUCH_UI_FIT_TEXT
-
- // Allow language selection from menu at run-time (otherwise use LCD_LANGUAGE)
- //#define LCD_LANGUAGE_1 en
- //#define LCD_LANGUAGE_2 fr
- //#define LCD_LANGUAGE_3 de
- //#define LCD_LANGUAGE_4 es
- //#define LCD_LANGUAGE_5 it
-
- // Use a numeric passcode for "Screen lock" keypad.
- // (recommended for smaller displays)
- //#define TOUCH_UI_PASSCODE
-
- // Output extra debug info for Touch UI events
- //#define TOUCH_UI_DEBUG
-
- // Developer menu (accessed by touching "About Printer" copyright text)
- //#define TOUCH_UI_DEVELOPER_MENU
-#endif
-
-//
-// FSMC Graphical TFT
-//
-#if ENABLED(FSMC_GRAPHICAL_TFT)
- //#define TFT_MARLINUI_COLOR 0xFFFF // White
- //#define TFT_MARLINBG_COLOR 0x0000 // Black
- //#define TFT_DISABLED_COLOR 0x0003 // Almost black
- //#define TFT_BTCANCEL_COLOR 0xF800 // Red
- //#define TFT_BTARROWS_COLOR 0xDEE6 // 11011 110111 00110 Yellow
- //#define TFT_BTOKMENU_COLOR 0x145F // 00010 100010 11111 Cyan
-#endif
-
-//
-// ADC Button Debounce
-//
-#if HAS_ADC_BUTTONS
- #define ADC_BUTTON_DEBOUNCE_DELAY 16 // (ms) Increase if buttons bounce or repeat too fast
-#endif
-
-// @section safety
-
-/**
- * The watchdog hardware timer will do a reset and disable all outputs
- * if the firmware gets too overloaded to read the temperature sensors.
- *
- * If you find that watchdog reboot causes your AVR board to hang forever,
- * enable WATCHDOG_RESET_MANUAL to use a custom timer instead of WDTO.
- * NOTE: This method is less reliable as it can only catch hangups while
- * interrupts are enabled.
- */
-#define USE_WATCHDOG
-#if ENABLED(USE_WATCHDOG)
- //#define WATCHDOG_RESET_MANUAL
-#endif
-
-// @section lcd
-
-/**
- * Babystepping enables movement of the axes by tiny increments without changing
- * the current position values. This feature is used primarily to adjust the Z
- * axis in the first layer of a print in real-time.
- *
- * Warning: Does not respect endstops!
- */
-//#define BABYSTEPPING
-#if ENABLED(BABYSTEPPING)
- //#define INTEGRATED_BABYSTEPPING // EXPERIMENTAL integration of babystepping into the Stepper ISR
- //#define BABYSTEP_WITHOUT_HOMING
- //#define BABYSTEP_XY // Also enable X/Y Babystepping. Not supported on DELTA!
- #define BABYSTEP_INVERT_Z false // Change if Z babysteps should go the other way
- #define BABYSTEP_MULTIPLICATOR_Z 1 // Babysteps are very small. Increase for faster motion.
- #define BABYSTEP_MULTIPLICATOR_XY 1
-
- //#define DOUBLECLICK_FOR_Z_BABYSTEPPING // Double-click on the Status Screen for Z Babystepping.
- #if ENABLED(DOUBLECLICK_FOR_Z_BABYSTEPPING)
- #define DOUBLECLICK_MAX_INTERVAL 1250 // Maximum interval between clicks, in milliseconds.
- // Note: Extra time may be added to mitigate controller latency.
- //#define BABYSTEP_ALWAYS_AVAILABLE // Allow babystepping at all times (not just during movement).
- //#define MOVE_Z_WHEN_IDLE // Jump to the move Z menu on doubleclick when printer is idle.
- #if ENABLED(MOVE_Z_WHEN_IDLE)
- #define MOVE_Z_IDLE_MULTIPLICATOR 1 // Multiply 1mm by this factor for the move step size.
- #endif
- #endif
-
- //#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
-
- //#define BABYSTEP_ZPROBE_OFFSET // Combine M851 Z and Babystepping
- #if ENABLED(BABYSTEP_ZPROBE_OFFSET)
- //#define BABYSTEP_HOTEND_Z_OFFSET // For multiple hotends, babystep relative Z offsets
- //#define BABYSTEP_ZPROBE_GFX_OVERLAY // Enable graphical overlay on Z-offset editor
- #endif
-#endif
-
-// @section extruder
-
-/**
- * Linear Pressure Control v1.5
- *
- * Assumption: advance [steps] = k * (delta velocity [steps/s])
- * K=0 means advance disabled.
- *
- * NOTE: K values for LIN_ADVANCE 1.5 differ from earlier versions!
- *
- * Set K around 0.22 for 3mm PLA Direct Drive with ~6.5cm between the drive gear and heatbreak.
- * Larger K values will be needed for flexible filament and greater distances.
- * If this algorithm produces a higher speed offset than the extruder can handle (compared to E jerk)
- * print acceleration will be reduced during the affected moves to keep within the limit.
- *
- * See http://marlinfw.org/docs/features/lin_advance.html for full instructions.
- * Mention @Sebastianv650 on GitHub to alert the author of any issues.
- */
-//#define LIN_ADVANCE
-#if ENABLED(LIN_ADVANCE)
- //#define EXTRA_LIN_ADVANCE_K // Enable for second linear advance constants
- #define LIN_ADVANCE_K 0.22 // Unit: mm compression per 1mm/s extruder speed
- //#define LA_DEBUG // If enabled, this will generate debug information output over USB.
-#endif
-
-// @section leveling
-
-/**
- * Points to probe for all 3-point Leveling procedures.
- * Override if the automatically selected points are inadequate.
- */
-#if EITHER(AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_UBL)
- //#define PROBE_PT_1_X 15
- //#define PROBE_PT_1_Y 180
- //#define PROBE_PT_2_X 15
- //#define PROBE_PT_2_Y 20
- //#define PROBE_PT_3_X 170
- //#define PROBE_PT_3_Y 20
-#endif
-
-/**
- * Override MIN_PROBE_EDGE for each side of the build plate
- * Useful to get probe points to exact positions on targets or
- * to allow leveling to avoid plate clamps on only specific
- * sides of the bed. With NOZZLE_AS_PROBE negative values are
- * allowed, to permit probing outside the bed.
- *
- * If you are replacing the prior *_PROBE_BED_POSITION options,
- * LEFT and FRONT values in most cases will map directly over
- * RIGHT and REAR would be the inverse such as
- * (X/Y_BED_SIZE - RIGHT/BACK_PROBE_BED_POSITION)
- *
- * This will allow all positions to match at compilation, however
- * should the probe position be modified with M851XY then the
- * probe points will follow. This prevents any change from causing
- * the probe to be unable to reach any points.
- */
-#if PROBE_SELECTED && !IS_KINEMATIC
- //#define MIN_PROBE_EDGE_LEFT MIN_PROBE_EDGE
- //#define MIN_PROBE_EDGE_RIGHT MIN_PROBE_EDGE
- //#define MIN_PROBE_EDGE_FRONT MIN_PROBE_EDGE
- //#define MIN_PROBE_EDGE_BACK MIN_PROBE_EDGE
-#endif
-
-#if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL)
- // Override the mesh area if the automatic (max) area is too large
- //#define MESH_MIN_X MESH_INSET
- //#define MESH_MIN_Y MESH_INSET
- //#define MESH_MAX_X X_BED_SIZE - (MESH_INSET)
- //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
-#endif
-
-/**
- * Repeatedly attempt G29 leveling until it succeeds.
- * Stop after G29_MAX_RETRIES attempts.
- */
-//#define G29_RETRY_AND_RECOVER
-#if ENABLED(G29_RETRY_AND_RECOVER)
- #define G29_MAX_RETRIES 3
- #define G29_HALT_ON_FAILURE
- /**
- * Specify the GCODE commands that will be executed when leveling succeeds,
- * between attempts, and after the maximum number of retries have been tried.
- */
- #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
- #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
- #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
-
-#endif
-
-/**
- * Thermal Probe Compensation
- * Probe measurements are adjusted to compensate for temperature distortion.
- * Use G76 to calibrate this feature. Use M871 to set values manually.
- * For a more detailed explanation of the process see G76_M871.cpp.
- */
-#if HAS_BED_PROBE && TEMP_SENSOR_PROBE && TEMP_SENSOR_BED
- // Enable thermal first layer compensation using bed and probe temperatures
- #define PROBE_TEMP_COMPENSATION
-
- // Add additional compensation depending on hotend temperature
- // Note: this values cannot be calibrated and have to be set manually
- #if ENABLED(PROBE_TEMP_COMPENSATION)
- // Max temperature that can be reached by heated bed.
- // This is required only for the calibration process.
- #define PTC_MAX_BED_TEMP BED_MAXTEMP
-
- // Park position to wait for probe cooldown
- #define PTC_PARK_POS_X 0.0F
- #define PTC_PARK_POS_Y 0.0F
- #define PTC_PARK_POS_Z 100.0F
-
- // Probe position to probe and wait for probe to reach target temperature
- #define PTC_PROBE_POS_X 90.0F
- #define PTC_PROBE_POS_Y 100.0F
-
- // Enable additional compensation using hotend temperature
- // Note: this values cannot be calibrated automatically but have to be set manually
- //#define USE_TEMP_EXT_COMPENSATION
- #endif
-#endif
-
-// @section extras
-
-//
-// G60/G61 Position Save and Return
-//
-//#define SAVED_POSITIONS 1 // Each saved position slot costs 12 bytes
-
-//
-// G2/G3 Arc Support
-//
-#define ARC_SUPPORT // Disable this feature to save ~3226 bytes
-#if ENABLED(ARC_SUPPORT)
- #define MM_PER_ARC_SEGMENT 1 // (mm) Length (or minimum length) of each arc segment
- //#define ARC_SEGMENTS_PER_R 1 // Max segment length, MM_PER = Min
- #define MIN_ARC_SEGMENTS 24 // Minimum number of segments in a complete circle
- //#define ARC_SEGMENTS_PER_SEC 50 // Use feedrate to choose segment length (with MM_PER_ARC_SEGMENT as the minimum)
- #define N_ARC_CORRECTION 25 // Number of interpolated segments between corrections
- //#define ARC_P_CIRCLES // Enable the 'P' parameter to specify complete circles
- //#define CNC_WORKSPACE_PLANES // Allow G2/G3 to operate in XY, ZX, or YZ planes
-#endif
-
-// Support for G5 with XYZE destination and IJPQ offsets. Requires ~2666 bytes.
-//#define BEZIER_CURVE_SUPPORT
-
-/**
- * G38 Probe Target
- *
- * This option adds G38.2 and G38.3 (probe towards target)
- * and optionally G38.4 and G38.5 (probe away from target).
- * Set MULTIPLE_PROBING for G38 to probe more than once.
- */
-//#define G38_PROBE_TARGET
-#if ENABLED(G38_PROBE_TARGET)
- //#define G38_PROBE_AWAY // Include G38.4 and G38.5 to probe away from target
- #define G38_MINIMUM_MOVE 0.0275 // (mm) Minimum distance that will produce a move.
-#endif
-
-// Moves (or segments) with fewer steps than this will be joined with the next move
-#define MIN_STEPS_PER_SEGMENT 6
-
-/**
- * Minimum delay before and after setting the stepper DIR (in ns)
- * 0 : No delay (Expect at least 10µS since one Stepper ISR must transpire)
- * 20 : Minimum for TMC2xxx drivers
- * 200 : Minimum for A4988 drivers
- * 400 : Minimum for A5984 drivers
- * 500 : Minimum for LV8729 drivers (guess, no info in datasheet)
- * 650 : Minimum for DRV8825 drivers
- * 1500 : Minimum for TB6600 drivers (guess, no info in datasheet)
- * 15000 : Minimum for TB6560 drivers (guess, no info in datasheet)
- *
- * Override the default value based on the driver type set in Configuration.h.
- */
-//#define MINIMUM_STEPPER_POST_DIR_DELAY 650
-//#define MINIMUM_STEPPER_PRE_DIR_DELAY 650
-
-/**
- * Minimum stepper driver pulse width (in µs)
- * 0 : Smallest possible width the MCU can produce, compatible with TMC2xxx drivers
- * 0 : Minimum 500ns for LV8729, adjusted in stepper.h
- * 1 : Minimum for A4988 and A5984 stepper drivers
- * 2 : Minimum for DRV8825 stepper drivers
- * 3 : Minimum for TB6600 stepper drivers
- * 30 : Minimum for TB6560 stepper drivers
- *
- * Override the default value based on the driver type set in Configuration.h.
- */
-//#define MINIMUM_STEPPER_PULSE 2
-
-/**
- * Maximum stepping rate (in Hz) the stepper driver allows
- * If undefined, defaults to 1MHz / (2 * MINIMUM_STEPPER_PULSE)
- * 5000000 : Maximum for TMC2xxx stepper drivers
- * 1000000 : Maximum for LV8729 stepper driver
- * 500000 : Maximum for A4988 stepper driver
- * 250000 : Maximum for DRV8825 stepper driver
- * 150000 : Maximum for TB6600 stepper driver
- * 15000 : Maximum for TB6560 stepper driver
- *
- * Override the default value based on the driver type set in Configuration.h.
- */
-//#define MAXIMUM_STEPPER_RATE 250000
-
-// @section temperature
-
-// Control heater 0 and heater 1 in parallel.
-//#define HEATERS_PARALLEL
-
-//===========================================================================
-//================================= Buffers =================================
-//===========================================================================
-
-// @section hidden
-
-// The number of linear motions that can be in the plan at any give time.
-// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2 (e.g. 8, 16, 32) because shifts and ors are used to do the ring-buffering.
-#if ENABLED(SDSUPPORT)
- #define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
-#else
- #define BLOCK_BUFFER_SIZE 16 // maximize block buffer
-#endif
-
-// @section serial
-
-// The ASCII buffer for serial input
-#define MAX_CMD_SIZE 96
-#define BUFSIZE 4
-
-// Transmission to Host Buffer Size
-// To save 386 bytes of PROGMEM (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
-// To buffer a simple "ok" you need 4 bytes.
-// For ADVANCED_OK (M105) you need 32 bytes.
-// For debug-echo: 128 bytes for the optimal speed.
-// Other output doesn't need to be that speedy.
-// :[0, 2, 4, 8, 16, 32, 64, 128, 256]
-#define TX_BUFFER_SIZE 0
-
-// Host Receive Buffer Size
-// Without XON/XOFF flow control (see SERIAL_XON_XOFF below) 32 bytes should be enough.
-// To use flow control, set this buffer size to at least 1024 bytes.
-// :[0, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048]
-//#define RX_BUFFER_SIZE 1024
-
-#if RX_BUFFER_SIZE >= 1024
- // Enable to have the controller send XON/XOFF control characters to
- // the host to signal the RX buffer is becoming full.
- //#define SERIAL_XON_XOFF
-#endif
-
-// Add M575 G-code to change the baud rate
-//#define BAUD_RATE_GCODE
-
-#if ENABLED(SDSUPPORT)
- // Enable this option to collect and display the maximum
- // RX queue usage after transferring a file to SD.
- //#define SERIAL_STATS_MAX_RX_QUEUED
-
- // Enable this option to collect and display the number
- // of dropped bytes after a file transfer to SD.
- //#define SERIAL_STATS_DROPPED_RX
-#endif
-
-// Enable an emergency-command parser to intercept certain commands as they
-// enter the serial receive buffer, so they cannot be blocked.
-// Currently handles M108, M112, M410
-// Does not work on boards using AT90USB (USBCON) processors!
-//#define EMERGENCY_PARSER
-
-// Bad Serial-connections can miss a received command by sending an 'ok'
-// Therefore some clients abort after 30 seconds in a timeout.
-// Some other clients start sending commands while receiving a 'wait'.
-// This "wait" is only sent when the buffer is empty. 1 second is a good value here.
-//#define NO_TIMEOUTS 1000 // Milliseconds
-
-// Some clients will have this feature soon. This could make the NO_TIMEOUTS unnecessary.
-//#define ADVANCED_OK
-
-// Printrun may have trouble receiving long strings all at once.
-// This option inserts short delays between lines of serial output.
-#define SERIAL_OVERRUN_PROTECTION
-
-// @section extras
-
-/**
- * Extra Fan Speed
- * Adds a secondary fan speed for each print-cooling fan.
- * 'M106 P T3-255' : Set a secondary speed for
- * 'M106 P T2' : Use the set secondary speed
- * 'M106 P T1' : Restore the previous fan speed
- */
-//#define EXTRA_FAN_SPEED
-
-/**
- * Firmware-based and LCD-controlled retract
- *
- * Add G10 / G11 commands for automatic firmware-based retract / recover.
- * Use M207 and M208 to define parameters for retract / recover.
- *
- * Use M209 to enable or disable auto-retract.
- * With auto-retract enabled, all G1 E moves within the set range
- * will be converted to firmware-based retract/recover moves.
- *
- * Be sure to turn off auto-retract during filament change.
- *
- * Note that M207 / M208 / M209 settings are saved to EEPROM.
- *
- */
-//#define FWRETRACT
-#if ENABLED(FWRETRACT)
- #define FWRETRACT_AUTORETRACT // Override slicer retractions
- #if ENABLED(FWRETRACT_AUTORETRACT)
- #define MIN_AUTORETRACT 0.1 // (mm) Don't convert E moves under this length
- #define MAX_AUTORETRACT 10.0 // (mm) Don't convert E moves over this length
- #endif
- #define RETRACT_LENGTH 3 // (mm) Default retract length (positive value)
- #define RETRACT_LENGTH_SWAP 13 // (mm) Default swap retract length (positive value)
- #define RETRACT_FEEDRATE 45 // (mm/s) Default feedrate for retracting
- #define RETRACT_ZRAISE 0 // (mm) Default retract Z-raise
- #define RETRACT_RECOVER_LENGTH 0 // (mm) Default additional recover length (added to retract length on recover)
- #define RETRACT_RECOVER_LENGTH_SWAP 0 // (mm) Default additional swap recover length (added to retract length on recover from toolchange)
- #define RETRACT_RECOVER_FEEDRATE 8 // (mm/s) Default feedrate for recovering from retraction
- #define RETRACT_RECOVER_FEEDRATE_SWAP 8 // (mm/s) Default feedrate for recovering from swap retraction
- #if ENABLED(MIXING_EXTRUDER)
- //#define RETRACT_SYNC_MIXING // Retract and restore all mixing steppers simultaneously
- #endif
-#endif
-
-/**
- * Universal tool change settings.
- * Applies to all types of extruders except where explicitly noted.
- */
-#if EXTRUDERS > 1
- // Z raise distance for tool-change, as needed for some extruders
- #define TOOLCHANGE_ZRAISE 2 // (mm)
- //#define TOOLCHANGE_NO_RETURN // Never return to the previous position on tool-change
- #if ENABLED(TOOLCHANGE_NO_RETURN)
- //#define EVENT_GCODE_AFTER_TOOLCHANGE "G12X" // G-code to run after tool-change is complete
- #endif
-
- // Retract and prime filament on tool-change
- //#define TOOLCHANGE_FILAMENT_SWAP
- #if ENABLED(TOOLCHANGE_FILAMENT_SWAP)
- #define TOOLCHANGE_FIL_SWAP_LENGTH 12 // (mm)
- #define TOOLCHANGE_FIL_EXTRA_PRIME 2 // (mm)
- #define TOOLCHANGE_FIL_SWAP_RETRACT_SPEED 3600 // (mm/m)
- #define TOOLCHANGE_FIL_SWAP_PRIME_SPEED 3600 // (mm/m)
- #endif
-
- /**
- * Position to park head during tool change.
- * Doesn't apply to SWITCHING_TOOLHEAD, DUAL_X_CARRIAGE, or PARKING_EXTRUDER
- */
- //#define TOOLCHANGE_PARK
- #if ENABLED(TOOLCHANGE_PARK)
- #define TOOLCHANGE_PARK_XY { X_MIN_POS + 10, Y_MIN_POS + 10 }
- #define TOOLCHANGE_PARK_XY_FEEDRATE 6000 // (mm/m)
- #endif
-#endif
-
-/**
- * Advanced Pause
- * Experimental feature for filament change support and for parking the nozzle when paused.
- * Adds the GCode M600 for initiating filament change.
- * If PARK_HEAD_ON_PAUSE enabled, adds the GCode M125 to pause printing and park the nozzle.
- *
- * Requires an LCD display.
- * Requires NOZZLE_PARK_FEATURE.
- * This feature is required for the default FILAMENT_RUNOUT_SCRIPT.
- */
-//#define ADVANCED_PAUSE_FEATURE
-#if ENABLED(ADVANCED_PAUSE_FEATURE)
- #define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
- #define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
- // This short retract is done immediately, before parking the nozzle.
- #define FILAMENT_CHANGE_UNLOAD_FEEDRATE 10 // (mm/s) Unload filament feedrate. This can be pretty fast.
- #define FILAMENT_CHANGE_UNLOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
- #define FILAMENT_CHANGE_UNLOAD_LENGTH 100 // (mm) The length of filament for a complete unload.
- // For Bowden, the full length of the tube and nozzle.
- // For direct drive, the full length of the nozzle.
- // Set to 0 for manual unloading.
- #define FILAMENT_CHANGE_SLOW_LOAD_FEEDRATE 6 // (mm/s) Slow move when starting load.
- #define FILAMENT_CHANGE_SLOW_LOAD_LENGTH 0 // (mm) Slow length, to allow time to insert material.
- // 0 to disable start loading and skip to fast load only
- #define FILAMENT_CHANGE_FAST_LOAD_FEEDRATE 6 // (mm/s) Load filament feedrate. This can be pretty fast.
- #define FILAMENT_CHANGE_FAST_LOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
- #define FILAMENT_CHANGE_FAST_LOAD_LENGTH 0 // (mm) Load length of filament, from extruder gear to nozzle.
- // For Bowden, the full length of the tube and nozzle.
- // For direct drive, the full length of the nozzle.
- //#define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
- #define ADVANCED_PAUSE_PURGE_FEEDRATE 3 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
- #define ADVANCED_PAUSE_PURGE_LENGTH 50 // (mm) Length to extrude after loading.
- // Set to 0 for manual extrusion.
- // Filament can be extruded repeatedly from the Filament Change menu
- // until extrusion is consistent, and to purge old filament.
- #define ADVANCED_PAUSE_RESUME_PRIME 0 // (mm) Extra distance to prime nozzle after returning from park.
- //#define ADVANCED_PAUSE_FANS_PAUSE // Turn off print-cooling fans while the machine is paused.
-
- // Filament Unload does a Retract, Delay, and Purge first:
- #define FILAMENT_UNLOAD_PURGE_RETRACT 13 // (mm) Unload initial retract length.
- #define FILAMENT_UNLOAD_PURGE_DELAY 5000 // (ms) Delay for the filament to cool after retract.
- #define FILAMENT_UNLOAD_PURGE_LENGTH 8 // (mm) An unretract is done, then this length is purged.
- #define FILAMENT_UNLOAD_PURGE_FEEDRATE 25 // (mm/s) feedrate to purge before unload
-
- #define PAUSE_PARK_NOZZLE_TIMEOUT 45 // (seconds) Time limit before the nozzle is turned off for safety.
- #define FILAMENT_CHANGE_ALERT_BEEPS 10 // Number of alert beeps to play when a response is needed.
- #define PAUSE_PARK_NO_STEPPER_TIMEOUT // Enable for XYZ steppers to stay powered on during filament change.
-
- //#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
- //#define HOME_BEFORE_FILAMENT_CHANGE // Ensure homing has been completed prior to parking for filament change
-
- //#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
- //#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
-#endif
-
-// @section tmc
-
-/**
- * TMC26X Stepper Driver options
- *
- * The TMC26XStepper library is required for this stepper driver.
- * https://github.com/trinamic/TMC26XStepper
- */
-#if HAS_DRIVER(TMC26X)
-
- #if AXIS_DRIVER_TYPE_X(TMC26X)
- #define X_MAX_CURRENT 1000 // (mA)
- #define X_SENSE_RESISTOR 91 // (mOhms)
- #define X_MICROSTEPS 16 // Number of microsteps
- #endif
-
- #if AXIS_DRIVER_TYPE_X2(TMC26X)
- #define X2_MAX_CURRENT 1000
- #define X2_SENSE_RESISTOR 91
- #define X2_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Y(TMC26X)
- #define Y_MAX_CURRENT 1000
- #define Y_SENSE_RESISTOR 91
- #define Y_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Y2(TMC26X)
- #define Y2_MAX_CURRENT 1000
- #define Y2_SENSE_RESISTOR 91
- #define Y2_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Z(TMC26X)
- #define Z_MAX_CURRENT 1000
- #define Z_SENSE_RESISTOR 91
- #define Z_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Z2(TMC26X)
- #define Z2_MAX_CURRENT 1000
- #define Z2_SENSE_RESISTOR 91
- #define Z2_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Z3(TMC26X)
- #define Z3_MAX_CURRENT 1000
- #define Z3_SENSE_RESISTOR 91
- #define Z3_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_Z4(TMC26X)
- #define Z4_MAX_CURRENT 1000
- #define Z4_SENSE_RESISTOR 91
- #define Z4_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E0(TMC26X)
- #define E0_MAX_CURRENT 1000
- #define E0_SENSE_RESISTOR 91
- #define E0_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E1(TMC26X)
- #define E1_MAX_CURRENT 1000
- #define E1_SENSE_RESISTOR 91
- #define E1_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E2(TMC26X)
- #define E2_MAX_CURRENT 1000
- #define E2_SENSE_RESISTOR 91
- #define E2_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E3(TMC26X)
- #define E3_MAX_CURRENT 1000
- #define E3_SENSE_RESISTOR 91
- #define E3_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E4(TMC26X)
- #define E4_MAX_CURRENT 1000
- #define E4_SENSE_RESISTOR 91
- #define E4_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E5(TMC26X)
- #define E5_MAX_CURRENT 1000
- #define E5_SENSE_RESISTOR 91
- #define E5_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E6(TMC26X)
- #define E6_MAX_CURRENT 1000
- #define E6_SENSE_RESISTOR 91
- #define E6_MICROSTEPS 16
- #endif
-
- #if AXIS_DRIVER_TYPE_E7(TMC26X)
- #define E7_MAX_CURRENT 1000
- #define E7_SENSE_RESISTOR 91
- #define E7_MICROSTEPS 16
- #endif
-
-#endif // TMC26X
-
-// @section tmc_smart
-
-/**
- * To use TMC2130, TMC2160, TMC2660, TMC5130, TMC5160 stepper drivers in SPI mode
- * connect your SPI pins to the hardware SPI interface on your board and define
- * the required CS pins in your `pins_MYBOARD.h` file. (e.g., RAMPS 1.4 uses AUX3
- * pins `X_CS_PIN 53`, `Y_CS_PIN 49`, etc.).
- * You may also use software SPI if you wish to use general purpose IO pins.
- *
- * To use TMC2208 stepper UART-configurable stepper drivers connect #_SERIAL_TX_PIN
- * to the driver side PDN_UART pin with a 1K resistor.
- * To use the reading capabilities, also connect #_SERIAL_RX_PIN to PDN_UART without
- * a resistor.
- * The drivers can also be used with hardware serial.
- *
- * TMCStepper library is required to use TMC stepper drivers.
- * https://github.com/teemuatlut/TMCStepper
- */
-#if HAS_TRINAMIC_CONFIG
-
- #define HOLD_MULTIPLIER 0.5 // Scales down the holding current from run current
- #define INTERPOLATE true // Interpolate X/Y/Z_MICROSTEPS to 256
-
- #if AXIS_IS_TMC(X)
- #define X_CURRENT 800 // (mA) RMS current. Multiply by 1.414 for peak current.
- #define X_CURRENT_HOME X_CURRENT // (mA) RMS current for sensorless homing
- #define X_MICROSTEPS 16 // 0..256
- #define X_RSENSE 0.11
- #define X_CHAIN_POS -1 // <=0 : Not chained. 1 : MCU MOSI connected. 2 : Next in chain, ...
- #endif
-
- #if AXIS_IS_TMC(X2)
- #define X2_CURRENT 800
- #define X2_CURRENT_HOME X2_CURRENT
- #define X2_MICROSTEPS 16
- #define X2_RSENSE 0.11
- #define X2_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Y)
- #define Y_CURRENT 800
- #define Y_CURRENT_HOME Y_CURRENT
- #define Y_MICROSTEPS 16
- #define Y_RSENSE 0.11
- #define Y_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Y2)
- #define Y2_CURRENT 800
- #define Y2_CURRENT_HOME Y2_CURRENT
- #define Y2_MICROSTEPS 16
- #define Y2_RSENSE 0.11
- #define Y2_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Z)
- #define Z_CURRENT 800
- #define Z_CURRENT_HOME Z_CURRENT
- #define Z_MICROSTEPS 16
- #define Z_RSENSE 0.11
- #define Z_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Z2)
- #define Z2_CURRENT 800
- #define Z2_CURRENT_HOME Z2_CURRENT
- #define Z2_MICROSTEPS 16
- #define Z2_RSENSE 0.11
- #define Z2_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Z3)
- #define Z3_CURRENT 800
- #define Z3_CURRENT_HOME Z3_CURRENT
- #define Z3_MICROSTEPS 16
- #define Z3_RSENSE 0.11
- #define Z3_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(Z4)
- #define Z4_CURRENT 800
- #define Z4_CURRENT_HOME Z4_CURRENT
- #define Z4_MICROSTEPS 16
- #define Z4_RSENSE 0.11
- #define Z4_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E0)
- #define E0_CURRENT 800
- #define E0_MICROSTEPS 16
- #define E0_RSENSE 0.11
- #define E0_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E1)
- #define E1_CURRENT 800
- #define E1_MICROSTEPS 16
- #define E1_RSENSE 0.11
- #define E1_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E2)
- #define E2_CURRENT 800
- #define E2_MICROSTEPS 16
- #define E2_RSENSE 0.11
- #define E2_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E3)
- #define E3_CURRENT 800
- #define E3_MICROSTEPS 16
- #define E3_RSENSE 0.11
- #define E3_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E4)
- #define E4_CURRENT 800
- #define E4_MICROSTEPS 16
- #define E4_RSENSE 0.11
- #define E4_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E5)
- #define E5_CURRENT 800
- #define E5_MICROSTEPS 16
- #define E5_RSENSE 0.11
- #define E5_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E6)
- #define E6_CURRENT 800
- #define E6_MICROSTEPS 16
- #define E6_RSENSE 0.11
- #define E6_CHAIN_POS -1
- #endif
-
- #if AXIS_IS_TMC(E7)
- #define E7_CURRENT 800
- #define E7_MICROSTEPS 16
- #define E7_RSENSE 0.11
- #define E7_CHAIN_POS -1
- #endif
-
- /**
- * Override default SPI pins for TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160 drivers here.
- * The default pins can be found in your board's pins file.
- */
- //#define X_CS_PIN -1
- //#define Y_CS_PIN -1
- //#define Z_CS_PIN -1
- //#define X2_CS_PIN -1
- //#define Y2_CS_PIN -1
- //#define Z2_CS_PIN -1
- //#define Z3_CS_PIN -1
- //#define E0_CS_PIN -1
- //#define E1_CS_PIN -1
- //#define E2_CS_PIN -1
- //#define E3_CS_PIN -1
- //#define E4_CS_PIN -1
- //#define E5_CS_PIN -1
- //#define E6_CS_PIN -1
- //#define E7_CS_PIN -1
-
- /**
- * Software option for SPI driven drivers (TMC2130, TMC2160, TMC2660, TMC5130 and TMC5160).
- * The default SW SPI pins are defined the respective pins files,
- * but you can override or define them here.
- */
- //#define TMC_USE_SW_SPI
- //#define TMC_SW_MOSI -1
- //#define TMC_SW_MISO -1
- //#define TMC_SW_SCK -1
-
- /**
- * Four TMC2209 drivers can use the same HW/SW serial port with hardware configured addresses.
- * Set the address using jumpers on pins MS1 and MS2.
- * Address | MS1 | MS2
- * 0 | LOW | LOW
- * 1 | HIGH | LOW
- * 2 | LOW | HIGH
- * 3 | HIGH | HIGH
- *
- * Set *_SERIAL_TX_PIN and *_SERIAL_RX_PIN to match for all drivers
- * on the same serial port, either here or in your board's pins file.
- */
- #define X_SLAVE_ADDRESS 0
- #define Y_SLAVE_ADDRESS 0
- #define Z_SLAVE_ADDRESS 0
- #define X2_SLAVE_ADDRESS 0
- #define Y2_SLAVE_ADDRESS 0
- #define Z2_SLAVE_ADDRESS 0
- #define Z3_SLAVE_ADDRESS 0
- #define Z4_SLAVE_ADDRESS 0
- #define E0_SLAVE_ADDRESS 0
- #define E1_SLAVE_ADDRESS 0
- #define E2_SLAVE_ADDRESS 0
- #define E3_SLAVE_ADDRESS 0
- #define E4_SLAVE_ADDRESS 0
- #define E5_SLAVE_ADDRESS 0
- #define E6_SLAVE_ADDRESS 0
- #define E7_SLAVE_ADDRESS 0
-
- /**
- * Software enable
- *
- * Use for drivers that do not use a dedicated enable pin, but rather handle the same
- * function through a communication line such as SPI or UART.
- */
- //#define SOFTWARE_DRIVER_ENABLE
-
- /**
- * TMC2130, TMC2160, TMC2208, TMC2209, TMC5130 and TMC5160 only
- * Use Trinamic's ultra quiet stepping mode.
- * When disabled, Marlin will use spreadCycle stepping mode.
- */
- #define STEALTHCHOP_XY
- #define STEALTHCHOP_Z
- #define STEALTHCHOP_E
-
- /**
- * Optimize spreadCycle chopper parameters by using predefined parameter sets
- * or with the help of an example included in the library.
- * Provided parameter sets are
- * CHOPPER_DEFAULT_12V
- * CHOPPER_DEFAULT_19V
- * CHOPPER_DEFAULT_24V
- * CHOPPER_DEFAULT_36V
- * CHOPPER_PRUSAMK3_24V // Imported parameters from the official Prusa firmware for MK3 (24V)
- * CHOPPER_MARLIN_119 // Old defaults from Marlin v1.1.9
- *
- * Define you own with
- * { , , hysteresis_start[1..8] }
- */
- #define CHOPPER_TIMING CHOPPER_DEFAULT_12V
-
- /**
- * Monitor Trinamic drivers for error conditions,
- * like overtemperature and short to ground.
- * In the case of overtemperature Marlin can decrease the driver current until error condition clears.
- * Other detected conditions can be used to stop the current print.
- * Relevant g-codes:
- * M906 - Set or get motor current in milliamps using axis codes X, Y, Z, E. Report values if no axis codes given.
- * M911 - Report stepper driver overtemperature pre-warn condition.
- * M912 - Clear stepper driver overtemperature pre-warn condition flag.
- * M122 - Report driver parameters (Requires TMC_DEBUG)
- */
- //#define MONITOR_DRIVER_STATUS
-
- #if ENABLED(MONITOR_DRIVER_STATUS)
- #define CURRENT_STEP_DOWN 50 // [mA]
- #define REPORT_CURRENT_CHANGE
- #define STOP_ON_ERROR
- #endif
-
- /**
- * TMC2130, TMC2160, TMC2208, TMC2209, TMC5130 and TMC5160 only
- * The driver will switch to spreadCycle when stepper speed is over HYBRID_THRESHOLD.
- * This mode allows for faster movements at the expense of higher noise levels.
- * STEALTHCHOP_(XY|Z|E) must be enabled to use HYBRID_THRESHOLD.
- * M913 X/Y/Z/E to live tune the setting
- */
- //#define HYBRID_THRESHOLD
-
- #define X_HYBRID_THRESHOLD 100 // [mm/s]
- #define X2_HYBRID_THRESHOLD 100
- #define Y_HYBRID_THRESHOLD 100
- #define Y2_HYBRID_THRESHOLD 100
- #define Z_HYBRID_THRESHOLD 3
- #define Z2_HYBRID_THRESHOLD 3
- #define Z3_HYBRID_THRESHOLD 3
- #define Z4_HYBRID_THRESHOLD 3
- #define E0_HYBRID_THRESHOLD 30
- #define E1_HYBRID_THRESHOLD 30
- #define E2_HYBRID_THRESHOLD 30
- #define E3_HYBRID_THRESHOLD 30
- #define E4_HYBRID_THRESHOLD 30
- #define E5_HYBRID_THRESHOLD 30
- #define E6_HYBRID_THRESHOLD 30
- #define E7_HYBRID_THRESHOLD 30
-
- /**
- * Use StallGuard2 to home / probe X, Y, Z.
- *
- * TMC2130, TMC2160, TMC2209, TMC2660, TMC5130, and TMC5160 only
- * Connect the stepper driver's DIAG1 pin to the X/Y endstop pin.
- * X, Y, and Z homing will always be done in spreadCycle mode.
- *
- * X/Y/Z_STALL_SENSITIVITY is the default stall threshold.
- * Use M914 X Y Z to set the stall threshold at runtime:
- *
- * Sensitivity TMC2209 Others
- * HIGHEST 255 -64 (Too sensitive => False positive)
- * LOWEST 0 63 (Too insensitive => No trigger)
- *
- * It is recommended to set [XYZ]_HOME_BUMP_MM to 0.
- *
- * SPI_ENDSTOPS *** Beta feature! *** TMC2130 Only ***
- * Poll the driver through SPI to determine load when homing.
- * Removes the need for a wire from DIAG1 to an endstop pin.
- *
- * IMPROVE_HOMING_RELIABILITY tunes acceleration and jerk when
- * homing and adds a guard period for endstop triggering.
- */
- //#define SENSORLESS_HOMING // StallGuard capable drivers only
-
- #if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING)
- // TMC2209: 0...255. TMC2130: -64...63
- #define X_STALL_SENSITIVITY 8
- #define X2_STALL_SENSITIVITY X_STALL_SENSITIVITY
- #define Y_STALL_SENSITIVITY 8
- //#define Z_STALL_SENSITIVITY 8
- //#define SPI_ENDSTOPS // TMC2130 only
- //#define IMPROVE_HOMING_RELIABILITY
- #endif
-
- /**
- * Beta feature!
- * Create a 50/50 square wave step pulse optimal for stepper drivers.
- */
- //#define SQUARE_WAVE_STEPPING
-
- /**
- * Enable M122 debugging command for TMC stepper drivers.
- * M122 S0/1 will enable continous reporting.
- */
- //#define TMC_DEBUG
-
- /**
- * You can set your own advanced settings by filling in predefined functions.
- * A list of available functions can be found on the library github page
- * https://github.com/teemuatlut/TMCStepper
- *
- * Example:
- * #define TMC_ADV() { \
- * stepperX.diag0_otpw(1); \
- * stepperY.intpol(0); \
- * }
- */
- #define TMC_ADV() { }
-
-#endif // HAS_TRINAMIC_CONFIG
-
-// @section L64XX
-
-/**
- * L64XX Stepper Driver options
- *
- * Arduino-L6470 library (0.8.0 or higher) is required.
- * https://github.com/ameyer/Arduino-L6470
- *
- * Requires the following to be defined in your pins_YOUR_BOARD file
- * L6470_CHAIN_SCK_PIN
- * L6470_CHAIN_MISO_PIN
- * L6470_CHAIN_MOSI_PIN
- * L6470_CHAIN_SS_PIN
- * ENABLE_RESET_L64XX_CHIPS(Q) where Q is 1 to enable and 0 to reset
- */
-
-#if HAS_L64XX
-
- //#define L6470_CHITCHAT // Display additional status info
-
- #if AXIS_IS_L64XX(X)
- #define X_MICROSTEPS 128 // Number of microsteps (VALID: 1, 2, 4, 8, 16, 32, 128) - L6474 max is 16
- #define X_OVERCURRENT 2000 // (mA) Current where the driver detects an over current
- // L6470 & L6474 - VALID: 375 x (1 - 16) - 6A max - rounds down
- // POWERSTEP01: VALID: 1000 x (1 - 32) - 32A max - rounds down
- #define X_STALLCURRENT 1500 // (mA) Current where the driver detects a stall (VALID: 31.25 * (1-128) - 4A max - rounds down)
- // L6470 & L6474 - VALID: 31.25 * (1-128) - 4A max - rounds down
- // POWERSTEP01: VALID: 200 x (1 - 32) - 6.4A max - rounds down
- // L6474 - STALLCURRENT setting is used to set the nominal (TVAL) current
- #define X_MAX_VOLTAGE 127 // 0-255, Maximum effective voltage seen by stepper - not used by L6474
- #define X_CHAIN_POS -1 // Position in SPI chain, 0=Not in chain, 1=Nearest MOSI
- #define X_SLEW_RATE 1 // 0-3, Slew 0 is slowest, 3 is fastest
- #endif
-
- #if AXIS_IS_L64XX(X2)
- #define X2_MICROSTEPS 128
- #define X2_OVERCURRENT 2000
- #define X2_STALLCURRENT 1500
- #define X2_MAX_VOLTAGE 127
- #define X2_CHAIN_POS -1
- #define X2_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Y)
- #define Y_MICROSTEPS 128
- #define Y_OVERCURRENT 2000
- #define Y_STALLCURRENT 1500
- #define Y_MAX_VOLTAGE 127
- #define Y_CHAIN_POS -1
- #define Y_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Y2)
- #define Y2_MICROSTEPS 128
- #define Y2_OVERCURRENT 2000
- #define Y2_STALLCURRENT 1500
- #define Y2_MAX_VOLTAGE 127
- #define Y2_CHAIN_POS -1
- #define Y2_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Z)
- #define Z_MICROSTEPS 128
- #define Z_OVERCURRENT 2000
- #define Z_STALLCURRENT 1500
- #define Z_MAX_VOLTAGE 127
- #define Z_CHAIN_POS -1
- #define Z_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Z2)
- #define Z2_MICROSTEPS 128
- #define Z2_OVERCURRENT 2000
- #define Z2_STALLCURRENT 1500
- #define Z2_MAX_VOLTAGE 127
- #define Z2_CHAIN_POS -1
- #define Z2_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Z3)
- #define Z3_MICROSTEPS 128
- #define Z3_OVERCURRENT 2000
- #define Z3_STALLCURRENT 1500
- #define Z3_MAX_VOLTAGE 127
- #define Z3_CHAIN_POS -1
- #define Z3_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(Z4)
- #define Z4_MICROSTEPS 128
- #define Z4_OVERCURRENT 2000
- #define Z4_STALLCURRENT 1500
- #define Z4_MAX_VOLTAGE 127
- #define Z4_CHAIN_POS -1
- #define Z4_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E0)
- #define E0_MICROSTEPS 128
- #define E0_OVERCURRENT 2000
- #define E0_STALLCURRENT 1500
- #define E0_MAX_VOLTAGE 127
- #define E0_CHAIN_POS -1
- #define E0_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E1)
- #define E1_MICROSTEPS 128
- #define E1_OVERCURRENT 2000
- #define E1_STALLCURRENT 1500
- #define E1_MAX_VOLTAGE 127
- #define E1_CHAIN_POS -1
- #define E1_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E2)
- #define E2_MICROSTEPS 128
- #define E2_OVERCURRENT 2000
- #define E2_STALLCURRENT 1500
- #define E2_MAX_VOLTAGE 127
- #define E2_CHAIN_POS -1
- #define E2_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E3)
- #define E3_MICROSTEPS 128
- #define E3_OVERCURRENT 2000
- #define E3_STALLCURRENT 1500
- #define E3_MAX_VOLTAGE 127
- #define E3_CHAIN_POS -1
- #define E3_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E4)
- #define E4_MICROSTEPS 128
- #define E4_OVERCURRENT 2000
- #define E4_STALLCURRENT 1500
- #define E4_MAX_VOLTAGE 127
- #define E4_CHAIN_POS -1
- #define E4_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E5)
- #define E5_MICROSTEPS 128
- #define E5_OVERCURRENT 2000
- #define E5_STALLCURRENT 1500
- #define E5_MAX_VOLTAGE 127
- #define E5_CHAIN_POS -1
- #define E5_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E6)
- #define E6_MICROSTEPS 128
- #define E6_OVERCURRENT 2000
- #define E6_STALLCURRENT 1500
- #define E6_MAX_VOLTAGE 127
- #define E6_CHAIN_POS -1
- #define E6_SLEW_RATE 1
- #endif
-
- #if AXIS_IS_L64XX(E7)
- #define E7_MICROSTEPS 128
- #define E7_OVERCURRENT 2000
- #define E7_STALLCURRENT 1500
- #define E7_MAX_VOLTAGE 127
- #define E7_CHAIN_POS -1
- #define E7_SLEW_RATE 1
- #endif
-
- /**
- * Monitor L6470 drivers for error conditions like over temperature and over current.
- * In the case of over temperature Marlin can decrease the drive until the error condition clears.
- * Other detected conditions can be used to stop the current print.
- * Relevant g-codes:
- * M906 - I1/2/3/4/5 Set or get motor drive level using axis codes X, Y, Z, E. Report values if no axis codes given.
- * I not present or I0 or I1 - X, Y, Z or E0
- * I2 - X2, Y2, Z2 or E1
- * I3 - Z3 or E3
- * I4 - Z4 or E4
- * I5 - E5
- * M916 - Increase drive level until get thermal warning
- * M917 - Find minimum current thresholds
- * M918 - Increase speed until max or error
- * M122 S0/1 - Report driver parameters
- */
- //#define MONITOR_L6470_DRIVER_STATUS
-
- #if ENABLED(MONITOR_L6470_DRIVER_STATUS)
- #define KVAL_HOLD_STEP_DOWN 1
- //#define L6470_STOP_ON_ERROR
- #endif
-
-#endif // HAS_L64XX
-
-// @section i2cbus
-
-//
-// I2C Master ID for LPC176x LCD and Digital Current control
-// Does not apply to other peripherals based on the Wire library.
-//
-//#define I2C_MASTER_ID 1 // Set a value from 0 to 2
-
-/**
- * TWI/I2C BUS
- *
- * This feature is an EXPERIMENTAL feature so it shall not be used on production
- * machines. Enabling this will allow you to send and receive I2C data from slave
- * devices on the bus.
- *
- * ; Example #1
- * ; This macro send the string "Marlin" to the slave device with address 0x63 (99)
- * ; It uses multiple M260 commands with one B arg
- * M260 A99 ; Target slave address
- * M260 B77 ; M
- * M260 B97 ; a
- * M260 B114 ; r
- * M260 B108 ; l
- * M260 B105 ; i
- * M260 B110 ; n
- * M260 S1 ; Send the current buffer
- *
- * ; Example #2
- * ; Request 6 bytes from slave device with address 0x63 (99)
- * M261 A99 B5
- *
- * ; Example #3
- * ; Example serial output of a M261 request
- * echo:i2c-reply: from:99 bytes:5 data:hello
- */
-
-//#define EXPERIMENTAL_I2CBUS
-#if ENABLED(EXPERIMENTAL_I2CBUS)
- #define I2C_SLAVE_ADDRESS 0 // Set a value from 8 to 127 to act as a slave
-#endif
-
-// @section extras
-
-/**
- * Photo G-code
- * Add the M240 G-code to take a photo.
- * The photo can be triggered by a digital pin or a physical movement.
- */
-//#define PHOTO_GCODE
-#if ENABLED(PHOTO_GCODE)
- // A position to move to (and raise Z) before taking the photo
- //#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise } (M240 X Y Z)
- //#define PHOTO_DELAY_MS 100 // (ms) Duration to pause before moving back (M240 P)
- //#define PHOTO_RETRACT_MM 6.5 // (mm) E retract/recover for the photo move (M240 R S)
-
- // Canon RC-1 or homebrew digital camera trigger
- // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
- //#define PHOTOGRAPH_PIN 23
-
- // Canon Hack Development Kit
- // http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
- //#define CHDK_PIN 4
-
- // Optional second move with delay to trigger the camera shutter
- //#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS } // { xpos, ypos } (M240 I J)
-
- // Duration to hold the switch or keep CHDK_PIN high
- //#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
-
- /**
- * PHOTO_PULSES_US may need adjustment depending on board and camera model.
- * Pin must be running at 48.4kHz.
- * Be sure to use a PHOTOGRAPH_PIN which can rise and fall quick enough.
- * (e.g., MKS SBase temp sensor pin was too slow, so used P1.23 on J8.)
- *
- * Example pulse data for Nikon: https://bit.ly/2FKD0Aq
- * IR Wiring: https://git.io/JvJf7
- */
- //#define PHOTO_PULSES_US { 2000, 27850, 400, 1580, 400, 3580, 400 } // (µs) Durations for each 48.4kHz oscillation
- #ifdef PHOTO_PULSES_US
- #define PHOTO_PULSE_DELAY_US 13 // (µs) Approximate duration of each HIGH and LOW pulse in the oscillation
- #endif
-#endif
-
-/**
- * Spindle & Laser control
- *
- * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and
- * to set spindle speed, spindle direction, and laser power.
- *
- * SuperPid is a router/spindle speed controller used in the CNC milling community.
- * Marlin can be used to turn the spindle on and off. It can also be used to set
- * the spindle speed from 5,000 to 30,000 RPM.
- *
- * You'll need to select a pin for the ON/OFF function and optionally choose a 0-5V
- * hardware PWM pin for the speed control and a pin for the rotation direction.
- *
- * See http://marlinfw.org/docs/configuration/laser_spindle.html for more config details.
- */
-//#define SPINDLE_FEATURE
-//#define LASER_FEATURE
-#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
- #define SPINDLE_LASER_ACTIVE_HIGH false // Set to "true" if the on/off function is active HIGH
- #define SPINDLE_LASER_PWM true // Set to "true" if your controller supports setting the speed/power
- #define SPINDLE_LASER_PWM_INVERT true // Set to "true" if the speed/power goes up when you want it to go slower
- #define SPINDLE_LASER_POWERUP_DELAY 5000 // (ms) Delay to allow the spindle/laser to come up to speed/power
- #define SPINDLE_LASER_POWERDOWN_DELAY 5000 // (ms) Delay to allow the spindle to stop
-
- #if ENABLED(SPINDLE_FEATURE)
- //#define SPINDLE_CHANGE_DIR // Enable if your spindle controller can change spindle direction
- #define SPINDLE_CHANGE_DIR_STOP // Enable if the spindle should stop before changing spin direction
- #define SPINDLE_INVERT_DIR false // Set to "true" if the spin direction is reversed
-
- /**
- * The M3 & M4 commands use the following equation to convert PWM duty cycle to speed/power
- *
- * SPEED/POWER = PWM duty cycle * SPEED_POWER_SLOPE + SPEED_POWER_INTERCEPT
- * where PWM duty cycle varies from 0 to 255
- *
- * set the following for your controller (ALL MUST BE SET)
- */
- #define SPEED_POWER_SLOPE 118.4
- #define SPEED_POWER_INTERCEPT 0
- #define SPEED_POWER_MIN 5000
- #define SPEED_POWER_MAX 30000 // SuperPID router controller 0 - 30,000 RPM
- #else
- #define SPEED_POWER_SLOPE 0.3922
- #define SPEED_POWER_INTERCEPT 0
- #define SPEED_POWER_MIN 10
- #define SPEED_POWER_MAX 100 // 0-100%
- #endif
-#endif
-
-/**
- * Coolant Control
- *
- * Add the M7, M8, and M9 commands to turn mist or flood coolant on and off.
- *
- * Note: COOLANT_MIST_PIN and/or COOLANT_FLOOD_PIN must also be defined.
- */
-//#define COOLANT_CONTROL
-#if ENABLED(COOLANT_CONTROL)
- #define COOLANT_MIST // Enable if mist coolant is present
- #define COOLANT_FLOOD // Enable if flood coolant is present
- #define COOLANT_MIST_INVERT false // Set "true" if the on/off function is reversed
- #define COOLANT_FLOOD_INVERT false // Set "true" if the on/off function is reversed
-#endif
-
-/**
- * Filament Width Sensor
- *
- * Measures the filament width in real-time and adjusts
- * flow rate to compensate for any irregularities.
- *
- * Also allows the measured filament diameter to set the
- * extrusion rate, so the slicer only has to specify the
- * volume.
- *
- * Only a single extruder is supported at this time.
- *
- * 34 RAMPS_14 : Analog input 5 on the AUX2 connector
- * 81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
- * 301 RAMBO : Analog input 3
- *
- * Note: May require analog pins to be defined for other boards.
- */
-//#define FILAMENT_WIDTH_SENSOR
-
-#if ENABLED(FILAMENT_WIDTH_SENSOR)
- #define FILAMENT_SENSOR_EXTRUDER_NUM 0 // Index of the extruder that has the filament sensor. :[0,1,2,3,4]
- #define MEASUREMENT_DELAY_CM 14 // (cm) The distance from the filament sensor to the melting chamber
-
- #define FILWIDTH_ERROR_MARGIN 1.0 // (mm) If a measurement differs too much from nominal width ignore it
- #define MAX_MEASUREMENT_DELAY 20 // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
-
- #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
-
- // Display filament width on the LCD status line. Status messages will expire after 5 seconds.
- //#define FILAMENT_LCD_DISPLAY
-#endif
-
-/**
- * CNC Coordinate Systems
- *
- * Enables G53 and G54-G59.3 commands to select coordinate systems
- * and G92.1 to reset the workspace to native machine space.
- */
-//#define CNC_COORDINATE_SYSTEMS
-
-/**
- * Auto-report temperatures with M155 S
- */
-#define AUTO_REPORT_TEMPERATURES
-
-/**
- * Include capabilities in M115 output
- */
-#define EXTENDED_CAPABILITIES_REPORT
-
-/**
- * Expected Printer Check
- * Add the M16 G-code to compare a string to the MACHINE_NAME.
- * M16 with a non-matching string causes the printer to halt.
- */
-//#define EXPECTED_PRINTER_CHECK
-
-/**
- * Disable all Volumetric extrusion options
- */
-//#define NO_VOLUMETRICS
-
-#if DISABLED(NO_VOLUMETRICS)
- /**
- * Volumetric extrusion default state
- * Activate to make volumetric extrusion the default method,
- * with DEFAULT_NOMINAL_FILAMENT_DIA as the default diameter.
- *
- * M200 D0 to disable, M200 Dn to set a new diameter.
- */
- //#define VOLUMETRIC_DEFAULT_ON
-#endif
-
-/**
- * Enable this option for a leaner build of Marlin that removes all
- * workspace offsets, simplifying coordinate transformations, leveling, etc.
- *
- * - M206 and M428 are disabled.
- * - G92 will revert to its behavior from Marlin 1.0.
- */
-//#define NO_WORKSPACE_OFFSETS
-
-/**
- * Set the number of proportional font spaces required to fill up a typical character space.
- * This can help to better align the output of commands like `G29 O` Mesh Output.
- *
- * For clients that use a fixed-width font (like OctoPrint), leave this set to 1.0.
- * Otherwise, adjust according to your client and font.
- */
-#define PROPORTIONAL_FONT_RATIO 1.0
-
-/**
- * Spend 28 bytes of SRAM to optimize the GCode parser
- */
-#define FASTER_GCODE_PARSER
-
-#if ENABLED(FASTER_GCODE_PARSER)
- //#define GCODE_QUOTED_STRINGS // Support for quoted string parameters
-#endif
-
-//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase
-
-/**
- * CNC G-code options
- * Support CNC-style G-code dialects used by laser cutters, drawing machine cams, etc.
- * Note that G0 feedrates should be used with care for 3D printing (if used at all).
- * High feedrates may cause ringing and harm print quality.
- */
-//#define PAREN_COMMENTS // Support for parentheses-delimited comments
-//#define GCODE_MOTION_MODES // Remember the motion mode (G0 G1 G2 G3 G5 G38.X) and apply for X Y Z E F, etc.
-
-// Enable and set a (default) feedrate for all G0 moves
-//#define G0_FEEDRATE 3000 // (mm/m)
-#ifdef G0_FEEDRATE
- //#define VARIABLE_G0_FEEDRATE // The G0 feedrate is set by F in G0 motion mode
-#endif
-
-/**
- * Startup commands
- *
- * Execute certain G-code commands immediately after power-on.
- */
-//#define STARTUP_COMMANDS "M17 Z"
-
-/**
- * G-code Macros
- *
- * Add G-codes M810-M819 to define and run G-code macros.
- * Macros are not saved to EEPROM.
- */
-//#define GCODE_MACROS
-#if ENABLED(GCODE_MACROS)
- #define GCODE_MACROS_SLOTS 5 // Up to 10 may be used
- #define GCODE_MACROS_SLOT_SIZE 50 // Maximum length of a single macro
-#endif
-
-/**
- * User-defined menu items that execute custom GCode
- */
-//#define CUSTOM_USER_MENUS
-#if ENABLED(CUSTOM_USER_MENUS)
- //#define CUSTOM_USER_MENU_TITLE "Custom Commands"
- #define USER_SCRIPT_DONE "M117 User Script Done"
- #define USER_SCRIPT_AUDIBLE_FEEDBACK
- //#define USER_SCRIPT_RETURN // Return to status screen after a script
-
- #define USER_DESC_1 "Home & UBL Info"
- #define USER_GCODE_1 "G28\nG29 W"
-
- #define USER_DESC_2 "Preheat for " PREHEAT_1_LABEL
- #define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
-
- #define USER_DESC_3 "Preheat for " PREHEAT_2_LABEL
- #define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
-
- #define USER_DESC_4 "Heat Bed/Home/Level"
- #define USER_GCODE_4 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"
-
- #define USER_DESC_5 "Home & Info"
- #define USER_GCODE_5 "G28\nM503"
-#endif
-
-/**
- * Host Action Commands
- *
- * Define host streamer action commands in compliance with the standard.
- *
- * See https://reprap.org/wiki/G-code#Action_commands
- * Common commands ........ poweroff, pause, paused, resume, resumed, cancel
- * G29_RETRY_AND_RECOVER .. probe_rewipe, probe_failed
- *
- * Some features add reason codes to extend these commands.
- *
- * Host Prompt Support enables Marlin to use the host for user prompts so
- * filament runout and other processes can be managed from the host side.
- */
-//#define HOST_ACTION_COMMANDS
-#if ENABLED(HOST_ACTION_COMMANDS)
- //#define HOST_PROMPT_SUPPORT
-#endif
-
-/**
- * Cancel Objects
- *
- * Implement M486 to allow Marlin to skip objects
- */
-//#define CANCEL_OBJECTS
-
-/**
- * I2C position encoders for closed loop control.
- * Developed by Chris Barr at Aus3D.
- *
- * Wiki: http://wiki.aus3d.com.au/Magnetic_Encoder
- * Github: https://github.com/Aus3D/MagneticEncoder
- *
- * Supplier: http://aus3d.com.au/magnetic-encoder-module
- * Alternative Supplier: http://reliabuild3d.com/
- *
- * Reliabuild encoders have been modified to improve reliability.
- */
-
-//#define I2C_POSITION_ENCODERS
-#if ENABLED(I2C_POSITION_ENCODERS)
-
- #define I2CPE_ENCODER_CNT 1 // The number of encoders installed; max of 5
- // encoders supported currently.
-
- #define I2CPE_ENC_1_ADDR I2CPE_PRESET_ADDR_X // I2C address of the encoder. 30-200.
- #define I2CPE_ENC_1_AXIS X_AXIS // Axis the encoder module is installed on. _AXIS.
- #define I2CPE_ENC_1_TYPE I2CPE_ENC_TYPE_LINEAR // Type of encoder: I2CPE_ENC_TYPE_LINEAR -or-
- // I2CPE_ENC_TYPE_ROTARY.
- #define I2CPE_ENC_1_TICKS_UNIT 2048 // 1024 for magnetic strips with 2mm poles; 2048 for
- // 1mm poles. For linear encoders this is ticks / mm,
- // for rotary encoders this is ticks / revolution.
- //#define I2CPE_ENC_1_TICKS_REV (16 * 200) // Only needed for rotary encoders; number of stepper
- // steps per full revolution (motor steps/rev * microstepping)
- //#define I2CPE_ENC_1_INVERT // Invert the direction of axis travel.
- #define I2CPE_ENC_1_EC_METHOD I2CPE_ECM_MICROSTEP // Type of error error correction.
- #define I2CPE_ENC_1_EC_THRESH 0.10 // Threshold size for error (in mm) above which the
- // printer will attempt to correct the error; errors
- // smaller than this are ignored to minimize effects of
- // measurement noise / latency (filter).
-
- #define I2CPE_ENC_2_ADDR I2CPE_PRESET_ADDR_Y // Same as above, but for encoder 2.
- #define I2CPE_ENC_2_AXIS Y_AXIS
- #define I2CPE_ENC_2_TYPE I2CPE_ENC_TYPE_LINEAR
- #define I2CPE_ENC_2_TICKS_UNIT 2048
- //#define I2CPE_ENC_2_TICKS_REV (16 * 200)
- //#define I2CPE_ENC_2_INVERT
- #define I2CPE_ENC_2_EC_METHOD I2CPE_ECM_MICROSTEP
- #define I2CPE_ENC_2_EC_THRESH 0.10
-
- #define I2CPE_ENC_3_ADDR I2CPE_PRESET_ADDR_Z // Encoder 3. Add additional configuration options
- #define I2CPE_ENC_3_AXIS Z_AXIS // as above, or use defaults below.
-
- #define I2CPE_ENC_4_ADDR I2CPE_PRESET_ADDR_E // Encoder 4.
- #define I2CPE_ENC_4_AXIS E_AXIS
-
- #define I2CPE_ENC_5_ADDR 34 // Encoder 5.
- #define I2CPE_ENC_5_AXIS E_AXIS
-
- // Default settings for encoders which are enabled, but without settings configured above.
- #define I2CPE_DEF_TYPE I2CPE_ENC_TYPE_LINEAR
- #define I2CPE_DEF_ENC_TICKS_UNIT 2048
- #define I2CPE_DEF_TICKS_REV (16 * 200)
- #define I2CPE_DEF_EC_METHOD I2CPE_ECM_NONE
- #define I2CPE_DEF_EC_THRESH 0.1
-
- //#define I2CPE_ERR_THRESH_ABORT 100.0 // Threshold size for error (in mm) error on any given
- // axis after which the printer will abort. Comment out to
- // disable abort behavior.
-
- #define I2CPE_TIME_TRUSTED 10000 // After an encoder fault, there must be no further fault
- // for this amount of time (in ms) before the encoder
- // is trusted again.
-
- /**
- * Position is checked every time a new command is executed from the buffer but during long moves,
- * this setting determines the minimum update time between checks. A value of 100 works well with
- * error rolling average when attempting to correct only for skips and not for vibration.
- */
- #define I2CPE_MIN_UPD_TIME_MS 4 // (ms) Minimum time between encoder checks.
-
- // Use a rolling average to identify persistant errors that indicate skips, as opposed to vibration and noise.
- #define I2CPE_ERR_ROLLING_AVERAGE
-
-#endif // I2C_POSITION_ENCODERS
-
-/**
- * Analog Joystick(s)
- */
-//#define JOYSTICK
-#if ENABLED(JOYSTICK)
- #define JOY_X_PIN 5 // RAMPS: Suggested pin A5 on AUX2
- #define JOY_Y_PIN 10 // RAMPS: Suggested pin A10 on AUX2
- #define JOY_Z_PIN 12 // RAMPS: Suggested pin A12 on AUX2
- #define JOY_EN_PIN 44 // RAMPS: Suggested pin D44 on AUX2
-
- //#define INVERT_JOY_X // Enable if X direction is reversed
- //#define INVERT_JOY_Y // Enable if Y direction is reversed
- //#define INVERT_JOY_Z // Enable if Z direction is reversed
-
- // Use M119 with JOYSTICK_DEBUG to find reasonable values after connecting:
- #define JOY_X_LIMITS { 5600, 8190-100, 8190+100, 10800 } // min, deadzone start, deadzone end, max
- #define JOY_Y_LIMITS { 5600, 8250-100, 8250+100, 11000 }
- #define JOY_Z_LIMITS { 4800, 8080-100, 8080+100, 11550 }
-#endif
-
-/**
- * MAX7219 Debug Matrix
- *
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
- * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
- */
-//#define MAX7219_DEBUG
-#if ENABLED(MAX7219_DEBUG)
- #define MAX7219_CLK_PIN 64
- #define MAX7219_DIN_PIN 57
- #define MAX7219_LOAD_PIN 44
-
- //#define MAX7219_GCODE // Add the M7219 G-code to control the LED matrix
- #define MAX7219_INIT_TEST 2 // Test pattern at startup: 0=none, 1=sweep, 2=spiral
- #define MAX7219_NUMBER_UNITS 1 // Number of Max7219 units in chain.
- #define MAX7219_ROTATE 0 // Rotate the display clockwise (in multiples of +/- 90°)
- // connector at: right=0 bottom=-90 top=90 left=180
- //#define MAX7219_REVERSE_ORDER // The individual LED matrix units may be in reversed order
- //#define MAX7219_SIDE_BY_SIDE // Big chip+matrix boards can be chained side-by-side
-
- /**
- * Sample debug features
- * If you add more debug displays, be careful to avoid conflicts!
- */
- #define MAX7219_DEBUG_PRINTER_ALIVE // Blink corner LED of 8x8 matrix to show that the firmware is functioning
- #define MAX7219_DEBUG_PLANNER_HEAD 3 // Show the planner queue head position on this and the next LED matrix row
- #define MAX7219_DEBUG_PLANNER_TAIL 5 // Show the planner queue tail position on this and the next LED matrix row
-
- #define MAX7219_DEBUG_PLANNER_QUEUE 0 // Show the current planner queue depth on this and the next LED matrix row
- // If you experience stuttering, reboots, etc. this option can reveal how
- // tweaks made to the configuration are affecting the printer in real-time.
-#endif
-
-/**
- * NanoDLP Sync support
- *
- * Add support for Synchronized Z moves when using with NanoDLP. G0/G1 axis moves will output "Z_move_comp"
- * string to enable synchronization with DLP projector exposure. This change will allow to use
- * [[WaitForDoneMessage]] instead of populating your gcode with M400 commands
- */
-//#define NANODLP_Z_SYNC
-#if ENABLED(NANODLP_Z_SYNC)
- //#define NANODLP_ALL_AXIS // Enables "Z_move_comp" output on any axis move.
- // Default behavior is limited to Z axis only.
-#endif
-
-/**
- * WiFi Support (Espressif ESP32 WiFi)
- */
-//#define WIFISUPPORT // Marlin embedded WiFi managenent
-//#define ESP3D_WIFISUPPORT // ESP3D Library WiFi management (https://github.com/luc-github/ESP3DLib)
-
-#if EITHER(WIFISUPPORT, ESP3D_WIFISUPPORT)
- //#define WEBSUPPORT // Start a webserver (which may include auto-discovery)
- //#define OTASUPPORT // Support over-the-air firmware updates
- //#define WIFI_CUSTOM_COMMAND // Accept feature config commands (e.g., WiFi ESP3D) from the host
-
- /**
- * To set a default WiFi SSID / Password, create a file called Configuration_Secure.h with
- * the following defines, customized for your network. This specific file is excluded via
- * .gitignore to prevent it from accidentally leaking to the public.
- *
- * #define WIFI_SSID "WiFi SSID"
- * #define WIFI_PWD "WiFi Password"
- */
- //#include "Configuration_Secure.h" // External file with WiFi SSID / Password
-#endif
-
-/**
- * Prusa Multi-Material Unit v2
- * Enable in Configuration.h
- */
-#if ENABLED(PRUSA_MMU2)
-
- // Serial port used for communication with MMU2.
- // For AVR enable the UART port used for the MMU. (e.g., internalSerial)
- // For 32-bit boards check your HAL for available serial ports. (e.g., Serial2)
- #define INTERNAL_SERIAL_PORT 2
- #define MMU2_SERIAL internalSerial
-
- // Use hardware reset for MMU if a pin is defined for it
- //#define MMU2_RST_PIN 23
-
- // Enable if the MMU2 has 12V stepper motors (MMU2 Firmware 1.0.2 and up)
- //#define MMU2_MODE_12V
-
- // G-code to execute when MMU2 F.I.N.D.A. probe detects filament runout
- #define MMU2_FILAMENT_RUNOUT_SCRIPT "M600"
-
- // Add an LCD menu for MMU2
- //#define MMU2_MENUS
- #if ENABLED(MMU2_MENUS)
- // Settings for filament load / unload from the LCD menu.
- // This is for Prusa MK3-style extruders. Customize for your hardware.
- #define MMU2_FILAMENTCHANGE_EJECT_FEED 80.0
- #define MMU2_LOAD_TO_NOZZLE_SEQUENCE \
- { 7.2, 562 }, \
- { 14.4, 871 }, \
- { 36.0, 1393 }, \
- { 14.4, 871 }, \
- { 50.0, 198 }
-
- #define MMU2_RAMMING_SEQUENCE \
- { 1.0, 1000 }, \
- { 1.0, 1500 }, \
- { 2.0, 2000 }, \
- { 1.5, 3000 }, \
- { 2.5, 4000 }, \
- { -15.0, 5000 }, \
- { -14.0, 1200 }, \
- { -6.0, 600 }, \
- { 10.0, 700 }, \
- { -10.0, 400 }, \
- { -50.0, 2000 }
-
- #endif
-
- //#define MMU2_DEBUG // Write debug info to serial output
-
-#endif // PRUSA_MMU2
-
-/**
- * Advanced Print Counter settings
- */
-#if ENABLED(PRINTCOUNTER)
- #define SERVICE_WARNING_BUZZES 3
- // Activate up to 3 service interval watchdogs
- //#define SERVICE_NAME_1 "Service S"
- //#define SERVICE_INTERVAL_1 100 // print hours
- //#define SERVICE_NAME_2 "Service L"
- //#define SERVICE_INTERVAL_2 200 // print hours
- //#define SERVICE_NAME_3 "Service 3"
- //#define SERVICE_INTERVAL_3 1 // print hours
-#endif
-
-// @section develop
-
-//
-// M100 Free Memory Watcher to debug memory usage
-//
-//#define M100_FREE_MEMORY_WATCHER
-
-//
-// M43 - display pin status, toggle pins, watch pins, watch endstops & toggle LED, test servo probe
-//
-//#define PINS_DEBUGGING
-
-// Enable Marlin dev mode which adds some special commands
-//#define MARLIN_DEV_MODE
diff --git a/Marlin/Version.h b/Marlin/Version.h
index c7b38fe428..41ba446bf7 100644
--- a/Marlin/Version.h
+++ b/Marlin/Version.h
@@ -28,7 +28,7 @@
/**
* Marlin release version identifier
*/
-#define SHORT_BUILD_VERSION "TM3D_X1_07"
+#define SHORT_BUILD_VERSION "TM3D_X1_08"
/**
* Verbose version identifier which should contain a reference to the location
@@ -41,7 +41,7 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
-#define STRING_DISTRIBUTION_DATE "2020-03-15"
+#define STRING_DISTRIBUTION_DATE "2020-03-28"
/**
* Defines a generic printer name to be output to the LCD after booting Marlin.
diff --git a/Marlin/src/HAL/DUE/HAL.h b/Marlin/src/HAL/DUE/HAL.h
index 97b94b5db2..90b6fabc05 100644
--- a/Marlin/src/HAL/DUE/HAL.h
+++ b/Marlin/src/HAL/DUE/HAL.h
@@ -94,7 +94,6 @@
#endif
#endif
-
#include "MarlinSerial.h"
#include "MarlinSerialUSB.h"
diff --git a/Marlin/src/HAL/DUE/MarlinSerial.cpp b/Marlin/src/HAL/DUE/MarlinSerial.cpp
index d827def422..d114c75989 100644
--- a/Marlin/src/HAL/DUE/MarlinSerial.cpp
+++ b/Marlin/src/HAL/DUE/MarlinSerial.cpp
@@ -629,23 +629,13 @@ void MarlinSerial::printFloat(double number, uint8_t digits) {
// If not using the USB port as serial port
#if SERIAL_PORT >= 0
-
- // Preinstantiate
- template class MarlinSerial>;
-
- // Instantiate
- MarlinSerial> customizedSerial1;
-
+ template class MarlinSerial>; // Define
+ MarlinSerial> customizedSerial1; // Instantiate
#endif
-#ifdef SERIAL_PORT_2
-
- // Preinstantiate
- template class MarlinSerial>;
-
- // Instantiate
- MarlinSerial> customizedSerial2;
-
+#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
+ template class MarlinSerial>; // Define
+ MarlinSerial> customizedSerial2; // Instantiate
#endif
#endif // ARDUINO_ARCH_SAM
diff --git a/Marlin/src/HAL/DUE/MarlinSerial.h b/Marlin/src/HAL/DUE/MarlinSerial.h
index eb26a5644d..fa6a2c7d15 100644
--- a/Marlin/src/HAL/DUE/MarlinSerial.h
+++ b/Marlin/src/HAL/DUE/MarlinSerial.h
@@ -172,13 +172,9 @@ struct MarlinSerialCfg {
};
#if SERIAL_PORT >= 0
-
extern MarlinSerial> customizedSerial1;
-
-#endif // SERIAL_PORT >= 0
-
-#ifdef SERIAL_PORT_2
-
- extern MarlinSerial> customizedSerial2;
-
+#endif
+
+#if defined(SERIAL_PORT_2) && SERIAL_PORT_2 >= 0
+ extern MarlinSerial> customizedSerial2;
#endif
diff --git a/Marlin/src/HAL/DUE/MarlinSerialUSB.cpp b/Marlin/src/HAL/DUE/MarlinSerialUSB.cpp
index 41ffb52ba1..7a020bbaf0 100644
--- a/Marlin/src/HAL/DUE/MarlinSerialUSB.cpp
+++ b/Marlin/src/HAL/DUE/MarlinSerialUSB.cpp
@@ -29,7 +29,7 @@
#include "../../inc/MarlinConfig.h"
-#if SERIAL_PORT == -1
+#if HAS_USB_SERIAL
#include "MarlinSerialUSB.h"
@@ -283,8 +283,12 @@ void MarlinSerialUSB::printFloat(double number, uint8_t digits) {
}
// Preinstantiate
-MarlinSerialUSB customizedSerial1;
-
-#endif // SERIAL_PORT == -1
+#if SERIAL_PORT == -1
+ MarlinSerialUSB customizedSerial1;
+#endif
+#if SERIAL_PORT_2 == -1
+ MarlinSerialUSB customizedSerial2;
+#endif
+#endif // HAS_USB_SERIAL
#endif // ARDUINO_ARCH_SAM
diff --git a/Marlin/src/HAL/DUE/MarlinSerialUSB.h b/Marlin/src/HAL/DUE/MarlinSerialUSB.h
index d8b051d37e..9aece901b1 100644
--- a/Marlin/src/HAL/DUE/MarlinSerialUSB.h
+++ b/Marlin/src/HAL/DUE/MarlinSerialUSB.h
@@ -28,7 +28,7 @@
#include "../../inc/MarlinConfig.h"
-#if SERIAL_PORT == -1
+#if HAS_USB_SERIAL
#include
@@ -88,6 +88,12 @@ private:
static void printFloat(double, uint8_t);
};
-extern MarlinSerialUSB customizedSerial1;
+#if SERIAL_PORT == -1
+ extern MarlinSerialUSB customizedSerial1;
+#endif
-#endif // SERIAL_PORT == -1
+#if SERIAL_PORT_2 == -1
+ extern MarlinSerialUSB customizedSerial2;
+#endif
+
+#endif // HAS_USB_SERIAL
diff --git a/Marlin/src/HAL/DUE/inc/Conditionals_post.h b/Marlin/src/HAL/DUE/inc/Conditionals_post.h
index 223890d790..b52462f6d8 100644
--- a/Marlin/src/HAL/DUE/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/DUE/inc/Conditionals_post.h
@@ -24,5 +24,5 @@
#if USE_EMULATED_EEPROM
#undef SRAM_EEPROM_EMULATION
#undef SDCARD_EEPROM_EMULATION
- #define FLASH_EEPROM_EMULATION 1
+ #define FLASH_EEPROM_EMULATION
#endif
diff --git a/Marlin/src/HAL/ESP32/inc/Conditionals_post.h b/Marlin/src/HAL/ESP32/inc/Conditionals_post.h
index 0285c52ee3..e51b55698e 100644
--- a/Marlin/src/HAL/ESP32/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/ESP32/inc/Conditionals_post.h
@@ -20,3 +20,8 @@
*
*/
#pragma once
+
+// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
+#if ENABLED(EEPROM_SETTINGS) && NONE(USE_REAL_EEPROM, FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
+ #define SDCARD_EEPROM_EMULATION
+#endif
diff --git a/Marlin/src/HAL/LPC1768/HAL.cpp b/Marlin/src/HAL/LPC1768/HAL.cpp
index f0559d268a..f206ce7adb 100644
--- a/Marlin/src/HAL/LPC1768/HAL.cpp
+++ b/Marlin/src/HAL/LPC1768/HAL.cpp
@@ -67,9 +67,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval) {
return ind > -1 ? ind : dval;
}
-void flashFirmware(int16_t value) {
- NVIC_SystemReset();
-}
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
void HAL_clear_reset_source(void) {
#if ENABLED(USE_WATCHDOG)
diff --git a/Marlin/src/HAL/LPC1768/HAL.h b/Marlin/src/HAL/LPC1768/HAL.h
index c727877ff3..f5ea629f16 100644
--- a/Marlin/src/HAL/LPC1768/HAL.h
+++ b/Marlin/src/HAL/LPC1768/HAL.h
@@ -195,7 +195,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval);
void HAL_idletask();
#define PLATFORM_M997_SUPPORT
-void flashFirmware(int16_t value);
+void flashFirmware(const int16_t);
/**
* set_pwm_frequency
diff --git a/Marlin/src/HAL/LPC1768/inc/Conditionals_post.h b/Marlin/src/HAL/LPC1768/inc/Conditionals_post.h
index 2637174543..a8d102e865 100644
--- a/Marlin/src/HAL/LPC1768/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/LPC1768/inc/Conditionals_post.h
@@ -21,10 +21,6 @@
*/
#pragma once
-#if ENABLED(EEPROM_SETTINGS)
- #undef USE_REAL_EEPROM
- #define USE_EMULATED_EEPROM 1
- #if DISABLED(FLASH_EEPROM_EMULATION)
- #define SDCARD_EEPROM_EMULATION 1
- #endif
+#if USE_EMULATED_EEPROM && NONE(SDCARD_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
+ #define FLASH_EEPROM_EMULATION
#endif
diff --git a/Marlin/src/HAL/LPC1768/persistent_store_flash.cpp b/Marlin/src/HAL/LPC1768/persistent_store_flash.cpp
index 5525f818a0..e166858d64 100644
--- a/Marlin/src/HAL/LPC1768/persistent_store_flash.cpp
+++ b/Marlin/src/HAL/LPC1768/persistent_store_flash.cpp
@@ -36,12 +36,11 @@
* 16Kb I/O buffers (intended to hold DMA USB and Ethernet data, but currently
* unused).
*/
-#include "../../inc/MarlinConfigPre.h"
+#include "../../inc/MarlinConfig.h"
#if ENABLED(FLASH_EEPROM_EMULATION)
#include "persistent_store_api.h"
-#include "../../inc/MarlinConfig.h"
extern "C" {
#include
diff --git a/Marlin/src/HAL/SAMD51/inc/Conditionals_post.h b/Marlin/src/HAL/SAMD51/inc/Conditionals_post.h
index 223890d790..b52462f6d8 100644
--- a/Marlin/src/HAL/SAMD51/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/SAMD51/inc/Conditionals_post.h
@@ -24,5 +24,5 @@
#if USE_EMULATED_EEPROM
#undef SRAM_EEPROM_EMULATION
#undef SDCARD_EEPROM_EMULATION
- #define FLASH_EEPROM_EMULATION 1
+ #define FLASH_EEPROM_EMULATION
#endif
diff --git a/Marlin/src/HAL/STM32/HAL.cpp b/Marlin/src/HAL/STM32/HAL.cpp
index 5d8c686af3..77f8d27640 100644
--- a/Marlin/src/HAL/STM32/HAL.cpp
+++ b/Marlin/src/HAL/STM32/HAL.cpp
@@ -133,6 +133,6 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) { HAL_adc_result = analogRe
uint16_t HAL_adc_get_result() { return HAL_adc_result; }
-void flashFirmware(int16_t) { NVIC_SystemReset(); }
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
#endif // ARDUINO_ARCH_STM32 && !STM32GENERIC
diff --git a/Marlin/src/HAL/STM32/HAL.h b/Marlin/src/HAL/STM32/HAL.h
index 9fb40d6121..c310cca74e 100644
--- a/Marlin/src/HAL/STM32/HAL.h
+++ b/Marlin/src/HAL/STM32/HAL.h
@@ -223,4 +223,4 @@ uint16_t HAL_adc_get_result();
#define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
#define PLATFORM_M997_SUPPORT
-void flashFirmware(int16_t value);
+void flashFirmware(const int16_t);
diff --git a/Marlin/src/HAL/STM32/inc/Conditionals_post.h b/Marlin/src/HAL/STM32/inc/Conditionals_post.h
index 0285c52ee3..e51b55698e 100644
--- a/Marlin/src/HAL/STM32/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/STM32/inc/Conditionals_post.h
@@ -20,3 +20,8 @@
*
*/
#pragma once
+
+// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
+#if ENABLED(EEPROM_SETTINGS) && NONE(USE_REAL_EEPROM, FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
+ #define SDCARD_EEPROM_EMULATION
+#endif
diff --git a/Marlin/src/HAL/STM32F1/HAL.cpp b/Marlin/src/HAL/STM32F1/HAL.cpp
index bc5479b60c..01fd2c8fc3 100644
--- a/Marlin/src/HAL/STM32F1/HAL.cpp
+++ b/Marlin/src/HAL/STM32F1/HAL.cpp
@@ -388,6 +388,6 @@ void analogWrite(pin_t pin, int pwm_val8) {
analogWrite(uint8_t(pin), pwm_val8);
}
-void flashFirmware(int16_t value) { nvic_sys_reset(); }
+void flashFirmware(const int16_t) { nvic_sys_reset(); }
#endif // __STM32F1__
diff --git a/Marlin/src/HAL/STM32F1/HAL.h b/Marlin/src/HAL/STM32F1/HAL.h
index c97abf4bb1..ff42beb92a 100644
--- a/Marlin/src/HAL/STM32F1/HAL.h
+++ b/Marlin/src/HAL/STM32F1/HAL.h
@@ -160,6 +160,7 @@ void HAL_idletask();
#ifndef digitalPinHasPWM
#define digitalPinHasPWM(P) (PIN_MAP[P].timer_device != nullptr)
+ #define NO_COMPILE_TIME_PWM
#endif
#define CRITICAL_SECTION_START() uint32_t primask = __get_primask(); (void)__iCliRetVal()
@@ -287,4 +288,4 @@ void analogWrite(pin_t pin, int pwm_val8); // PWM only! mul by 257 in maple!?
#define JTAGSWD_DISABLE() afio_cfg_debug_ports(AFIO_DEBUG_NONE)
#define PLATFORM_M997_SUPPORT
-void flashFirmware(int16_t value);
+void flashFirmware(const int16_t);
diff --git a/Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h b/Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h
index 6e2cf62101..5a190342ac 100644
--- a/Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/STM32_F4_F7/inc/Conditionals_post.h
@@ -23,8 +23,7 @@
#if ENABLED(EEPROM_SETTINGS) && defined(STM32F7)
#undef USE_REAL_EEPROM
- #define USE_EMULATED_EEPROM 1
#undef SRAM_EEPROM_EMULATION
#undef SDCARD_EEPROM_EMULATION
- #define FLASH_EEPROM_EMULATION 1
+ #define FLASH_EEPROM_EMULATION
#endif
diff --git a/Marlin/src/HAL/TEENSY31_32/inc/Conditionals_post.h b/Marlin/src/HAL/TEENSY31_32/inc/Conditionals_post.h
index 0285c52ee3..e51b55698e 100644
--- a/Marlin/src/HAL/TEENSY31_32/inc/Conditionals_post.h
+++ b/Marlin/src/HAL/TEENSY31_32/inc/Conditionals_post.h
@@ -20,3 +20,8 @@
*
*/
#pragma once
+
+// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
+#if ENABLED(EEPROM_SETTINGS) && NONE(USE_REAL_EEPROM, FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
+ #define SDCARD_EEPROM_EMULATION
+#endif
diff --git a/Marlin/src/MarlinCore.cpp b/Marlin/src/MarlinCore.cpp
index f19aaef968..5d0696c3f3 100644
--- a/Marlin/src/MarlinCore.cpp
+++ b/Marlin/src/MarlinCore.cpp
@@ -202,7 +202,7 @@ const char NUL_STR[] PROGMEM = "",
SP_Z_LBL[] PROGMEM = " Z:",
SP_E_LBL[] PROGMEM = " E:";
-bool Running = true;
+MarlinState marlin_state = MF_INITIALIZING;
// For M109 and M190, this flag may be cleared (by M108) to exit the wait loop
bool wait_for_heatup = true;
@@ -436,12 +436,16 @@ void startOrResumeJob() {
#endif
break;
- case 4: // Display "Click to Continue..."
- #if HAS_RESUME_CONTINUE // 30 min timeout with LCD, 1 min without
- did_state = queue.enqueue_one_P(
+ case 4:
+ did_state = // Display "Click to Continue..."
+ #if HAS_RESUME_CONTINUE && HAS_LEDS_OFF_FLAG // 30 min timeout with LCD, 1 min without
+ queue.enqueue_one_P(
print_job_timer.duration() < 60 ? PSTR("M0Q1P1") : PSTR("M0Q1S" TERN(HAS_LCD_MENU, "1800", "60"))
- );
+ )
+ #else
+ true
#endif
+ ;
break;
case 5:
@@ -567,7 +571,7 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {
#endif
#if ENABLED(USE_CONTROLLER_FAN)
- controllerfan_update(); // Check if fan should be turned on to cool stepper drivers down
+ controllerFan.update(); // Check if fan should be turned on to cool stepper drivers down
#endif
#if ENABLED(AUTO_POWER_CONTROL)
@@ -839,7 +843,7 @@ void stop() {
SERIAL_ERROR_MSG(STR_ERR_STOPPED);
LCD_MESSAGEPGM(MSG_STOPPED);
safe_delay(350); // allow enough time for messages to get out before stopping
- Running = false;
+ marlin_state = MF_STOPPED;
}
}
@@ -984,6 +988,10 @@ void setup() {
SETUP_RUN(leds.setup());
#endif
+ #if ENABLED(USE_CONTROLLER_FAN) // Set up fan controller to initialize also the default configurations.
+ SETUP_RUN(controllerFan.setup());
+ #endif
+
SETUP_RUN(ui.init());
SETUP_RUN(ui.reset_status()); // Load welcome message early. (Retained if no errors exist.)
@@ -991,8 +999,8 @@ void setup() {
SETUP_RUN(ui.show_bootscreen());
#endif
- #if ENABLED(SDSUPPORT)
- SETUP_RUN(card.mount()); // Mount the SD card before settings.first_load
+ #if ENABLED(SDSUPPORT) && defined(SDCARD_CONNECTION) && !SD_CONNECTION_IS(LCD)
+ SETUP_RUN(card.mount()); // Mount onboard / custom SD card before settings.first_load
#endif
SETUP_RUN(settings.first_load()); // Load data from EEPROM if available (or use defaults)
@@ -1047,10 +1055,6 @@ void setup() {
SETUP_RUN(endstops.enable_z_probe(false));
#endif
- #if ENABLED(USE_CONTROLLER_FAN)
- SET_OUTPUT(CONTROLLER_FAN_PIN);
- #endif
-
#if HAS_STEPPER_RESET
SETUP_RUN(enableStepperDrivers());
#endif
@@ -1183,6 +1187,8 @@ void setup() {
SETUP_RUN(max7219.init());
#endif
+ marlin_state = MF_RUNNING;
+
SETUP_LOG("setup() completed.");
}
diff --git a/Marlin/src/MarlinCore.h b/Marlin/src/MarlinCore.h
index 141ce7156e..3bce72ab80 100644
--- a/Marlin/src/MarlinCore.h
+++ b/Marlin/src/MarlinCore.h
@@ -76,9 +76,19 @@ void minkill(const bool steppers_off=false);
void quickstop_stepper();
-extern bool Running;
-inline bool IsRunning() { return Running; }
-inline bool IsStopped() { return !Running; }
+// Global State of the firmware
+enum MarlinState : uint8_t {
+ MF_INITIALIZING = 0,
+ MF_RUNNING = _BV(0),
+ MF_PAUSED = _BV(1),
+ MF_WAITING = _BV(2),
+ MF_STOPPED = _BV(3),
+ MF_KILLED = _BV(7)
+};
+
+extern MarlinState marlin_state;
+inline bool IsRunning() { return marlin_state == MF_RUNNING; }
+inline bool IsStopped() { return marlin_state != MF_RUNNING; }
bool printingIsActive();
bool printingIsPaused();
diff --git a/Marlin/src/core/boards.h b/Marlin/src/core/boards.h
index 09b0eada1a..86107f7d86 100644
--- a/Marlin/src/core/boards.h
+++ b/Marlin/src/core/boards.h
@@ -103,6 +103,7 @@
#define BOARD_HJC2560C_REV2 1147 // ADIMLab Gantry v2
#define BOARD_TANGO 1148 // BIQU Tango V1
#define BOARD_MKS_GEN_L_V2 1149 // MKS GEN L V2
+#define BOARD_COPYMASTER_3D 1150 // Copymaster 3D
//
// RAMBo and derivatives
diff --git a/Marlin/src/core/macros.h b/Marlin/src/core/macros.h
index 56ec11bd7c..bcee642368 100644
--- a/Marlin/src/core/macros.h
+++ b/Marlin/src/core/macros.h
@@ -21,6 +21,10 @@
*/
#pragma once
+#if !defined(__has_include)
+ #define __has_include(...) 1
+#endif
+
#define ABCE 4
#define XYZE 4
#define ABC 3
diff --git a/Marlin/src/core/utility.cpp b/Marlin/src/core/utility.cpp
index 19247ff69f..5e159af581 100644
--- a/Marlin/src/core/utility.cpp
+++ b/Marlin/src/core/utility.cpp
@@ -67,7 +67,6 @@ void safe_delay(millis_t ms) {
TERN(PROBE_MANUALLY, "PROBE_MANUALLY", "")
TERN(NOZZLE_AS_PROBE, "NOZZLE_AS_PROBE", "")
TERN(FIX_MOUNTED_PROBE, "FIX_MOUNTED_PROBE", "")
- TERN(BLTOUCH, "BLTOUCH", "")
TERN(HAS_Z_SERVO_PROBE, TERN(BLTOUCH, "BLTOUCH", "SERVO PROBE"), "")
TERN(TOUCH_MI_PROBE, "TOUCH_MI_PROBE", "")
TERN(Z_PROBE_SLED, "Z_PROBE_SLED", "")
diff --git a/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp b/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
index 1aad462f16..1ac036e5bc 100644
--- a/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
+++ b/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
@@ -1611,7 +1611,7 @@
* numbers for those locations should be 0.
*/
#ifdef VALIDATE_MESH_TILT
- auto d_from = []() { DEBUG_ECHOPGM("D from "); };
+ auto d_from = []{ DEBUG_ECHOPGM("D from "); };
auto normed = [&](const xy_pos_t &pos, const float &zadd) {
return normal.x * pos.x + normal.y * pos.y + zadd;
};
diff --git a/Marlin/src/feature/controllerfan.cpp b/Marlin/src/feature/controllerfan.cpp
index b9d8c39460..0746700407 100644
--- a/Marlin/src/feature/controllerfan.cpp
+++ b/Marlin/src/feature/controllerfan.cpp
@@ -24,60 +24,80 @@
#if ENABLED(USE_CONTROLLER_FAN)
+#include "controllerfan.h"
#include "../module/stepper/indirection.h"
#include "../module/temperature.h"
-uint8_t controllerfan_speed;
+ControllerFan controllerFan;
-void controllerfan_update() {
- static millis_t lastMotorOn = 0, // Last time a motor was turned on
+uint8_t ControllerFan::speed;
+
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
+ controllerFan_settings_t ControllerFan::settings; // {0}
+#endif
+
+void ControllerFan::setup() {
+ SET_OUTPUT(CONTROLLER_FAN_PIN);
+ init();
+}
+
+void ControllerFan::set_fan_speed(const uint8_t s) {
+ speed = s < (CONTROLLERFAN_SPEED_MIN) ? 0 : s; // Fan OFF below minimum
+}
+
+void ControllerFan::update() {
+ static millis_t lastMotorOn = 0, // Last time a motor was turned on
nextMotorCheck = 0; // Last time the state was checked
const millis_t ms = millis();
if (ELAPSED(ms, nextMotorCheck)) {
nextMotorCheck = ms + 2500UL; // Not a time critical function, so only check every 2.5s
- const bool xory = X_ENABLE_READ() == bool(X_ENABLE_ON) || Y_ENABLE_READ() == bool(Y_ENABLE_ON);
+ #define MOTOR_IS_ON(A,B) (A##_ENABLE_READ() == bool(B##_ENABLE_ON))
+ #define _OR_ENABLED_E(N) || MOTOR_IS_ON(E##N,E)
- // If any of the drivers or the bed are enabled...
- if (xory || Z_ENABLE_READ() == bool(Z_ENABLE_ON)
+ const bool motor_on = MOTOR_IS_ON(Z,Z)
+ #if HAS_Z2_ENABLE
+ || MOTOR_IS_ON(Z2,Z)
+ #endif
+ #if HAS_Z3_ENABLE
+ || MOTOR_IS_ON(Z3,Z)
+ #endif
+ #if HAS_Z4_ENABLE
+ || MOTOR_IS_ON(Z4,Z)
+ #endif
+ || (DISABLED(CONTROLLER_FAN_USE_Z_ONLY) && (
+ MOTOR_IS_ON(X,X) || MOTOR_IS_ON(Y,Y)
+ #if HAS_X2_ENABLE
+ || MOTOR_IS_ON(X2,X)
+ #endif
+ #if HAS_Y2_ENABLE
+ || MOTOR_IS_ON(Y2,Y)
+ #endif
+ #if E_STEPPERS
+ REPEAT(E_STEPPERS, _OR_ENABLED_E)
+ #endif
+ )
+ )
+ ;
+
+ // If any of the drivers or the heated bed are enabled...
+ if (motor_on
#if HAS_HEATED_BED
|| thermalManager.temp_bed.soft_pwm_amount > 0
#endif
- #if HAS_X2_ENABLE
- || X2_ENABLE_READ() == bool(X_ENABLE_ON)
- #endif
- #if HAS_Y2_ENABLE
- || Y2_ENABLE_READ() == bool(Y_ENABLE_ON)
- #endif
- #if HAS_Z2_ENABLE
- || Z2_ENABLE_READ() == bool(Z_ENABLE_ON)
- #endif
- #if HAS_Z3_ENABLE
- || Z3_ENABLE_READ() == bool(Z_ENABLE_ON)
- #endif
- #if HAS_Z4_ENABLE
- || Z4_ENABLE_READ() == bool(Z_ENABLE_ON)
- #endif
- #if E_STEPPERS
- #define _OR_ENABLED_E(N) || E##N##_ENABLE_READ() == bool(E_ENABLE_ON)
- REPEAT(E_STEPPERS, _OR_ENABLED_E)
- #endif
- ) {
- lastMotorOn = ms; //... set time to NOW so the fan will turn on
- }
+ ) lastMotorOn = ms; //... set time to NOW so the fan will turn on
- // Fan off if no steppers have been enabled for CONTROLLERFAN_SECS seconds
- controllerfan_speed = (!lastMotorOn || ELAPSED(ms, lastMotorOn + (CONTROLLERFAN_SECS) * 1000UL)) ? 0 : (
- #ifdef CONTROLLERFAN_SPEED_Z_ONLY
- xory ? CONTROLLERFAN_SPEED : CONTROLLERFAN_SPEED_Z_ONLY
- #else
- CONTROLLERFAN_SPEED
- #endif
+ // Fan Settings. Set fan > 0:
+ // - If AutoMode is on and steppers have been enabled for CONTROLLERFAN_IDLE_TIME seconds.
+ // - If System is on idle and idle fan speed settings is activated.
+ set_fan_speed(
+ settings.auto_mode && lastMotorOn && PENDING(ms, lastMotorOn + settings.duration * 1000UL)
+ ? settings.active_speed : settings.idle_speed
);
// Allow digital or PWM fan output (see M42 handling)
- WRITE(CONTROLLER_FAN_PIN, controllerfan_speed);
- analogWrite(pin_t(CONTROLLER_FAN_PIN), controllerfan_speed);
+ WRITE(CONTROLLER_FAN_PIN, speed);
+ analogWrite(pin_t(CONTROLLER_FAN_PIN), speed);
}
}
diff --git a/Marlin/src/feature/controllerfan.h b/Marlin/src/feature/controllerfan.h
index f2facc288f..cd56ff8ced 100644
--- a/Marlin/src/feature/controllerfan.h
+++ b/Marlin/src/feature/controllerfan.h
@@ -21,4 +21,56 @@
*/
#pragma once
-void controllerfan_update();
+#include "../inc/MarlinConfigPre.h"
+
+typedef struct {
+ uint8_t active_speed, // 0-255 (fullspeed); Speed with enabled stepper motors
+ idle_speed; // 0-255 (fullspeed); Speed after idle period with all motors are disabled
+ uint16_t duration; // Duration in seconds for the fan to run after all motors are disabled
+ bool auto_mode; // Default true
+} controllerFan_settings_t;
+
+#ifndef CONTROLLERFAN_SPEED_ACTIVE
+ #define CONTROLLERFAN_SPEED_ACTIVE 255
+#endif
+#ifndef CONTROLLERFAN_SPEED_IDLE
+ #define CONTROLLERFAN_SPEED_IDLE 0
+#endif
+#ifndef CONTROLLERFAN_IDLE_TIME
+ #define CONTROLLERFAN_IDLE_TIME 60
+#endif
+
+static constexpr controllerFan_settings_t controllerFan_defaults = {
+ CONTROLLERFAN_SPEED_ACTIVE,
+ CONTROLLERFAN_SPEED_IDLE,
+ CONTROLLERFAN_IDLE_TIME,
+ true
+};
+
+#if ENABLED(USE_CONTROLLER_FAN)
+
+class ControllerFan {
+ private:
+ static uint8_t speed;
+ static void set_fan_speed(const uint8_t s);
+
+ public:
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ static controllerFan_settings_t settings;
+ #else
+ static const controllerFan_settings_t constexpr &settings = controllerFan_defaults;
+ #endif
+ static inline bool state() { return speed > 0; }
+ static inline void init() { reset(); }
+ static inline void reset() {
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ settings = controllerFan_defaults;
+ #endif
+ }
+ static void setup();
+ static void update();
+};
+
+extern ControllerFan controllerFan;
+
+#endif
diff --git a/Marlin/src/feature/power.cpp b/Marlin/src/feature/power.cpp
index cf18e2130c..1fa751811e 100644
--- a/Marlin/src/feature/power.cpp
+++ b/Marlin/src/feature/power.cpp
@@ -46,8 +46,8 @@ bool Power::is_power_needed() {
HOTEND_LOOP() if (thermalManager.autofan_speed[e]) return true;
#endif
- #if ENABLED(AUTO_POWER_CONTROLLERFAN, USE_CONTROLLER_FAN) && HAS_CONTROLLER_FAN
- if (controllerfan_speed) return true;
+ #if BOTH(USE_CONTROLLER_FAN, AUTO_POWER_CONTROLLERFAN)
+ if (controllerFan.state()) return true;
#endif
#if ENABLED(AUTO_POWER_CHAMBER_FAN)
diff --git a/Marlin/src/gcode/bedlevel/abl/G29.cpp b/Marlin/src/gcode/bedlevel/abl/G29.cpp
index 2d782e9e33..de69545983 100644
--- a/Marlin/src/gcode/bedlevel/abl/G29.cpp
+++ b/Marlin/src/gcode/bedlevel/abl/G29.cpp
@@ -934,7 +934,12 @@ G29_TYPE GcodeSuite::G29() {
// Unapply the offset because it is going to be immediately applied
// and cause compensation movement in Z
- current_position.z -= bilinear_z_offset(current_position);
+ #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
+ const float fade_scaling_factor = planner.fade_scaling_factor_for_z(current_position.z);
+ #else
+ constexpr float fade_scaling_factor = 1.0f;
+ #endif
+ current_position.z -= fade_scaling_factor * bilinear_z_offset(current_position);
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR(" corrected Z:", current_position.z);
}
diff --git a/Marlin/src/gcode/calibrate/G34_M422.cpp b/Marlin/src/gcode/calibrate/G34_M422.cpp
index 672f40737a..d1b828d079 100644
--- a/Marlin/src/gcode/calibrate/G34_M422.cpp
+++ b/Marlin/src/gcode/calibrate/G34_M422.cpp
@@ -203,7 +203,7 @@ void GcodeSuite::G34() {
const uint8_t iprobe = (iteration & 1) ? NUM_Z_STEPPER_DRIVERS - 1 - i : i;
// Safe clearance even on an incline
- if (iteration == 0 || i > 0) do_blocking_move_to_z(z_probe);
+ if ((iteration == 0 || i > 0) && z_probe > current_position.z) do_blocking_move_to_z(z_probe);
if (DEBUGGING(LEVELING))
DEBUG_ECHOLNPAIR_P(PSTR("Probing X"), z_stepper_align.xy[iprobe].x, SP_Y_STR, z_stepper_align.xy[iprobe].y);
diff --git a/Marlin/src/gcode/config/M220.cpp b/Marlin/src/gcode/config/M220.cpp
index 5ea75c09c6..f24c11e23d 100644
--- a/Marlin/src/gcode/config/M220.cpp
+++ b/Marlin/src/gcode/config/M220.cpp
@@ -30,7 +30,7 @@
* S : Set the feed rate percentage factor
*
* Report the current speed percentage factor if no parameter is specified
- *
+ *
* With PRUSA_MMU2...
* B : Flag to back up the current factor
* R : Flag to restore the last-saved factor
diff --git a/Marlin/src/gcode/config/M43.cpp b/Marlin/src/gcode/config/M43.cpp
index 661c413191..2c28da62fb 100644
--- a/Marlin/src/gcode/config/M43.cpp
+++ b/Marlin/src/gcode/config/M43.cpp
@@ -67,6 +67,7 @@ inline void toggle_pins() {
else {
watchdog_refresh();
report_pin_state_extended(pin, ignore_protection, true, PSTR("Pulsing "));
+ const bool prior_mode = GET_PINMODE(pin);
#if AVR_AT90USB1286_FAMILY // Teensy IDEs don't know about these pins so must use FASTIO
if (pin == TEENSY_E2) {
SET_OUTPUT(TEENSY_E2);
@@ -95,6 +96,7 @@ inline void toggle_pins() {
watchdog_refresh();
}
}
+ pinMode(pin, prior_mode);
}
SERIAL_EOL();
}
diff --git a/Marlin/src/gcode/control/M42.cpp b/Marlin/src/gcode/control/M42.cpp
index 7106ce5502..74625b0318 100644
--- a/Marlin/src/gcode/control/M42.cpp
+++ b/Marlin/src/gcode/control/M42.cpp
@@ -37,16 +37,33 @@
*
* S Pin status from 0 - 255
* I Flag to ignore Marlin's pin protection
+ *
+ * M Pin mode: 0=INPUT 1=OUTPUT 2=INPUT_PULLUP 3=INPUT_PULLDOWN
*/
void GcodeSuite::M42() {
- if (!parser.seenval('S')) return;
- const byte pin_status = parser.value_byte();
-
const int pin_index = PARSED_PIN_INDEX('P', GET_PIN_MAP_INDEX(LED_PIN));
if (pin_index < 0) return;
const pin_t pin = GET_PIN_MAP_PIN(pin_index);
+ if (!parser.boolval('I') && pin_is_protected(pin)) return protected_pin_err();
+
+ if (parser.seenval('M')) {
+ switch (parser.value_byte()) {
+ case 0: pinMode(pin, INPUT); break;
+ case 1: pinMode(pin, OUTPUT); break;
+ case 2: pinMode(pin, INPUT_PULLUP); break;
+ #ifdef INPUT_PULLDOWN
+ case 3: pinMode(pin, INPUT_PULLDOWN); break;
+ #endif
+ default: SERIAL_ECHOLNPGM("Invalid Pin Mode");
+ }
+ return;
+ }
+
+ if (!parser.seenval('S')) return;
+ const byte pin_status = parser.value_byte();
+
#if FAN_COUNT > 0
switch (pin) {
#if HAS_FAN0
@@ -76,8 +93,6 @@ void GcodeSuite::M42() {
}
#endif
- if (!parser.boolval('I') && pin_is_protected(pin)) return protected_pin_err();
-
pinMode(pin, OUTPUT);
extDigitalWrite(pin, pin_status);
analogWrite(pin, pin_status);
diff --git a/Marlin/src/gcode/control/M999.cpp b/Marlin/src/gcode/control/M999.cpp
index c498e66cab..79cd5e1854 100644
--- a/Marlin/src/gcode/control/M999.cpp
+++ b/Marlin/src/gcode/control/M999.cpp
@@ -23,7 +23,7 @@
#include "../gcode.h"
#include "../../lcd/ultralcd.h" // for lcd_reset_alert_level
-#include "../../MarlinCore.h" // for Running
+#include "../../MarlinCore.h" // for marlin_state
#include "../queue.h" // for flush_and_request_resend
/**
@@ -37,7 +37,7 @@
*
*/
void GcodeSuite::M999() {
- Running = true;
+ marlin_state = MF_RUNNING;
ui.reset_alert_level();
if (parser.boolval('S')) return;
diff --git a/Marlin/src/gcode/feature/advance/M900.cpp b/Marlin/src/gcode/feature/advance/M900.cpp
index 5a029cbf01..b3985401cf 100644
--- a/Marlin/src/gcode/feature/advance/M900.cpp
+++ b/Marlin/src/gcode/feature/advance/M900.cpp
@@ -42,7 +42,7 @@
*/
void GcodeSuite::M900() {
- auto echo_value_oor = [] (const char ltr, const bool ten=true) {
+ auto echo_value_oor = [](const char ltr, const bool ten=true) {
SERIAL_CHAR('?'); SERIAL_CHAR(ltr);
SERIAL_ECHOPGM(" value out of range");
if (ten) SERIAL_ECHOPGM(" (0-10)");
diff --git a/Marlin/src/gcode/feature/controllerfan/M710.cpp b/Marlin/src/gcode/feature/controllerfan/M710.cpp
new file mode 100644
index 0000000000..e00fa77d62
--- /dev/null
+++ b/Marlin/src/gcode/feature/controllerfan/M710.cpp
@@ -0,0 +1,81 @@
+/**
+ * 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 .
+ *
+ */
+
+#include "../../../inc/MarlinConfigPre.h"
+
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
+
+#include "../../gcode.h"
+#include "../../../feature/controllerfan.h"
+
+void M710_report(const bool forReplay) {
+ if (!forReplay) { SERIAL_ECHOLNPGM("; Controller Fan"); SERIAL_ECHO_START(); }
+ SERIAL_ECHOLNPAIR("M710 "
+ "S", int(controllerFan.settings.active_speed),
+ "I", int(controllerFan.settings.idle_speed),
+ "A", int(controllerFan.settings.auto_mode),
+ "D", controllerFan.settings.duration,
+ " ; (", (int(controllerFan.settings.active_speed) * 100) / 255, "%"
+ " ", (int(controllerFan.settings.idle_speed) * 100) / 255, "%)"
+ );
+}
+
+/**
+ * M710: Set controller fan settings
+ *
+ * R : Reset to defaults
+ * S[0-255] : Fan speed when motors are active
+ * I[0-255] : Fan speed when motors are idle
+ * A[0|1] : Turn auto mode on or off
+ * D : Set auto mode idle duration
+ *
+ * Examples:
+ * M710 ; Report current Settings
+ * M710 R ; Reset SIAD to defaults
+ * M710 I64 ; Set controller fan Idle Speed to 25%
+ * M710 S255 ; Set controller fan Active Speed to 100%
+ * M710 S0 ; Set controller fan Active Speed to OFF
+ * M710 I255 A0 ; Set controller fan Idle Speed to 100% with Auto Mode OFF
+ * M710 I127 A1 S255 D160 ; Set controller fan idle speed 50%, AutoMode On, Fan speed 100%, duration to 160 Secs
+ */
+void GcodeSuite::M710() {
+
+ const bool seenR = parser.seen('R');
+ if (seenR) controllerFan.reset();
+
+ const bool seenS = parser.seenval('S');
+ if (seenS) controllerFan.settings.active_speed = parser.value_byte();
+
+ const bool seenI = parser.seenval('I');
+ if (seenI) controllerFan.settings.idle_speed = parser.value_byte();
+
+ const bool seenA = parser.seenval('A');
+ if (seenA) controllerFan.settings.auto_mode = parser.value_bool();
+
+ const bool seenD = parser.seenval('D');
+ if (seenD) controllerFan.settings.duration = parser.value_ushort();
+
+ if (!(seenR || seenS || seenI || seenA || seenD))
+ M710_report(false);
+}
+
+#endif // CONTROLLER_FAN_EDITABLE
diff --git a/Marlin/src/gcode/gcode.cpp b/Marlin/src/gcode/gcode.cpp
index 266361a099..1ce1e3d5cb 100644
--- a/Marlin/src/gcode/gcode.cpp
+++ b/Marlin/src/gcode/gcode.cpp
@@ -752,6 +752,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
case 702: M702(); break; // M702: Unload Filament
#endif
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ case 710: M710(); break; // M710: Set Controller Fan settings
+ #endif
+
#if ENABLED(GCODE_MACROS)
case 810: case 811: case 812: case 813: case 814:
case 815: case 816: case 817: case 818: case 819:
diff --git a/Marlin/src/gcode/gcode.h b/Marlin/src/gcode/gcode.h
index 27a038dde9..c1024ac440 100644
--- a/Marlin/src/gcode/gcode.h
+++ b/Marlin/src/gcode/gcode.h
@@ -972,6 +972,10 @@ private:
static void M7219();
#endif
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ static void M710();
+ #endif
+
static void T(const uint8_t tool_index);
};
diff --git a/Marlin/src/gcode/lcd/M0_M1.cpp b/Marlin/src/gcode/lcd/M0_M1.cpp
index 2176693209..693a20eed9 100644
--- a/Marlin/src/gcode/lcd/M0_M1.cpp
+++ b/Marlin/src/gcode/lcd/M0_M1.cpp
@@ -73,12 +73,12 @@ void GcodeSuite::M0_M1() {
}
#elif ENABLED(EXTENSIBLE_UI)
-
- if (parser.string_arg)
- ExtUI::onUserConfirmRequired(parser.string_arg); // Can this take an SRAM string??
- else
- ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_USERWAIT));
-
+ if (!seenQ) {
+ if (parser.string_arg)
+ ExtUI::onUserConfirmRequired(parser.string_arg); // Can this take an SRAM string??
+ else
+ ExtUI::onUserConfirmRequired_P(GET_TEXT(MSG_USERWAIT));
+ }
#else
if (parser.string_arg) {
diff --git a/Marlin/src/inc/Conditionals_LCD.h b/Marlin/src/inc/Conditionals_LCD.h
index 2907694fb4..dd1f13fae0 100644
--- a/Marlin/src/inc/Conditionals_LCD.h
+++ b/Marlin/src/inc/Conditionals_LCD.h
@@ -683,6 +683,10 @@
#define SPI_SPEED SPI_FULL_SPEED
#endif
+#if SERIAL_PORT == -1 || SERIAL_PORT_2 == -1
+ #define HAS_USB_SERIAL 1
+#endif
+
/**
* This setting is also used by M109 when trying to calculate
* a ballpark safe margin to prevent wait-forever situation.
diff --git a/Marlin/src/inc/Conditionals_post.h b/Marlin/src/inc/Conditionals_post.h
index 97090d4775..ebc77b9383 100644
--- a/Marlin/src/inc/Conditionals_post.h
+++ b/Marlin/src/inc/Conditionals_post.h
@@ -35,15 +35,13 @@
#define HAS_LINEAR_E_JERK 1
#endif
+// If no real EEPROM, Flash emulation, or SRAM emulation is available fall back to SD emulation
#if ENABLED(EEPROM_SETTINGS)
#if NONE(FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION) && EITHER(I2C_EEPROM, SPI_EEPROM)
#define USE_REAL_EEPROM 1
#else
#define USE_EMULATED_EEPROM 1
#endif
- #if NONE(USE_REAL_EEPROM, FLASH_EEPROM_EMULATION, SRAM_EEPROM_EMULATION)
- #define SDCARD_EEPROM_EMULATION 1
- #endif
#else
#undef I2C_EEPROM
#undef SPI_EEPROM
diff --git a/Marlin/src/inc/MarlinConfigPre.h b/Marlin/src/inc/MarlinConfigPre.h
index 1385f9e19f..d84f751200 100644
--- a/Marlin/src/inc/MarlinConfigPre.h
+++ b/Marlin/src/inc/MarlinConfigPre.h
@@ -37,12 +37,8 @@
#include "../../Configuration.h"
#ifdef CUSTOM_VERSION_FILE
- #if defined(__has_include)
- #if __has_include(XSTR(../../CUSTOM_VERSION_FILE))
- #include XSTR(../../CUSTOM_VERSION_FILE)
- #endif
- #else
- #include XSTR(../../CUSTOM_VERSION_FILE)
+ #if __has_include(STRINGIFY(../../CUSTOM_VERSION_FILE))
+ #include STRINGIFY(../../CUSTOM_VERSION_FILE)
#endif
#endif
diff --git a/Marlin/src/inc/SanityCheck.h b/Marlin/src/inc/SanityCheck.h
index 454183e548..f44f93b9af 100644
--- a/Marlin/src/inc/SanityCheck.h
+++ b/Marlin/src/inc/SanityCheck.h
@@ -270,6 +270,8 @@
#error "Replace SLED_PIN with SOL1_PIN (applies to both Z_PROBE_SLED and SOLENOID_PROBE)."
#elif defined(CONTROLLERFAN_PIN)
#error "CONTROLLERFAN_PIN is now CONTROLLER_FAN_PIN, enabled with USE_CONTROLLER_FAN. Please update your Configuration_adv.h."
+#elif defined(CONTROLLERFAN_SPEED)
+ #error "CONTROLLERFAN_SPEED is now CONTROLLERFAN_SPEED_ACTIVE. Please update your Configuration_adv.h."
#elif defined(MIN_RETRACT)
#error "MIN_RETRACT is now MIN_AUTORETRACT and MAX_AUTORETRACT. Please update your Configuration_adv.h."
#elif defined(ADVANCE)
@@ -1983,7 +1985,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
/**
* Auto Fan check for PWM pins
*/
-#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255
+#if HAS_AUTO_FAN && EXTRUDER_AUTO_FAN_SPEED != 255 && DISABLED(NO_COMPILE_TIME_PWM)
#define AF_ERR_SUFF "_AUTO_FAN_PIN is not a PWM pin. Set EXTRUDER_AUTO_FAN_SPEED to 255."
#if HAS_AUTO_FAN_0
static_assert(PWM_PIN(E0_AUTO_FAN_PIN), "E0" AF_ERR_SUFF);
@@ -1993,9 +1995,24 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
static_assert(PWM_PIN(E2_AUTO_FAN_PIN), "E2" AF_ERR_SUFF);
#elif HAS_AUTO_FAN_3
static_assert(PWM_PIN(E3_AUTO_FAN_PIN), "E3" AF_ERR_SUFF);
+ #elif HAS_AUTO_FAN_4
+ static_assert(PWM_PIN(E4_AUTO_FAN_PIN), "E4" AF_ERR_SUFF);
+ #elif HAS_AUTO_FAN_5
+ static_assert(PWM_PIN(E5_AUTO_FAN_PIN), "E5" AF_ERR_SUFF);
+ #elif HAS_AUTO_FAN_6
+ static_assert(PWM_PIN(E6_AUTO_FAN_PIN), "E6" AF_ERR_SUFF);
+ #elif HAS_AUTO_FAN_7
+ static_assert(PWM_PIN(E7_AUTO_FAN_PIN), "E7" AF_ERR_SUFF);
#endif
#endif
+/**
+ * Make sure only one EEPROM type is enabled
+ */
+#if ENABLED(EEPROM_SETTINGS) && 1 < ENABLED(SDCARD_EEPROM_EMULATION) + ENABLED(FLASH_EEPROM_EMULATION) + ENABLED(SRAM_EEPROM_EMULATION)
+ #error "Please select only one of SDCARD, FLASH, or SRAM_EEPROM_EMULATION."
+#endif
+
/**
* Make sure only one display is enabled
*/
diff --git a/Marlin/src/inc/Version.h b/Marlin/src/inc/Version.h
index 25748f7d31..5fc2211023 100644
--- a/Marlin/src/inc/Version.h
+++ b/Marlin/src/inc/Version.h
@@ -42,7 +42,7 @@
* version was tagged.
*/
#ifndef STRING_DISTRIBUTION_DATE
- #define STRING_DISTRIBUTION_DATE "2020-03-14"
+ #define STRING_DISTRIBUTION_DATE "2020-03-24"
#endif
/**
diff --git a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp
index 92f935f04b..be414ab303 100644
--- a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp
+++ b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp
@@ -448,10 +448,10 @@ void MarlinUI::draw_status_screen() {
#endif
}
+ constexpr bool can_show_days = DISABLED(DOGM_SD_PERCENT) || ENABLED(ROTATE_PROGRESS_DISPLAY);
if (ev != lastElapsed) {
lastElapsed = ev;
- const bool has_days = (elapsed.value >= 60*60*24L);
- const uint8_t len = elapsed.toDigital(elapsed_string, has_days);
+ const uint8_t len = elapsed.toDigital(elapsed_string, can_show_days && elapsed.value >= 60*60*24L);
elapsed_x_pos = _SD_INFO_X(len);
#if ENABLED(SHOW_REMAINING_TIME)
@@ -468,8 +468,7 @@ void MarlinUI::draw_status_screen() {
}
else {
duration_t estimation = timeval;
- const bool has_days = (estimation.value >= 60*60*24L);
- const uint8_t len = estimation.toDigital(estimation_string, has_days);
+ const uint8_t len = estimation.toDigital(estimation_string, can_show_days && estimation.value >= 60*60*24L);
estimation_x_pos = _SD_INFO_X(len
#if !BOTH(DOGM_SD_PERCENT, ROTATE_PROGRESS_DISPLAY)
+ 1
diff --git a/Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp b/Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
index e6fc310df1..94956e7410 100644
--- a/Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
+++ b/Marlin/src/lcd/dogm/u8g_dev_uc1701_mini12864_HAL.cpp
@@ -118,7 +118,7 @@ static const uint8_t u8g_dev_uc1701_mini12864_HAL_init_seq[] PROGMEM = {
static const uint8_t u8g_dev_uc1701_mini12864_HAL_data_start[] PROGMEM = {
U8G_ESC_ADR(0), // instruction mode
U8G_ESC_CS(1), // enable chip
- #if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
+ #if ANY(MKS_MINI_12864, ENDER2_STOCKDISPLAY, FYSETC_MINI_12864)
UC1701_START_LINE(0), // set display start line to 0
UC1701_ADC_REVERSE(0), // ADC set to reverse
UC1701_OUT_MODE(1), // common output mode
diff --git a/Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp b/Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp
index 2b4080485f..6ac84c2bb0 100644
--- a/Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp
+++ b/Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.cpp
@@ -30,10 +30,6 @@
#error "More than 2 hotends not implemented on the Display UI design."
#endif
-#include "DGUSDisplay.h"
-#include "DGUSVPVariable.h"
-#include "DGUSDisplayDef.h"
-
#include "../../ui_api.h"
#include "../../../../MarlinCore.h"
@@ -48,6 +44,10 @@
#include "../../../../feature/powerloss.h"
#endif
+#include "DGUSDisplay.h"
+#include "DGUSVPVariable.h"
+#include "DGUSDisplayDef.h"
+
// Preamble... 2 Bytes, usually 0x5A 0xA5, but configurable
constexpr uint8_t DGUS_HEADER1 = 0x5A;
constexpr uint8_t DGUS_HEADER2 = 0xA5;
@@ -855,7 +855,7 @@ void DGUSScreenVariableHandler::HandleStepPerMMExtruderChanged(DGUS_VP_Variable
void DGUSScreenVariableHandler::HandleProbeOffsetZChanged(DGUS_VP_Variable &var, void *val_ptr) {
DEBUG_ECHOLNPGM("HandleProbeOffsetZChanged");
- const float offset = float(swap16(*(uint16_t*)val_ptr)) / 100.0f;
+ const float offset = float(int16_t(swap16(*(uint16_t*)val_ptr))) / 100.0f;
ExtUI::setZOffset_mm(offset);
ScreenHandler.skipVP = var.VP; // don't overwrite value the next update time as the display might autoincrement in parallel
return;
diff --git a/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp b/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp
index 3ccde11411..5fbb307ee8 100644
--- a/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp
+++ b/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.cpp
@@ -283,6 +283,13 @@ const uint16_t VPList_FLCPrinting[] PROGMEM = {
0x0000
};
+const uint16_t VPList_Z_Offset[] PROGMEM = {
+ #if HOTENDS >= 1
+ VP_SD_Print_ProbeOffsetZ,
+ #endif
+ 0x0000
+};
+
const struct VPMapping VPMap[] PROGMEM = {
{ DGUSLCD_SCREEN_BOOT, VPList_Boot },
{ DGUSLCD_SCREEN_MAIN, VPList_Main },
@@ -291,6 +298,7 @@ const struct VPMapping VPMap[] PROGMEM = {
{ DGUSLCD_SCREEN_STATUS2, VPList_Status2 },
{ DGUSLCD_SCREEN_PREHEAT, VPList_Preheat },
{ DGUSLCD_SCREEN_MANUALMOVE, VPList_ManualMove },
+ { DGUSLCD_SCREEN_Z_OFFSET, VPList_Z_Offset },
{ DGUSLCD_SCREEN_MANUALEXTRUDE, VPList_ManualExtrude },
{ DGUSLCD_SCREEN_FILAMENT_HEATING, VPList_Filament_heating },
{ DGUSLCD_SCREEN_FILAMENT_LOADING, VPList_Filament_load_unload },
@@ -361,7 +369,7 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
#if HOTENDS >= 1
VPHELPER(VP_T_E0_Is, &thermalManager.temp_hotend[0].celsius, nullptr, DGUSScreenVariableHandler::DGUSLCD_SendFloatAsLongValueToDisplay<0>),
VPHELPER(VP_T_E0_Set, &thermalManager.temp_hotend[0].target, DGUSScreenVariableHandler::HandleTemperatureChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
- VPHELPER(VP_Flowrate_E0, nullptr, DGUSScreenVariableHandler::HandleFlowRateChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
+ VPHELPER(VP_Flowrate_E0, &planner.flow_percentage[ExtUI::extruder_t::E0], DGUSScreenVariableHandler::HandleFlowRateChanged, &DGUSScreenVariableHandler::DGUSLCD_SendWordValueToDisplay),
VPHELPER(VP_EPos, &destination.e, nullptr, DGUSScreenVariableHandler::DGUSLCD_SendFloatAsLongValueToDisplay<2>),
VPHELPER(VP_MOVE_E0, nullptr, &DGUSScreenVariableHandler::HandleManualExtrude, nullptr),
VPHELPER(VP_E0_CONTROL, &thermalManager.temp_hotend[0].target, &DGUSScreenVariableHandler::HandleHeaterControl, nullptr),
diff --git a/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h b/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h
index dbf7b8f631..1bfdf54254 100644
--- a/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h
+++ b/Marlin/src/lcd/extui/lib/dgus/hiprecy/DGUSDisplayDef.h
@@ -35,6 +35,7 @@ enum DGUSLCD_Screens : uint8_t {
DGUSLCD_SCREEN_FILAMENT_LOADING = 76,
DGUSLCD_SCREEN_FILAMENT_UNLOADING = 82,
DGUSLCD_SCREEN_MANUALEXTRUDE = 84,
+ DGUSLCD_SCREEN_Z_OFFSET = 88,
DGUSLCD_SCREEN_SDFILELIST = 3,
DGUSLCD_SCREEN_SDPRINTMANIPULATION = 7,
DGUSLCD_SCREEN_SDPRINTTUNE = 9,
diff --git a/Marlin/src/lcd/language/language_de.h b/Marlin/src/lcd/language/language_de.h
index 5ac8ee04da..cd201ded34 100644
--- a/Marlin/src/lcd/language/language_de.h
+++ b/Marlin/src/lcd/language/language_de.h
@@ -236,6 +236,11 @@ namespace Language_de {
PROGMEM Language_Str MSG_FAN_SPEED_N = _UxGT("Lüfter ~");
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED = _UxGT("Geschw. Extralüfter");
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N = _UxGT("Geschw. Extralüfter ~");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN = _UxGT("Lüfter Kontroller");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_IDLE_SPEED = _UxGT("Lüfter Leerlauf");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_AUTO_ON = _UxGT("Motorlast Modus");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_SPEED = _UxGT("Lüfter Motorlast");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_DURATION = _UxGT("Ausschalt Delay");
PROGMEM Language_Str MSG_FLOW = _UxGT("Flussrate");
PROGMEM Language_Str MSG_FLOW_N = _UxGT("Flussrate ~");
PROGMEM Language_Str MSG_CONTROL = _UxGT("Einstellungen");
diff --git a/Marlin/src/lcd/language/language_en.h b/Marlin/src/lcd/language/language_en.h
index b5f508973d..75c13de9c7 100644
--- a/Marlin/src/lcd/language/language_en.h
+++ b/Marlin/src/lcd/language/language_en.h
@@ -247,6 +247,11 @@ namespace Language_en {
PROGMEM Language_Str MSG_STORED_FAN_N = _UxGT("Stored Fan ~");
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED = _UxGT("Extra Fan Speed");
PROGMEM Language_Str MSG_EXTRA_FAN_SPEED_N = _UxGT("Extra Fan Speed ~");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN = _UxGT("Controller Fan");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_IDLE_SPEED = _UxGT("Idle Speed");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_AUTO_ON = _UxGT("Auto Mode");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_SPEED = _UxGT("Active Speed");
+ PROGMEM Language_Str MSG_CONTROLLER_FAN_DURATION = _UxGT("Idle Period");
PROGMEM Language_Str MSG_FLOW = _UxGT("Flow");
PROGMEM Language_Str MSG_FLOW_N = _UxGT("Flow ~");
PROGMEM Language_Str MSG_CONTROL = _UxGT("Control");
diff --git a/Marlin/src/lcd/language/language_tr.h b/Marlin/src/lcd/language/language_tr.h
index 0edade0374..096fef254c 100644
--- a/Marlin/src/lcd/language/language_tr.h
+++ b/Marlin/src/lcd/language/language_tr.h
@@ -606,4 +606,3 @@ namespace Language_tr {
#define MSG_FIRST_FAN_SPEED MSG_FAN_SPEED_N
#define MSG_FIRST_EXTRA_FAN_SPEED MSG_EXTRA_FAN_SPEED_N
#endif
-
diff --git a/Marlin/src/lcd/menu/menu.cpp b/Marlin/src/lcd/menu/menu.cpp
index 959c1c4160..501120252a 100644
--- a/Marlin/src/lcd/menu/menu.cpp
+++ b/Marlin/src/lcd/menu/menu.cpp
@@ -193,7 +193,7 @@ DEFINE_MENU_EDIT_ITEM(uint16_3); // 123 right-justified
DEFINE_MENU_EDIT_ITEM(uint16_4); // 1234 right-justified
DEFINE_MENU_EDIT_ITEM(uint16_5); // 12345 right-justified
DEFINE_MENU_EDIT_ITEM(float3); // 123 right-justified
-DEFINE_MENU_EDIT_ITEM(float52); // _2.34, 12.34, -2.34 or 123.45, -23.45
+DEFINE_MENU_EDIT_ITEM(float42_52); // _2.34, 12.34, -2.34 or 123.45, -23.45
DEFINE_MENU_EDIT_ITEM(float43); // 1.234
DEFINE_MENU_EDIT_ITEM(float5); // 12345 right-justified
DEFINE_MENU_EDIT_ITEM(float5_25); // 12345 right-justified (25 increment)
@@ -428,7 +428,7 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_HOTEND_OFFSET_Z), ftostr54sign(hotend_offset[active_extruder].z));
#endif
if (do_probe) {
- MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_ZPROBE_ZOFFSET), ftostr52sign(probe.offset.z));
+ MenuEditItemBase::draw_edit_screen(GET_TEXT(MSG_ZPROBE_ZOFFSET), BABYSTEP_TO_STR(probe.offset.z));
#if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
_lcd_zoffset_overlay_gfx(probe.offset.z);
#endif
diff --git a/Marlin/src/lcd/menu/menu.h b/Marlin/src/lcd/menu/menu.h
index 4ba618e5ca..e9ec3b2496 100644
--- a/Marlin/src/lcd/menu/menu.h
+++ b/Marlin/src/lcd/menu/menu.h
@@ -47,14 +47,18 @@ typedef void (*selectFunc_t)();
void _lcd_zoffset_overlay_gfx(const float zvalue);
#endif
-#if Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
- // Only values from -9.999 to 9.999
- #define LCD_Z_OFFSET_FUNC(N) ftostr54sign(N)
- #define LCD_Z_OFFSET_TYPE float43
-#else
- // Values from -99.99 to 99.99
- #define LCD_Z_OFFSET_FUNC(N) ftostr52sign(N)
- #define LCD_Z_OFFSET_TYPE float52
+#if HAS_BED_PROBE
+ #if Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
+ #define LCD_Z_OFFSET_TYPE float43 // Values from -9.000 to +9.000
+ #else
+ #define LCD_Z_OFFSET_TYPE float42_52 // Values from -99.99 to 99.99
+ #endif
+#endif
+
+#if ENABLED(BABYSTEP_ZPROBE_OFFSET) && Z_PROBE_OFFSET_RANGE_MIN >= -9 && Z_PROBE_OFFSET_RANGE_MAX <= 9
+ #define BABYSTEP_TO_STR(N) ftostr43sign(N)
+#elif ENABLED(BABYSTEPPING)
+ #define BABYSTEP_TO_STR(N) ftostr53sign(N)
#endif
////////////////////////////////////////////
@@ -289,7 +293,7 @@ DEFINE_MENU_EDIT_ITEM_TYPE(uint16_3 ,uint16_t ,ui16tostr3rj , 1 );
DEFINE_MENU_EDIT_ITEM_TYPE(uint16_4 ,uint16_t ,ui16tostr4rj , 0.1f ); // 1234 right-justified
DEFINE_MENU_EDIT_ITEM_TYPE(uint16_5 ,uint16_t ,ui16tostr5rj , 0.01f ); // 12345 right-justified
DEFINE_MENU_EDIT_ITEM_TYPE(float3 ,float ,ftostr3 , 1 ); // 123 right-justified
-DEFINE_MENU_EDIT_ITEM_TYPE(float52 ,float ,ftostr42_52 , 100 ); // _2.34, 12.34, -2.34 or 123.45, -23.45
+DEFINE_MENU_EDIT_ITEM_TYPE(float42_52 ,float ,ftostr42_52 , 100 ); // _2.34, 12.34, -2.34 or 123.45, -23.45
DEFINE_MENU_EDIT_ITEM_TYPE(float43 ,float ,ftostr43sign ,1000 ); // -1.234, _1.234, +1.234
DEFINE_MENU_EDIT_ITEM_TYPE(float5 ,float ,ftostr5rj , 1 ); // 12345 right-justified
DEFINE_MENU_EDIT_ITEM_TYPE(float5_25 ,float ,ftostr5rj , 0.04f ); // 12345 right-justified (25 increment)
diff --git a/Marlin/src/lcd/menu/menu_advanced.cpp b/Marlin/src/lcd/menu/menu_advanced.cpp
index a4a8176d3a..ca02dc9622 100644
--- a/Marlin/src/lcd/menu/menu_advanced.cpp
+++ b/Marlin/src/lcd/menu/menu_advanced.cpp
@@ -112,10 +112,10 @@ void menu_cancelobject();
#if ENABLED(LIN_ADVANCE)
#if EXTRUDERS == 1
- EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
+ EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
#elif EXTRUDERS > 1
LOOP_L_N(n, EXTRUDERS)
- EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
+ EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
#endif
#endif
@@ -257,7 +257,7 @@ void menu_cancelobject();
EDIT_ITEM(bool, MSG_AUTOTEMP, &planner.autotemp_enabled);
EDIT_ITEM(float3, MSG_MIN, &planner.autotemp_min, 0, float(HEATER_0_MAXTEMP) - 15);
EDIT_ITEM(float3, MSG_MAX, &planner.autotemp_max, 0, float(HEATER_0_MAXTEMP) - 15);
- EDIT_ITEM(float52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
+ EDIT_ITEM(float42_52, MSG_FACTOR, &planner.autotemp_factor, 0, 10);
#endif
//
@@ -556,10 +556,10 @@ void menu_advanced_settings() {
SUBMENU(MSG_FILAMENT, menu_advanced_filament);
#elif ENABLED(LIN_ADVANCE)
#if EXTRUDERS == 1
- EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
+ EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
#elif EXTRUDERS > 1
LOOP_L_N(n, E_STEPPERS)
- EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
+ EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
#endif
#endif
diff --git a/Marlin/src/lcd/menu/menu_configuration.cpp b/Marlin/src/lcd/menu/menu_configuration.cpp
index ae0abbf746..6dbc680659 100644
--- a/Marlin/src/lcd/menu/menu_configuration.cpp
+++ b/Marlin/src/lcd/menu/menu_configuration.cpp
@@ -138,12 +138,12 @@ void menu_advanced_settings();
START_MENU();
BACK_ITEM(MSG_CONFIGURATION);
#if ENABLED(DUAL_X_CARRIAGE)
- EDIT_ITEM_FAST(float51, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, float(X2_HOME_POS - 25), float(X2_HOME_POS + 25), _recalc_offsets);
+ EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, float(X2_HOME_POS - 25), float(X2_HOME_POS + 25), _recalc_offsets);
#else
- EDIT_ITEM_FAST(float41sign, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, -99.0, 99.0, _recalc_offsets);
+ EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_X, &hotend_offset[1].x, -99.0, 99.0, _recalc_offsets);
#endif
- EDIT_ITEM_FAST(float41sign, MSG_HOTEND_OFFSET_Y, &hotend_offset[1].y, -99.0, 99.0, _recalc_offsets);
- EDIT_ITEM_FAST(float41sign, MSG_HOTEND_OFFSET_Z, &hotend_offset[1].z, Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
+ EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_Y, &hotend_offset[1].y, -99.0, 99.0, _recalc_offsets);
+ EDIT_ITEM_FAST(float42_52, MSG_HOTEND_OFFSET_Z, &hotend_offset[1].z, Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
#if ENABLED(EEPROM_SETTINGS)
ACTION_ITEM(MSG_STORE_EEPROM, lcd_store_settings);
#endif
@@ -227,6 +227,24 @@ void menu_advanced_settings();
}
#endif
+#if ENABLED(CONTROLLER_FAN_MENU)
+
+ #include "../../feature/controllerfan.h"
+
+ void menu_controller_fan() {
+ START_MENU();
+ BACK_ITEM(MSG_CONFIGURATION);
+ EDIT_ITEM_FAST(percent, MSG_CONTROLLER_FAN_IDLE_SPEED, &controllerFan.settings.idle_speed, _MAX(1, CONTROLLERFAN_SPEED_MIN) - 1, 255);
+ EDIT_ITEM(bool, MSG_CONTROLLER_FAN_AUTO_ON, &controllerFan.settings.auto_mode);
+ if (controllerFan.settings.auto_mode) {
+ EDIT_ITEM_FAST(percent, MSG_CONTROLLER_FAN_SPEED, &controllerFan.settings.active_speed, _MAX(1, CONTROLLERFAN_SPEED_MIN) - 1, 255);
+ EDIT_ITEM(uint16_4, MSG_CONTROLLER_FAN_DURATION, &controllerFan.settings.duration, 0, 4800);
+ }
+ END_MENU();
+ }
+
+#endif
+
#if ENABLED(CASE_LIGHT_MENU)
#include "../../feature/caselight.h"
@@ -320,6 +338,13 @@ void menu_configuration() {
EDIT_ITEM(LCD_Z_OFFSET_TYPE, MSG_ZPROBE_ZOFFSET, &probe.offset.z, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
#endif
+ //
+ // Set Fan Controller speed
+ //
+ #if ENABLED(CONTROLLER_FAN_MENU)
+ SUBMENU(MSG_CONTROLLER_FAN, menu_controller_fan);
+ #endif
+
const bool busy = printer_busy();
if (!busy) {
#if EITHER(DELTA_CALIBRATION_MENU, DELTA_AUTO_CALIBRATION)
diff --git a/Marlin/src/lcd/menu/menu_delta_calibrate.cpp b/Marlin/src/lcd/menu/menu_delta_calibrate.cpp
index aa35a6915c..a27e2c9726 100644
--- a/Marlin/src/lcd/menu/menu_delta_calibrate.cpp
+++ b/Marlin/src/lcd/menu/menu_delta_calibrate.cpp
@@ -103,7 +103,7 @@ void _man_probe_pt(const xy_pos_t &xy) {
#endif
void lcd_delta_settings() {
- auto _recalc_delta_settings = []() {
+ auto _recalc_delta_settings = []{
#if HAS_LEVELING
reset_bed_level(); // After changing kinematics bed-level data is no longer valid
#endif
diff --git a/Marlin/src/lcd/menu/menu_mixer.cpp b/Marlin/src/lcd/menu/menu_mixer.cpp
index a74fcb6e6a..7230320fa2 100644
--- a/Marlin/src/lcd/menu/menu_mixer.cpp
+++ b/Marlin/src/lcd/menu/menu_mixer.cpp
@@ -182,7 +182,7 @@ void lcd_mixer_mix_edit() {
#if CHANNEL_MIX_EDITING
LOOP_S_LE_N(n, 1, MIXING_STEPPERS)
- EDIT_ITEM_FAST_N(float52, n, MSG_MIX_COMPONENT_N, &mixer.collector[n-1], 0, 10);
+ EDIT_ITEM_FAST_N(float42_52, n, MSG_MIX_COMPONENT_N, &mixer.collector[n-1], 0, 10);
ACTION_ITEM(MSG_CYCLE_MIX, _lcd_mixer_cycle_mix);
ACTION_ITEM(MSG_COMMIT_VTOOL, _lcd_mixer_commit_vtool);
diff --git a/Marlin/src/lcd/menu/menu_tune.cpp b/Marlin/src/lcd/menu/menu_tune.cpp
index 216decf718..ac18e89df4 100644
--- a/Marlin/src/lcd/menu/menu_tune.cpp
+++ b/Marlin/src/lcd/menu/menu_tune.cpp
@@ -65,7 +65,7 @@
}
if (ui.should_draw()) {
const float spm = planner.steps_to_mm[axis];
- MenuEditItemBase::draw_edit_screen(msg, LCD_Z_OFFSET_FUNC(spm * babystep.accum));
+ MenuEditItemBase::draw_edit_screen(msg, BABYSTEP_TO_STR(spm * babystep.accum));
#if ENABLED(BABYSTEP_DISPLAY_TOTAL)
const bool in_view = (true
#if HAS_GRAPHICAL_LCD
@@ -81,7 +81,7 @@
#endif
lcd_put_u8str_P(GET_TEXT(MSG_BABYSTEP_TOTAL));
lcd_put_wchar(':');
- lcd_put_u8str(LCD_Z_OFFSET_FUNC(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));
+ lcd_put_u8str(BABYSTEP_TO_STR(spm * babystep.axis_total[BS_TOTAL_IND(axis)]));
}
#endif
}
@@ -232,10 +232,10 @@ void menu_tune() {
//
#if ENABLED(LIN_ADVANCE) && DISABLED(SLIM_LCD_MENUS)
#if EXTRUDERS == 1
- EDIT_ITEM(float52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
+ EDIT_ITEM(float42_52, MSG_ADVANCE_K, &planner.extruder_advance_K[0], 0, 999);
#elif EXTRUDERS > 1
LOOP_L_N(n, EXTRUDERS)
- EDIT_ITEM_N(float52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
+ EDIT_ITEM_N(float42_52, n, MSG_ADVANCE_K_E, &planner.extruder_advance_K[n], 0, 999);
#endif
#endif
diff --git a/Marlin/src/lcd/ultralcd.cpp b/Marlin/src/lcd/ultralcd.cpp
index 48129b61ae..1cb23baa25 100644
--- a/Marlin/src/lcd/ultralcd.cpp
+++ b/Marlin/src/lcd/ultralcd.cpp
@@ -227,7 +227,7 @@ millis_t MarlinUI::next_button_update_ms; // = 0
SETCURSOR(col, row);
if (!string) return;
- auto _newline = [&col, &row]() {
+ auto _newline = [&col, &row]{
col = 0; row++; // Move col to string len (plus space)
SETCURSOR(0, row); // Simulate carriage return
};
diff --git a/Marlin/src/libs/numtostr.cpp b/Marlin/src/libs/numtostr.cpp
index 3b641e0dd3..ac82bf16f1 100644
--- a/Marlin/src/libs/numtostr.cpp
+++ b/Marlin/src/libs/numtostr.cpp
@@ -174,9 +174,9 @@ const char* ftostr12ns(const float &f) {
return &conv[3];
}
-// Convert signed float to fixed-length string with 12.34 / -2.34 or 023.45 / -23.45 format
+// Convert signed float to fixed-length string with 12.34 / _2.34 / -2.34 or -23.45 / 123.45 format
const char* ftostr42_52(const float &f) {
- if (f <= -10 || f >= 100) return ftostr52(f); // need more digits
+ if (f <= -10 || f >= 100) return ftostr52(f); // -23.45 / 123.45
long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
conv[2] = (f >= 0 && f < 10) ? ' ' : MINUSOR(i, DIGIMOD(i, 1000));
conv[3] = DIGIMOD(i, 100);
@@ -198,9 +198,9 @@ const char* ftostr52(const float &f) {
return &conv[1];
}
-// Convert signed float to fixed-length string with 12.345 / -2.345 or 023.456 / -23.456 format
-const char* ftostr43_53(const float &f) {
- if (f <= -10 || f >= 100) return ftostr53(f); // need more digits
+// Convert signed float to fixed-length string with 12.345 / _2.345 / -2.345 or -23.45 / 123.45 format
+const char* ftostr53_63(const float &f) {
+ if (f <= -10 || f >= 100) return ftostr63(f); // -23.456 / 123.456
long i = (f * 10000 + (f < 0 ? -5: 5)) / 10;
conv[1] = (f >= 0 && f < 10) ? ' ' : MINUSOR(i, DIGIMOD(i, 10000));
conv[2] = DIGIMOD(i, 1000);
@@ -212,7 +212,7 @@ const char* ftostr43_53(const float &f) {
}
// Convert signed float to fixed-length string with 023.456 / -23.456 format
-const char* ftostr53(const float &f) {
+const char* ftostr63(const float &f) {
long i = (f * 10000 + (f < 0 ? -5: 5)) / 10;
conv[0] = MINUSOR(i, DIGIMOD(i, 100000));
conv[1] = DIGIMOD(i, 10000);
@@ -310,6 +310,19 @@ const char* ftostr52sign(const float &f) {
return conv;
}
+// Convert signed float to string with +12.345 format
+const char* ftostr53sign(const float &f) {
+ long i = (f * 1000 + (f < 0 ? -5: 5)) / 10;
+ conv[0] = MINUSOR(i, '+');
+ conv[1] = DIGIMOD(i, 10000);
+ conv[2] = DIGIMOD(i, 1000);
+ conv[3] = '.';
+ conv[4] = DIGIMOD(i, 100);
+ conv[5] = DIGIMOD(i, 10);
+ conv[6] = DIGIMOD(i, 1);
+ return conv;
+}
+
// Convert unsigned float to string with ____4.5, __34.5, _234.5, 1234.5 format
const char* ftostr51rj(const float &f) {
const long i = ((f < 0 ? -f : f) * 100 + 5) / 10;
diff --git a/Marlin/src/libs/numtostr.h b/Marlin/src/libs/numtostr.h
index d5453e8176..8b6b83391f 100644
--- a/Marlin/src/libs/numtostr.h
+++ b/Marlin/src/libs/numtostr.h
@@ -58,17 +58,17 @@ const char* i16tostr4signrj(const int16_t x);
// Convert unsigned float to string with 1.23 format
const char* ftostr12ns(const float &x);
-// Convert signed float to fixed-length string with 12.34 / -2.34 or 023.45 / -23.45 format
+// Convert signed float to fixed-length string with 12.34 / _2.34 / -2.34 or -23.45 / 123.45 format
const char* ftostr42_52(const float &x);
// Convert signed float to fixed-length string with 023.45 / -23.45 format
const char* ftostr52(const float &x);
// Convert signed float to fixed-length string with 12.345 / -2.345 or 023.456 / -23.456 format
-const char* ftostr43_53(const float &x);
+const char* ftostr53_63(const float &x);
// Convert signed float to fixed-length string with 023.456 / -23.456 format
-const char* ftostr53(const float &x);
+const char* ftostr63(const float &x);
// Convert float to fixed-length string with +123.4 / -123.4 format
const char* ftostr41sign(const float &x);
@@ -91,6 +91,9 @@ const char* ftostr52sp(const float &x);
// Convert signed float to string with +123.45 format
const char* ftostr52sign(const float &x);
+// Convert signed float to string with +12.345 format
+const char* ftostr53sign(const float &f);
+
// Convert unsigned float to string with 1234.5 format omitting trailing zeros
const char* ftostr51rj(const float &x);
diff --git a/Marlin/src/module/configuration_store.cpp b/Marlin/src/module/configuration_store.cpp
index f03f6f48de..4b7946c6a9 100644
--- a/Marlin/src/module/configuration_store.cpp
+++ b/Marlin/src/module/configuration_store.cpp
@@ -122,6 +122,11 @@
#include "../feature/probe_temp_comp.h"
#endif
+#include "../feature/controllerfan.h"
+#if ENABLED(CONTROLLER_FAN_EDITABLE)
+ void M710_report(const bool forReplay);
+#endif
+
#pragma pack(push, 1) // No padding between variables
typedef struct { uint16_t X, Y, Z, X2, Y2, Z2, Z3, Z4, E0, E1, E2, E3, E4, E5; } tmc_stepper_current_t;
@@ -292,6 +297,11 @@ typedef struct SettingsDataStruct {
//
int16_t lcd_contrast; // M250 C
+ //
+ // Controller fan settings
+ //
+ controllerFan_settings_t controllerFan_settings; // M710
+
//
// POWER_LOSS_RECOVERY
//
@@ -880,6 +890,19 @@ void MarlinSettings::postprocess() {
EEPROM_WRITE(lcd_contrast);
}
+ //
+ // Controller Fan
+ //
+ {
+ _FIELD_TEST(controllerFan_settings);
+ #if ENABLED(USE_CONTROLLER_FAN)
+ const controllerFan_settings_t &cfs = controllerFan.settings;
+ #else
+ controllerFan_settings_t cfs = controllerFan_defaults;
+ #endif
+ EEPROM_WRITE(cfs);
+ }
+
//
// Power-Loss Recovery
//
@@ -1719,6 +1742,19 @@ void MarlinSettings::postprocess() {
#endif
}
+ //
+ // Controller Fan
+ //
+ {
+ _FIELD_TEST(controllerFan_settings);
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ const controllerFan_settings_t &cfs = controllerFan.settings;
+ #else
+ controllerFan_settings_t cfs = { 0 };
+ #endif
+ EEPROM_READ(cfs);
+ }
+
//
// Power-Loss Recovery
//
@@ -2185,8 +2221,10 @@ void MarlinSettings::postprocess() {
}
#if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
- if (!validating) report();
+ // Report the EEPROM settings
+ if (!validating && (DISABLED(EEPROM_BOOT_SILENT) || IsRunning())) report();
#endif
+
EEPROM_FINISH();
return !eeprom_error;
@@ -2588,6 +2626,13 @@ void MarlinSettings::reset() {
ui.set_contrast(DEFAULT_LCD_CONTRAST);
#endif
+ //
+ // Controller Fan
+ //
+ #if ENABLED(USE_CONTROLLER_FAN)
+ controllerFan.reset();
+ #endif
+
//
// Power-Loss Recovery
//
@@ -3152,6 +3197,10 @@ void MarlinSettings::reset() {
SERIAL_ECHOLNPAIR(" M250 C", ui.contrast);
#endif
+ #if ENABLED(CONTROLLER_FAN_EDITABLE)
+ M710_report(forReplay);
+ #endif
+
#if ENABLED(POWER_LOSS_RECOVERY)
CONFIG_ECHO_HEADING("Power-Loss Recovery:");
CONFIG_ECHO_START();
diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp
index c1d8fceaa0..14da9b47e0 100644
--- a/Marlin/src/module/motion.cpp
+++ b/Marlin/src/module/motion.cpp
@@ -218,7 +218,6 @@ inline void report_more_positions() {
inline void report_logical_position(const xyze_pos_t &rpos) {
const xyze_pos_t lpos = rpos.asLogical();
SERIAL_ECHOPAIR_P(X_LBL, lpos.x, SP_Y_LBL, lpos.y, SP_Z_LBL, lpos.z, SP_E_LBL, lpos.e);
- report_more_positions();
}
// Report the real current position according to the steppers.
@@ -237,10 +236,14 @@ void report_real_position() {
#endif
report_logical_position(npos);
+ report_more_positions();
}
// Report the logical current position according to the most recent G-code command
-void report_current_position() { report_logical_position(current_position); }
+void report_current_position() {
+ report_logical_position(current_position);
+ report_more_positions();
+}
/**
* Report the logical current position according to the most recent G-code command.
@@ -1776,6 +1779,13 @@ void homeaxis(const AxisEnum axis) {
#endif
homing_feedrate(axis)
);
+
+ #if ENABLED(SENSORLESS_HOMING)
+ planner.synchronize();
+ #if IS_CORE
+ if (axis != NORMAL_AXIS) safe_delay(200); // Short delay to allow belts to spring back
+ #endif
+ #endif
}
#endif
diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp
index 7417749088..3b2daf1812 100644
--- a/Marlin/src/module/planner.cpp
+++ b/Marlin/src/module/planner.cpp
@@ -2041,7 +2041,10 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
#endif
#if ENABLED(SLOWDOWN)
- if (WITHIN(moves_queued, 2, (BLOCK_BUFFER_SIZE) / 2 - 1)) {
+ #ifndef SLOWDOWN_DIVISOR
+ #define SLOWDOWN_DIVISOR 2
+ #endif
+ if (WITHIN(moves_queued, 2, (BLOCK_BUFFER_SIZE) / (SLOWDOWN_DIVISOR) - 1)) {
if (segment_time_us < settings.min_segment_time_us) {
// buffer is draining, add extra time. The amount of time added increases if the buffer is still emptied more.
const uint32_t nst = segment_time_us + LROUND(2 * (settings.min_segment_time_us - segment_time_us) / moves_queued);
diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp
index d0b1ddf0a3..f16a3af046 100644
--- a/Marlin/src/module/temperature.cpp
+++ b/Marlin/src/module/temperature.cpp
@@ -765,7 +765,7 @@ int16_t Temperature::getHeaterPower(const heater_ind_t heater_id) {
//
inline void loud_kill(PGM_P const lcd_msg, const heater_ind_t heater) {
- Running = false;
+ marlin_state = MF_KILLED;
#if USE_BEEPER
for (uint8_t i = 20; i--;) {
WRITE(BEEPER_PIN, HIGH); delay(25);
@@ -2003,7 +2003,7 @@ void Temperature::init() {
/**
SERIAL_ECHO_START();
- SERIAL_ECHOPGM("Thermal Thermal Runaway Running. Heater ID: ");
+ SERIAL_ECHOPGM("Thermal Runaway Running. Heater ID: ");
if (heater_id == H_CHAMBER) SERIAL_ECHOPGM("chamber");
if (heater_id < 0) SERIAL_ECHOPGM("bed"); else SERIAL_ECHO(heater_id);
SERIAL_ECHOPAIR(" ; State:", sm.state, " ; Timer:", sm.timer, " ; Temperature:", current, " ; Target Temp:", target);
diff --git a/Marlin/src/module/thermistor/thermistor_202.h b/Marlin/src/module/thermistor/thermistor_202.h
new file mode 100644
index 0000000000..9da3d45f45
--- /dev/null
+++ b/Marlin/src/module/thermistor/thermistor_202.h
@@ -0,0 +1,69 @@
+//
+// Unknown 200K thermistor on a Copymaster 3D hotend
+// Temptable sent from dealer technologyoutlet.co.uk
+//
+
+const short temptable_202[][2] PROGMEM = {
+ { OV( 1), 864 },
+ { OV( 35), 300 },
+ { OV( 38), 295 },
+ { OV( 41), 290 },
+ { OV( 44), 285 },
+ { OV( 47), 280 },
+ { OV( 51), 275 },
+ { OV( 55), 270 },
+ { OV( 60), 265 },
+ { OV( 65), 260 },
+ { OV( 70), 255 },
+ { OV( 76), 250 },
+ { OV( 83), 245 },
+ { OV( 90), 240 },
+ { OV( 98), 235 },
+ { OV( 107), 230 },
+ { OV( 116), 225 },
+ { OV( 127), 220 },
+ { OV( 138), 215 },
+ { OV( 151), 210 },
+ { OV( 164), 205 },
+ { OV( 179), 200 },
+ { OV( 195), 195 },
+ { OV( 213), 190 },
+ { OV( 232), 185 },
+ { OV( 253), 180 },
+ { OV( 275), 175 },
+ { OV( 299), 170 },
+ { OV( 325), 165 },
+ { OV( 352), 160 },
+ { OV( 381), 155 },
+ { OV( 411), 150 },
+ { OV( 443), 145 },
+ { OV( 476), 140 },
+ { OV( 511), 135 },
+ { OV( 546), 130 },
+ { OV( 581), 125 },
+ { OV( 617), 120 },
+ { OV( 652), 115 },
+ { OV( 687), 110 },
+ { OV( 720), 105 },
+ { OV( 753), 100 },
+ { OV( 783), 95 },
+ { OV( 812), 90 },
+ { OV( 839), 85 },
+ { OV( 864), 80 },
+ { OV( 886), 75 },
+ { OV( 906), 70 },
+ { OV( 924), 65 },
+ { OV( 940), 60 },
+ { OV( 954), 55 },
+ { OV( 966), 50 },
+ { OV( 976), 45 },
+ { OV( 985), 40 },
+ { OV( 992), 35 },
+ { OV( 998), 30 },
+ { OV(1003), 25 },
+ { OV(1007), 20 },
+ { OV(1011), 15 },
+ { OV(1014), 10 },
+ { OV(1016), 5 },
+ { OV(1018), 0 }
+};
diff --git a/Marlin/src/module/thermistor/thermistors.h b/Marlin/src/module/thermistor/thermistors.h
index 2a1500eebe..8ac9f11a55 100644
--- a/Marlin/src/module/thermistor/thermistors.h
+++ b/Marlin/src/module/thermistor/thermistors.h
@@ -151,6 +151,9 @@
#if ANY_THERMISTOR_IS(201) // Pt100 with LMV324 Overlord
#include "thermistor_201.h"
#endif
+#if ANY_THERMISTOR_IS(202) // 200K thermistor in Copymaker3D hotend
+ #include "thermistor_202.h"
+#endif
#if ANY_THERMISTOR_IS(331) // Like table 1, but with 3V3 as input voltage for MEGA
#include "thermistor_331.h"
#endif
diff --git a/Marlin/src/pins/esp32/pins_E4D.h b/Marlin/src/pins/esp32/pins_E4D.h
index 409f381297..829c391c4d 100644
--- a/Marlin/src/pins/esp32/pins_E4D.h
+++ b/Marlin/src/pins/esp32/pins_E4D.h
@@ -42,49 +42,49 @@
//
// Limit Switches
//
-#define X_MIN_PIN 34
-#define Y_MIN_PIN 35
-#define Z_MIN_PIN 16 // 15
+#define X_MIN_PIN 34
+#define Y_MIN_PIN 35
+#define Z_MIN_PIN 16 // 15
//
// Steppers
//
-#define X_STEP_PIN 12 // 34//27
-#define X_DIR_PIN 13 // 35//26
-#define X_ENABLE_PIN 17 // 0//17//25 // used free pin
-//#define X_CS_PIN 0
+#define X_STEP_PIN 12 // 34//27
+#define X_DIR_PIN 13 // 35//26
+#define X_ENABLE_PIN 17 // 0//17//25 // used free pin
+//#define X_CS_PIN 0
-#define Y_STEP_PIN 32 // 33
-#define Y_DIR_PIN 33 // 32
-#define Y_ENABLE_PIN X_ENABLE_PIN
-//#define Y_CS_PIN 13
+#define Y_STEP_PIN 32 // 33
+#define Y_DIR_PIN 33 // 32
+#define Y_ENABLE_PIN X_ENABLE_PIN
+//#define Y_CS_PIN 13
-#define Z_STEP_PIN 25 // 14
-#define Z_DIR_PIN 26 // 12
-#define Z_ENABLE_PIN X_ENABLE_PIN
-//#define Z_CS_PIN 5 // SS_PIN
+#define Z_STEP_PIN 25 // 14
+#define Z_DIR_PIN 26 // 12
+#define Z_ENABLE_PIN X_ENABLE_PIN
+//#define Z_CS_PIN 5 // SS_PIN
-#define E0_STEP_PIN 27 // 16
-#define E0_DIR_PIN 14 // 17
-#define E0_ENABLE_PIN X_ENABLE_PIN
-//#define E0_CS_PIN 21
+#define E0_STEP_PIN 27 // 16
+#define E0_DIR_PIN 14 // 17
+#define E0_ENABLE_PIN X_ENABLE_PIN
+//#define E0_CS_PIN 21
//
// Temperature Sensors
//
-#define TEMP_0_PIN 36 // Analog Input
-#define TEMP_BED_PIN 39 // Analog Input
+#define TEMP_0_PIN 36 // Analog Input
+#define TEMP_BED_PIN 39 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2 // 4//2//(D8)
-#define FAN_PIN 0 // 2//15//13 (D9)
-#define HEATER_BED_PIN 15 // 15//0 //(D10)
+#define HEATER_0_PIN 2 // 4//2//(D8)
+#define FAN_PIN 0 // 2//15//13 (D9)
+#define HEATER_BED_PIN 15 // 15//0 //(D10)
// SPI
-#define SDSS 5
+#define SDSS 5
#define I2S_STEPPER_STREAM
-#define I2S_WS 23
-#define I2S_BCK 22
-#define I2S_DATA 21
+#define I2S_WS 23
+#define I2S_BCK 22
+#define I2S_DATA 21
diff --git a/Marlin/src/pins/esp32/pins_ESP32.h b/Marlin/src/pins/esp32/pins_ESP32.h
index 99a5ea2f76..e4da400528 100644
--- a/Marlin/src/pins/esp32/pins_ESP32.h
+++ b/Marlin/src/pins/esp32/pins_ESP32.h
@@ -35,52 +35,52 @@
// I2S (steppers & other output-only pins)
//
#define I2S_STEPPER_STREAM
-#define I2S_WS 25
-#define I2S_BCK 26
-#define I2S_DATA 27
+#define I2S_WS 25
+#define I2S_BCK 26
+#define I2S_DATA 27
//
// Limit Switches
//
-#define X_MIN_PIN 34
-#define Y_MIN_PIN 35
-#define Z_MIN_PIN 15
+#define X_MIN_PIN 34
+#define Y_MIN_PIN 35
+#define Z_MIN_PIN 15
//
// Steppers
//
-#define X_STEP_PIN 128
-#define X_DIR_PIN 129
-#define X_ENABLE_PIN 130
-//#define X_CS_PIN 0
+#define X_STEP_PIN 128
+#define X_DIR_PIN 129
+#define X_ENABLE_PIN 130
+//#define X_CS_PIN 0
-#define Y_STEP_PIN 131
-#define Y_DIR_PIN 132
-#define Y_ENABLE_PIN 133
-//#define Y_CS_PIN 13
+#define Y_STEP_PIN 131
+#define Y_DIR_PIN 132
+#define Y_ENABLE_PIN 133
+//#define Y_CS_PIN 13
-#define Z_STEP_PIN 134
-#define Z_DIR_PIN 135
-#define Z_ENABLE_PIN 136
-//#define Z_CS_PIN 5 // SS_PIN
+#define Z_STEP_PIN 134
+#define Z_DIR_PIN 135
+#define Z_ENABLE_PIN 136
+//#define Z_CS_PIN 5 // SS_PIN
-#define E0_STEP_PIN 137
-#define E0_DIR_PIN 138
-#define E0_ENABLE_PIN 139
-//#define E0_CS_PIN 21
+#define E0_STEP_PIN 137
+#define E0_DIR_PIN 138
+#define E0_ENABLE_PIN 139
+//#define E0_CS_PIN 21
//
// Temperature Sensors
//
-#define TEMP_0_PIN 36 // Analog Input
-#define TEMP_BED_PIN 39 // Analog Input
+#define TEMP_0_PIN 36 // Analog Input
+#define TEMP_BED_PIN 39 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define FAN_PIN 13
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define FAN_PIN 13
+#define HEATER_BED_PIN 4
// SPI
-#define SDSS 5
+#define SDSS 5
diff --git a/Marlin/src/pins/esp32/pins_MRR_ESPA.h b/Marlin/src/pins/esp32/pins_MRR_ESPA.h
index a93f0f05c4..8a06f9a169 100644
--- a/Marlin/src/pins/esp32/pins_MRR_ESPA.h
+++ b/Marlin/src/pins/esp32/pins_MRR_ESPA.h
@@ -45,66 +45,66 @@
#ifdef I2S_STEPPER_STREAM
#undef I2S_STEPPER_STREAM
#endif
-#define I2S_WS -1
-#define I2S_BCK -1
-#define I2S_DATA -1
+#define I2S_WS -1
+#define I2S_BCK -1
+#define I2S_DATA -1
//
// Limit Switches
//
-#define X_STOP_PIN 34
-#define Y_STOP_PIN 35
-#define Z_STOP_PIN 15
+#define X_STOP_PIN 34
+#define Y_STOP_PIN 35
+#define Z_STOP_PIN 15
//
// Steppers
//
-#define X_STEP_PIN 27
-#define X_DIR_PIN 26
-#define X_ENABLE_PIN 25
-//#define X_CS_PIN 21
+#define X_STEP_PIN 27
+#define X_DIR_PIN 26
+#define X_ENABLE_PIN 25
+//#define X_CS_PIN 21
-#define Y_STEP_PIN 33
-#define Y_DIR_PIN 32
-#define Y_ENABLE_PIN X_ENABLE_PIN
-//#define Y_CS_PIN 22
+#define Y_STEP_PIN 33
+#define Y_DIR_PIN 32
+#define Y_ENABLE_PIN X_ENABLE_PIN
+//#define Y_CS_PIN 22
-#define Z_STEP_PIN 14
-#define Z_DIR_PIN 12
-#define Z_ENABLE_PIN X_ENABLE_PIN
-//#define Z_CS_PIN 5 // SS_PIN
+#define Z_STEP_PIN 14
+#define Z_DIR_PIN 12
+#define Z_ENABLE_PIN X_ENABLE_PIN
+//#define Z_CS_PIN 5 // SS_PIN
-#define E0_STEP_PIN 16
-#define E0_DIR_PIN 17
-#define E0_ENABLE_PIN X_ENABLE_PIN
-//#define E0_CS_PIN 21
+#define E0_STEP_PIN 16
+#define E0_DIR_PIN 17
+#define E0_ENABLE_PIN X_ENABLE_PIN
+//#define E0_CS_PIN 21
//
// Temperature Sensors
//
-#define TEMP_0_PIN 36 // Analog Input
-#define TEMP_BED_PIN 39 // Analog Input
+#define TEMP_0_PIN 36 // Analog Input
+#define TEMP_BED_PIN 39 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define FAN_PIN 13
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define FAN_PIN 13
+#define HEATER_BED_PIN 4
//
// MicroSD card
//
-#define MOSI_PIN 23
-#define MISO_PIN 19
-#define SCK_PIN 18
-#define SDSS 5
-#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
+#define MOSI_PIN 23
+#define MISO_PIN 19
+#define SCK_PIN 18
+#define SDSS 5
+#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
// Hardware serial pins
// Add the following to Configuration.h or Configuration_adv.h to assign
// specific pins to hardware Serial1.
// Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
// MRR ESPA does not have enough spare pins for such reassignment.
-//#define HARDWARE_SERIAL1_RX 21
-//#define HARDWARE_SERIAL1_TX 22
+//#define HARDWARE_SERIAL1_RX 21
+//#define HARDWARE_SERIAL1_TX 22
diff --git a/Marlin/src/pins/esp32/pins_MRR_ESPE.h b/Marlin/src/pins/esp32/pins_MRR_ESPE.h
index 0096027158..3dd50489df 100644
--- a/Marlin/src/pins/esp32/pins_MRR_ESPE.h
+++ b/Marlin/src/pins/esp32/pins_MRR_ESPE.h
@@ -43,9 +43,9 @@
//
// Limit Switches
//
-#define X_STOP_PIN 35
-#define Y_STOP_PIN 32
-#define Z_STOP_PIN 33
+#define X_STOP_PIN 35
+#define Y_STOP_PIN 32
+#define Z_STOP_PIN 33
//
// Enable I2S stepper stream
@@ -53,72 +53,72 @@
#undef I2S_STEPPER_STREAM
#define I2S_STEPPER_STREAM
-#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
+#undef LIN_ADVANCE // Currently, I2S stream does not work with linear advance
-#define I2S_WS 26
-#define I2S_BCK 25
-#define I2S_DATA 27
+#define I2S_WS 26
+#define I2S_BCK 25
+#define I2S_DATA 27
//
// Steppers
//
-#define X_STEP_PIN 129
-#define X_DIR_PIN 130
-#define X_ENABLE_PIN 128
-//#define X_CS_PIN 21
+#define X_STEP_PIN 129
+#define X_DIR_PIN 130
+#define X_ENABLE_PIN 128
+//#define X_CS_PIN 21
-#define Y_STEP_PIN 132
-#define Y_DIR_PIN 133
-#define Y_ENABLE_PIN 131
-//#define Y_CS_PIN 22
+#define Y_STEP_PIN 132
+#define Y_DIR_PIN 133
+#define Y_ENABLE_PIN 131
+//#define Y_CS_PIN 22
-#define Z_STEP_PIN 135
-#define Z_DIR_PIN 136
-#define Z_ENABLE_PIN 134
-//#define Z_CS_PIN 5 // SS_PIN
+#define Z_STEP_PIN 135
+#define Z_DIR_PIN 136
+#define Z_ENABLE_PIN 134
+//#define Z_CS_PIN 5 // SS_PIN
-#define E0_STEP_PIN 138
-#define E0_DIR_PIN 139
-#define E0_ENABLE_PIN 137
-//#define E0_CS_PIN 21
+#define E0_STEP_PIN 138
+#define E0_DIR_PIN 139
+#define E0_ENABLE_PIN 137
+//#define E0_CS_PIN 21
-#define E1_STEP_PIN 141
-#define E1_DIR_PIN 142
-#define E1_ENABLE_PIN 140
-//#define E1_CS_PIN 22
+#define E1_STEP_PIN 141
+#define E1_DIR_PIN 142
+#define E1_ENABLE_PIN 140
+//#define E1_CS_PIN 22
-#define Z2_STEP_PIN 141
-#define Z2_DIR_PIN 142
-#define Z2_ENABLE_PIN 140
-//#define Z2_CS_PIN 5
+#define Z2_STEP_PIN 141
+#define Z2_DIR_PIN 142
+#define Z2_ENABLE_PIN 140
+//#define Z2_CS_PIN 5
//
// Temperature Sensors
//
-#define TEMP_0_PIN 36 // Analog Input
-#define TEMP_1_PIN 34 // Analog Input
-#define TEMP_BED_PIN 39 // Analog Input
+#define TEMP_0_PIN 36 // Analog Input
+#define TEMP_1_PIN 34 // Analog Input
+#define TEMP_BED_PIN 39 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 145 // 2
-#define FAN_PIN 146 // 15
-#define HEATER_BED_PIN 144 // 4
+#define HEATER_0_PIN 145 // 2
+#define FAN_PIN 146 // 15
+#define HEATER_BED_PIN 144 // 4
-#define CONTROLLER_FAN_PIN 147
-//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
-//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
-#define FAN1_PIN 149
+#define CONTROLLER_FAN_PIN 147
+//#define E0_AUTO_FAN_PIN 148 // need to update Configuration_adv.h @section extruder
+//#define E1_AUTO_FAN_PIN 149 // need to update Configuration_adv.h @section extruder
+#define FAN1_PIN 149
//
// MicroSD card
//
-#define MOSI_PIN 23
-#define MISO_PIN 19
-#define SCK_PIN 18
-#define SDSS 5
-#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
+#define MOSI_PIN 23
+#define MISO_PIN 19
+#define SCK_PIN 18
+#define SDSS 5
+#define USES_SHARED_SPI // SPI is shared by SD card with TMC SPI drivers
//////////////////////////
// LCDs and Controllers //
@@ -126,21 +126,21 @@
#if HAS_GRAPHICAL_LCD
- #define LCD_PINS_RS 13
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 16
+ #define LCD_PINS_RS 13
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 16
#if ENABLED(CR10_STOCKDISPLAY)
- #define BEEPER_PIN 151
+ #define BEEPER_PIN 151
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define BEEPER_PIN 151
+ #define BEEPER_PIN 151
- //#define LCD_PINS_D5 150
- //#define LCD_PINS_D6 152
- //#define LCD_PINS_D7 153
+ //#define LCD_PINS_D5 150
+ //#define LCD_PINS_D6 152
+ //#define LCD_PINS_D7 153
#else
@@ -148,9 +148,9 @@
#endif
- #define BTN_EN1 0
- #define BTN_EN2 12
- #define BTN_ENC 14
+ #define BTN_EN1 0
+ #define BTN_EN2 12
+ #define BTN_ENC 14
#endif // HAS_GRAPHICAL_LCD
@@ -159,7 +159,7 @@
// specific pins to hardware Serial1 and Serial2.
// Note: Serial2 can be defined using HARDWARE_SERIAL2_RX and HARDWARE_SERIAL2_TX but
// MRR ESPA does not have enough spare pins for such reassignment.
-//#define HARDWARE_SERIAL1_RX 21
-//#define HARDWARE_SERIAL1_TX 22
-//#define HARDWARE_SERIAL2_RX 2
-//#define HARDWARE_SERIAL2_TX 4
+//#define HARDWARE_SERIAL1_RX 21
+//#define HARDWARE_SERIAL1_TX 22
+//#define HARDWARE_SERIAL2_RX 2
+//#define HARDWARE_SERIAL2_TX 4
diff --git a/Marlin/src/pins/linux/pins_RAMPS_LINUX.h b/Marlin/src/pins/linux/pins_RAMPS_LINUX.h
index d206547ab8..0bfbaabdcd 100644
--- a/Marlin/src/pins/linux/pins_RAMPS_LINUX.h
+++ b/Marlin/src/pins/linux/pins_RAMPS_LINUX.h
@@ -49,7 +49,7 @@
#define BOARD_INFO_NAME "RAMPS 1.4"
#endif
-#define E2END 0xFFF // 4KB
+#define E2END 0xFFF // 4KB
#define IS_RAMPS_EFB
@@ -57,85 +57,85 @@
// Servos
//
#ifdef IS_RAMPS_13
- #define SERVO0_PIN 7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
+ #define SERVO0_PIN 7 // RAMPS_13 // Will conflict with BTN_EN2 on LCD_I2C_VIKI
#else
- #define SERVO0_PIN 11
+ #define SERVO0_PIN 11
#endif
-#define SERVO1_PIN 6
-#define SERVO2_PIN 5
+#define SERVO1_PIN 6
+#define SERVO2_PIN 5
#ifndef SERVO3_PIN
- #define SERVO3_PIN 4
+ #define SERVO3_PIN 4
#endif
//
// Limit Switches
//
-#define X_MIN_PIN 3
+#define X_MIN_PIN 3
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 53
+ #define X_CS_PIN 53
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 49
+ #define Y_CS_PIN 49
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN 40
+ #define Z_CS_PIN 40
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 42
+ #define E0_CS_PIN 42
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 44
+ #define E1_CS_PIN 44
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -159,72 +159,72 @@
// Heaters / Fans
//
#ifndef MOSFET_D_PIN
- #define MOSFET_D_PIN -1
+ #define MOSFET_D_PIN -1
#endif
#ifndef RAMPS_D8_PIN
- #define RAMPS_D8_PIN 8
+ #define RAMPS_D8_PIN 8
#endif
#ifndef RAMPS_D9_PIN
- #define RAMPS_D9_PIN 9
+ #define RAMPS_D9_PIN 9
#endif
#ifndef RAMPS_D10_PIN
- #define RAMPS_D10_PIN 10
+ #define RAMPS_D10_PIN 10
#endif
-#define HEATER_0_PIN RAMPS_D10_PIN
+#define HEATER_0_PIN RAMPS_D10_PIN
-#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
- #define FAN_PIN RAMPS_D9_PIN
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
- #define HEATER_1_PIN RAMPS_D9_PIN
- #define FAN_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
- #define HEATER_1_PIN RAMPS_D9_PIN
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
- #define FAN_PIN RAMPS_D9_PIN
- #define FAN1_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
- #define FAN_PIN RAMPS_D8_PIN
-#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
- #define FAN_PIN RAMPS_D9_PIN
- #define HEATER_BED_PIN RAMPS_D8_PIN
+#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
+ #define FAN_PIN RAMPS_D9_PIN
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
+ #define HEATER_1_PIN RAMPS_D9_PIN
+ #define FAN_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
+ #define HEATER_1_PIN RAMPS_D9_PIN
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
+ #define FAN_PIN RAMPS_D9_PIN
+ #define FAN1_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_SF) // Spindle, Fan
+ #define FAN_PIN RAMPS_D8_PIN
+#else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
+ #define FAN_PIN RAMPS_D9_PIN
+ #define HEATER_BED_PIN RAMPS_D8_PIN
#if HOTENDS == 1
- #define FAN1_PIN MOSFET_D_PIN
+ #define FAN1_PIN MOSFET_D_PIN
#else
- #define HEATER_1_PIN MOSFET_D_PIN
+ #define HEATER_1_PIN MOSFET_D_PIN
#endif
#endif
#ifndef FAN_PIN
- #define FAN_PIN 4 // IO pin. Buffer needed
+ #define FAN_PIN 4 // IO pin. Buffer needed
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 5 // Analog Input on AUX2
+ #define FILWIDTH_PIN 5 // Analog Input on AUX2
#endif
// define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 4
+ #define FIL_RUNOUT_PIN 4
#endif
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
- #if NUM_SERVOS <= 1 // Prefer the servo connector
- #define CASE_LIGHT_PIN 6 // Hardware PWM
- #elif HAS_FREE_AUX2_PINS // try to use AUX 2
- #define CASE_LIGHT_PIN 44 // Hardware PWM
+ #if NUM_SERVOS <= 1 // Prefer the servo connector
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #elif HAS_FREE_AUX2_PINS // try to use AUX 2
+ #define CASE_LIGHT_PIN 44 // Hardware PWM
#endif
#endif
@@ -232,14 +232,14 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
- #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
- #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
- #elif HAS_FREE_AUX2_PINS // try to use AUX 2
- #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_DIR_PIN 65
+ #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
+ #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
+ #elif HAS_FREE_AUX2_PINS // try to use AUX 2
+ #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_DIR_PIN 65
#endif
#endif
@@ -247,13 +247,13 @@
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
- #define E_MUX0_PIN 40 // Z_CS_PIN
+ #define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
- #define E_MUX1_PIN 42 // E0_CS_PIN
+ #define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
- #define E_MUX2_PIN 44 // E1_CS_PIN
+ #define E_MUX2_PIN 44 // E1_CS_PIN
#endif
/**
@@ -261,17 +261,17 @@
*/
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI 66
+ #define TMC_SW_MOSI 66
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO 44
+ #define TMC_SW_MISO 44
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK 64
+ #define TMC_SW_SCK 64
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -295,91 +295,91 @@
*/
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN 40
+ #define X_SERIAL_TX_PIN 40
#endif
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN 63
+ #define X_SERIAL_RX_PIN 63
#endif
#ifndef X2_SERIAL_TX_PIN
- #define X2_SERIAL_TX_PIN -1
+ #define X2_SERIAL_TX_PIN -1
#endif
#ifndef X2_SERIAL_RX_PIN
- #define X2_SERIAL_RX_PIN -1
+ #define X2_SERIAL_RX_PIN -1
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN 59
+ #define Y_SERIAL_TX_PIN 59
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN 64
+ #define Y_SERIAL_RX_PIN 64
#endif
#ifndef Y2_SERIAL_TX_PIN
- #define Y2_SERIAL_TX_PIN -1
+ #define Y2_SERIAL_TX_PIN -1
#endif
#ifndef Y2_SERIAL_RX_PIN
- #define Y2_SERIAL_RX_PIN -1
+ #define Y2_SERIAL_RX_PIN -1
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN 42
+ #define Z_SERIAL_TX_PIN 42
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN 65
+ #define Z_SERIAL_RX_PIN 65
#endif
#ifndef Z2_SERIAL_TX_PIN
- #define Z2_SERIAL_TX_PIN -1
+ #define Z2_SERIAL_TX_PIN -1
#endif
#ifndef Z2_SERIAL_RX_PIN
- #define Z2_SERIAL_RX_PIN -1
+ #define Z2_SERIAL_RX_PIN -1
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN 44
+ #define E0_SERIAL_TX_PIN 44
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN 66
+ #define E0_SERIAL_RX_PIN 66
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN -1
+ #define E1_SERIAL_TX_PIN -1
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN -1
+ #define E1_SERIAL_RX_PIN -1
#endif
#ifndef E2_SERIAL_TX_PIN
- #define E2_SERIAL_TX_PIN -1
+ #define E2_SERIAL_TX_PIN -1
#endif
#ifndef E2_SERIAL_RX_PIN
- #define E2_SERIAL_RX_PIN -1
+ #define E2_SERIAL_RX_PIN -1
#endif
#ifndef E3_SERIAL_TX_PIN
- #define E3_SERIAL_TX_PIN -1
+ #define E3_SERIAL_TX_PIN -1
#endif
#ifndef E3_SERIAL_RX_PIN
- #define E3_SERIAL_RX_PIN -1
+ #define E3_SERIAL_RX_PIN -1
#endif
#ifndef E4_SERIAL_TX_PIN
- #define E4_SERIAL_TX_PIN -1
+ #define E4_SERIAL_TX_PIN -1
#endif
#ifndef E4_SERIAL_RX_PIN
- #define E4_SERIAL_RX_PIN -1
+ #define E4_SERIAL_RX_PIN -1
#endif
#ifndef E5_SERIAL_TX_PIN
- #define E5_SERIAL_TX_PIN -1
+ #define E5_SERIAL_TX_PIN -1
#endif
#ifndef E5_SERIAL_RX_PIN
- #define E5_SERIAL_RX_PIN -1
+ #define E5_SERIAL_RX_PIN -1
#endif
#ifndef E6_SERIAL_TX_PIN
- #define E6_SERIAL_TX_PIN -1
+ #define E6_SERIAL_TX_PIN -1
#endif
#ifndef E6_SERIAL_RX_PIN
- #define E6_SERIAL_RX_PIN -1
+ #define E6_SERIAL_RX_PIN -1
#endif
#ifndef E7_SERIAL_TX_PIN
- #define E7_SERIAL_TX_PIN -1
+ #define E7_SERIAL_TX_PIN -1
#endif
#ifndef E7_SERIAL_RX_PIN
- #define E7_SERIAL_RX_PIN -1
+ #define E7_SERIAL_RX_PIN -1
#endif
#endif
@@ -394,62 +394,62 @@
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE 51 // SID (MOSI)
- #define LCD_PINS_D4 52 // SCK (CLK) clock
+ #define LCD_PINS_RS 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 40
- #define LCD_PINS_ENABLE 42
- #define LCD_PINS_D4 65
- #define LCD_PINS_D5 66
- #define LCD_PINS_D6 44
- #define LCD_PINS_D7 64
+ #define LCD_PINS_RS 40
+ #define LCD_PINS_ENABLE 42
+ #define LCD_PINS_D4 65
+ #define LCD_PINS_D5 66
+ #define LCD_PINS_D6 44
+ #define LCD_PINS_D7 64
#else
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 25
+ #define LCD_PINS_RS 27
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 25
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#endif
#elif ENABLED(ZONESTAR_LCD)
- #define LCD_PINS_RS 64
- #define LCD_PINS_ENABLE 44
- #define LCD_PINS_D4 63
- #define LCD_PINS_D5 40
- #define LCD_PINS_D6 42
- #define LCD_PINS_D7 65
+ #define LCD_PINS_RS 64
+ #define LCD_PINS_ENABLE 44
+ #define LCD_PINS_D4 63
+ #define LCD_PINS_D5 40
+ #define LCD_PINS_D6 42
+ #define LCD_PINS_D7 65
#else
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
- #define LCD_PINS_DC 25 // Set as output on init
- #define LCD_PINS_RS 27 // Pull low for 1s to init
+ #define LCD_PINS_DC 25 // Set as output on init
+ #define LCD_PINS_RS 27 // Pull low for 1s to init
// DOGM SPI LCD Support
- #define DOGLCD_CS 16
- #define DOGLCD_MOSI 17
- #define DOGLCD_SCK 23
- #define DOGLCD_A0 LCD_PINS_DC
+ #define DOGLCD_CS 16
+ #define DOGLCD_MOSI 17
+ #define DOGLCD_SCK 23
+ #define DOGLCD_A0 LCD_PINS_DC
#else
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
#endif
- #define LCD_PINS_D7 29
+ #define LCD_PINS_D7 29
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#endif
#endif
@@ -457,10 +457,10 @@
#if DISABLED(NEWPANEL)
// Buttons attached to a shift register
// Not wired yet
- //#define SHIFT_CLK 38
- //#define SHIFT_LD 42
- //#define SHIFT_OUT 40
- //#define SHIFT_EN 17
+ //#define SHIFT_CLK 38
+ //#define SHIFT_LD 42
+ //#define SHIFT_OUT 40
+ //#define SHIFT_EN 17
#endif
#endif
@@ -472,85 +472,85 @@
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#if ENABLED(CR10_STOCKDISPLAY)
- #define BTN_EN1 17
- #define BTN_EN2 23
+ #define BTN_EN1 17
+ #define BTN_EN2 23
#else
- #define BTN_EN1 31
- #define BTN_EN2 33
+ #define BTN_EN1 31
+ #define BTN_EN2 33
#endif
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
- #define KILL_PIN 41
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
- #define LCD_BACKLIGHT_PIN 39
+ #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
+ #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 SDSS
- #define KILL_PIN 41
+ #define BTN_EN1 47
+ #define BTN_EN2 43
+ #define BTN_ENC 32
+ #define LCD_SDSS SDSS
+ #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 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 SDSS
- #define SD_DETECT_PIN 49
+ #define LCD_SDSS SDSS
+ #define SD_DETECT_PIN 49
#elif ANY(VIKI2, miniVIKI)
- #define DOGLCD_CS 45
- #define DOGLCD_A0 44
+ #define DOGLCD_CS 45
+ #define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
- #define BEEPER_PIN 33
- #define STAT_LED_RED_PIN 32
- #define STAT_LED_BLUE_PIN 35
+ #define BEEPER_PIN 33
+ #define STAT_LED_RED_PIN 32
+ #define STAT_LED_BLUE_PIN 35
- #define BTN_EN1 22
- #define BTN_EN2 7
- #define BTN_ENC 39
+ #define BTN_EN1 22
+ #define BTN_EN2 7
+ #define BTN_ENC 39
- #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
- #define KILL_PIN 31
+ #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
+ #define KILL_PIN 31
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
- #define DOGLCD_CS 29
- #define DOGLCD_A0 27
+ #define DOGLCD_CS 29
+ #define DOGLCD_A0 27
- #define BEEPER_PIN 23
- #define LCD_BACKLIGHT_PIN 33
+ #define BEEPER_PIN 23
+ #define LCD_BACKLIGHT_PIN 33
- #define BTN_EN1 35
- #define BTN_EN2 37
- #define BTN_ENC 31
+ #define BTN_EN1 35
+ #define BTN_EN2 37
+ #define BTN_ENC 31
- #define LCD_SDSS SDSS
- #define SD_DETECT_PIN 49
- #define KILL_PIN 41
+ #define LCD_SDSS SDSS
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
#elif ENABLED(MKS_MINI_12864)
- #define DOGLCD_A0 27
- #define DOGLCD_CS 25
+ #define DOGLCD_A0 27
+ #define DOGLCD_CS 25
// GLCD features
// Uncomment screen orientation
@@ -558,25 +558,25 @@
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
// not connected to a pin
- #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
+ #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
- #define SD_DETECT_PIN 49
- #define KILL_PIN 64
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 64
#elif ENABLED(MINIPANEL)
- #define BEEPER_PIN 42
+ #define BEEPER_PIN 42
// not connected to a pin
- #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
+ #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
- #define DOGLCD_A0 44
- #define DOGLCD_CS 66
+ #define DOGLCD_A0 44
+ #define DOGLCD_CS 66
// GLCD features
// Uncomment screen orientation
@@ -584,16 +584,16 @@
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BTN_EN1 40
- #define BTN_EN2 63
- #define BTN_ENC 59
+ #define BTN_EN1 40
+ #define BTN_EN2 63
+ #define BTN_ENC 59
- #define SD_DETECT_PIN 49
- #define KILL_PIN 64
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 64
#elif ENABLED(ZONESTAR_LCD)
- #define ADC_KEYPAD_PIN 12
+ #define ADC_KEYPAD_PIN 12
#elif ENABLED(AZSMZ_12864)
@@ -602,29 +602,29 @@
#else
// Beeper on AUX-4
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
// Buttons are directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT 40
- #define SHIFT_CLK 44
- #define SHIFT_LD 42
- #define BTN_EN1 64
- #define BTN_EN2 59
- #define BTN_ENC 63
+ #define SHIFT_OUT 40
+ #define SHIFT_CLK 44
+ #define SHIFT_LD 42
+ #define BTN_EN1 64
+ #define BTN_EN2 59
+ #define BTN_ENC 63
#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
+ #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
+ #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
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
#endif
#endif
diff --git a/Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h b/Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
index 1f02f9299e..1417fb7d99 100644
--- a/Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
+++ b/Marlin/src/pins/lpc1768/pins_AZSMZ_MINI.h
@@ -31,87 +31,93 @@
#define BOARD_INFO_NAME "AZSMZ MINI"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23
+#define SERVO0_PIN P1_23
//
// Limit Switches
//
-#define X_MIN_PIN P1_24
-#define Y_MIN_PIN P1_26
-#define Z_MIN_PIN P1_28
-#define Z_MAX_PIN P1_29
+#define X_MIN_PIN P1_24
+#define Y_MIN_PIN P1_26
+#define Z_MIN_PIN P1_28
+#define Z_MAX_PIN P1_29
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // A0 (TH1)
-#define TEMP_BED_PIN P0_24_A1 // A1 (TH2)
-#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
+#define TEMP_0_PIN P0_23_A0 // A0 (TH1)
+#define TEMP_BED_PIN P0_24_A1 // A1 (TH2)
+#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
//
// Heaters / Fans
//
// EFB
-#define HEATER_0_PIN P2_04
-#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_04
+#define HEATER_BED_PIN P2_05
#ifndef FAN_PIN
- #define FAN_PIN P2_07
+ #define FAN_PIN P2_07
#endif
-#define FAN1_PIN P0_26
+#define FAN1_PIN P0_26
-#define LCD_SDSS P0_16 // LCD SD chip select
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define LCD_SDSS P0_16 // LCD SD chip select
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if ENABLED(AZSMZ_12864)
- #define BEEPER_PIN P1_30
- #define DOGLCD_A0 P2_06
- #define DOGLCD_CS P1_22
- #define BTN_EN1 P4_28
- #define BTN_EN2 P1_27
- #define BTN_ENC P3_26
+ #define BEEPER_PIN P1_30
+ #define DOGLCD_A0 P2_06
+ #define DOGLCD_CS P1_22
+ #define BTN_EN1 P4_28
+ #define BTN_EN2 P1_27
+ #define BTN_ENC P3_26
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION LCD
+ #define SDCARD_CONNECTION LCD
#endif
#endif
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_15
- #define MISO_PIN P0_17
- #define MOSI_PIN P0_18
- #define SS_PIN LCD_SDSS
- #define SD_DETECT_PIN P3_25
+ #define SCK_PIN P0_15
+ #define MISO_PIN P0_17
+ #define MOSI_PIN P0_18
+ #define SS_PIN LCD_SDSS
+ #define SD_DETECT_PIN P3_25
#elif SD_CONNECTION_IS(ONBOARD)
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
@@ -119,16 +125,16 @@
//
// Ethernet pins
//
-#define ENET_MDIO P1_17
-#define ENET_RX_ER P1_14
-#define ENET_RXD1 P1_10
-#define ENET_MOC P1_16
-#define REF_CLK P1_15
-#define ENET_RXD0 P1_09
-#define ENET_CRS P1_08
-#define ENET_TX_EN P1_04
-#define ENET_TXD0 P1_00
-#define ENET_TXD1 P1_01
+#define ENET_MDIO P1_17
+#define ENET_RX_ER P1_14
+#define ENET_RXD1 P1_10
+#define ENET_MOC P1_16
+#define REF_CLK P1_15
+#define ENET_RXD0 P1_09
+#define ENET_CRS P1_08
+#define ENET_TX_EN P1_04
+#define ENET_TXD0 P1_00
+#define ENET_TXD1 P1_01
/**
* PWMs
diff --git a/Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h b/Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
index 4ff4ebc73b..d710138b95 100644
--- a/Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
+++ b/Marlin/src/pins/lpc1768/pins_BIQU_B300_V1.0.h
@@ -38,45 +38,51 @@
#define BOARD_INFO_NAME "BIQU Thunder B300 V1.0"
#endif
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Limit Switches
//
-#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
-#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
-#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
-#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
-#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
-#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
+#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
#ifndef X_CS_PIN
- #define X_CS_PIN P1_15 // ETH
+ #define X_CS_PIN P1_15 // ETH
#endif
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
#ifndef Y_CS_PIN
- #define Y_CS_PIN P1_14 // ETH
+ #define Y_CS_PIN P1_14 // ETH
#endif
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
#ifndef Z_CS_PIN
- #define Z_CS_PIN P1_16 // ETH
+ #define Z_CS_PIN P1_16 // ETH
#endif
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
#ifndef E0_CS_PIN
- #define E0_CS_PIN P1_17 // ETH
+ #define E0_CS_PIN P1_17 // ETH
#endif
//
@@ -84,13 +90,13 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P0_18 // ETH
+ #define TMC_SW_MOSI P0_18 // ETH
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P0_17 // ETH
+ #define TMC_SW_MISO P0_17 // ETH
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P0_15 // ETH
+ #define TMC_SW_SCK P0_15 // ETH
#endif
#endif
@@ -98,23 +104,23 @@
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_24_A1 // A0 (T0)
-#define TEMP_BED_PIN P0_23_A0 // A1 (T1)
+#define TEMP_0_PIN P0_24_A1 // A0 (T0)
+#define TEMP_BED_PIN P0_23_A0 // A1 (T1)
//
// Heaters / Fans
//
-#define HEATER_0_PIN P2_07
-#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07
+#define HEATER_BED_PIN P2_05
#ifndef FAN_PIN
- #define FAN_PIN P2_04
+ #define FAN_PIN P2_04
#endif
//
// Unused
//
-//#define PIN_P2_10 P2_10 // IBOOT-1
-//#define PIN_P0_27 P0_27 // Onboard SD Detect
+//#define PIN_P2_10 P2_10 // IBOOT-1
+//#define PIN_P0_27 P0_27 // Onboard SD Detect
/**
* LCD / Controller
@@ -128,16 +134,16 @@
*/
#if HAS_SPI_LCD
- #define BEEPER_PIN P1_31 // EXP1-1
+ #define BEEPER_PIN P1_31 // EXP1-1
- #define BTN_EN1 P3_26 // EXP2-3
- #define BTN_EN2 P3_25 // EXP2-5
- #define BTN_ENC P1_30 // EXP1-2
+ #define BTN_EN1 P3_26 // EXP2-3
+ #define BTN_EN2 P3_25 // EXP2-5
+ #define BTN_ENC P1_30 // EXP1-2
- #define SD_DETECT_PIN P0_27 // EXP2-7
- #define LCD_PINS_RS P0_16 // EXP1-4
- #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
- #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
+ #define SD_DETECT_PIN P0_27 // EXP2-7
+ #define LCD_PINS_RS P0_16 // EXP1-4
+ #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
+ #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
#error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU B300 v1.0"
@@ -156,11 +162,11 @@
* Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
*/
#if ENABLED(SDSUPPORT)
- #define SCK_PIN P0_15 // EXP1-5
- #define MISO_PIN P0_16 // EXP1-4
- #define MOSI_PIN P0_18 // EXP1-3
- #define SS_PIN P1_30 // EXP1-2
- #define SDSS SS_PIN
+ #define SCK_PIN P0_15 // EXP1-5
+ #define MISO_PIN P0_16 // EXP1-4
+ #define MOSI_PIN P0_18 // EXP1-3
+ #define SS_PIN P1_30 // EXP1-2
+ #define SDSS SS_PIN
#endif
/**
diff --git a/Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h b/Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
index 17a9b7d58d..041235d493 100644
--- a/Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
+++ b/Marlin/src/pins/lpc1768/pins_BIQU_BQ111_A4.h
@@ -36,59 +36,62 @@
#define BOARD_INFO_NAME "BIQU BQ111-A4"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Limit Switches
//
-#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
-#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
-#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
-#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
-#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
-#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
-
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
+#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
//
// Steppers
//
-#define X_STEP_PIN P2_0
-#define X_DIR_PIN P0_5
-#define X_ENABLE_PIN P0_4
+#define X_STEP_PIN P2_0
+#define X_DIR_PIN P0_5
+#define X_ENABLE_PIN P0_4
-#define Y_STEP_PIN P2_1
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_1
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
-#define Z_STEP_PIN P2_2
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
-
-#define E0_STEP_PIN P2_3
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define Z_STEP_PIN P2_2
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
+#define E0_STEP_PIN P2_3
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // A0 (T0)
-#define TEMP_BED_PIN P0_24_A1 // A1 (T1)
-
+#define TEMP_0_PIN P0_23_A0 // A0 (T0)
+#define TEMP_BED_PIN P0_24_A1 // A1 (T1)
//
// Heaters / Fans
//
-#define HEATER_0_PIN P2_7
-#define HEATER_BED_PIN P2_5
+#define HEATER_0_PIN P2_7
+#define HEATER_BED_PIN P2_5
#ifndef FAN_PIN
- #define FAN_PIN P2_4
+ #define FAN_PIN P2_4
#endif
//
// Unused
//
-//#define PIN_P2_10 P2_10 // IBOOT-1
-//#define PIN_P0_27 P0_27 // Onboard SD Detect
+//#define PIN_P2_10 P2_10 // IBOOT-1
+//#define PIN_P0_27 P0_27 // Onboard SD Detect
/**
* LCD / Controller
@@ -102,16 +105,16 @@
*/
#if HAS_SPI_LCD
- #define BEEPER_PIN P1_31 // EXP1-1
+ #define BEEPER_PIN P1_31 // EXP1-1
- #define BTN_EN1 P3_26 // EXP2-3
- #define BTN_EN2 P3_25 // EXP2-5
- #define BTN_ENC P1_30 // EXP1-2
+ #define BTN_EN1 P3_26 // EXP2-3
+ #define BTN_EN2 P3_25 // EXP2-5
+ #define BTN_ENC P1_30 // EXP1-2
- #define SD_DETECT_PIN P0_27 // EXP2-7
- #define LCD_PINS_RS P0_16 // EXP1-4
- #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
- #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
+ #define SD_DETECT_PIN P0_27 // EXP2-7
+ #define LCD_PINS_RS P0_16 // EXP1-4
+ #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
+ #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && HAS_CHARACTER_LCD
#error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
@@ -123,7 +126,6 @@
#endif // HAS_SPI_LCD
-
/**
* SD Card Reader
*
@@ -132,15 +134,14 @@
*/
#if ENABLED(SDSUPPORT)
- #define SCK_PIN P0_15 // EXP1-5
- #define MISO_PIN P0_16 // EXP1-4
- #define MOSI_PIN P0_18 // EXP1-3
- #define SS_PIN P1_30 // EXP1-2
- #define SDSS SS_PIN
+ #define SCK_PIN P0_15 // EXP1-5
+ #define MISO_PIN P0_16 // EXP1-4
+ #define MOSI_PIN P0_18 // EXP1-3
+ #define SS_PIN P1_30 // EXP1-2
+ #define SDSS SS_PIN
#endif // SDSUPPORT
-
/**
* PWMS
*
diff --git a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
index 104f40fdf1..4dae2dc5d6 100644
--- a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
+++ b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_1.h
@@ -23,35 +23,41 @@
#define BOARD_INFO_NAME "BIGTREE SKR 1.1"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Limit Switches
//
-#define X_MIN_PIN P1_29
-#define X_MAX_PIN P1_28
-#define Y_MIN_PIN P1_27
-#define Y_MAX_PIN P1_26
-#define Z_MIN_PIN P1_25
-#define Z_MAX_PIN P1_24
+#define X_MIN_PIN P1_29
+#define X_MAX_PIN P1_28
+#define Y_MIN_PIN P1_27
+#define Y_MAX_PIN P1_26
+#define Z_MIN_PIN P1_25
+#define Z_MAX_PIN P1_24
//
// Steppers
//
-#define X_STEP_PIN P0_04
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P4_28
+#define X_STEP_PIN P0_04
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P4_28
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P2_02
-#define Y_ENABLE_PIN P2_00
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P2_02
+#define Y_ENABLE_PIN P2_00
-#define Z_STEP_PIN P0_20
-#define Z_DIR_PIN P0_21
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P0_20
+#define Z_DIR_PIN P0_21
+#define Z_ENABLE_PIN P0_19
-#define E0_STEP_PIN P0_11
-#define E0_DIR_PIN P2_13
-#define E0_ENABLE_PIN P2_12
+#define E0_STEP_PIN P0_11
+#define E0_DIR_PIN P2_13
+#define E0_ENABLE_PIN P2_12
/**
* LCD / Controller
@@ -67,19 +73,19 @@
*/
#if HAS_SPI_LCD
- #define BTN_EN1 P3_26
- #define BTN_EN2 P3_25
- #define BTN_ENC P2_11
+ #define BTN_EN1 P3_26
+ #define BTN_EN2 P3_25
+ #define BTN_ENC P2_11
- #define SD_DETECT_PIN P1_31
- #define LCD_SDSS P1_23
- #define LCD_PINS_RS P0_16
- #define LCD_PINS_ENABLE P0_18
- #define LCD_PINS_D4 P0_15
+ #define SD_DETECT_PIN P1_31
+ #define LCD_SDSS P1_23
+ #define LCD_PINS_RS P0_16
+ #define LCD_PINS_ENABLE P0_18
+ #define LCD_PINS_D4 P0_15
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS P2_06
- #define DOGLCD_A0 P0_16
+ #define DOGLCD_CS P2_06
+ #define DOGLCD_A0 P0_16
#endif
#endif
@@ -91,14 +97,14 @@
// https://www.facebook.com/groups/505736576548648/permalink/630639874058317/
#ifndef SDCARD_CONNECTION
#if EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
- #define SDCARD_CONNECTION LCD
+ #define SDCARD_CONNECTION LCD
#else
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
#endif
#if SD_CONNECTION_IS(LCD)
- #define SS_PIN P1_23
+ #define SS_PIN P1_23
#endif
// Trinamic driver support
@@ -131,49 +137,48 @@
// When using any TMC SPI-based drivers, software SPI is used
// because pins may be shared with the display or SD card.
#define TMC_USE_SW_SPI
- #define TMC_SW_MOSI P0_18
- #define TMC_SW_MISO P0_17
+ #define TMC_SW_MOSI P0_18
+ #define TMC_SW_MISO P0_17
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
- #define TMC_SW_SCK P0_15
+ #define TMC_SW_SCK P0_15
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
- //#define TMC_SW_SCK P2_06
+ //#define TMC_SW_SCK P2_06
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
// Software enable allows the enable pins to be repurposed as chip-select pins.
// Note: Requires the driver modules to be modified to always be enabled with the enable pin removed.
#if AXIS_DRIVER_TYPE_X(TMC2130)
- #define X_CS_PIN P4_28
- #undef X_ENABLE_PIN
- #define X_ENABLE_PIN -1
+ #define X_CS_PIN P4_28
+ #undef X_ENABLE_PIN
+ #define X_ENABLE_PIN -1
#endif
#if AXIS_DRIVER_TYPE_Y(TMC2130)
- #define Y_CS_PIN P2_00
- #undef Y_ENABLE_PIN
- #define Y_ENABLE_PIN -1
+ #define Y_CS_PIN P2_00
+ #undef Y_ENABLE_PIN
+ #define Y_ENABLE_PIN -1
#endif
#if AXIS_DRIVER_TYPE_Z(TMC2130)
- #define Z_CS_PIN P0_19
- #undef Z_ENABLE_PIN
- #define Z_ENABLE_PIN -1
+ #define Z_CS_PIN P0_19
+ #undef Z_ENABLE_PIN
+ #define Z_ENABLE_PIN -1
#endif
#if AXIS_DRIVER_TYPE_E0(TMC2130)
- #define E0_CS_PIN P2_12
- #undef E0_ENABLE_PIN
- #define E0_ENABLE_PIN -1
+ #define E0_CS_PIN P2_12
+ #undef E0_ENABLE_PIN
+ #define E0_ENABLE_PIN -1
#endif
-
#if AXIS_DRIVER_TYPE_E1(TMC2130)
- #define E1_CS_PIN P0_10
- #undef E1_ENABLE_PIN
- #define E1_ENABLE_PIN -1
+ #define E1_CS_PIN P0_10
+ #undef E1_ENABLE_PIN
+ #define E1_ENABLE_PIN -1
#endif
- #else // !SOFTWARE_DRIVER_ENABLE
+ #else // !SOFTWARE_DRIVER_ENABLE
// A chip-select pin is needed for each driver.
@@ -186,11 +191,11 @@
#if SD_CONNECTION_IS(LCD)
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_PINS_FOR_CS."
#endif
- #define X_CS_PIN P1_23
- #define Y_CS_PIN P3_26
- #define Z_CS_PIN P2_11
- #define E0_CS_PIN P3_25
- #define E1_CS_PIN P1_31
+ #define X_CS_PIN P1_23
+ #define Y_CS_PIN P3_26
+ #define Z_CS_PIN P2_11
+ #define E0_CS_PIN P3_25
+ #define E1_CS_PIN P1_31
#endif
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
@@ -201,16 +206,16 @@
#if SD_CONNECTION_IS(LCD)
#error "SDCARD_CONNECTION must not be 'LCD' with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
#endif
- #define X_CS_PIN P0_02
- #define Y_CS_PIN P0_03
- #define Z_CS_PIN P2_06
+ #define X_CS_PIN P0_02
+ #define Y_CS_PIN P0_03
+ #define Z_CS_PIN P2_06
// We use SD_DETECT_PIN for E0
#undef SD_DETECT_PIN
- #define E0_CS_PIN P1_31
+ #define E0_CS_PIN P1_31
// We use LCD_SDSS pin for E1
- #undef LCD_SDSS
- #define LCD_SDSS -1
- #define E1_CS_PIN P1_23
+ #undef LCD_SDSS
+ #define LCD_SDSS -1
+ #define E1_CS_PIN P1_23
#endif
// Example 3: Use the driver enable pins for chip-select.
@@ -218,11 +223,11 @@
// advanced features (like driver monitoring) will not be available.
//#define SKR_USE_ENABLE_CS
#if ENABLED(SKR_USE_ENABLE_FOR_CS)
- #define X_CS_PIN X_ENABLE_PIN
- #define Y_CS_PIN Y_ENABLE_PIN
- #define Z_CS_PIN Z_ENABLE_PIN
- #define E0_CS_PIN E0_ENABLE_PIN
- #define E1_CS_PIN E1_ENABLE_PIN
+ #define X_CS_PIN X_ENABLE_PIN
+ #define Y_CS_PIN Y_ENABLE_PIN
+ #define Z_CS_PIN Z_ENABLE_PIN
+ #define E0_CS_PIN E0_ENABLE_PIN
+ #define E1_CS_PIN E1_ENABLE_PIN
#endif
#endif // SOFTWARE_DRIVER_ENABLE
diff --git a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
index bd0ad468de..1d1ad60f24 100644
--- a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
+++ b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_3.h
@@ -23,110 +23,116 @@
#define BOARD_INFO_NAME "BIGTREE SKR 1.3"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
/**
* Trinamic Stallguard pins
*/
-#define X_DIAG_PIN P1_29 // X-
-#define Y_DIAG_PIN P1_27 // Y-
-#define Z_DIAG_PIN P1_25 // Z-
-#define E0_DIAG_PIN P1_28 // X+
-#define E1_DIAG_PIN P1_26 // Y+
+#define X_DIAG_PIN P1_29 // X-
+#define Y_DIAG_PIN P1_27 // Y-
+#define Z_DIAG_PIN P1_25 // Z-
+#define E0_DIAG_PIN P1_28 // X+
+#define E1_DIAG_PIN P1_26 // Y+
/**
* Limit Switches
*/
#if X_STALL_SENSITIVITY
- #define X_STOP_PIN X_DIAG_PIN
+ #define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
- #define X_MAX_PIN P1_28 // X+
+ #define X_MAX_PIN P1_28 // X+
#else
- #define X_MIN_PIN P1_28 // X+
+ #define X_MIN_PIN P1_28 // X+
#endif
#else
- #define X_MIN_PIN P1_29 // X-
- #define X_MAX_PIN P1_28 // X+
+ #define X_MIN_PIN P1_29 // X-
+ #define X_MAX_PIN P1_28 // X+
#endif
#if Y_STALL_SENSITIVITY
- #define Y_STOP_PIN Y_DIAG_PIN
+ #define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
- #define Y_MAX_PIN P1_26 // Y+
+ #define Y_MAX_PIN P1_26 // Y+
#else
- #define Y_MIN_PIN P1_26 // Y+
+ #define Y_MIN_PIN P1_26 // Y+
#endif
#else
- #define Y_MIN_PIN P1_27 // Y-
- #define Y_MAX_PIN P1_26 // Y+
+ #define Y_MIN_PIN P1_27 // Y-
+ #define Y_MAX_PIN P1_26 // Y+
#endif
#if Z_STALL_SENSITIVITY
- #define Z_STOP_PIN Z_DIAG_PIN
+ #define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
- #define Z_MAX_PIN P1_24 // Z+
+ #define Z_MAX_PIN P1_24 // Z+
#else
- #define Z_MIN_PIN P1_24 // Z+
+ #define Z_MIN_PIN P1_24 // Z+
#endif
#else
- #define Z_MIN_PIN P1_25 // Z-
- #define Z_MAX_PIN P1_24 // Z+
+ #define Z_MIN_PIN P1_25 // Z-
+ #define Z_MAX_PIN P1_24 // Z+
#endif
-#define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
+#define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
//
// Servos
//
#ifndef SERVO0_PIN
- #define SERVO0_PIN P2_00
+ #define SERVO0_PIN P2_00
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN P1_24
+ #define Z_MIN_PROBE_PIN P1_24
#endif
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN P1_28
+ #define FIL_RUNOUT_PIN P1_28
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_02
-#define X_DIR_PIN P2_06
-#define X_ENABLE_PIN P2_01
+#define X_STEP_PIN P2_02
+#define X_DIR_PIN P2_06
+#define X_ENABLE_PIN P2_01
#ifndef X_CS_PIN
- #define X_CS_PIN P1_17
+ #define X_CS_PIN P1_17
#endif
-#define Y_STEP_PIN P0_19
-#define Y_DIR_PIN P0_20
-#define Y_ENABLE_PIN P2_08
+#define Y_STEP_PIN P0_19
+#define Y_DIR_PIN P0_20
+#define Y_ENABLE_PIN P2_08
#ifndef Y_CS_PIN
- #define Y_CS_PIN P1_15
+ #define Y_CS_PIN P1_15
#endif
-#define Z_STEP_PIN P0_22
-#define Z_DIR_PIN P2_11
-#define Z_ENABLE_PIN P0_21
+#define Z_STEP_PIN P0_22
+#define Z_DIR_PIN P2_11
+#define Z_ENABLE_PIN P0_21
#ifndef Z_CS_PIN
- #define Z_CS_PIN P1_10
+ #define Z_CS_PIN P1_10
#endif
-#define E0_STEP_PIN P2_13
-#define E0_DIR_PIN P0_11
-#define E0_ENABLE_PIN P2_12
+#define E0_STEP_PIN P2_13
+#define E0_DIR_PIN P0_11
+#define E0_ENABLE_PIN P2_12
#ifndef E0_CS_PIN
- #define E0_CS_PIN P1_08
+ #define E0_CS_PIN P1_08
#endif
#ifndef E1_CS_PIN
- #define E1_CS_PIN P1_01
+ #define E1_CS_PIN P1_01
#endif
//
@@ -134,17 +140,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P4_28
+ #define TMC_SW_MOSI P4_28
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P0_05
+ #define TMC_SW_MISO P0_05
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P0_04
+ #define TMC_SW_SCK P0_04
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -166,20 +172,20 @@
//
// Software serial
//
- #define X_SERIAL_TX_PIN P4_29
- #define X_SERIAL_RX_PIN P1_17
+ #define X_SERIAL_TX_PIN P4_29
+ #define X_SERIAL_RX_PIN P1_17
- #define Y_SERIAL_TX_PIN P1_16
- #define Y_SERIAL_RX_PIN P1_15
+ #define Y_SERIAL_TX_PIN P1_16
+ #define Y_SERIAL_RX_PIN P1_15
- #define Z_SERIAL_TX_PIN P1_14
- #define Z_SERIAL_RX_PIN P1_10
+ #define Z_SERIAL_TX_PIN P1_14
+ #define Z_SERIAL_RX_PIN P1_10
- #define E0_SERIAL_TX_PIN P1_09
- #define E0_SERIAL_RX_PIN P1_08
+ #define E0_SERIAL_TX_PIN P1_09
+ #define E0_SERIAL_RX_PIN P1_08
- #define E1_SERIAL_TX_PIN P1_04
- #define E1_SERIAL_RX_PIN P1_01
+ #define E1_SERIAL_TX_PIN P1_04
+ #define E1_SERIAL_RX_PIN P1_01
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -196,23 +202,23 @@
* EXP2 EXP1
*/
-#define EXPA1_03_PIN P1_23
-#define EXPA1_04_PIN P1_22
-#define EXPA1_05_PIN P1_21
-#define EXPA1_06_PIN P1_20
-#define EXPA1_07_PIN P1_19
-#define EXPA1_08_PIN P1_18
-#define EXPA1_09_PIN P0_28
-#define EXPA1_10_PIN P1_30
+#define EXPA1_03_PIN P1_23
+#define EXPA1_04_PIN P1_22
+#define EXPA1_05_PIN P1_21
+#define EXPA1_06_PIN P1_20
+#define EXPA1_07_PIN P1_19
+#define EXPA1_08_PIN P1_18
+#define EXPA1_09_PIN P0_28
+#define EXPA1_10_PIN P1_30
-#define EXPA2_03_PIN -1
-#define EXPA2_04_PIN P1_31
-#define EXPA2_05_PIN P0_18
-#define EXPA2_06_PIN P3_25
-#define EXPA2_07_PIN P0_16
-#define EXPA2_08_PIN P3_26
-#define EXPA2_09_PIN P0_15
-#define EXPA2_10_PIN P0_17
+#define EXPA2_03_PIN -1
+#define EXPA2_04_PIN P1_31
+#define EXPA2_05_PIN P0_18
+#define EXPA2_06_PIN P3_25
+#define EXPA2_07_PIN P0_16
+#define EXPA2_08_PIN P3_26
+#define EXPA2_09_PIN P0_15
+#define EXPA2_10_PIN P0_17
#if HAS_SPI_LCD
@@ -241,75 +247,75 @@
* LCD LCD
*/
- #define LCD_PINS_RS EXPA1_03_PIN
+ #define LCD_PINS_RS EXPA1_03_PIN
- #define BTN_EN1 EXPA1_06_PIN
- #define BTN_EN2 EXPA1_04_PIN
- #define BTN_ENC EXPA1_08_PIN
+ #define BTN_EN1 EXPA1_06_PIN
+ #define BTN_EN2 EXPA1_04_PIN
+ #define BTN_ENC EXPA1_08_PIN
- #define LCD_PINS_ENABLE EXPA1_05_PIN
- #define LCD_PINS_D4 EXPA1_07_PIN
+ #define LCD_PINS_ENABLE EXPA1_05_PIN
+ #define LCD_PINS_D4 EXPA1_07_PIN
#elif ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS EXPA1_04_PIN
+ #define LCD_PINS_RS EXPA1_04_PIN
- #define BTN_EN1 EXPA1_08_PIN
- #define BTN_EN2 EXPA1_06_PIN
- #define BTN_ENC EXPA1_09_PIN // (58) open-drain
+ #define BTN_EN1 EXPA1_08_PIN
+ #define BTN_EN2 EXPA1_06_PIN
+ #define BTN_ENC EXPA1_09_PIN // (58) open-drain
- #define LCD_PINS_ENABLE EXPA1_03_PIN
- #define LCD_PINS_D4 EXPA1_05_PIN
+ #define LCD_PINS_ENABLE EXPA1_03_PIN
+ #define LCD_PINS_D4 EXPA1_05_PIN
- #else // !CR10_STOCKDISPLAY
+ #else // !CR10_STOCKDISPLAY
- #define LCD_PINS_RS EXPA1_07_PIN
+ #define LCD_PINS_RS EXPA1_07_PIN
- #define BTN_EN1 EXPA2_08_PIN // (31) J3-2 & AUX-4
- #define BTN_EN2 EXPA2_06_PIN // (33) J3-4 & AUX-4
- #define BTN_ENC EXPA1_09_PIN // (58) open-drain
+ #define BTN_EN1 EXPA2_08_PIN // (31) J3-2 & AUX-4
+ #define BTN_EN2 EXPA2_06_PIN // (33) J3-4 & AUX-4
+ #define BTN_ENC EXPA1_09_PIN // (58) open-drain
- #define LCD_PINS_ENABLE EXPA1_08_PIN
- #define LCD_PINS_D4 EXPA1_06_PIN
+ #define LCD_PINS_ENABLE EXPA1_08_PIN
+ #define LCD_PINS_D4 EXPA1_06_PIN
- #define LCD_SDSS EXPA2_07_PIN // (16) J3-7 & AUX-4
- #define SD_DETECT_PIN EXPA2_04_PIN // (49) (NOT 5V tolerant)
+ #define LCD_SDSS EXPA2_07_PIN // (16) J3-7 & AUX-4
+ #define SD_DETECT_PIN EXPA2_04_PIN // (49) (NOT 5V tolerant)
#if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS EXPA1_08_PIN
- #define DOGLCD_A0 EXPA1_07_PIN
- #define DOGLCD_SCK EXPA2_09_PIN
- #define DOGLCD_MOSI EXPA2_05_PIN
+ #define DOGLCD_CS EXPA1_08_PIN
+ #define DOGLCD_A0 EXPA1_07_PIN
+ #define DOGLCD_SCK EXPA2_09_PIN
+ #define DOGLCD_MOSI EXPA2_05_PIN
- #define LCD_BACKLIGHT_PIN -1
+ #define LCD_BACKLIGHT_PIN -1
- #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN EXPA1_06_PIN // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN EXPA1_06_PIN // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN EXPA1_05_PIN
+ #define RGB_LED_R_PIN EXPA1_05_PIN
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN EXPA1_04_PIN
+ #define RGB_LED_G_PIN EXPA1_04_PIN
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN EXPA1_03_PIN
+ #define RGB_LED_B_PIN EXPA1_03_PIN
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN EXPA1_05_PIN
+ #define NEOPIXEL_PIN EXPA1_05_PIN
#endif
- #else // !FYSETC_MINI_12864
+ #else // !FYSETC_MINI_12864
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS EXPA1_05_PIN
- #define DOGLCD_A0 EXPA1_04_PIN
- #define DOGLCD_SCK EXPA2_09_PIN
- #define DOGLCD_MOSI EXPA2_05_PIN
+ #define DOGLCD_CS EXPA1_05_PIN
+ #define DOGLCD_A0 EXPA1_04_PIN
+ #define DOGLCD_SCK EXPA2_09_PIN
+ #define DOGLCD_MOSI EXPA2_05_PIN
#elif ENABLED(ENDER2_STOCKDISPLAY)
@@ -325,21 +331,21 @@
* EXP1
*/
- #define BTN_EN1 EXPA1_08_PIN
- #define BTN_EN2 EXPA1_06_PIN
- #define BTN_ENC EXPA1_09_PIN
- #define DOGLCD_CS EXPA1_04_PIN
- #define DOGLCD_A0 EXPA1_05_PIN
- #define DOGLCD_SCK EXPA1_10_PIN
- #define DOGLCD_MOSI EXPA1_03_PIN
+ #define BTN_EN1 EXPA1_08_PIN
+ #define BTN_EN2 EXPA1_06_PIN
+ #define BTN_ENC EXPA1_09_PIN
+ #define DOGLCD_CS EXPA1_04_PIN
+ #define DOGLCD_A0 EXPA1_05_PIN
+ #define DOGLCD_SCK EXPA1_10_PIN
+ #define DOGLCD_MOSI EXPA1_03_PIN
#define FORCE_SOFT_SPI
- #define LCD_BACKLIGHT_PIN -1
+ #define LCD_BACKLIGHT_PIN -1
#endif
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 EXPA1_05_PIN
- #define LCD_PINS_D6 EXPA1_04_PIN
- #define LCD_PINS_D7 EXPA1_03_PIN
+ #define LCD_PINS_D5 EXPA1_05_PIN
+ #define LCD_PINS_D6 EXPA1_04_PIN
+ #define LCD_PINS_D7 EXPA1_03_PIN
#endif
#endif // !FYSETC_MINI_12864
@@ -353,11 +359,11 @@
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION LCD
+ #define SDCARD_CONNECTION LCD
#endif
#if SD_CONNECTION_IS(LCD)
- #define SS_PIN EXPA2_07_PIN
+ #define SS_PIN EXPA2_07_PIN
#endif
/**
diff --git a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
index 3fb66aa156..7e722ea45f 100644
--- a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
+++ b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
@@ -25,62 +25,70 @@
#define BOARD_INFO_NAME "BIGTREE SKR 1.4"
#endif
+//
+// EEPROM
+//
+#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
+ #define FLASH_EEPROM_EMULATION
+ //#define SDCARD_EEPROM_EMULATION
+#endif
+
//
// SD Connection
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION LCD
+ #define SDCARD_CONNECTION LCD
#endif
//
// Servos
//
-#define SERVO0_PIN P2_00
+#define SERVO0_PIN P2_00
//
// TMC StallGuard DIAG pins
//
-#define X_DIAG_PIN P1_29 // X-STOP
-#define Y_DIAG_PIN P1_28 // Y-STOP
-#define Z_DIAG_PIN P1_27 // Z-STOP
-#define E0_DIAG_PIN P1_26 // E0DET
-#define E1_DIAG_PIN P1_25 // E1DET
+#define X_DIAG_PIN P1_29 // X-STOP
+#define Y_DIAG_PIN P1_28 // Y-STOP
+#define Z_DIAG_PIN P1_27 // Z-STOP
+#define E0_DIAG_PIN P1_26 // E0DET
+#define E1_DIAG_PIN P1_25 // E1DET
//
// Limit Switches
//
#if X_STALL_SENSITIVITY
- #define X_STOP_PIN X_DIAG_PIN
+ #define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
- #define X_MAX_PIN P1_26 // E0DET
+ #define X_MAX_PIN P1_26 // E0DET
#else
- #define X_MIN_PIN P1_26 // E0DET
+ #define X_MIN_PIN P1_26 // E0DET
#endif
#else
- #define X_STOP_PIN P1_29 // X-STOP
+ #define X_STOP_PIN P1_29 // X-STOP
#endif
#if Y_STALL_SENSITIVITY
- #define Y_STOP_PIN Y_DIAG_PIN
+ #define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
- #define Y_MAX_PIN P1_25 // E1DET
+ #define Y_MAX_PIN P1_25 // E1DET
#else
- #define Y_MIN_PIN P1_25 // E1DET
+ #define Y_MIN_PIN P1_25 // E1DET
#endif
#else
- #define Y_STOP_PIN P1_28 // Y-STOP
+ #define Y_STOP_PIN P1_28 // Y-STOP
#endif
#if Z_STALL_SENSITIVITY
- #define Z_STOP_PIN Z_DIAG_PIN
+ #define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
- #define Z_MAX_PIN P1_00 // PWRDET
+ #define Z_MAX_PIN P1_00 // PWRDET
#else
- #define Z_MIN_PIN P1_00 // PWRDET
+ #define Z_MIN_PIN P1_00 // PWRDET
#endif
#else
#ifndef Z_STOP_PIN
- #define Z_STOP_PIN P1_27 // Z-STOP
+ #define Z_STOP_PIN P1_27 // Z-STOP
#endif
#endif
@@ -88,90 +96,86 @@
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #if Z_STOP_PIN != P1_27
- #define Z_MIN_PROBE_PIN P1_27
- #else
- #define Z_MIN_PROBE_PIN P0_10
- #endif
+ #define Z_MIN_PROBE_PIN P0_10
#endif
//
// Filament Runout Sensor
//
-#define FIL_RUNOUT_PIN P1_26 // E0DET
-#define FIL_RUNOUT2_PIN P1_25 // E1DET
+#define FIL_RUNOUT_PIN P1_26 // E0DET
+#define FIL_RUNOUT2_PIN P1_25 // E1DET
//
// Power Supply Control
//
#ifndef PS_ON_PIN
- #define PS_ON_PIN P1_00 // PWRDET
+ #define PS_ON_PIN P1_00 // PWRDET
#endif
//
// Power Loss Detection
//
#ifndef POWER_LOSS_PIN
- #define POWER_LOSS_PIN P1_00 // PWRDET
+ #define POWER_LOSS_PIN P1_00 // PWRDET
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_02
-#define X_DIR_PIN P2_06
-#define X_ENABLE_PIN P2_01
+#define X_STEP_PIN P2_02
+#define X_DIR_PIN P2_06
+#define X_ENABLE_PIN P2_01
#ifndef X_CS_PIN
- #define X_CS_PIN P1_10
+ #define X_CS_PIN P1_10
#endif
-#define Y_STEP_PIN P0_19
-#define Y_DIR_PIN P0_20
-#define Y_ENABLE_PIN P2_08
+#define Y_STEP_PIN P0_19
+#define Y_DIR_PIN P0_20
+#define Y_ENABLE_PIN P2_08
#ifndef Y_CS_PIN
- #define Y_CS_PIN P1_09
+ #define Y_CS_PIN P1_09
#endif
-#define Z_STEP_PIN P0_22
-#define Z_DIR_PIN P2_11
-#define Z_ENABLE_PIN P0_21
+#define Z_STEP_PIN P0_22
+#define Z_DIR_PIN P2_11
+#define Z_ENABLE_PIN P0_21
#ifndef Z_CS_PIN
- #define Z_CS_PIN P1_08
+ #define Z_CS_PIN P1_08
#endif
-#define E0_STEP_PIN P2_13
-#define E0_DIR_PIN P0_11
-#define E0_ENABLE_PIN P2_12
+#define E0_STEP_PIN P2_13
+#define E0_DIR_PIN P0_11
+#define E0_ENABLE_PIN P2_12
#ifndef E0_CS_PIN
- #define E0_CS_PIN P1_04
+ #define E0_CS_PIN P1_04
#endif
-#define E1_STEP_PIN P1_15
-#define E1_DIR_PIN P1_14
-#define E1_ENABLE_PIN P1_16
+#define E1_STEP_PIN P1_15
+#define E1_DIR_PIN P1_14
+#define E1_ENABLE_PIN P1_16
#ifndef E1_CS_PIN
- #define E1_CS_PIN P1_01
+ #define E1_CS_PIN P1_01
#endif
-#define TEMP_1_PIN P0_23_A0 // A2 (T2) - (69) - TEMP_1_PIN
-#define TEMP_BED_PIN P0_25_A2 // A0 (T0) - (67) - TEMP_BED_PIN
+#define TEMP_1_PIN P0_23_A0 // A2 (T2) - (69) - TEMP_1_PIN
+#define TEMP_BED_PIN P0_25_A2 // A0 (T0) - (67) - TEMP_BED_PIN
//
// Software SPI pins for TMC2130 stepper drivers
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P1_17
+ #define TMC_SW_MOSI P1_17
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P0_05
+ #define TMC_SW_MISO P0_05
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P0_04
+ #define TMC_SW_SCK P0_04
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -193,23 +197,23 @@
//
// Software serial
//
- #define X_SERIAL_TX_PIN P1_10
- #define X_SERIAL_RX_PIN P1_10
+ #define X_SERIAL_TX_PIN P1_10
+ #define X_SERIAL_RX_PIN P1_10
- #define Y_SERIAL_TX_PIN P1_09
- #define Y_SERIAL_RX_PIN P1_09
+ #define Y_SERIAL_TX_PIN P1_09
+ #define Y_SERIAL_RX_PIN P1_09
- #define Z_SERIAL_TX_PIN P1_08
- #define Z_SERIAL_RX_PIN P1_08
+ #define Z_SERIAL_TX_PIN P1_08
+ #define Z_SERIAL_RX_PIN P1_08
- #define E0_SERIAL_TX_PIN P1_04
- #define E0_SERIAL_RX_PIN P1_04
+ #define E0_SERIAL_TX_PIN P1_04
+ #define E0_SERIAL_RX_PIN P1_04
- #define E1_SERIAL_TX_PIN P1_01
- #define E1_SERIAL_RX_PIN P1_01
+ #define E1_SERIAL_TX_PIN P1_01
+ #define E1_SERIAL_RX_PIN P1_01
- #define Z2_SERIAL_TX_PIN P1_01
- #define Z2_SERIAL_RX_PIN P1_01
+ #define Z2_SERIAL_TX_PIN P1_01
+ #define Z2_SERIAL_RX_PIN P1_01
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -219,7 +223,7 @@
// SD Connection
//
#if SD_CONNECTION_IS(LCD)
- #define SS_PIN P0_16
+ #define SS_PIN P0_16
#endif
/**
@@ -235,82 +239,82 @@
#if HAS_SPI_LCD
#if ENABLED(ANET_FULL_GRAPHICS_LCD)
- #define LCD_PINS_RS P1_23
+ #define LCD_PINS_RS P1_23
- #define BTN_EN1 P1_20
- #define BTN_EN2 P1_22
- #define BTN_ENC P1_18
+ #define BTN_EN1 P1_20
+ #define BTN_EN2 P1_22
+ #define BTN_ENC P1_18
- #define LCD_PINS_ENABLE P1_21
- #define LCD_PINS_D4 P1_19
+ #define LCD_PINS_ENABLE P1_21
+ #define LCD_PINS_D4 P1_19
#elif ENABLED(CR10_STOCKDISPLAY)
- #define BTN_ENC P0_28 // (58) open-drain
- #define LCD_PINS_RS P1_22
+ #define BTN_ENC P0_28 // (58) open-drain
+ #define LCD_PINS_RS P1_22
- #define BTN_EN1 P1_18
- #define BTN_EN2 P1_20
+ #define BTN_EN1 P1_18
+ #define BTN_EN2 P1_20
- #define LCD_PINS_ENABLE P1_23
- #define LCD_PINS_D4 P1_21
+ #define LCD_PINS_ENABLE P1_23
+ #define LCD_PINS_D4 P1_21
#else
- #define BTN_ENC P0_28 // (58) open-drain
- #define LCD_PINS_RS P1_19
+ #define BTN_ENC P0_28 // (58) open-drain
+ #define LCD_PINS_RS P1_19
- #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
- #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
- #define LCD_PINS_ENABLE P1_18
- #define LCD_PINS_D4 P1_20
+ #define LCD_PINS_ENABLE P1_18
+ #define LCD_PINS_D4 P1_20
- #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
#if SD_CONNECTION_IS(LCD)
- #define SD_DETECT_PIN P1_31 // (49) (NOT 5V tolerant)
+ #define SD_DETECT_PIN P1_31 // (49) (NOT 5V tolerant)
#endif
#if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS P1_18
- #define DOGLCD_A0 P1_19
- #define DOGLCD_SCK P0_15
- #define DOGLCD_MOSI P0_18
+ #define DOGLCD_CS P1_18
+ #define DOGLCD_A0 P1_19
+ #define DOGLCD_SCK P0_15
+ #define DOGLCD_MOSI P0_18
- #define LCD_BACKLIGHT_PIN -1
+ #define LCD_BACKLIGHT_PIN -1
- #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN P1_20 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN P1_20 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN P1_21
+ #define RGB_LED_R_PIN P1_21
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN P1_22
+ #define RGB_LED_G_PIN P1_22
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN P1_23
+ #define RGB_LED_B_PIN P1_23
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN P1_21
+ #define NEOPIXEL_PIN P1_21
#endif
- #else // !FYSETC_MINI_12864
+ #else // !FYSETC_MINI_12864
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS P1_21
- #define DOGLCD_A0 P1_22
- #define DOGLCD_SCK P0_15
- #define DOGLCD_MOSI P0_18
+ #define DOGLCD_CS P1_21
+ #define DOGLCD_A0 P1_22
+ #define DOGLCD_SCK P0_15
+ #define DOGLCD_MOSI P0_18
#define FORCE_SOFT_SPI
#endif
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 P1_21
- #define LCD_PINS_D6 P1_22
- #define LCD_PINS_D7 P1_23
+ #define LCD_PINS_D5 P1_21
+ #define LCD_PINS_D6 P1_22
+ #define LCD_PINS_D7 P1_23
#endif
#endif // !FYSETC_MINI_12864
@@ -323,7 +327,7 @@
// Neopixel LED
//
#ifndef NEOPIXEL_PIN
- #define NEOPIXEL_PIN P1_24
+ #define NEOPIXEL_PIN P1_24
#endif
/**
diff --git a/Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h b/Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
index e84d3de2b1..63e160d8a0 100644
--- a/Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
+++ b/Marlin/src/pins/lpc1768/pins_BTT_SKR_common.h
@@ -32,17 +32,21 @@
// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+#if DISABLED(SDCARD_EEPROM_EMULATION)
+ #define FLASH_EEPROM_EMULATION
+#endif
+
//
// Steppers
//
#ifndef E1_STEP_PIN
- #define E1_STEP_PIN P0_01
+ #define E1_STEP_PIN P0_01
#endif
#ifndef E1_DIR_PIN
- #define E1_DIR_PIN P0_00
+ #define E1_DIR_PIN P0_00
#endif
#ifndef E1_ENABLE_PIN
- #define E1_ENABLE_PIN P0_10
+ #define E1_ENABLE_PIN P0_10
#endif
//
@@ -50,64 +54,64 @@
// 3.3V max when defined as an analog input
//
#ifndef TEMP_0_PIN
- #define TEMP_0_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_0_PIN
+ #define TEMP_0_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_0_PIN
#endif
#ifndef TEMP_1_PIN
- #define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
+ #define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
#endif
#ifndef TEMP_BED_PIN
- #define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
+ #define TEMP_BED_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_BED_PIN
#endif
#if HOTENDS == 1 && TEMP_SENSOR_PROBE
- #define TEMP_PROBE_PIN TEMP_1_PIN
+ #define TEMP_PROBE_PIN TEMP_1_PIN
#endif
//
// Heaters / Fans
//
#ifndef HEATER_0_PIN
- #define HEATER_0_PIN P2_07
+ #define HEATER_0_PIN P2_07
#endif
#if HOTENDS == 1
#ifndef FAN1_PIN
- #define FAN1_PIN P2_04
+ #define FAN1_PIN P2_04
#endif
#else
#ifndef HEATER_1_PIN
- #define HEATER_1_PIN P2_04
+ #define HEATER_1_PIN P2_04
#endif
#endif
#ifndef FAN_PIN
- #define FAN_PIN P2_03
+ #define FAN_PIN P2_03
#endif
#ifndef HEATER_BED_PIN
- #define HEATER_BED_PIN P2_05
+ #define HEATER_BED_PIN P2_05
#endif
//
// LCD / Controller
//
#if HAS_SPI_LCD
- #define BEEPER_PIN P1_30 // (37) not 5V tolerant
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
#endif
//
// SD Support
//
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_15
- #define MISO_PIN P0_17
- #define MOSI_PIN P0_18
+ #define SCK_PIN P0_15
+ #define MISO_PIN P0_17
+ #define MOSI_PIN P0_18
#elif SD_CONNECTION_IS(ONBOARD)
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN P0_27
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SD_DETECT_PIN P0_27
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
diff --git a/Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h b/Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
index 28445962ac..32de7bb740 100644
--- a/Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
+++ b/Marlin/src/pins/lpc1768/pins_GMARSH_X6_REV1.h
@@ -30,6 +30,12 @@
// Ignore temp readings during develpment.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Enable 12MHz clock output on P1.27 pin to sync TMC2208 chip clocks
//
@@ -38,63 +44,63 @@
//
// Servos
//
-#define SERVO0_PIN P1_26 // PWM1[6]
-#define SERVO1_PIN P1_18 // PWM1[1]
+#define SERVO0_PIN P1_26 // PWM1[6]
+#define SERVO1_PIN P1_18 // PWM1[1]
//
// Limit Switches
//
-#define X_MIN_PIN P0_00
-#define X_MAX_PIN P0_01
-#define Y_MIN_PIN P0_10
-#define Y_MAX_PIN P0_21
-#define Z_MIN_PIN P2_13
-#define Z_MAX_PIN P2_22
+#define X_MIN_PIN P0_00
+#define X_MAX_PIN P0_01
+#define Y_MIN_PIN P0_10
+#define Y_MAX_PIN P0_21
+#define Z_MIN_PIN P2_13
+#define Z_MAX_PIN P2_22
//
// Steppers
//
-#define X_STEP_PIN P1_01
-#define X_DIR_PIN P1_04
-#define X_ENABLE_PIN P0_26
+#define X_STEP_PIN P1_01
+#define X_DIR_PIN P1_04
+#define X_ENABLE_PIN P0_26
-#define Y_STEP_PIN P1_10
-#define Y_DIR_PIN P1_14
-#define Y_ENABLE_PIN P1_08
+#define Y_STEP_PIN P1_10
+#define Y_DIR_PIN P1_14
+#define Y_ENABLE_PIN P1_08
-#define Z_STEP_PIN P1_17
-#define Z_DIR_PIN P4_29
-#define Z_ENABLE_PIN P1_15
+#define Z_STEP_PIN P1_17
+#define Z_DIR_PIN P4_29
+#define Z_ENABLE_PIN P1_15
-#define E0_STEP_PIN P0_05
-#define E0_DIR_PIN P2_00
-#define E0_ENABLE_PIN P4_28
+#define E0_STEP_PIN P0_05
+#define E0_DIR_PIN P2_00
+#define E0_ENABLE_PIN P4_28
-#define E1_STEP_PIN P2_03
-#define E1_DIR_PIN P2_04
-#define E1_ENABLE_PIN P2_01
+#define E1_STEP_PIN P2_03
+#define E1_DIR_PIN P2_04
+#define E1_ENABLE_PIN P2_01
-#define E2_STEP_PIN P2_07
-#define E2_DIR_PIN P2_08
-#define E2_ENABLE_PIN P2_05
+#define E2_STEP_PIN P2_07
+#define E2_DIR_PIN P2_08
+#define E2_ENABLE_PIN P2_05
//
// TMC2208 UART pins
//
#if HAS_TMC_UART
- #define X_SERIAL_TX_PIN P1_00
- #define X_SERIAL_RX_PIN P1_00
- #define Y_SERIAL_TX_PIN P1_09
- #define Y_SERIAL_RX_PIN P1_09
- #define Z_SERIAL_TX_PIN P1_16
- #define Z_SERIAL_RX_PIN P1_16
- #define E0_SERIAL_TX_PIN P0_04
- #define E0_SERIAL_RX_PIN P0_04
- #define E1_SERIAL_TX_PIN P2_02
- #define E1_SERIAL_RX_PIN P2_02
- #define E2_SERIAL_TX_PIN P2_06
- #define E2_SERIAL_RX_PIN P2_06
+ #define X_SERIAL_TX_PIN P1_00
+ #define X_SERIAL_RX_PIN P1_00
+ #define Y_SERIAL_TX_PIN P1_09
+ #define Y_SERIAL_RX_PIN P1_09
+ #define Z_SERIAL_TX_PIN P1_16
+ #define Z_SERIAL_RX_PIN P1_16
+ #define E0_SERIAL_TX_PIN P0_04
+ #define E0_SERIAL_RX_PIN P0_04
+ #define E1_SERIAL_TX_PIN P2_02
+ #define E1_SERIAL_RX_PIN P2_02
+ #define E2_SERIAL_TX_PIN P2_06
+ #define E2_SERIAL_RX_PIN P2_06
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -106,36 +112,36 @@
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_24_A1 // AD0[0] on P0_23
-#define TEMP_BED_PIN P0_23_A0 // AD0[1] on P0_24
+#define TEMP_0_PIN P0_24_A1 // AD0[0] on P0_23
+#define TEMP_BED_PIN P0_23_A0 // AD0[1] on P0_24
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P1_19 // Not a PWM pin, software PWM required
-#define HEATER_0_PIN P3_26 // PWM1[3]
-#define FAN_PIN P3_25 // Part cooling fan - connected to PWM1[2]
-#define E0_AUTO_FAN_PIN P0_27 // Extruder cooling fan
+#define HEATER_BED_PIN P1_19 // Not a PWM pin, software PWM required
+#define HEATER_0_PIN P3_26 // PWM1[3]
+#define FAN_PIN P3_25 // Part cooling fan - connected to PWM1[2]
+#define E0_AUTO_FAN_PIN P0_27 // Extruder cooling fan
//
// Misc. Functions
//
-#define LED_PIN P1_31
+#define LED_PIN P1_31
//
// LCD
//
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN P0_19
- #define BTN_EN1 P1_23
- #define BTN_EN2 P1_24
- #define BTN_ENC P1_25
- #define LCD_PINS_RS P0_20
- #define LCD_PINS_ENABLE P0_21
- #define LCD_PINS_D4 P2_11
- #define LCD_PINS_D5 P0_22
- #define LCD_PINS_D6 P1_29
- #define LCD_PINS_D7 P1_28
+ #define BEEPER_PIN P0_19
+ #define BTN_EN1 P1_23
+ #define BTN_EN2 P1_24
+ #define BTN_ENC P1_25
+ #define LCD_PINS_RS P0_20
+ #define LCD_PINS_ENABLE P0_21
+ #define LCD_PINS_D4 P2_11
+ #define LCD_PINS_D5 P0_22
+ #define LCD_PINS_D6 P1_29
+ #define LCD_PINS_D7 P1_28
#endif
//
@@ -143,21 +149,21 @@
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION LCD
+ #define SDCARD_CONNECTION LCD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_15
- #define MISO_PIN P0_17
- #define MOSI_PIN P0_18
- #define SS_PIN P0_16
+ #define SCK_PIN P0_15
+ #define MISO_PIN P0_17
+ #define MOSI_PIN P0_18
+ #define SS_PIN P0_16
#elif SD_CONNECTION_IS(ONBOARD)
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN P0_27
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SD_DETECT_PIN P0_27
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#endif
diff --git a/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h b/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
index b3dba6794c..0cd10ebc05 100644
--- a/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
+++ b/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
@@ -38,73 +38,81 @@
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SBASE"
#endif
-#define LED_PIN P1_18 // Used as a status indicator
-#define LED2_PIN P1_19
-#define LED3_PIN P1_20
-#define LED4_PIN P1_21
+//
+// EEPROM
+//
+#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
+ #define FLASH_EEPROM_EMULATION
+ //#define SDCARD_EEPROM_EMULATION
+#endif
+
+#define LED_PIN P1_18 // Used as a status indicator
+#define LED2_PIN P1_19
+#define LED3_PIN P1_20
+#define LED4_PIN P1_21
//
// Servos
//
-#define SERVO0_PIN P1_23 // J8-3 (low jitter)
-#define SERVO1_PIN P2_12 // J8-4
-#define SERVO2_PIN P2_11 // J8-5
-#define SERVO3_PIN P4_28 // J8-6
+#define SERVO0_PIN P1_23 // J8-3 (low jitter)
+#define SERVO1_PIN P2_12 // J8-4
+#define SERVO2_PIN P2_11 // J8-5
+#define SERVO3_PIN P4_28 // J8-6
//
// Limit Switches - Not Interrupt Capable
//
-#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
-#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
-#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
-#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
-#define Z_MIN_PIN P1_28 // The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
-#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
+#define Z_MIN_PIN P1_28 // The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN P4_28 // Connector J8
+ #define Z_MIN_PROBE_PIN P4_28 // Connector J8
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
-#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
-#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
-#define TEMP_2_PIN P0_26_A3 // A3 (TH4)
+#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
+#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
+#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
+#define TEMP_2_PIN P0_26_A3 // A3 (TH4)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07
-#define HEATER_1_PIN P2_06
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07
+#define HEATER_1_PIN P2_06
#ifndef FAN_PIN
- #define FAN_PIN P2_04
+ #define FAN_PIN P2_04
#endif
//
@@ -116,56 +124,56 @@
// 5V
// NC
// GND
-#define PIN_P0_17 P0_17
-#define PIN_P0_16 P0_16
-#define PIN_P0_15 P0_15
+#define PIN_P0_17 P0_17
+#define PIN_P0_16 P0_16
+#define PIN_P0_15 P0_15
//
// Connector J8
//
// GND
-#define PIN_P1_22 P1_22
-#define PIN_P1_23 P1_23 // PWM Capable
-#define PIN_P2_12 P2_12 // Interrupt Capable
-#define PIN_P2_11 P2_11 // Interrupt Capable
+#define PIN_P1_22 P1_22
+#define PIN_P1_23 P1_23 // PWM Capable
+#define PIN_P2_12 P2_12 // Interrupt Capable
+#define PIN_P2_11 P2_11 // Interrupt Capable
//
// Průša i3 MK2 Multi Material Multiplexer Support
//
#if ENABLED(MK2_MULTIPLEXER)
- #define E_MUX0_PIN P1_23 // J8-3
- #define E_MUX1_PIN P2_12 // J8-4
- #define E_MUX2_PIN P2_11 // J8-5
+ #define E_MUX0_PIN P1_23 // J8-3
+ #define E_MUX1_PIN P2_12 // J8-4
+ #define E_MUX2_PIN P2_11 // J8-5
#endif
//
// Misc. Functions
//
-#define PS_ON_PIN P0_25 // TH3 Connector
+#define PS_ON_PIN P0_25 // TH3 Connector
//
// Ethernet pins
//
#ifndef ULTIPANEL
- #define ENET_MDIO P1_17 // J12-4
- #define ENET_RX_ER P1_14 // J12-6
- #define ENET_RXD1 P1_10 // J12-8
+ #define ENET_MDIO P1_17 // J12-4
+ #define ENET_RX_ER P1_14 // J12-6
+ #define ENET_RXD1 P1_10 // J12-8
#endif
-#define ENET_MOC P1_16 // J12-3
-#define REF_CLK P1_15 // J12-5
-#define ENET_RXD0 P1_09 // J12-7
-#define ENET_CRS P1_08 // J12-9
-#define ENET_TX_EN P1_04 // J12-10
-#define ENET_TXD0 P1_00 // J12-11
-#define ENET_TXD1 P1_01 // J12-12
+#define ENET_MOC P1_16 // J12-3
+#define REF_CLK P1_15 // J12-5
+#define ENET_RXD0 P1_09 // J12-7
+#define ENET_CRS P1_08 // J12-9
+#define ENET_TX_EN P1_04 // J12-10
+#define ENET_TXD0 P1_00 // J12-11
+#define ENET_TXD1 P1_01 // J12-12
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(CUSTOM_CABLE)
@@ -181,27 +189,27 @@
* If you can't find a pin to use for the LCD's SD_DETECT then comment out
* SD_DETECT_PIN entirely and remove that wire from the the custom cable.
*/
- #define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
- #define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
- #define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
- #define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
- #define SS_PIN P0_28
- #define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the
- // selected pins are not on a hardware SPI controller
+ #define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
+ #define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
+ #define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
+ #define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
+ #define SS_PIN P0_28
+ #define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the
+ // selected pins are not on a hardware SPI controller
#elif SD_CONNECTION_IS(LCD)
// use standard cable and header, SPI and SD detect sre shared with on-board SD card
// hardware SPI is used for both SD cards. The detect pin is shred between the
// LCD and onboard SD readers so we disable it.
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN P0_28
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN P0_28
#elif SD_CONNECTION_IS(ONBOARD)
- #define SD_DETECT_PIN P0_27
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SD_DETECT_PIN P0_27
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#endif
/**
@@ -218,17 +226,17 @@
*/
#if HAS_SPI_LCD
- #define BEEPER_PIN P1_31 // EXP1.1
- #define BTN_ENC P1_30 // EXP1.2
- #define BTN_EN1 P3_26 // EXP2.5
- #define BTN_EN2 P3_25 // EXP2.3
- #define LCD_PINS_RS P0_16 // EXP1.4
- #define LCD_SDSS P0_28 // EXP2.4
- #define LCD_PINS_ENABLE P0_18 // EXP1.3
- #define LCD_PINS_D4 P0_15 // EXP1.5
+ #define BEEPER_PIN P1_31 // EXP1.1
+ #define BTN_ENC P1_30 // EXP1.2
+ #define BTN_EN1 P3_26 // EXP2.5
+ #define BTN_EN2 P3_25 // EXP2.3
+ #define LCD_PINS_RS P0_16 // EXP1.4
+ #define LCD_SDSS P0_28 // EXP2.4
+ #define LCD_PINS_ENABLE P0_18 // EXP1.3
+ #define LCD_PINS_D4 P0_15 // EXP1.5
#if ANY(VIKI2, miniVIKI)
- #define DOGLCD_SCK SCK_PIN
- #define DOGLCD_MOSI MOSI_PIN
+ #define DOGLCD_SCK SCK_PIN
+ #define DOGLCD_MOSI MOSI_PIN
#endif
#if ENABLED(FYSETC_MINI_12864)
@@ -243,26 +251,26 @@
* Pins 6, 7 & 8 on EXP2 are no connects. That means a second special
* cable will be needed if the RGB LEDs are to be active.
*/
- #define DOGLCD_CS LCD_PINS_ENABLE // EXP1.3 (LCD_EN on FYSETC schematic)
- #define DOGLCD_A0 LCD_PINS_RS // EXP1.4 (LCD_A0 on FYSETC schematic)
- #define DOGLCD_SCK P2_11 // J8-5 (SCK on FYSETC schematic)
- #define DOGLCD_MOSI P4_28 // J8-6 (MOSI on FYSETC schematic)
+ #define DOGLCD_CS LCD_PINS_ENABLE // EXP1.3 (LCD_EN on FYSETC schematic)
+ #define DOGLCD_A0 LCD_PINS_RS // EXP1.4 (LCD_A0 on FYSETC schematic)
+ #define DOGLCD_SCK P2_11 // J8-5 (SCK on FYSETC schematic)
+ #define DOGLCD_MOSI P4_28 // J8-6 (MOSI on FYSETC schematic)
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN P2_12 // J8-4 (LCD_D6 on FYSETC schematic)
+ #define RGB_LED_R_PIN P2_12 // J8-4 (LCD_D6 on FYSETC schematic)
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN P1_23 // J8-3 (LCD_D5 on FYSETC schematic)
+ #define RGB_LED_G_PIN P1_23 // J8-3 (LCD_D5 on FYSETC schematic)
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN P1_22 // J8-2 (LCD_D7 on FYSETC schematic)
+ #define RGB_LED_B_PIN P1_22 // J8-2 (LCD_D7 on FYSETC schematic)
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN P2_12
+ #define NEOPIXEL_PIN P2_12
#endif
#elif ENABLED(MINIPANEL)
@@ -283,29 +291,29 @@
#if HAS_DRIVER(TMC2130)
// J8
- #define X_CS_PIN P1_22
- #define Y_CS_PIN P1_23
- #define Z_CS_PIN P2_12
- #define E0_CS_PIN P2_11
- #define E1_CS_PIN P4_28
+ #define X_CS_PIN P1_22
+ #define Y_CS_PIN P1_23
+ #define Z_CS_PIN P2_12
+ #define E0_CS_PIN P2_11
+ #define E1_CS_PIN P4_28
// Hardware SPI is on EXP2. See if you can make it work:
// https://github.com/makerbase-mks/MKS-SBASE/issues/25
#define TMC_USE_SW_SPI
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P0_03 // AUX1
+ #define TMC_SW_MOSI P0_03 // AUX1
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P0_02 // AUX1
+ #define TMC_SW_MISO P0_02 // AUX1
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P0_26 // TH4
+ #define TMC_SW_SCK P0_26 // TH4
#endif
#endif
#endif
-#if MB(MKS_SBASE) && HAS_TMC220x
+#if MB(MKS_SBASE) && HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
@@ -314,24 +322,24 @@
* Worst case you may have to give up the LCD
* RX pins need to be interrupt capable
*/
- #define X_SERIAL_TX_PIN P1_22 // J8-2
- #define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
- #define Y_SERIAL_TX_PIN P1_23 // J8-3
- #define Y_SERIAL_RX_PIN P2_11 // J8-5 Interrupt Capable
- #define Z_SERIAL_TX_PIN P2_12 // J8-4
- #define Z_SERIAL_RX_PIN P0_25 // TH3
- #define E0_SERIAL_TX_PIN P4_28 // J8-6
- #define E0_SERIAL_RX_PIN P0_26 // TH4
+ #define X_SERIAL_TX_PIN P1_22 // J8-2
+ #define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
+ #define Y_SERIAL_TX_PIN P1_23 // J8-3
+ #define Y_SERIAL_RX_PIN P2_11 // J8-5 Interrupt Capable
+ #define Z_SERIAL_TX_PIN P2_12 // J8-4
+ #define Z_SERIAL_RX_PIN P0_25 // TH3
+ #define E0_SERIAL_TX_PIN P4_28 // J8-6
+ #define E0_SERIAL_RX_PIN P0_26 // TH4
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#endif
// UNUSED
-#define PIN_P0_27 P0_27 // EXP2/Onboard SD
-#define PIN_P0_28 P0_28 // EXP2
-#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
-#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
+#define PIN_P0_27 P0_27 // EXP2/Onboard SD
+#define PIN_P0_28 P0_28 // EXP2
+#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
+#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
/**
* PWMs
diff --git a/Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h b/Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
index 58f9eb5493..afbe6d5564 100644
--- a/Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
+++ b/Marlin/src/pins/lpc1768/pins_MKS_SGEN_L.h
@@ -32,103 +32,109 @@
#define BOARD_INFO_NAME "MKS SGen-L"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN_L"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23 // SERVO P1.23
-#define SERVO1_PIN P2_00 // SERVO P2.0
+#define SERVO0_PIN P1_23 // SERVO P1.23
+#define SERVO1_PIN P2_00 // SERVO P2.0
//
// Trinamic Stallguard pins
//
-#define X_DIAG_PIN P1_29 // X-
-#define Y_DIAG_PIN P1_27 // Y-
-#define Z_DIAG_PIN P1_25 // Z-
-#define E0_DIAG_PIN P1_28 // X+
-#define E1_DIAG_PIN P1_26 // Y+
+#define X_DIAG_PIN P1_29 // X-
+#define Y_DIAG_PIN P1_27 // Y-
+#define Z_DIAG_PIN P1_25 // Z-
+#define E0_DIAG_PIN P1_28 // X+
+#define E1_DIAG_PIN P1_26 // Y+
//
// Limit Switches
//
#if X_STALL_SENSITIVITY
- #define X_STOP_PIN X_DIAG_PIN
+ #define X_STOP_PIN X_DIAG_PIN
#if X_HOME_DIR < 0
- #define X_MAX_PIN P1_28 // X+
+ #define X_MAX_PIN P1_28 // X+
#else
- #define X_MIN_PIN P1_28 // X+
+ #define X_MIN_PIN P1_28 // X+
#endif
#else
- #define X_MIN_PIN P1_29 // X-
- #define X_MAX_PIN P1_28 // X+
+ #define X_MIN_PIN P1_29 // X-
+ #define X_MAX_PIN P1_28 // X+
#endif
#if Y_STALL_SENSITIVITY
- #define Y_STOP_PIN Y_DIAG_PIN
+ #define Y_STOP_PIN Y_DIAG_PIN
#if Y_HOME_DIR < 0
- #define Y_MAX_PIN P1_26 // Y+
+ #define Y_MAX_PIN P1_26 // Y+
#else
- #define Y_MIN_PIN P1_26 // Y+
+ #define Y_MIN_PIN P1_26 // Y+
#endif
#else
- #define Y_MIN_PIN P1_27 // Y-
- #define Y_MAX_PIN P1_26 // Y+
+ #define Y_MIN_PIN P1_27 // Y-
+ #define Y_MAX_PIN P1_26 // Y+
#endif
#if Z_STALL_SENSITIVITY
- #define Z_STOP_PIN Z_DIAG_PIN
+ #define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
- #define Z_MAX_PIN P1_24 // Z+
+ #define Z_MAX_PIN P1_24 // Z+
#else
- #define Z_MIN_PIN P1_24 // Z+
+ #define Z_MIN_PIN P1_24 // Z+
#endif
#else
- #define Z_MIN_PIN P1_25 // Z-
- #define Z_MAX_PIN P1_24 // Z+
+ #define Z_MIN_PIN P1_25 // Z-
+ #define Z_MAX_PIN P1_24 // Z+
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN P1_24
+ #define Z_MIN_PROBE_PIN P1_24
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_02
-#define X_DIR_PIN P2_03
-#define X_ENABLE_PIN P2_01
+#define X_STEP_PIN P2_02
+#define X_DIR_PIN P2_03
+#define X_ENABLE_PIN P2_01
#ifndef X_CS_PIN
- #define X_CS_PIN P1_01
+ #define X_CS_PIN P1_01
#endif
-#define Y_STEP_PIN P0_19
-#define Y_DIR_PIN P0_20
-#define Y_ENABLE_PIN P2_08
+#define Y_STEP_PIN P0_19
+#define Y_DIR_PIN P0_20
+#define Y_ENABLE_PIN P2_08
#ifndef Y_CS_PIN
- #define Y_CS_PIN P1_08
+ #define Y_CS_PIN P1_08
#endif
-#define Z_STEP_PIN P0_22
-#define Z_DIR_PIN P2_11
-#define Z_ENABLE_PIN P0_21
+#define Z_STEP_PIN P0_22
+#define Z_DIR_PIN P2_11
+#define Z_ENABLE_PIN P0_21
#ifndef Z_CS_PIN
- #define Z_CS_PIN P1_10
+ #define Z_CS_PIN P1_10
#endif
-#define E0_STEP_PIN P2_13
-#define E0_DIR_PIN P0_11
-#define E0_ENABLE_PIN P2_12
+#define E0_STEP_PIN P2_13
+#define E0_DIR_PIN P0_11
+#define E0_ENABLE_PIN P2_12
#ifndef E0_CS_PIN
- #define E0_CS_PIN P1_15
+ #define E0_CS_PIN P1_15
#endif
-#define E1_STEP_PIN P0_01
-#define E1_DIR_PIN P0_00
-#define E1_ENABLE_PIN P0_10
+#define E1_STEP_PIN P0_01
+#define E1_DIR_PIN P0_00
+#define E1_ENABLE_PIN P0_10
#ifndef E1_CS_PIN
- #define E1_CS_PIN P1_17
+ #define E1_CS_PIN P1_17
#endif
//
@@ -136,17 +142,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P4_28
+ #define TMC_SW_MOSI P4_28
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P0_05
+ #define TMC_SW_MISO P0_05
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P0_04
+ #define TMC_SW_SCK P0_04
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -169,23 +175,23 @@
// Software serial
//
- #define X_SERIAL_TX_PIN P1_04
- #define X_SERIAL_RX_PIN P1_01
+ #define X_SERIAL_TX_PIN P1_04
+ #define X_SERIAL_RX_PIN P1_01
- #define Y_SERIAL_TX_PIN P1_09
- #define Y_SERIAL_RX_PIN P1_08
+ #define Y_SERIAL_TX_PIN P1_09
+ #define Y_SERIAL_RX_PIN P1_08
- #define Z_SERIAL_TX_PIN P1_14
- #define Z_SERIAL_RX_PIN P1_10
+ #define Z_SERIAL_TX_PIN P1_14
+ #define Z_SERIAL_RX_PIN P1_10
- #define E0_SERIAL_TX_PIN P1_16
- #define E0_SERIAL_RX_PIN P1_15
+ #define E0_SERIAL_TX_PIN P1_16
+ #define E0_SERIAL_RX_PIN P1_15
- #define E1_SERIAL_TX_PIN P4_29
- #define E1_SERIAL_RX_PIN P1_17
+ #define E1_SERIAL_TX_PIN P4_29
+ #define E1_SERIAL_RX_PIN P1_17
- #define Z2_SERIAL_TX_PIN P4_29
- #define Z2_SERIAL_RX_PIN P1_17
+ #define Z2_SERIAL_TX_PIN P4_29
+ #define Z2_SERIAL_RX_PIN P1_17
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -195,35 +201,35 @@
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // Analog Input A0 (TH1)
-#define TEMP_BED_PIN P0_24_A1 // Analog Input A1 (TB)
-#define TEMP_1_PIN P0_25_A2 // Analog Input A2 (TH2)
+#define TEMP_0_PIN P0_23_A0 // Analog Input A0 (TH1)
+#define TEMP_BED_PIN P0_24_A1 // Analog Input A1 (TB)
+#define TEMP_1_PIN P0_25_A2 // Analog Input A2 (TH2)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07
#if HOTENDS == 1
#ifndef FAN1_PIN
- #define FAN1_PIN P2_06
+ #define FAN1_PIN P2_06
#endif
#else
#ifndef HEATER_1_PIN
- #define HEATER_1_PIN P2_06
+ #define HEATER_1_PIN P2_06
#endif
#endif
#ifndef FAN_PIN
- #define FAN_PIN P2_04
+ #define FAN_PIN P2_04
#endif
//
// Misc. Functions
//
-#define LED_PIN P1_18 // Used as a status indicator
-#define LED2_PIN P1_19
-#define LED3_PIN P1_20
-#define LED4_PIN P1_21
+#define LED_PIN P1_18 // Used as a status indicator
+#define LED2_PIN P1_19
+#define LED3_PIN P1_20
+#define LED4_PIN P1_21
/**
* _____ _____
@@ -236,83 +242,83 @@
* EXP1 EXP2
*/
#if HAS_SPI_LCD
- #define BEEPER_PIN P1_31
- #define BTN_ENC P1_30
+ #define BEEPER_PIN P1_31
+ #define BTN_ENC P1_30
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS P1_00
+ #define LCD_PINS_RS P1_00
- #define BTN_EN1 P0_18
- #define BTN_EN2 P0_15
+ #define BTN_EN1 P0_18
+ #define BTN_EN2 P0_15
- #define LCD_PINS_ENABLE P1_22
- #define LCD_PINS_D4 P0_17
+ #define LCD_PINS_ENABLE P1_22
+ #define LCD_PINS_D4 P0_17
#else
- #define BTN_EN1 P3_25
- #define BTN_EN2 P3_26
+ #define BTN_EN1 P3_25
+ #define BTN_EN2 P3_26
- #define LCD_SDSS P0_28
+ #define LCD_SDSS P0_28
#if ENABLED(MKS_12864OLED_SSD1306)
- #define LCD_PINS_DC P0_17
- #define DOGLCD_CS P0_16
- #define DOGLCD_A0 LCD_PINS_DC
- #define DOGLCD_SCK P0_15
- #define DOGLCD_MOSI P0_18
+ #define LCD_PINS_DC P0_17
+ #define DOGLCD_CS P0_16
+ #define DOGLCD_A0 LCD_PINS_DC
+ #define DOGLCD_SCK P0_15
+ #define DOGLCD_MOSI P0_18
- #define LCD_PINS_RS P1_00
- #define LCD_PINS_D7 P1_22
- #define KILL_PIN -1 // NC
+ #define LCD_PINS_RS P1_00
+ #define LCD_PINS_D7 P1_22
+ #define KILL_PIN -1 // NC
- #else // !MKS_12864OLED_SSD1306
+ #else // !MKS_12864OLED_SSD1306
- #define LCD_PINS_RS P0_16
+ #define LCD_PINS_RS P0_16
- #define LCD_PINS_ENABLE P0_18
- #define LCD_PINS_D4 P0_15
+ #define LCD_PINS_ENABLE P0_18
+ #define LCD_PINS_D4 P0_15
#if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS P0_18
- #define DOGLCD_A0 P0_16
- #define DOGLCD_SCK P0_07
- #define DOGLCD_MOSI P1_20
+ #define DOGLCD_CS P0_18
+ #define DOGLCD_A0 P0_16
+ #define DOGLCD_SCK P0_07
+ #define DOGLCD_MOSI P1_20
- #define LCD_BACKLIGHT_PIN -1
+ #define LCD_BACKLIGHT_PIN -1
- #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN P0_15 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN P0_15 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN P0_17
+ #define RGB_LED_R_PIN P0_17
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN P1_00
+ #define RGB_LED_G_PIN P1_00
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN P1_22
+ #define RGB_LED_B_PIN P1_22
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN P0_17
+ #define NEOPIXEL_PIN P0_17
#endif
- #else // !FYSETC_MINI_12864
+ #else // !FYSETC_MINI_12864
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS P0_17
- #define DOGLCD_A0 P1_00
+ #define DOGLCD_CS P0_17
+ #define DOGLCD_A0 P1_00
#endif
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 P0_17
- #define LCD_PINS_D6 P1_00
- #define LCD_PINS_D7 P1_22
+ #define LCD_PINS_D5 P0_17
+ #define LCD_PINS_D6 P1_00
+ #define LCD_PINS_D7 P1_22
#endif
#endif // !FYSETC_MINI_12864
@@ -324,20 +330,20 @@
#endif // HAS_SPI_LCD
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD) || SD_CONNECTION_IS(ONBOARD)
- #define SD_DETECT_PIN P0_27
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
+ #define SD_DETECT_PIN P0_27
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
#if SD_CONNECTION_IS(ONBOARD)
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SS_PIN ONBOARD_SD_CS_PIN
#else
- #define SS_PIN P0_28
+ #define SS_PIN P0_28
#endif
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
@@ -346,6 +352,6 @@
//
// Other Pins
//
-//#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
-//#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
-//#define PS_ON_PIN P1_23 // SERVO P1.23
+//#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
+//#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
+//#define PS_ON_PIN P1_23 // SERVO P1.23
diff --git a/Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h b/Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
index bf989798fd..b8b04a348c 100644
--- a/Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
+++ b/Marlin/src/pins/lpc1768/pins_RAMPS_RE_ARM.h
@@ -42,61 +42,67 @@
#define BOARD_INFO_NAME "Re-ARM RAMPS 1.4"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_20 // (11)
-#define SERVO1_PIN P1_21 // ( 6) also on J5-1
-#define SERVO2_PIN P1_19 // ( 5)
-#define SERVO3_PIN P1_18 // ( 4) 5V output
+#define SERVO0_PIN P1_20 // (11)
+#define SERVO1_PIN P1_21 // ( 6) also on J5-1
+#define SERVO2_PIN P1_19 // ( 5)
+#define SERVO3_PIN P1_18 // ( 4) 5V output
//
// Limit Switches
//
-#define X_MIN_PIN P1_24 // ( 3) 10k pullup to 3.3V, 1K series
-#define X_MAX_PIN P1_25 // ( 2) 10k pullup to 3.3V, 1K series
-#define Y_MIN_PIN P1_26 // (14) 10k pullup to 3.3V, 1K series
-#define Y_MAX_PIN P1_27 // (15) 10k pullup to 3.3V, 1K series
-#define Z_MIN_PIN P1_29 // (18) 10k pullup to 3.3V, 1K series
-#define Z_MAX_PIN P1_28 // (19) 10k pullup to 3.3V, 1K series
-#define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
+#define X_MIN_PIN P1_24 // ( 3) 10k pullup to 3.3V, 1K series
+#define X_MAX_PIN P1_25 // ( 2) 10k pullup to 3.3V, 1K series
+#define Y_MIN_PIN P1_26 // (14) 10k pullup to 3.3V, 1K series
+#define Y_MAX_PIN P1_27 // (15) 10k pullup to 3.3V, 1K series
+#define Z_MIN_PIN P1_29 // (18) 10k pullup to 3.3V, 1K series
+#define Z_MAX_PIN P1_28 // (19) 10k pullup to 3.3V, 1K series
+#define ONBOARD_ENDSTOPPULLUPS // Board has built-in pullups
//
// Steppers
//
-#define X_STEP_PIN P2_01 // (54)
-#define X_DIR_PIN P0_11 // (55)
-#define X_ENABLE_PIN P0_10 // (38)
+#define X_STEP_PIN P2_01 // (54)
+#define X_DIR_PIN P0_11 // (55)
+#define X_ENABLE_PIN P0_10 // (38)
#ifndef X_CS_PIN
- #define X_CS_PIN P1_01 // ETH
+ #define X_CS_PIN P1_01 // ETH
#endif
-#define Y_STEP_PIN P2_02 // (60)
-#define Y_DIR_PIN P0_20 // (61)
-#define Y_ENABLE_PIN P0_19 // (56)
+#define Y_STEP_PIN P2_02 // (60)
+#define Y_DIR_PIN P0_20 // (61)
+#define Y_ENABLE_PIN P0_19 // (56)
#ifndef Y_CS_PIN
- #define Y_CS_PIN P1_04 // ETH
+ #define Y_CS_PIN P1_04 // ETH
#endif
-#define Z_STEP_PIN P2_03 // (46)
-#define Z_DIR_PIN P0_22 // (48)
-#define Z_ENABLE_PIN P0_21 // (62)
+#define Z_STEP_PIN P2_03 // (46)
+#define Z_DIR_PIN P0_22 // (48)
+#define Z_ENABLE_PIN P0_21 // (62)
#ifndef Z_CS_PIN
- #define Z_CS_PIN P1_10 // ETH
+ #define Z_CS_PIN P1_10 // ETH
#endif
-#define E0_STEP_PIN P2_00 // (26)
-#define E0_DIR_PIN P0_05 // (28)
-#define E0_ENABLE_PIN P0_04 // (24)
+#define E0_STEP_PIN P2_00 // (26)
+#define E0_DIR_PIN P0_05 // (28)
+#define E0_ENABLE_PIN P0_04 // (24)
#ifndef E0_CS_PIN
- #define E0_CS_PIN P1_14 // ETH
+ #define E0_CS_PIN P1_14 // ETH
#endif
-#define E1_STEP_PIN P2_08 // (36)
-#define E1_DIR_PIN P2_13 // (34)
-#define E1_ENABLE_PIN P4_29 // (30)
+#define E1_STEP_PIN P2_08 // (36)
+#define E1_DIR_PIN P2_13 // (34)
+#define E1_ENABLE_PIN P4_29 // (30)
#ifndef E1_CS_PIN
- #define E1_CS_PIN -1
+ #define E1_CS_PIN -1
#endif
//
@@ -104,17 +110,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P1_00 // ETH
+ #define TMC_SW_MOSI P1_00 // ETH
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P1_08 // ETH
+ #define TMC_SW_MISO P1_08 // ETH
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P1_09 // ETH
+ #define TMC_SW_SCK P1_09 // ETH
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -130,31 +136,31 @@
// P2_13 E1-Dir
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN P0_01
+ #define X_SERIAL_TX_PIN P0_01
#endif
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN P0_01
+ #define X_SERIAL_RX_PIN P0_01
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN P0_00
+ #define Y_SERIAL_TX_PIN P0_00
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN P0_00
+ #define Y_SERIAL_RX_PIN P0_00
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN P2_13
+ #define Z_SERIAL_TX_PIN P2_13
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN P2_13
+ #define Z_SERIAL_RX_PIN P2_13
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN P2_08
+ #define E0_SERIAL_TX_PIN P2_08
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN P2_08
+ #define E0_SERIAL_RX_PIN P2_08
#endif
// Reduce baud rate to improve software serial reliability
@@ -165,14 +171,14 @@
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_0_PIN
-#define TEMP_BED_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_BED_PIN
-#define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
-#define TEMP_2_PIN P0_26_A3 // A3 - (63) - J5-3 & AUX-2
-#define TEMP_3_PIN P1_30_A4 // A4 - (37) - BUZZER_PIN
-//#define TEMP_4_PIN P1_31_A5 // A5 - (49) - SD_DETECT_PIN
+#define TEMP_0_PIN P0_23_A0 // A0 (T0) - (67) - TEMP_0_PIN
+#define TEMP_BED_PIN P0_24_A1 // A1 (T1) - (68) - TEMP_BED_PIN
+#define TEMP_1_PIN P0_25_A2 // A2 (T2) - (69) - TEMP_1_PIN
+#define TEMP_2_PIN P0_26_A3 // A3 - (63) - J5-3 & AUX-2
+#define TEMP_3_PIN P1_30_A4 // A4 - (37) - BUZZER_PIN
+//#define TEMP_4_PIN P1_31_A5 // A5 - (49) - SD_DETECT_PIN
//#define ?? P0_03_A6 // A6 - ( 0) - RXD0 - J4-4 & AUX-1
-#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
+#define FILWIDTH_PIN P0_02_A7 // A7 - ( 1) - TXD0 - J4-5 & AUX-1
//
// Augmentation for auto-assigning RAMPS plugs
@@ -195,69 +201,69 @@
// Heaters / Fans
//
#ifndef MOSFET_D_PIN
- #define MOSFET_D_PIN -1
+ #define MOSFET_D_PIN -1
#endif
#ifndef RAMPS_D8_PIN
- #define RAMPS_D8_PIN P2_07 // (8)
+ #define RAMPS_D8_PIN P2_07 // (8)
#endif
#ifndef RAMPS_D9_PIN
- #define RAMPS_D9_PIN P2_04 // (9)
+ #define RAMPS_D9_PIN P2_04 // (9)
#endif
#ifndef RAMPS_D10_PIN
- #define RAMPS_D10_PIN P2_05 // (10)
+ #define RAMPS_D10_PIN P2_05 // (10)
#endif
-#define HEATER_0_PIN RAMPS_D10_PIN
+#define HEATER_0_PIN RAMPS_D10_PIN
-#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
- #define HEATER_1_PIN RAMPS_D9_PIN
-#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
- #define HEATER_1_PIN RAMPS_D9_PIN
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
- #define FAN1_PIN RAMPS_D8_PIN
-#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
- #define HEATER_BED_PIN RAMPS_D8_PIN
+#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
+ #define HEATER_1_PIN RAMPS_D9_PIN
+#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
+ #define HEATER_1_PIN RAMPS_D9_PIN
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
+ #define FAN1_PIN RAMPS_D8_PIN
+#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
+ #define HEATER_BED_PIN RAMPS_D8_PIN
#if HOTENDS == 1
- #define FAN1_PIN MOSFET_D_PIN
+ #define FAN1_PIN MOSFET_D_PIN
#else
- #define HEATER_1_PIN MOSFET_D_PIN
+ #define HEATER_1_PIN MOSFET_D_PIN
#endif
#endif
#ifndef FAN_PIN
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
- #define FAN_PIN RAMPS_D9_PIN
+ #define FAN_PIN RAMPS_D9_PIN
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
- #define FAN_PIN RAMPS_D8_PIN
- #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
- #define FAN_PIN P1_18 // (4) IO pin. Buffer needed
- #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
- #define FAN_PIN RAMPS_D9_PIN
+ #define FAN_PIN RAMPS_D8_PIN
+ #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
+ #define FAN_PIN P1_18 // (4) IO pin. Buffer needed
+ #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
+ #define FAN_PIN RAMPS_D9_PIN
#endif
#endif
//
// Misc. Functions
//
-#define LED_PIN P4_28 // (13)
+#define LED_PIN P4_28 // (13)
// define digital pin 5 for the filament runout sensor. Use the RAMPS 1.4 digital input 5 on the servos connector
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN P1_19 // (5)
+ #define FIL_RUNOUT_PIN P1_19 // (5)
#endif
-#define PS_ON_PIN P2_12 // (12)
+#define PS_ON_PIN P2_12 // (12)
#if !defined(MAX6675_SS_PIN) && DISABLED(USE_ZMAX_PLUG)
- #define MAX6675_SS_PIN P1_28
+ #define MAX6675_SS_PIN P1_28
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENA_PIN)
- #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // Try to use servo connector
- #define CASE_LIGHT_PIN P1_18 // (4) MUST BE HARDWARE PWM
+ #if !defined(NUM_SERVOS) || NUM_SERVOS < 4 // Try to use servo connector
+ #define CASE_LIGHT_PIN P1_18 // (4) MUST BE HARDWARE PWM
#endif
#endif
@@ -273,19 +279,19 @@
#error "LASER_FEATURE requires 3 free servo pins."
#endif
#endif
- #define SPINDLE_LASER_ENA_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
- #define SPINDLE_LASER_PWM_PIN SERVO3_PIN // (4) MUST BE HARDWARE PWM
- #define SPINDLE_DIR_PIN SERVO2_PIN // (5)
+ #define SPINDLE_LASER_ENA_PIN SERVO1_PIN // (6) Pin should have a pullup/pulldown!
+ #define SPINDLE_LASER_PWM_PIN SERVO3_PIN // (4) MUST BE HARDWARE PWM
+ #define SPINDLE_DIR_PIN SERVO2_PIN // (5)
#endif
//
// Průša i3 MK2 Multiplexer Support
//
#if SERIAL_PORT != 0 && SERIAL_PORT_2 != 0
- #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
- #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
+ #define E_MUX0_PIN P0_03 // ( 0) Z_CS_PIN
+ #define E_MUX1_PIN P0_02 // ( 1) E0_CS_PIN
#endif
-#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
+#define E_MUX2_PIN P0_26 // (63) E1_CS_PIN
/**
* LCD / Controller
@@ -316,101 +322,101 @@
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
- #define BEEPER_PIN P2_11 // J3-3 & AUX-4
+ #define BEEPER_PIN P2_11 // J3-3 & AUX-4
- #define BTN_EN1 P0_16 // J3-7 & AUX-4
- #define BTN_EN2 P1_23 // J3-5 & AUX-4
- #define BTN_ENC P3_25 // J3-4 & AUX-4
+ #define BTN_EN1 P0_16 // J3-7 & AUX-4
+ #define BTN_EN2 P1_23 // J3-5 & AUX-4
+ #define BTN_ENC P3_25 // J3-4 & AUX-4
- #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
- #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
- #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
+ #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
+ #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
+ #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
#elif HAS_SPI_LCD
- //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
- //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
- //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
- //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS)
+ //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
+ //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
+ //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
+ //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS)
#if ENABLED(FYSETC_MINI_12864)
- #define BEEPER_PIN P1_01
- #define BTN_ENC P1_04
+ #define BEEPER_PIN P1_01
+ #define BTN_ENC P1_04
#else
- #define BEEPER_PIN P1_30 // (37) not 5V tolerant
- #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
#endif
- #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
- #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
- #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
- #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
- #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
- #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
+ #define SD_DETECT_PIN P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
+ #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
#if ENABLED(NEWPANEL)
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
- #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
- #define SHIFT_LD P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
+ #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
+ #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
+ #define SHIFT_LD P1_31 // (49) J3-1 & AUX-3 (NOT 5V tolerant)
#endif
#else
- //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
- //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
- //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
- //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
+ //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
+ //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
+ //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
+ //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
#endif
#if ANY(VIKI2, miniVIKI)
// #define LCD_SCREEN_ROT_180
- #define DOGLCD_CS P0_16 // (16)
- #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
- #define DOGLCD_SCK SCK_PIN
- #define DOGLCD_MOSI MOSI_PIN
+ #define DOGLCD_CS P0_16 // (16)
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
+ #define DOGLCD_SCK SCK_PIN
+ #define DOGLCD_MOSI MOSI_PIN
- #define STAT_LED_BLUE_PIN P0_26 //(63) may change if cable changes
- #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
+ #define STAT_LED_BLUE_PIN P0_26 //(63) may change if cable changes
+ #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
#else
#if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_SCK P0_15
- #define DOGLCD_MOSI P0_18
+ #define DOGLCD_SCK P0_15
+ #define DOGLCD_MOSI P0_18
// EXP1 on LCD adapter is not usable - using Ethernet connector instead
- #define DOGLCD_CS P1_09
- #define DOGLCD_A0 P1_14
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ #define DOGLCD_CS P1_09
+ #define DOGLCD_A0 P1_14
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN P0_16 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN P0_16 // Must be high or open for LCD to operate normally.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN P1_00
+ #define RGB_LED_R_PIN P1_00
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN P1_01
+ #define RGB_LED_G_PIN P1_01
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN P1_08
+ #define RGB_LED_B_PIN P1_08
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN P1_00
+ #define NEOPIXEL_PIN P1_00
#endif
#else
- #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
- #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
+ #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
#endif
- #define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
- #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
- #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
+ #define LCD_BACKLIGHT_PIN P0_16 //(16) J3-7 & AUX-4 - only used on DOGLCD controllers
+ #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
+ #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
- #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
- #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
+ #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
+ #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
+ #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
#endif
#endif
@@ -428,38 +434,38 @@
// Ethernet pins
//
#if DISABLED(ULTIPANEL)
- #define ENET_MDIO P1_17 // (71) J12-4
- #define ENET_RX_ER P1_14 // (73) J12-6
- #define ENET_RXD1 P1_10 // (75) J12-8
+ #define ENET_MDIO P1_17 // (71) J12-4
+ #define ENET_RX_ER P1_14 // (73) J12-6
+ #define ENET_RXD1 P1_10 // (75) J12-8
#endif
-#define ENET_MOC P1_16 // (70) J12-3
-#define REF_CLK P1_15 // (72) J12-5
-#define ENET_RXD0 P1_09 // (74) J12-7
-#define ENET_CRS P1_08 // (76) J12-9
-#define ENET_TX_EN P1_04 // (77) J12-10
-#define ENET_TXD0 P1_00 // (78) J12-11
-#define ENET_TXD1 P1_01 // (79) J12-12
+#define ENET_MOC P1_16 // (70) J12-3
+#define REF_CLK P1_15 // (72) J12-5
+#define ENET_RXD0 P1_09 // (74) J12-7
+#define ENET_CRS P1_08 // (76) J12-9
+#define ENET_TX_EN P1_04 // (77) J12-10
+#define ENET_TXD0 P1_00 // (78) J12-11
+#define ENET_TXD1 P1_01 // (79) J12-12
//
// SD Support
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
- #define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
- #define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
- #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
+ #define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
+ #define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
+ #define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
+ #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
#elif SD_CONNECTION_IS(ONBOARD)
#undef SD_DETECT_PIN
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
diff --git a/Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h b/Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
index 1a8e997eb2..6f84f87bba 100644
--- a/Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
+++ b/Marlin/src/pins/lpc1768/pins_SELENA_COMPACT.h
@@ -32,83 +32,88 @@
#define BOARD_INFO_NAME "Selena Compact"
#define BOARD_WEBSITE_URL "github.com/Ales2-k/Selena"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23
+#define SERVO0_PIN P1_23
//
// Limit Switches
//
-#define X_MIN_PIN P1_28
-#define X_MAX_PIN P1_25
-#define Y_MIN_PIN P2_11
-#define Y_MAX_PIN -1
-#define Z_MIN_PIN P1_27
-#define Z_MAX_PIN -1
-#define Z_PROBE P1_22
+#define X_MIN_PIN P1_28
+#define X_MAX_PIN P1_25
+#define Y_MIN_PIN P2_11
+#define Y_MAX_PIN -1
+#define Z_MIN_PIN P1_27
+#define Z_MAX_PIN -1
+#define Z_PROBE P1_22
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
-#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
-#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
-
+#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
+#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
+#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_BED2_PIN P2_04
-#define HEATER_0_PIN P2_07
-#define HEATER_1_PIN P2_06
+#define HEATER_BED_PIN P2_05
+#define HEATER_BED2_PIN P2_04
+#define HEATER_0_PIN P2_07
+#define HEATER_1_PIN P2_06
#ifndef FAN_PIN
- #define FAN_PIN P1_24
+ #define FAN_PIN P1_24
#endif
-#define FAN1_PIN P1_26
+#define FAN1_PIN P1_26
//
// Display
//
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define LCD_PINS_RS P0_16
- #define LCD_PINS_ENABLE P0_18
- #define LCD_PINS_D4 P0_15
- #define LCD_PINS_D5 P1_00
- #define LCD_PINS_D6 P1_01
- #define LCD_PINS_D7 P1_04
- #define BEEPER_PIN P1_31
+ #define LCD_PINS_RS P0_16
+ #define LCD_PINS_ENABLE P0_18
+ #define LCD_PINS_D4 P0_15
+ #define LCD_PINS_D5 P1_00
+ #define LCD_PINS_D6 P1_01
+ #define LCD_PINS_D7 P1_04
+ #define BEEPER_PIN P1_31
- #define BTN_EN1 P3_25
- #define BTN_EN2 P3_26
- #define BTN_ENC P1_30
+ #define BTN_EN1 P3_25
+ #define BTN_EN2 P3_26
+ #define BTN_ENC P1_30
- #define SD_DETECT_PIN -1
+ #define SD_DETECT_PIN -1
#endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
diff --git a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
index 5ee0e58566..95cbd2163e 100755
--- a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
+++ b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_GT.h
@@ -32,97 +32,101 @@
#define BOARD_INFO_NAME "Azteeg X5 GT"
#define BOARD_WEBSITE_URL "tinyurl.com/yx8tdqa3"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23
+#define SERVO0_PIN P1_23
//
// Limit Switches
//
-#define X_MIN_PIN P1_24
-#define X_MAX_PIN P1_27
-#define Y_MIN_PIN P1_25
-#define Y_MAX_PIN P1_28
-#define Z_MIN_PIN P1_26
-#define Z_MAX_PIN P1_29
-
+#define X_MIN_PIN P1_24
+#define X_MAX_PIN P1_27
+#define Y_MIN_PIN P1_25
+#define Y_MAX_PIN P1_28
+#define Z_MIN_PIN P1_26
+#define Z_MAX_PIN P1_29
//
// Steppers
//
-#define X_STEP_PIN P2_01
-#define X_DIR_PIN P0_11
-#define X_ENABLE_PIN P0_10
+#define X_STEP_PIN P2_01
+#define X_DIR_PIN P0_11
+#define X_ENABLE_PIN P0_10
#ifndef X_CS_PIN
- #define X_CS_PIN P0_10 // BSD2660 default
+ #define X_CS_PIN P0_10 // BSD2660 default
#endif
-#define Y_STEP_PIN P2_02
-#define Y_DIR_PIN P0_20
-#define Y_ENABLE_PIN P0_19
+#define Y_STEP_PIN P2_02
+#define Y_DIR_PIN P0_20
+#define Y_ENABLE_PIN P0_19
#ifndef Y_CS_PIN
- #define Y_CS_PIN P0_19 // BSD2660 default
+ #define Y_CS_PIN P0_19 // BSD2660 default
#endif
-#define Z_STEP_PIN P2_03
-#define Z_DIR_PIN P0_22
-#define Z_ENABLE_PIN P0_21
+#define Z_STEP_PIN P2_03
+#define Z_DIR_PIN P0_22
+#define Z_ENABLE_PIN P0_21
#ifndef Z_CS_PIN
- #define Z_CS_PIN P0_21 // BSD2660 default
+ #define Z_CS_PIN P0_21 // BSD2660 default
#endif
-#define E0_STEP_PIN P2_00
-#define E0_DIR_PIN P0_05
-#define E0_ENABLE_PIN P0_04
+#define E0_STEP_PIN P2_00
+#define E0_DIR_PIN P0_05
+#define E0_ENABLE_PIN P0_04
#ifndef E0_CS_PIN
- #define E0_CS_PIN P0_04 // BSD2660 default
+ #define E0_CS_PIN P0_04 // BSD2660 default
#endif
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
#ifndef E1_CS_PIN
- #define E1_CS_PIN P4_29 // BSD2660 default
+ #define E1_CS_PIN P4_29 // BSD2660 default
#endif
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
-#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
-#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
-
+#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
+#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
+#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_07
-#define HEATER_0_PIN P2_04
-#define HEATER_1_PIN P2_05
+#define HEATER_BED_PIN P2_07
+#define HEATER_0_PIN P2_04
+#define HEATER_1_PIN P2_05
#ifndef FAN_PIN
- #define FAN_PIN P0_26
+ #define FAN_PIN P0_26
#endif
-#define FAN1_PIN P1_22
+#define FAN1_PIN P1_22
//
// Display
//
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN P1_31
- #define DOGLCD_A0 P2_06
- #define DOGLCD_CS P0_16
+ #define BEEPER_PIN P1_31
+ #define DOGLCD_A0 P2_06
+ #define DOGLCD_CS P0_16
- #define BTN_EN1 P3_25
- #define BTN_EN2 P3_26
- #define BTN_ENC P2_11
+ #define BTN_EN1 P3_25
+ #define BTN_EN2 P3_26
+ #define BTN_ENC P2_11
- #define SD_DETECT_PIN P1_18
- #define SDSS P1_21
+ #define SD_DETECT_PIN P1_18
+ #define SDSS P1_21
- #define STAT_LED_RED_PIN P1_19
- #define STAT_LED_BLUE_PIN P1_20
+ #define STAT_LED_RED_PIN P1_19
+ #define STAT_LED_BLUE_PIN P1_20
#endif
diff --git a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
index 2c54bd6035..ba1351e6f4 100644
--- a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
+++ b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI.h
@@ -37,74 +37,74 @@
//
// LED
//
-#define LED_PIN P1_18
+#define LED_PIN P1_18
//
// Servos
//
-#define SERVO0_PIN P1_29
+#define SERVO0_PIN P1_29
//
// Limit Switches
//
-#define X_STOP_PIN P1_24
-#define Y_STOP_PIN P1_26
-#define Z_STOP_PIN P1_28
+#define X_STOP_PIN P1_24
+#define Y_STOP_PIN P1_26
+#define Z_STOP_PIN P1_28
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN P2_04
+ #define FIL_RUNOUT_PIN P2_04
#endif
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN P0_25_A2 // Analog Input (P0_25)
+ #define FILWIDTH_PIN P0_25_A2 // Analog Input (P0_25)
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_01
-#define X_DIR_PIN P0_11
-#define X_ENABLE_PIN P0_10
+#define X_STEP_PIN P2_01
+#define X_DIR_PIN P0_11
+#define X_ENABLE_PIN P0_10
-#define Y_STEP_PIN P2_02
-#define Y_DIR_PIN P0_20
-#define Y_ENABLE_PIN P0_19
+#define Y_STEP_PIN P2_02
+#define Y_DIR_PIN P0_20
+#define Y_ENABLE_PIN P0_19
-#define Z_STEP_PIN P2_03
-#define Z_DIR_PIN P0_22
-#define Z_ENABLE_PIN P0_21
+#define Z_STEP_PIN P2_03
+#define Z_DIR_PIN P0_22
+#define Z_ENABLE_PIN P0_21
-#define E0_STEP_PIN P2_00
-#define E0_DIR_PIN P0_05
-#define E0_ENABLE_PIN P0_04
+#define E0_STEP_PIN P2_00
+#define E0_DIR_PIN P0_05
+#define E0_ENABLE_PIN P0_04
//
// DIGIPOT slave addresses
//
#ifndef DIGIPOT_I2C_ADDRESS_A
- #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
+ #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT
#endif
#ifndef DIGIPOT_I2C_ADDRESS_B
- #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
+ #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT
#endif
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
-#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
+#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
+#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_07
-#define HEATER_0_PIN P2_05
+#define HEATER_BED_PIN P2_07
+#define HEATER_0_PIN P2_05
#ifndef FAN_PIN
- #define FAN_PIN P0_26
+ #define FAN_PIN P0_26
#endif
-#define FAN1_PIN P1_25
+#define FAN1_PIN P1_25
//
// Display
@@ -118,61 +118,61 @@
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
- #define BEEPER_PIN P2_11 // J3-3 & AUX-4
+ #define BEEPER_PIN P2_11 // J3-3 & AUX-4
- #define BTN_EN1 P0_16 // J3-7 & AUX-4
- #define BTN_EN2 P1_23 // J3-5 & AUX-4
- #define BTN_ENC P3_25 // J3-4 & AUX-4
+ #define BTN_EN1 P0_16 // J3-7 & AUX-4
+ #define BTN_EN2 P1_23 // J3-5 & AUX-4
+ #define BTN_ENC P3_25 // J3-4 & AUX-4
- #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
- #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
- #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
+ #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
+ #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
+ #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
#else
- #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
- #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
- #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
+ #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
+ #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
+ #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
- #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
- #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
- #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
- #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
- #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
- #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
- #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
+ #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
+ #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
+ #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
+ #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
+ #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
+ #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
+ #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
- #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
+ #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
- #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
- #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
+ #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
+ #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
+ #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
#elif DISABLED(NEWPANEL)
- //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
- //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
- //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
- //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
+ //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
+ //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
+ //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
+ //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
#endif
#if ANY(VIKI2, miniVIKI)
//#define LCD_SCREEN_ROT_180
- #define BEEPER_PIN P1_30 // (37) may change if cable changes
- #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
- #define DOGLCD_SCK SCK_PIN
- #define DOGLCD_MOSI MOSI_PIN
+ #define BEEPER_PIN P1_30 // (37) may change if cable changes
+ #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
+ #define DOGLCD_SCK SCK_PIN
+ #define DOGLCD_MOSI MOSI_PIN
- #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
- #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
+ #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
+ #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
#else
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
- #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
- #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
+ #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
+ #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
+ #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
#endif
- #define BEEPER_PIN P1_30 // (37) not 5V tolerant
- #define DOGLCD_CS P0_16 // (16)
+ #define BEEPER_PIN P1_30 // (37) not 5V tolerant
+ #define DOGLCD_CS P0_16 // (16)
#endif
#if ENABLED(MINIPANEL)
@@ -187,26 +187,34 @@
#endif // HAS_SPI_LCD
+//
+// EEPROM
+//
+#if NONE(FLASH_EEPROM_EMULATION, SDCARD_EEPROM_EMULATION)
+ #define FLASH_EEPROM_EMULATION
+ //#define SDCARD_EEPROM_EMULATION
+#endif
+
//
// SD Support
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_15
- #define MISO_PIN P0_17
- #define MOSI_PIN P0_18
- #define SS_PIN P1_23
+ #define SCK_PIN P0_15
+ #define MISO_PIN P0_17
+ #define MOSI_PIN P0_18
+ #define SS_PIN P1_23
#elif SD_CONNECTION_IS(ONBOARD)
#undef SD_DETECT_PIN
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
diff --git a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
index 4b731ae9d3..1e5d2f3a2c 100644
--- a/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
+++ b/Marlin/src/pins/lpc1769/pins_AZTEEG_X5_MINI_WIFI.h
@@ -31,6 +31,12 @@
#define BOARD_INFO_NAME "Azteeg X5 MINI WIFI"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// DIGIPOT slave addresses
//
diff --git a/Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h b/Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
index 937ba56bb7..a8649b6f8d 100644
--- a/Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
+++ b/Marlin/src/pins/lpc1769/pins_BTT_SKR_V1_4_TURBO.h
@@ -24,6 +24,12 @@
#define BOARD_INFO_NAME "BIGTREE SKR 1.4 TURBO"
#define SKR_HAS_LPC1769
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Include SKR 1.4 pins
//
diff --git a/Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h b/Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
index 739603e2b6..87d3cb459c 100644
--- a/Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
+++ b/Marlin/src/pins/lpc1769/pins_COHESION3D_MINI.h
@@ -31,56 +31,62 @@
#define BOARD_INFO_NAME "Cohesion3D Mini"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23
+#define SERVO0_PIN P1_23
//
// Limit Switches
//
-#define X_MIN_PIN P1_24 // 10k pullup to 3.3V
-#define X_MAX_PIN P1_25 // 10k pullup to 3.3V
-#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
-#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
-#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
-#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
+#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
-#define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
+#define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
-#define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
+#define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
-#define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
+#define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
-#define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
+#define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
//
// Default pins for TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
+ #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
+ #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
+ #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif
#endif
@@ -88,42 +94,42 @@
// Analog Inputs
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // P0_23
-#define TEMP_BED_PIN P0_24_A1 // P0_24
+#define TEMP_0_PIN P0_23_A0 // P0_23
+#define TEMP_BED_PIN P0_24_A1 // P0_24
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07 // FET 1
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07 // FET 1
#ifndef FAN_PIN
- #define FAN_PIN P2_06 // FET 3
+ #define FAN_PIN P2_06 // FET 3
#endif
//
// Auto fans
//
-#define AUTO_FAN_PIN P2_04 // FET 4
+#define AUTO_FAN_PIN P2_04 // FET 4
-#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
//
// Misc. Functions
//
-#define LED_PIN P4_28 // Play LED
+#define LED_PIN P4_28 // Play LED
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
#undef HEATER_0_PIN
- #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
+ #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
#undef HEATER_BED_PIN
- #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
+ #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
#undef FAN_PIN
- #define SPINDLE_DIR_PIN P2_06 // FET 3
+ #define SPINDLE_DIR_PIN P2_06 // FET 3
#endif
//
@@ -138,18 +144,18 @@
//
#if HAS_SPI_LCD
- #define BEEPER_PIN P0_27 // EXP2-7 - open drain
+ #define BEEPER_PIN P0_27 // EXP2-7 - open drain
- #define BTN_EN1 P3_26 // EXP2-5
- #define BTN_EN2 P3_25 // EXP2-3
- #define BTN_ENC P1_30 // EXP1-2
+ #define BTN_EN1 P3_26 // EXP2-5
+ #define BTN_EN2 P3_25 // EXP2-3
+ #define BTN_ENC P1_30 // EXP1-2
- #define LCD_PINS_RS P0_16 // EXP1-4
- #define LCD_SDSS P0_28 // EXP2-4
- #define LCD_PINS_ENABLE P0_18 // EXP1-3
- #define LCD_PINS_D4 P0_15 // EXP1-5
+ #define LCD_PINS_RS P0_16 // EXP1-4
+ #define LCD_SDSS P0_28 // EXP2-4
+ #define LCD_PINS_ENABLE P0_18 // EXP1-3
+ #define LCD_PINS_D4 P0_15 // EXP1-5
- #define KILL_PIN P2_11 // EXP2-10
+ #define KILL_PIN P2_11 // EXP2-10
#if ENABLED(SDSUPPORT)
#error "SDSUPPORT is not currently supported by the Cohesion3D boards"
@@ -160,13 +166,13 @@
//
// Ethernet pins
//
-#define ENET_MDIO P1_17
-#define ENET_RX_ER P1_14
-#define ENET_RXD1 P1_10
-#define ENET_MOC P1_16
-#define REF_CLK P1_15
-#define ENET_RXD0 P1_09
-#define ENET_CRS P1_08
-#define ENET_TX_EN P1_04
-#define ENET_TXD0 P1_00
-#define ENET_TXD1 P1_01
+#define ENET_MDIO P1_17
+#define ENET_RX_ER P1_14
+#define ENET_RXD1 P1_10
+#define ENET_MOC P1_16
+#define REF_CLK P1_15
+#define ENET_RXD0 P1_09
+#define ENET_CRS P1_08
+#define ENET_TX_EN P1_04
+#define ENET_TXD0 P1_00
+#define ENET_TXD1 P1_01
diff --git a/Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h b/Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
index 58bf0d6e71..fa55a8adae 100644
--- a/Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
+++ b/Marlin/src/pins/lpc1769/pins_COHESION3D_REMIX.h
@@ -31,73 +31,79 @@
#define BOARD_INFO_NAME "Cohesion3D ReMix"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P2_04
+#define SERVO0_PIN P2_04
//
// Limit Switches
//
-#define X_MIN_PIN P1_24 // 10k pullup to 3.3V
-#define X_MAX_PIN P1_25 // 10k pullup to 3.3V
-#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
-#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
-#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
-#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
+#define X_MIN_PIN P1_24 // 10k pullup to 3.3V
+#define X_MAX_PIN P1_25 // 10k pullup to 3.3V
+#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V
+#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V
+#define Z_MIN_PIN P1_28 // 10k pullup to 3.3V
+#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN P1_29
+ #define Z_MIN_PROBE_PIN P1_29
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
-#define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
+#define X_CS_PIN P1_10 // Ethernet Expansion - Pin 9
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
-#define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
+#define Y_CS_PIN P1_09 // Ethernet Expansion - Pin 10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
-#define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
+#define Z_CS_PIN P1_00 // Ethernet Expansion - Pin 11
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
-#define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
+#define E0_CS_PIN P1_04 // Ethernet Expansion - Pin 12
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
-#define E1_CS_PIN P1_01 // Ethernet Expansion - Pin 14
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
+#define E1_CS_PIN P1_01 // Ethernet Expansion - Pin 14
-#define E2_STEP_PIN P1_20
-#define E2_DIR_PIN P1_19
-#define E2_ENABLE_PIN P1_21
-#define E2_CS_PIN P1_18 // FET 6
+#define E2_STEP_PIN P1_20
+#define E2_DIR_PIN P1_19
+#define E2_ENABLE_PIN P1_21
+#define E2_CS_PIN P1_18 // FET 6
//
// Default pins for TMC software SPI
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
+ #define TMC_SW_MOSI P1_16 // Ethernet Expansion - Pin 5
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
+ #define TMC_SW_MISO P1_17 // Ethernet Expansion - Pin 6
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
+ #define TMC_SW_SCK P1_08 // Ethernet Expansion - Pin 7
#endif
#endif
@@ -105,42 +111,42 @@
// Analog Inputs
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0
-#define TEMP_BED_PIN P0_24_A1
-#define TEMP_1_PIN P0_25_A2
+#define TEMP_0_PIN P0_23_A0
+#define TEMP_BED_PIN P0_24_A1
+#define TEMP_1_PIN P0_25_A2
#if ENABLED(FILAMENT_WIDTH_SENSOR)
- #define FILWIDTH_PIN P0_26_A3
+ #define FILWIDTH_PIN P0_26_A3
#else
- #define TEMP_2_PIN P0_26_A3
+ #define TEMP_2_PIN P0_26_A3
#endif
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07 // FET 1
-#define HEATER_1_PIN P1_23 // FET 2
-#define HEATER_2_PIN P1_22 // FET 3
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07 // FET 1
+#define HEATER_1_PIN P1_23 // FET 2
+#define HEATER_2_PIN P1_22 // FET 3
#ifndef FAN_PIN
- #define FAN_PIN P2_06 // FET 4
+ #define FAN_PIN P2_06 // FET 4
#endif
//
// Auto fans
//
#if HOTENDS == 3
- #define AUTO_FAN_PIN P1_18 // FET 6
+ #define AUTO_FAN_PIN P1_18 // FET 6
#else
- #define AUTO_FAN_PIN P1_22 // FET 3
+ #define AUTO_FAN_PIN P1_22 // FET 3
#endif
-#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
//
// Misc. Functions
//
-#define LED_PIN P4_28 // Play LED
+#define LED_PIN P4_28 // Play LED
//
// M3/M4/M5 - Spindle/Laser Control
@@ -149,9 +155,9 @@
#undef HEATER_0_PIN
#undef HEATER_BED_PIN
#undef FAN_PIN
- #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
- #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
- #define SPINDLE_DIR_PIN P2_06 // FET 4
+ #define SPINDLE_LASER_ENA_PIN P2_07 // FET 1
+ #define SPINDLE_LASER_PWM_PIN P2_05 // Bed FET
+ #define SPINDLE_DIR_PIN P2_06 // FET 4
#endif
//
@@ -167,54 +173,54 @@
#if ENABLED(FYSETC_MINI_12864)
- #define FORCE_SOFT_SPI // REQUIRED - results in LCD soft SPI mode 3
+ #define FORCE_SOFT_SPI // REQUIRED - results in LCD soft SPI mode 3
- #define BEEPER_PIN P1_31 // EXP1-1
- #define BTN_ENC P1_30 // EXP1-2
- #define DOGLCD_CS P0_18 // EXP1-3
- #define DOGLCD_A0 P0_16 // EXP1-4
- #define LCD_RESET_PIN P0_15 // EXP1-5
+ #define BEEPER_PIN P1_31 // EXP1-1
+ #define BTN_ENC P1_30 // EXP1-2
+ #define DOGLCD_CS P0_18 // EXP1-3
+ #define DOGLCD_A0 P0_16 // EXP1-4
+ #define LCD_RESET_PIN P0_15 // EXP1-5
// A custom cable is REQUIRED for EXP2 cable because the SCK & MOSI on the card's EXP2 are dedicated
// to the onboard SD card. All required EXP2 signals come from the Ethernet connector. Pin 1 of this
// connector is the one nearest the motor power connector.
- #define DOGLCD_SCK P1_17 // EXP2-2 => Ethernet pin 5 (bottom, 3 from left)
- #define BTN_EN2 P1_09 // EXP2-3 => Ethernet pin 9 (bottom, 5 from left)
- #define BTN_EN1 P1_04 // EXP2-5 => Ethernet pin 11 (bottom, 6 from left)
- #define DOGLCD_MOSI P1_01 // EXP2-6 => Ethernet pin 13 (bottom, 7 from left)
+ #define DOGLCD_SCK P1_17 // EXP2-2 => Ethernet pin 5 (bottom, 3 from left)
+ #define BTN_EN2 P1_09 // EXP2-3 => Ethernet pin 9 (bottom, 5 from left)
+ #define BTN_EN1 P1_04 // EXP2-5 => Ethernet pin 11 (bottom, 6 from left)
+ #define DOGLCD_MOSI P1_01 // EXP2-6 => Ethernet pin 13 (bottom, 7 from left)
// A custom EXP1 cable is required colored LEDs. Pins 1-5, 9, 10 of the cable go to pins 1-5, 9, 10
// on the board's EXP1 connector. Pins 6, 7, and 8 of the EXP1 cable go to the Ethernet connector.
// Rev 1.2 displays do NOT require the RGB LEDs. 2.0 and 2.1 displays do require RGB.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
+ #define RGB_LED_R_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN P1_10 // EXP1-7 => Ethernet pin 10 (top row, 5 from left)
+ #define RGB_LED_G_PIN P1_10 // EXP1-7 => Ethernet pin 10 (top row, 5 from left)
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN P1_00 // EXP1-8 => Ethernet pin 12 (top row, 6 from left)
+ #define RGB_LED_B_PIN P1_00 // EXP1-8 => Ethernet pin 12 (top row, 6 from left)
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
+ #define NEOPIXEL_PIN P1_16 // EXP1-6 => Ethernet pin 6 (top row, 3 from left)
#endif
#elif HAS_SPI_LCD
- #define BEEPER_PIN P1_31 // EXP1-1
- //#define SD_DETECT_PIN P0_27 // EXP2-7
+ #define BEEPER_PIN P1_31 // EXP1-1
+ //#define SD_DETECT_PIN P0_27 // EXP2-7
- #define BTN_EN1 P3_26 // EXP2-5
- #define BTN_EN2 P3_25 // EXP2-3
- #define BTN_ENC P1_30 // EXP1-2
+ #define BTN_EN1 P3_26 // EXP2-5
+ #define BTN_EN2 P3_25 // EXP2-3
+ #define BTN_ENC P1_30 // EXP1-2
- #define LCD_PINS_RS P0_16 // EXP1-4
- #define LCD_SDSS P0_28 // EXP2-4
- #define LCD_PINS_ENABLE P0_18 // EXP1-3
- #define LCD_PINS_D4 P0_15 // EXP1-5
+ #define LCD_PINS_RS P0_16 // EXP1-4
+ #define LCD_SDSS P0_28 // EXP2-4
+ #define LCD_PINS_ENABLE P0_18 // EXP1-3
+ #define LCD_PINS_D4 P0_15 // EXP1-5
- #define KILL_PIN P2_11 // EXP2-10
+ #define KILL_PIN P2_11 // EXP2-10
#endif // HAS_SPI_LCD
@@ -222,22 +228,22 @@
// SD Support
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
+#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
#if SD_CONNECTION_IS(LCD)
- #define SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
- #define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
- #define MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
- #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
+ #define SCK_PIN P0_07 // (52) system defined J3-9 & AUX-3
+ #define MISO_PIN P0_08 // (50) system defined J3-10 & AUX-3
+ #define MOSI_PIN P0_09 // (51) system defined J3-10 & AUX-3
+ #define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 (Sometimes called SDSS) - CS used by Marlin
#elif SD_CONNECTION_IS(ONBOARD)
#undef SD_DETECT_PIN
- #define SCK_PIN P0_07
- #define MISO_PIN P0_08
- #define MOSI_PIN P0_09
- #define SS_PIN ONBOARD_SD_CS_PIN
+ #define SCK_PIN P0_07
+ #define MISO_PIN P0_08
+ #define MOSI_PIN P0_09
+ #define SS_PIN ONBOARD_SD_CS_PIN
#elif SD_CONNECTION_IS(CUSTOM_CABLE)
#error "No custom SD drive cable defined for this board."
#endif
@@ -245,16 +251,16 @@
//
// Ethernet pins
//
-//#define ENET_MDIO P1_17 // Ethernet pin 5 (bottom, 3 from left)
-//#define ENET_RX_ER P1_14
-//#define ENET_RXD1 P1_10 // Ethernet pin 10 (top row, 5 from left)
-//#define ENET_MOC P1_16 // Ethernet pin 6 (top row, 3 from left)
-//#define REF_CLK P1_15
-//#define ENET_RXD0 P1_09 // Ethernet pin 9 (bottom, 5 from left)
-//#define ENET_CRS P1_08 // Ethernet pin 8 (top row, 4 from left) - INPUT ONLY
-//#define ENET_TX_EN P1_04 // Ethernet pin 11 (bottom, 6 from left)
-//#define ENET_TXD0 P1_00 // Ethernet pin 12 (top row, 6 from left)
-//#define ENET_TXD1 P1_01 // Ethernet pin 13 (bottom, 7 from left)
+//#define ENET_MDIO P1_17 // Ethernet pin 5 (bottom, 3 from left)
+//#define ENET_RX_ER P1_14
+//#define ENET_RXD1 P1_10 // Ethernet pin 10 (top row, 5 from left)
+//#define ENET_MOC P1_16 // Ethernet pin 6 (top row, 3 from left)
+//#define REF_CLK P1_15
+//#define ENET_RXD0 P1_09 // Ethernet pin 9 (bottom, 5 from left)
+//#define ENET_CRS P1_08 // Ethernet pin 8 (top row, 4 from left) - INPUT ONLY
+//#define ENET_TX_EN P1_04 // Ethernet pin 11 (bottom, 6 from left)
+//#define ENET_TXD0 P1_00 // Ethernet pin 12 (top row, 6 from left)
+//#define ENET_TXD1 P1_01 // Ethernet pin 13 (bottom, 7 from left)
/**
* EXP1 pins
diff --git a/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h b/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
index a5a91f6207..fd98b5ef13 100644
--- a/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
+++ b/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h
@@ -31,8 +31,14 @@
#define BOARD_INFO_NAME "MKS SGen"
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
-#define MKS_HAS_LPC1769
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
+#define MKS_HAS_LPC1769
#include "../lpc1768/pins_MKS_SBASE.h"
#undef E1_STEP_PIN
@@ -41,10 +47,10 @@
//#undef BTN_EN1
//#undef BTN_EN2
-//#define BTN_EN1 P1_23 // EXP2.5
-//#define BTN_EN2 P1_22 // EXP2.3
+//#define BTN_EN1 P1_23 // EXP2.5
+//#define BTN_EN2 P1_22 // EXP2.3
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -52,16 +58,16 @@
* In the worst case you may have to give up the LCD.
* RX pins must be interrupt-capable.
*/
- #define X_SERIAL_TX_PIN P4_29 // J8-2
- #define X_SERIAL_RX_PIN P4_29 // J8-2
+ #define X_SERIAL_TX_PIN P4_29 // J8-2
+ #define X_SERIAL_RX_PIN P4_29 // J8-2
- #define Y_SERIAL_TX_PIN P2_08 // J8-3
- #define Y_SERIAL_RX_PIN P2_08 // J8-3
+ #define Y_SERIAL_TX_PIN P2_08 // J8-3
+ #define Y_SERIAL_RX_PIN P2_08 // J8-3
- #define Z_SERIAL_TX_PIN P2_11 // J8-4
- #define Z_SERIAL_RX_PIN P2_11 // J8-4
- #define E0_SERIAL_TX_PIN P2_13 // J8-5
- #define E0_SERIAL_RX_PIN P2_13 // J8-5
+ #define Z_SERIAL_TX_PIN P2_11 // J8-4
+ #define Z_SERIAL_RX_PIN P2_11 // J8-4
+ #define E0_SERIAL_TX_PIN P2_13 // J8-5
+ #define E0_SERIAL_RX_PIN P2_13 // J8-5
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
diff --git a/Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h b/Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
index 5bf64e9d02..43db07ea5e 100644
--- a/Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
+++ b/Marlin/src/pins/lpc1769/pins_SMOOTHIEBOARD.h
@@ -32,82 +32,88 @@
#define BOARD_INFO_NAME "Smoothieboard"
#define BOARD_WEBSITE_URL "smoothieware.org/smoothieboard"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P1_23
+#define SERVO0_PIN P1_23
//
// Limit Switches
//
-#define X_MIN_PIN P1_24
-#define X_MAX_PIN P1_25
-#define Y_MIN_PIN P1_26
-#define Y_MAX_PIN P1_27
-#define Z_MIN_PIN P1_28
-#define Z_MAX_PIN P1_29
+#define X_MIN_PIN P1_24
+#define X_MAX_PIN P1_25
+#define Y_MIN_PIN P1_26
+#define Y_MAX_PIN P1_27
+#define Z_MIN_PIN P1_28
+#define Z_MAX_PIN P1_29
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P0_05
-#define X_ENABLE_PIN P0_04
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P0_05
+#define X_ENABLE_PIN P0_04
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P0_11
-#define Y_ENABLE_PIN P0_10
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P0_11
+#define Y_ENABLE_PIN P0_10
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P0_20
-#define Z_ENABLE_PIN P0_19
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P0_20
+#define Z_ENABLE_PIN P0_19
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P0_22
-#define E0_ENABLE_PIN P0_21
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P0_22
+#define E0_ENABLE_PIN P0_21
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
//
// Temperature Sensors
// 3.3V max when defined as an analog input
//
-#define TEMP_0_PIN P0_23_A0 // (T1)
-#define TEMP_BED_PIN P0_24_A1 // (T2)
-#define TEMP_1_PIN P0_25_A2 // (T3)
-#define TEMP_2_PIN P0_26_A3 // (T4)
+#define TEMP_0_PIN P0_23_A0 // (T1)
+#define TEMP_BED_PIN P0_24_A1 // (T2)
+#define TEMP_1_PIN P0_25_A2 // (T3)
+#define TEMP_2_PIN P0_26_A3 // (T4)
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07
-#define HEATER_1_PIN P1_23
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07
+#define HEATER_1_PIN P1_23
#ifndef FAN_PIN
- #define FAN_PIN P2_06
+ #define FAN_PIN P2_06
#endif
-#define FAN1_PIN P2_04
+#define FAN1_PIN P2_04
//
// LCD / Controller
//
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN P1_31
- #define DOGLCD_A0 P2_11
- #define DOGLCD_CS P0_16
+ #define BEEPER_PIN P1_31
+ #define DOGLCD_A0 P2_11
+ #define DOGLCD_CS P0_16
- #define BTN_EN1 P3_25
- #define BTN_EN2 P3_26
- #define BTN_ENC P1_30
+ #define BTN_EN1 P3_25
+ #define BTN_EN2 P3_26
+ #define BTN_ENC P1_30
- #define SD_DETECT_PIN P1_18
- #define SDSS P1_21
+ #define SD_DETECT_PIN P1_18
+ #define SDSS P1_21
- #define STAT_LED_RED_PIN P1_19
- #define STAT_LED_BLUE_PIN P1_20
+ #define STAT_LED_RED_PIN P1_19
+ #define STAT_LED_BLUE_PIN P1_20
#elif HAS_SPI_LCD
diff --git a/Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h b/Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
index 8f7d00bb3b..d4030ed790 100644
--- a/Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
+++ b/Marlin/src/pins/lpc1769/pins_TH3D_EZBOARD.h
@@ -32,61 +32,67 @@
#define BOARD_INFO_NAME "TH3D EZBoard"
#define BOARD_WEBSITE_URL "th3dstudio.com"
+//
+// EEPROM
+//
+#define FLASH_EEPROM_EMULATION
+//#define SDCARD_EEPROM_EMULATION
+
//
// Servos
//
-#define SERVO0_PIN P2_04
+#define SERVO0_PIN P2_04
//
// Limit Switches
//
-#define X_STOP_PIN P1_24
-#define Y_STOP_PIN P1_25
-#define Z_STOP_PIN P1_26
+#define X_STOP_PIN P1_24
+#define Y_STOP_PIN P1_25
+#define Z_STOP_PIN P1_26
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN P1_27
+ #define FIL_RUNOUT_PIN P1_27
#endif
//
// Steppers
//
-#define X_STEP_PIN P2_00
-#define X_DIR_PIN P1_16
-#define X_ENABLE_PIN P1_17
+#define X_STEP_PIN P2_00
+#define X_DIR_PIN P1_16
+#define X_ENABLE_PIN P1_17
-#define Y_STEP_PIN P2_01
-#define Y_DIR_PIN P1_10
-#define Y_ENABLE_PIN P1_09
+#define Y_STEP_PIN P2_01
+#define Y_DIR_PIN P1_10
+#define Y_ENABLE_PIN P1_09
-#define Z_STEP_PIN P2_02
-#define Z_DIR_PIN P1_15
-#define Z_ENABLE_PIN P1_14
+#define Z_STEP_PIN P2_02
+#define Z_DIR_PIN P1_15
+#define Z_ENABLE_PIN P1_14
-#define E0_STEP_PIN P2_03
-#define E0_DIR_PIN P1_04
-#define E0_ENABLE_PIN P1_08
+#define E0_STEP_PIN P2_03
+#define E0_DIR_PIN P1_04
+#define E0_ENABLE_PIN P1_08
-#define E1_STEP_PIN P2_08
-#define E1_DIR_PIN P2_13
-#define E1_ENABLE_PIN P4_29
+#define E1_STEP_PIN P2_08
+#define E1_DIR_PIN P2_13
+#define E1_ENABLE_PIN P4_29
#if HAS_TMC_UART
//
// TMC220x stepper drivers
// Software serial
//
- #define X_SERIAL_TX_PIN P0_04
- #define X_SERIAL_RX_PIN P0_05
- #define Y_SERIAL_TX_PIN P0_10
- #define Y_SERIAL_RX_PIN P0_11
- #define Z_SERIAL_TX_PIN P0_19
- #define Z_SERIAL_RX_PIN P0_20
- #define E0_SERIAL_TX_PIN P0_22
- #define E0_SERIAL_RX_PIN P0_21
+ #define X_SERIAL_TX_PIN P0_04
+ #define X_SERIAL_RX_PIN P0_05
+ #define Y_SERIAL_TX_PIN P0_10
+ #define Y_SERIAL_RX_PIN P0_11
+ #define Z_SERIAL_TX_PIN P0_19
+ #define Z_SERIAL_RX_PIN P0_20
+ #define E0_SERIAL_TX_PIN P0_22
+ #define E0_SERIAL_RX_PIN P0_21
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -96,50 +102,50 @@
// Temp Sensors
// 3.3V max when defined as an Analog Input!
//
-#if TEMP_SENSOR_0 == 20 // PT100 Adapter
- #define TEMP_0_PIN P0_02_A7 // Analog Input
+#if TEMP_SENSOR_0 == 20 // PT100 Adapter
+ #define TEMP_0_PIN P0_02_A7 // Analog Input
#else
- #define TEMP_0_PIN P0_23_A0 // Analog Input P0_23
+ #define TEMP_0_PIN P0_23_A0 // Analog Input P0_23
#endif
-#define TEMP_BED_PIN P0_24_A1 // Analog Input P0_24
-#define TEMP_1_PIN P0_25_A2 // Analog Input P0_25
+#define TEMP_BED_PIN P0_24_A1 // Analog Input P0_24
+#define TEMP_1_PIN P0_25_A2 // Analog Input P0_25
#if ENABLED(FILAMENT_WIDTH_SENSOR)
- #define FILWIDTH_PIN P0_26_A3 // Analog Input P0_26
+ #define FILWIDTH_PIN P0_26_A3 // Analog Input P0_26
#else
- #define TEMP_2_PIN P0_26_A3 // Analog Input P0_26
+ #define TEMP_2_PIN P0_26_A3 // Analog Input P0_26
#endif
//
// Heaters / Fans
//
-#define HEATER_BED_PIN P2_05
-#define HEATER_0_PIN P2_07
+#define HEATER_BED_PIN P2_05
+#define HEATER_0_PIN P2_07
#ifndef FAN_PIN
- #define FAN_PIN P2_06
+ #define FAN_PIN P2_06
#endif
-#define FAN1_PIN P1_22
+#define FAN1_PIN P1_22
//
// Auto fans
//
-#define AUTO_FAN_PIN P1_22 // FET 3
-#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
-#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
+#define AUTO_FAN_PIN P1_22 // FET 3
+#define ORIG_E0_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E1_AUTO_FAN_PIN AUTO_FAN_PIN
+#define ORIG_E2_AUTO_FAN_PIN AUTO_FAN_PIN
//
// SD Card
//
-#define SDCARD_CONNECTION ONBOARD
+#define SDCARD_CONNECTION ONBOARD
-#define SCK_PIN P0_07
-#define MISO_PIN P0_08
-#define MOSI_PIN P0_09
-#define ONBOARD_SD_CS_PIN P0_06
-#define SS_PIN ONBOARD_SD_CS_PIN
+#define SCK_PIN P0_07
+#define MISO_PIN P0_08
+#define MOSI_PIN P0_09
+#define ONBOARD_SD_CS_PIN P0_06
+#define SS_PIN ONBOARD_SD_CS_PIN
//
// LCD / Controller
@@ -164,14 +170,14 @@
*/
#if ENABLED(CR10_STOCKDISPLAY)
- #define BEEPER_PIN P1_31
- #define BTN_EN1 P3_26
- #define BTN_EN2 P3_25
- #define BTN_ENC P1_30
- #define LCD_PINS_RS P0_16
- #define LCD_PINS_ENABLE P0_18
- #define LCD_PINS_D4 P0_15
- #define KILL_PIN P2_11
+ #define BEEPER_PIN P1_31
+ #define BTN_EN1 P3_26
+ #define BTN_EN2 P3_25
+ #define BTN_ENC P1_30
+ #define LCD_PINS_RS P0_16
+ #define LCD_PINS_ENABLE P0_18
+ #define LCD_PINS_D4 P0_15
+ #define KILL_PIN P2_11
#elif HAS_SPI_LCD
#error "Only the CR10_STOCKDISPLAY is supported with TH3D EZBoard."
#endif
diff --git a/Marlin/src/pins/mega/pins_CHEAPTRONIC.h b/Marlin/src/pins/mega/pins_CHEAPTRONIC.h
index de064559af..7b0c0010a3 100644
--- a/Marlin/src/pins/mega/pins_CHEAPTRONIC.h
+++ b/Marlin/src/pins/mega/pins_CHEAPTRONIC.h
@@ -33,46 +33,46 @@
//
// Limit Switches
//
-#define X_STOP_PIN 3
-#define Y_STOP_PIN 2
-#define Z_STOP_PIN 5
+#define X_STOP_PIN 3
+#define Y_STOP_PIN 2
+#define Z_STOP_PIN 5
//
// Steppers
//
-#define X_STEP_PIN 14
-#define X_DIR_PIN 15
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 14
+#define X_DIR_PIN 15
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 35
-#define Y_DIR_PIN 36
-#define Y_ENABLE_PIN 31
+#define Y_STEP_PIN 35
+#define Y_DIR_PIN 36
+#define Y_ENABLE_PIN 31
-#define Z_STEP_PIN 40
-#define Z_DIR_PIN 41
-#define Z_ENABLE_PIN 37
+#define Z_STEP_PIN 40
+#define Z_DIR_PIN 41
+#define Z_ENABLE_PIN 37
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 25
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 25
-#define E1_STEP_PIN 33
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 33
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
//
// Temperature sensors
//
-#define TEMP_0_PIN 15 // Analog Input
-#define TEMP_1_PIN 14 // Analog Input
-#define TEMP_BED_PIN 13 // Analog Input
+#define TEMP_0_PIN 15 // Analog Input
+#define TEMP_1_PIN 14 // Analog Input
+#define TEMP_BED_PIN 13 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 19 // EXTRUDER 1
-#define HEATER_1_PIN 23 // EXTRUDER 2
-#define HEATER_BED_PIN 22
+#define HEATER_0_PIN 19 // EXTRUDER 1
+#define HEATER_1_PIN 23 // EXTRUDER 2
+#define HEATER_BED_PIN 22
//
// LCD / Controller
diff --git a/Marlin/src/pins/mega/pins_CHEAPTRONICv2.h b/Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
index 5fd5bfdef1..d56d08c9e0 100644
--- a/Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
+++ b/Marlin/src/pins/mega/pins_CHEAPTRONICv2.h
@@ -36,101 +36,101 @@
//
// Limit Switches
//
-#define X_MIN_PIN 30
-#define X_MAX_PIN 31
-#define Y_MIN_PIN 32
-#define Y_MAX_PIN 33
-#define Z_MIN_PIN 34
-#define Z_MAX_PIN 35
+#define X_MIN_PIN 30
+#define X_MAX_PIN 31
+#define Y_MIN_PIN 32
+#define Y_MAX_PIN 33
+#define Z_MIN_PIN 34
+#define Z_MAX_PIN 35
//
// Steppers
//
-#define X_STEP_PIN 17
-#define X_DIR_PIN 16
-#define X_ENABLE_PIN 48
+#define X_STEP_PIN 17
+#define X_DIR_PIN 16
+#define X_ENABLE_PIN 48
-#define Y_STEP_PIN 54
-#define Y_DIR_PIN 47
-#define Y_ENABLE_PIN 55
+#define Y_STEP_PIN 54
+#define Y_DIR_PIN 47
+#define Y_ENABLE_PIN 55
-#define Z_STEP_PIN 57
-#define Z_DIR_PIN 56
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 57
+#define Z_DIR_PIN 56
+#define Z_ENABLE_PIN 62
-#define E0_STEP_PIN 23
-#define E0_DIR_PIN 22
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 23
+#define E0_DIR_PIN 22
+#define E0_ENABLE_PIN 24
-#define E1_STEP_PIN 26
-#define E1_DIR_PIN 25
-#define E1_ENABLE_PIN 27
+#define E1_STEP_PIN 26
+#define E1_DIR_PIN 25
+#define E1_ENABLE_PIN 27
-#define E2_STEP_PIN 29
-#define E2_DIR_PIN 28
-#define E2_ENABLE_PIN 39
+#define E2_STEP_PIN 29
+#define E2_DIR_PIN 28
+#define E2_ENABLE_PIN 39
//
// Temperature sensors
//
-#define TEMP_0_PIN 15
-#define TEMP_1_PIN 13
-#define TEMP_2_PIN 14
-#define TEMP_3_PIN 11 // should be used for chamber temperature control
-#define TEMP_BED_PIN 12
+#define TEMP_0_PIN 15
+#define TEMP_1_PIN 13
+#define TEMP_2_PIN 14
+#define TEMP_3_PIN 11 // should be used for chamber temperature control
+#define TEMP_BED_PIN 12
//
// Heaters / Fans
//
-#define HEATER_0_PIN 6
-#define HEATER_1_PIN 7
-#define HEATER_2_PIN 8
-#define HEATER_BED_PIN 9
+#define HEATER_0_PIN 6
+#define HEATER_1_PIN 7
+#define HEATER_2_PIN 8
+#define HEATER_BED_PIN 9
#ifndef FAN_PIN
- #define FAN_PIN 3
+ #define FAN_PIN 3
#endif
-#define FAN2_PIN 58 // additional fan or light control output
+#define FAN2_PIN 58 // additional fan or light control output
//
// Other board specific pins
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 37 // board input labeled as F-DET
+ #define FIL_RUNOUT_PIN 37 // board input labeled as F-DET
#endif
-#define Z_MIN_PROBE_PIN 36 // additional external board input labeled as E-SENS (should be used for Z-probe)
-#define LED_PIN 13
-#define SPINDLE_ENABLE_PIN 4 // additional PWM pin 1 at JP1 connector - should be used for laser control too
-#define EXT_2 5 // additional PWM pin 2 at JP1 connector
-#define EXT_3 2 // additional PWM pin 3 at JP1 connector
-#define PS_ON_PIN 45
-#define KILL_PIN 46
+#define Z_MIN_PROBE_PIN 36 // additional external board input labeled as E-SENS (should be used for Z-probe)
+#define LED_PIN 13
+#define SPINDLE_ENABLE_PIN 4 // additional PWM pin 1 at JP1 connector - should be used for laser control too
+#define EXT_2 5 // additional PWM pin 2 at JP1 connector
+#define EXT_3 2 // additional PWM pin 3 at JP1 connector
+#define PS_ON_PIN 45
+#define KILL_PIN 46
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 11 // shared with TEMP_3 analog input
+ #define FILWIDTH_PIN 11 // shared with TEMP_3 analog input
#endif
//
// LCD / Controller
//
-#define LCD_PINS_RS 19
-#define LCD_PINS_ENABLE 42
-#define LCD_PINS_D4 18
-#define LCD_PINS_D5 38
-#define LCD_PINS_D6 41
-#define LCD_PINS_D7 40
+#define LCD_PINS_RS 19
+#define LCD_PINS_ENABLE 42
+#define LCD_PINS_D4 18
+#define LCD_PINS_D5 38
+#define LCD_PINS_D6 41
+#define LCD_PINS_D7 40
//
// Beeper, SD Card, Encoder
//
-#define BEEPER_PIN 44
+#define BEEPER_PIN 44
#if ENABLED(SDSUPPORT)
- #define SDSS 53
- #define SD_DETECT_PIN 49
+ #define SDSS 53
+ #define SD_DETECT_PIN 49
#endif
#if ENABLED(NEWPANEL)
- #define BTN_EN1 11
- #define BTN_EN2 12
- #define BTN_ENC 43
+ #define BTN_EN1 11
+ #define BTN_EN2 12
+ #define BTN_ENC 43
#endif
diff --git a/Marlin/src/pins/mega/pins_CNCONTROLS_11.h b/Marlin/src/pins/mega/pins_CNCONTROLS_11.h
index 047dc8ef5a..833499fe0f 100644
--- a/Marlin/src/pins/mega/pins_CNCONTROLS_11.h
+++ b/Marlin/src/pins/mega/pins_CNCONTROLS_11.h
@@ -34,115 +34,115 @@
//
// Limit Switches
//
-#define X_STOP_PIN 43
-#define Y_STOP_PIN 45
-#define Z_STOP_PIN 42
+#define X_STOP_PIN 43
+#define Y_STOP_PIN 45
+#define Z_STOP_PIN 42
//
// Steppers
//
-#define X_STEP_PIN 34
-#define X_DIR_PIN 36
-#define X_ENABLE_PIN 35
+#define X_STEP_PIN 34
+#define X_DIR_PIN 36
+#define X_ENABLE_PIN 35
-#define Y_STEP_PIN 37
-#define Y_DIR_PIN 39
-#define Y_ENABLE_PIN 38
+#define Y_STEP_PIN 37
+#define Y_DIR_PIN 39
+#define Y_ENABLE_PIN 38
-#define Z_STEP_PIN 40
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 41
+#define Z_STEP_PIN 40
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 41
-#define E0_STEP_PIN 29
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 3
+#define E0_STEP_PIN 29
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 3
-#define E1_STEP_PIN 61
-#define E1_DIR_PIN 62
-#define E1_ENABLE_PIN 60
+#define E1_STEP_PIN 61
+#define E1_DIR_PIN 62
+#define E1_ENABLE_PIN 60
-#define E2_STEP_PIN 15
-#define E2_DIR_PIN 14
-#define E2_ENABLE_PIN 16
+#define E2_STEP_PIN 15
+#define E2_DIR_PIN 14
+#define E2_ENABLE_PIN 16
-#define E3_STEP_PIN 44
-#define E3_DIR_PIN 49
-#define E3_ENABLE_PIN 47
+#define E3_STEP_PIN 44
+#define E3_DIR_PIN 49
+#define E3_ENABLE_PIN 47
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 3 // Analog Input. 3 for tool2 -> 2 for chambertemp
-#define TEMP_2_PIN 2 // Analog Input. 9 for tool3 -> 2 for chambertemp
-#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 2 for chambertemp
-#define TEMP_BED_PIN 1 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 3 // Analog Input. 3 for tool2 -> 2 for chambertemp
+#define TEMP_2_PIN 2 // Analog Input. 9 for tool3 -> 2 for chambertemp
+#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 2 for chambertemp
+#define TEMP_BED_PIN 1 // Analog Input
#ifndef TEMP_CHAMBER_PIN
- //#define TEMP_CHAMBER_PIN 2 // Analog Input
+ //#define TEMP_CHAMBER_PIN 2 // Analog Input
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 5
-#define HEATER_1_PIN 58
-#define HEATER_2_PIN 64
-#define HEATER_3_PIN 46
-#define HEATER_BED_PIN 2
+#define HEATER_0_PIN 5
+#define HEATER_1_PIN 58
+#define HEATER_2_PIN 64
+#define HEATER_3_PIN 46
+#define HEATER_BED_PIN 2
#ifndef FAN_PIN
- //#define FAN_PIN 7 // common PWM pin for all tools
+ //#define FAN_PIN 7 // common PWM pin for all tools
#endif
-#define ORIG_E0_AUTO_FAN_PIN 7
-#define ORIG_E1_AUTO_FAN_PIN 7
-#define ORIG_E2_AUTO_FAN_PIN 7
-#define ORIG_E3_AUTO_FAN_PIN 7
+#define ORIG_E0_AUTO_FAN_PIN 7
+#define ORIG_E1_AUTO_FAN_PIN 7
+#define ORIG_E2_AUTO_FAN_PIN 7
+#define ORIG_E3_AUTO_FAN_PIN 7
//
// Misc. Functions
//
-#define SDSS 53
-#define SD_DETECT_PIN 13
+#define SDSS 53
+#define SD_DETECT_PIN 13
// Tools
-//#define TOOL_0_PIN 4
-//#define TOOL_1_PIN 59
-//#define TOOL_2_PIN 8
-//#define TOOL_3_PIN 30
-//#define TOOL_PWM_PIN 7 // common PWM pin for all tools
+//#define TOOL_0_PIN 4
+//#define TOOL_1_PIN 59
+//#define TOOL_2_PIN 8
+//#define TOOL_3_PIN 30
+//#define TOOL_PWM_PIN 7 // common PWM pin for all tools
// Common I/O
-//#define FIL_RUNOUT_PIN -1
-//#define PWM_1_PIN 11
-//#define PWM_2_PIN 10
-//#define SPARE_IO 12
+//#define FIL_RUNOUT_PIN -1
+//#define PWM_1_PIN 11
+//#define PWM_2_PIN 10
+//#define SPARE_IO 12
//
// LCD / Controller
//
-#define BEEPER_PIN 6
+#define BEEPER_PIN 6
// Pins for DOGM SPI LCD Support
-#define DOGLCD_A0 26
-#define DOGLCD_CS 24
-#define DOGLCD_MOSI -1
-#define DOGLCD_SCK -1
+#define DOGLCD_A0 26
+#define DOGLCD_CS 24
+#define DOGLCD_MOSI -1
+#define DOGLCD_SCK -1
-#define BTN_EN1 23
-#define BTN_EN2 25
-#define BTN_ENC 27
+#define BTN_EN1 23
+#define BTN_EN2 25
+#define BTN_ENC 27
// Hardware buttons for manual movement of XYZ
-#define SHIFT_OUT 19
-#define SHIFT_LD 18
-#define SHIFT_CLK 17
+#define SHIFT_OUT 19
+#define SHIFT_LD 18
+#define SHIFT_CLK 17
-//#define UI1 31
-//#define UI2 22
+//#define UI1 31
+//#define UI2 22
-#define STAT_LED_BLUE_PIN -1
-#define STAT_LED_RED_PIN 31
+#define STAT_LED_BLUE_PIN -1
+#define STAT_LED_RED_PIN 31
diff --git a/Marlin/src/pins/mega/pins_CNCONTROLS_12.h b/Marlin/src/pins/mega/pins_CNCONTROLS_12.h
index 246a5964f0..680a5c9a99 100644
--- a/Marlin/src/pins/mega/pins_CNCONTROLS_12.h
+++ b/Marlin/src/pins/mega/pins_CNCONTROLS_12.h
@@ -34,122 +34,122 @@
//
// Limit Switches
//
-#define X_STOP_PIN 19
-#define Y_STOP_PIN 22
-#define Z_STOP_PIN 23
+#define X_STOP_PIN 19
+#define Y_STOP_PIN 22
+#define Z_STOP_PIN 23
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 27
-#define X_ENABLE_PIN 26
+#define X_STEP_PIN 25
+#define X_DIR_PIN 27
+#define X_ENABLE_PIN 26
-#define Y_STEP_PIN 28
-#define Y_DIR_PIN 30
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 28
+#define Y_DIR_PIN 30
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 31
-#define Z_DIR_PIN 33
-#define Z_ENABLE_PIN 32
+#define Z_STEP_PIN 31
+#define Z_DIR_PIN 33
+#define Z_ENABLE_PIN 32
-#define E0_STEP_PIN 57
-#define E0_DIR_PIN 55
-#define E0_ENABLE_PIN 58
+#define E0_STEP_PIN 57
+#define E0_DIR_PIN 55
+#define E0_ENABLE_PIN 58
-#define E1_STEP_PIN 61
-#define E1_DIR_PIN 62
-#define E1_ENABLE_PIN 60
+#define E1_STEP_PIN 61
+#define E1_DIR_PIN 62
+#define E1_ENABLE_PIN 60
-#define E2_STEP_PIN 46
-#define E2_DIR_PIN 66
-#define E2_ENABLE_PIN 44
+#define E2_STEP_PIN 46
+#define E2_DIR_PIN 66
+#define E2_ENABLE_PIN 44
-#define E3_STEP_PIN 45
-#define E3_DIR_PIN 69
-#define E3_ENABLE_PIN 47
+#define E3_STEP_PIN 45
+#define E3_DIR_PIN 69
+#define E3_ENABLE_PIN 47
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input. 9 for tool2 -> 13 for chambertemp
-#define TEMP_2_PIN 13 // Analog Input. 10 for tool3 -> 13 for chambertemp
-#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 13 for chambertemp
-#define TEMP_BED_PIN 14 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input. 9 for tool2 -> 13 for chambertemp
+#define TEMP_2_PIN 13 // Analog Input. 10 for tool3 -> 13 for chambertemp
+#define TEMP_3_PIN 11 // Analog Input. 11 for tool4 -> 13 for chambertemp
+#define TEMP_BED_PIN 14 // Analog Input
#ifndef TEMP_CHAMBER_PIN
- //#define TEMP_CHAMBER_PIN 13 // Analog Input
+ //#define TEMP_CHAMBER_PIN 13 // Analog Input
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 11
-#define HEATER_1_PIN 9
-#define HEATER_2_PIN 6
-#define HEATER_3_PIN 3
-#define HEATER_BED_PIN 24
+#define HEATER_0_PIN 11
+#define HEATER_1_PIN 9
+#define HEATER_2_PIN 6
+#define HEATER_3_PIN 3
+#define HEATER_BED_PIN 24
#ifndef FAN_PIN
- #define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
+ #define FAN_PIN 5 // 5 is PWMtool3 -> 7 is common PWM pin for all tools
#endif
-#define ORIG_E0_AUTO_FAN_PIN 7
-#define ORIG_E1_AUTO_FAN_PIN 7
-#define ORIG_E2_AUTO_FAN_PIN 7
-#define ORIG_E3_AUTO_FAN_PIN 7
+#define ORIG_E0_AUTO_FAN_PIN 7
+#define ORIG_E1_AUTO_FAN_PIN 7
+#define ORIG_E2_AUTO_FAN_PIN 7
+#define ORIG_E3_AUTO_FAN_PIN 7
//
// Misc. Functions
//
-#define SDSS 53
-#define SD_DETECT_PIN 15
+#define SDSS 53
+#define SD_DETECT_PIN 15
// Tools
-//#define TOOL_0_PIN 56
-//#define TOOL_0_PWM_PIN 10 // red warning led at dual extruder
-//#define TOOL_1_PIN 59
-//#define TOOL_1_PWM_PIN 8 // lights at dual extruder
-//#define TOOL_2_PIN 4
-//#define TOOL_2_PWM_PIN 5
-//#define TOOL_3_PIN 14
-//#define TOOL_3_PWM_PIN 2
+//#define TOOL_0_PIN 56
+//#define TOOL_0_PWM_PIN 10 // red warning led at dual extruder
+//#define TOOL_1_PIN 59
+//#define TOOL_1_PWM_PIN 8 // lights at dual extruder
+//#define TOOL_2_PIN 4
+//#define TOOL_2_PWM_PIN 5
+//#define TOOL_3_PIN 14
+//#define TOOL_3_PWM_PIN 2
// Common I/O
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 18
+ #define FIL_RUNOUT_PIN 18
#endif
-//#define PWM_1_PIN 12
-//#define PWM_2_PIN 13
-//#define SPARE_IO 17
+//#define PWM_1_PIN 12
+//#define PWM_2_PIN 13
+//#define SPARE_IO 17
//
// LCD / Controller
//
-#define BEEPER_PIN 16
+#define BEEPER_PIN 16
// Pins for DOGM SPI LCD Support
-#define DOGLCD_A0 39
-#define DOGLCD_CS 35
-#define DOGLCD_MOSI 48
-#define DOGLCD_SCK 49
+#define DOGLCD_A0 39
+#define DOGLCD_CS 35
+#define DOGLCD_MOSI 48
+#define DOGLCD_SCK 49
#define LCD_SCREEN_ROT_180
// The encoder and click button
-#define BTN_EN1 36
-#define BTN_EN2 34
-#define BTN_ENC 38
+#define BTN_EN1 36
+#define BTN_EN2 34
+#define BTN_ENC 38
// Hardware buttons for manual movement of XYZ
-#define SHIFT_OUT 42
-#define SHIFT_LD 41
-#define SHIFT_CLK 40
+#define SHIFT_OUT 42
+#define SHIFT_LD 41
+#define SHIFT_CLK 40
-//#define UI1 43
-//#define UI2 37
+//#define UI1 43
+//#define UI2 37
-#define STAT_LED_BLUE_PIN -1
-#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
+#define STAT_LED_BLUE_PIN -1
+#define STAT_LED_RED_PIN 10 // TOOL_0_PWM_PIN
diff --git a/Marlin/src/pins/mega/pins_CNCONTROLS_15.h b/Marlin/src/pins/mega/pins_CNCONTROLS_15.h
index bf7d65f7e7..b4aa8ab815 100644
--- a/Marlin/src/pins/mega/pins_CNCONTROLS_15.h
+++ b/Marlin/src/pins/mega/pins_CNCONTROLS_15.h
@@ -34,79 +34,79 @@
//
// Servos
//
-#define SERVO0_PIN 6
+#define SERVO0_PIN 6
//
// Limit Switches
//
-#define X_STOP_PIN 34
-#define Y_STOP_PIN 39
-#define Z_STOP_PIN 62
+#define X_STOP_PIN 34
+#define Y_STOP_PIN 39
+#define Z_STOP_PIN 62
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 49
+ #define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
-#define X_STEP_PIN 14
-#define X_DIR_PIN 25
-#define X_ENABLE_PIN 26
+#define X_STEP_PIN 14
+#define X_DIR_PIN 25
+#define X_ENABLE_PIN 26
-#define Y_STEP_PIN 11
-#define Y_DIR_PIN 12
-#define Y_ENABLE_PIN 15
+#define Y_STEP_PIN 11
+#define Y_DIR_PIN 12
+#define Y_ENABLE_PIN 15
-#define Z_STEP_PIN 24
-#define Z_DIR_PIN 27
-#define Z_ENABLE_PIN 28
+#define Z_STEP_PIN 24
+#define Z_DIR_PIN 27
+#define Z_ENABLE_PIN 28
-#define E0_STEP_PIN 64
-#define E0_DIR_PIN 65
-#define E0_ENABLE_PIN 63
+#define E0_STEP_PIN 64
+#define E0_DIR_PIN 65
+#define E0_ENABLE_PIN 63
//
// Temperature Sensors
// Analog Inputs
//
-#define TEMP_0_PIN 2 // Analog Input
-#define TEMP_BED_PIN 4 // Analog Input
+#define TEMP_0_PIN 2 // Analog Input
+#define TEMP_BED_PIN 4 // Analog Input
#ifndef TEMP_CHAMBER_PIN
- #define TEMP_CHAMBER_PIN 5 // Analog Input
+ #define TEMP_CHAMBER_PIN 5 // Analog Input
#endif
//
// Heaters
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 32
-#define HEATER_CHAMBER_PIN 33
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 32
+#define HEATER_CHAMBER_PIN 33
//
// Fans
//
-#define FAN_PIN 8
-#define ORIG_E0_AUTO_FAN_PIN 30
-#define ORIG_E1_AUTO_FAN_PIN 30
-#define ORIG_E2_AUTO_FAN_PIN 30
-#define ORIG_E3_AUTO_FAN_PIN 30
-//#define ORIG_CHAMBER_AUTO_FAN_PIN 10
+#define FAN_PIN 8
+#define ORIG_E0_AUTO_FAN_PIN 30
+#define ORIG_E1_AUTO_FAN_PIN 30
+#define ORIG_E2_AUTO_FAN_PIN 30
+#define ORIG_E3_AUTO_FAN_PIN 30
+//#define ORIG_CHAMBER_AUTO_FAN_PIN 10
//
// Misc. Functions
//
-#define SDSS 53
-#define SD_DETECT_PIN 40
+#define SDSS 53
+#define SD_DETECT_PIN 40
// Common I/O
-#define FIL_RUNOUT_PIN 9
-//#define FIL_RUNOUT_PIN 29 // encoder sensor
-//#define PWM_1_PIN 12
-//#define PWM_2_PIN 13
-//#define SPARE_IO 17
-#define BEEPER_PIN 13
-#define STAT_LED_BLUE_PIN -1
-#define STAT_LED_RED_PIN 10 // 31
+#define FIL_RUNOUT_PIN 9
+//#define FIL_RUNOUT_PIN 29 // encoder sensor
+//#define PWM_1_PIN 12
+//#define PWM_2_PIN 13
+//#define SPARE_IO 17
+#define BEEPER_PIN 13
+#define STAT_LED_BLUE_PIN -1
+#define STAT_LED_RED_PIN 10 // 31
diff --git a/Marlin/src/pins/mega/pins_EINSTART-S.h b/Marlin/src/pins/mega/pins_EINSTART-S.h
index 45b500363e..8bb8f081f5 100755
--- a/Marlin/src/pins/mega/pins_EINSTART-S.h
+++ b/Marlin/src/pins/mega/pins_EINSTART-S.h
@@ -35,48 +35,48 @@
//
// Limit Switches
//
-#define X_STOP_PIN 44
-#define Y_STOP_PIN 43
-#define Z_STOP_PIN 42
+#define X_STOP_PIN 44
+#define Y_STOP_PIN 43
+#define Z_STOP_PIN 42
//
// Steppers
//
-#define X_STEP_PIN 76
-#define X_DIR_PIN 75
-#define X_ENABLE_PIN 73
+#define X_STEP_PIN 76
+#define X_DIR_PIN 75
+#define X_ENABLE_PIN 73
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 32
-#define Y_ENABLE_PIN 72
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 32
+#define Y_ENABLE_PIN 72
-#define Z_STEP_PIN 34
-#define Z_DIR_PIN 35
-#define Z_ENABLE_PIN 33
+#define Z_STEP_PIN 34
+#define Z_DIR_PIN 35
+#define Z_ENABLE_PIN 33
-#define E0_STEP_PIN 36
-#define E0_DIR_PIN 37
-#define E0_ENABLE_PIN 30
+#define E0_STEP_PIN 36
+#define E0_DIR_PIN 37
+#define E0_ENABLE_PIN 30
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_BED_PIN 1 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_BED_PIN 1 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 83
-#define HEATER_BED_PIN 38
+#define HEATER_0_PIN 83
+#define HEATER_BED_PIN 38
-#define FAN_PIN 82
+#define FAN_PIN 82
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 4
+#define SDSS 53
+#define LED_PIN 4
//////////////////////////
// LCDs and Controllers //
@@ -90,24 +90,24 @@
// u8glib constructor
// U8GLIB_SH1106_128X64 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, LCD_PINS_DC, LCD_PINS_RS);
-#define LCD_PINS_DC 78
-#define LCD_PINS_RS 79
+#define LCD_PINS_DC 78
+#define LCD_PINS_RS 79
// DOGM SPI LCD Support
-#define DOGLCD_CS 3
-#define DOGLCD_MOSI 2
-#define DOGLCD_SCK 5
-#define DOGLCD_A0 2
+#define DOGLCD_CS 3
+#define DOGLCD_MOSI 2
+#define DOGLCD_SCK 5
+#define DOGLCD_A0 2
//
// LCD Display input pins
//
-#define BTN_UP 25
-#define BTN_DWN 26
-#define BTN_LFT 27
-#define BTN_RT 28
+#define BTN_UP 25
+#define BTN_DWN 26
+#define BTN_LFT 27
+#define BTN_RT 28
// 'OK' button
-#define BTN_ENC 29
+#define BTN_ENC 29
// Set Kill to right arrow, same as RIGID_PANEL
-#define KILL_PIN 28
+#define KILL_PIN 28
diff --git a/Marlin/src/pins/mega/pins_ELEFU_3.h b/Marlin/src/pins/mega/pins_ELEFU_3.h
index 30b4ab40af..3d35a72b19 100644
--- a/Marlin/src/pins/mega/pins_ELEFU_3.h
+++ b/Marlin/src/pins/mega/pins_ELEFU_3.h
@@ -34,115 +34,115 @@
//
// Limit Switches
//
-#define X_MIN_PIN 35
-#define X_MAX_PIN 34
-#define Y_MIN_PIN 33
-#define Y_MAX_PIN 32
-#define Z_MIN_PIN 31
-#define Z_MAX_PIN 30
+#define X_MIN_PIN 35
+#define X_MAX_PIN 34
+#define Y_MIN_PIN 33
+#define Y_MAX_PIN 32
+#define Z_MIN_PIN 31
+#define Z_MAX_PIN 30
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 30
+ #define Z_MIN_PROBE_PIN 30
#endif
//
// Steppers
//
-#define X_STEP_PIN 49
-#define X_DIR_PIN 13
-#define X_ENABLE_PIN 48
+#define X_STEP_PIN 49
+#define X_DIR_PIN 13
+#define X_ENABLE_PIN 48
-#define Y_STEP_PIN 11
-#define Y_DIR_PIN 9
-#define Y_ENABLE_PIN 12
+#define Y_STEP_PIN 11
+#define Y_DIR_PIN 9
+#define Y_ENABLE_PIN 12
-#define Z_STEP_PIN 7
-#define Z_DIR_PIN 6
-#define Z_ENABLE_PIN 8
+#define Z_STEP_PIN 7
+#define Z_DIR_PIN 6
+#define Z_ENABLE_PIN 8
-#define E0_STEP_PIN 40
-#define E0_DIR_PIN 41
-#define E0_ENABLE_PIN 37
+#define E0_STEP_PIN 40
+#define E0_DIR_PIN 41
+#define E0_ENABLE_PIN 37
-#define E1_STEP_PIN 18
-#define E1_DIR_PIN 19
-#define E1_ENABLE_PIN 38
+#define E1_STEP_PIN 18
+#define E1_DIR_PIN 19
+#define E1_ENABLE_PIN 38
-#define E2_STEP_PIN 43
-#define E2_DIR_PIN 47
-#define E2_ENABLE_PIN 42
+#define E2_STEP_PIN 43
+#define E2_DIR_PIN 47
+#define E2_ENABLE_PIN 42
//
// Temperature Sensors
//
-#define TEMP_0_PIN 3 // Analog Input
-#define TEMP_1_PIN 2 // Analog Input
-#define TEMP_2_PIN 1 // Analog Input
-#define TEMP_BED_PIN 0 // Analog Input
+#define TEMP_0_PIN 3 // Analog Input
+#define TEMP_1_PIN 2 // Analog Input
+#define TEMP_2_PIN 1 // Analog Input
+#define TEMP_BED_PIN 0 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 45 // 12V PWM1
-#define HEATER_1_PIN 46 // 12V PWM2
-#define HEATER_2_PIN 17 // 12V PWM3
-#define HEATER_BED_PIN 44 // DOUBLE 12V PWM
+#define HEATER_0_PIN 45 // 12V PWM1
+#define HEATER_1_PIN 46 // 12V PWM2
+#define HEATER_2_PIN 17 // 12V PWM3
+#define HEATER_BED_PIN 44 // DOUBLE 12V PWM
#ifndef FAN_PIN
- #define FAN_PIN 16 // 5V PWM
+ #define FAN_PIN 16 // 5V PWM
#endif
//
// Misc. Functions
//
-#define PS_ON_PIN 10 // Set to -1 if using a manual switch on the PWRSW Connector
-#define SLEEP_WAKE_PIN 26 // This feature still needs work
-#define PHOTOGRAPH_PIN 29
+#define PS_ON_PIN 10 // Set to -1 if using a manual switch on the PWRSW Connector
+#define SLEEP_WAKE_PIN 26 // This feature still needs work
+#define PHOTOGRAPH_PIN 29
//
// LCD / Controller
//
-#define BEEPER_PIN 36
+#define BEEPER_PIN 36
#if ENABLED(RA_CONTROL_PANEL)
- #define SDSS 53
- #define SD_DETECT_PIN 28
+ #define SDSS 53
+ #define SD_DETECT_PIN 28
- #define BTN_EN1 14
- #define BTN_EN2 39
- #define BTN_ENC 15
+ #define BTN_EN1 14
+ #define BTN_EN2 39
+ #define BTN_ENC 15
#endif // RA_CONTROL_PANEL
#if ENABLED(RA_DISCO)
// variables for which pins the TLC5947 is using
- #define TLC_CLOCK_PIN 25
- #define TLC_BLANK_PIN 23
- #define TLC_XLAT_PIN 22
- #define TLC_DATA_PIN 24
+ #define TLC_CLOCK_PIN 25
+ #define TLC_BLANK_PIN 23
+ #define TLC_XLAT_PIN 22
+ #define TLC_DATA_PIN 24
// We also need to define pin to port number mapping for the 2560 to match the pins listed above.
// If you change the TLC pins, update this as well per the 2560 datasheet! This currently only works with the RA Board.
- #define TLC_CLOCK_BIT 3
+ #define TLC_CLOCK_BIT 3
#define TLC_CLOCK_PORT &PORTA
- #define TLC_BLANK_BIT 1
+ #define TLC_BLANK_BIT 1
#define TLC_BLANK_PORT &PORTA
- #define TLC_DATA_BIT 2
+ #define TLC_DATA_BIT 2
#define TLC_DATA_PORT &PORTA
- #define TLC_XLAT_BIT 0
+ #define TLC_XLAT_BIT 0
#define TLC_XLAT_PORT &PORTA
// Change this to match your situation. Lots of TLCs takes up the arduino SRAM very quickly, so be careful
// Leave it at at least 1 if you have enabled RA_LIGHTING
// The number of TLC5947 boards chained together for use with the animation, additional ones will repeat the animation on them, but are not individually addressable and mimic those before them. You can leave the default at 2 even if you only have 1 TLC5947 module.
- #define NUM_TLCS 2
+ #define NUM_TLCS 2
// These TRANS_ARRAY values let you change the order the LEDs on the lighting modules will animate for chase functions.
// Modify them according to your specific situation.
diff --git a/Marlin/src/pins/mega/pins_GT2560_REV_A.h b/Marlin/src/pins/mega/pins_GT2560_REV_A.h
index 6590f06d6c..e111f2ce44 100644
--- a/Marlin/src/pins/mega/pins_GT2560_REV_A.h
+++ b/Marlin/src/pins/mega/pins_GT2560_REV_A.h
@@ -39,102 +39,102 @@
//
// Limit Switches
//
-#define X_MIN_PIN 22
-#define X_MAX_PIN 24
-#define Y_MIN_PIN 26
-#define Y_MAX_PIN 28
-#define Z_MIN_PIN 30
-#define Z_MAX_PIN 32
+#define X_MIN_PIN 22
+#define X_MAX_PIN 24
+#define Y_MIN_PIN 26
+#define Y_MAX_PIN 28
+#define Z_MIN_PIN 30
+#define Z_MAX_PIN 32
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 37
-#define Z_DIR_PIN 39
-#define Z_ENABLE_PIN 35
+#define Z_STEP_PIN 37
+#define Z_DIR_PIN 39
+#define Z_ENABLE_PIN 35
-#define E0_STEP_PIN 43
-#define E0_DIR_PIN 45
-#define E0_ENABLE_PIN 41
+#define E0_STEP_PIN 43
+#define E0_DIR_PIN 45
+#define E0_ENABLE_PIN 41
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8
-#define TEMP_1_PIN 9
-#define TEMP_BED_PIN 10
+#define TEMP_0_PIN 8
+#define TEMP_1_PIN 9
+#define TEMP_BED_PIN 10
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 7
+ #define FAN_PIN 7
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 12
-#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
-#define KILL_PIN -1
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 12
+#define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
+#define KILL_PIN -1
#if HAS_SPI_LCD
- #define BEEPER_PIN 18
+ #define BEEPER_PIN 18
#if ENABLED(NEWPANEL)
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_A0 5
- #define DOGLCD_CS 21
- #define BTN_EN1 40
- #define BTN_EN2 42
+ #define DOGLCD_A0 5
+ #define DOGLCD_CS 21
+ #define BTN_EN1 40
+ #define BTN_EN2 42
#else
- #define LCD_PINS_RS 20
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 16
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 5
- #define LCD_PINS_D7 6
- #define BTN_EN1 42
- #define BTN_EN2 40
+ #define LCD_PINS_RS 20
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 16
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 5
+ #define LCD_PINS_D7 6
+ #define BTN_EN1 42
+ #define BTN_EN2 40
#endif
- #define BTN_ENC 19
- #define SD_DETECT_PIN 38
+ #define BTN_ENC 19
+ #define SD_DETECT_PIN 38
- #else // !NEWPANEL
+ #else // !NEWPANEL
- #define SHIFT_CLK 38
- #define SHIFT_LD 42
- #define SHIFT_OUT 40
- #define SHIFT_EN 17
+ #define SHIFT_CLK 38
+ #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_EN 17
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 5
- #define LCD_PINS_D4 6
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 20
- #define LCD_PINS_D7 19
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 5
+ #define LCD_PINS_D4 6
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 20
+ #define LCD_PINS_D7 19
- #define SD_DETECT_PIN -1
+ #define SD_DETECT_PIN -1
#endif // !NEWPANEL
diff --git a/Marlin/src/pins/mega/pins_GT2560_V3.h b/Marlin/src/pins/mega/pins_GT2560_V3.h
index 566e88705d..08f9018a29 100644
--- a/Marlin/src/pins/mega/pins_GT2560_V3.h
+++ b/Marlin/src/pins/mega/pins_GT2560_V3.h
@@ -36,33 +36,33 @@
//
// Servos
//
-#define SERVO0_PIN 11 //13 untested 3Dtouch
+#define SERVO0_PIN 11 //13 untested 3Dtouch
//
// Limit Switches
//
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
- #define X_MIN_PIN 24
+ #define X_MIN_PIN 24
#endif
#ifndef X_MAX_PIN
- #define X_MAX_PIN 22
+ #define X_MAX_PIN 22
#endif
#endif
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
- #define Y_MIN_PIN 28
+ #define Y_MIN_PIN 28
#endif
#ifndef Y_MAX_PIN
- #define Y_MAX_PIN 26
+ #define Y_MAX_PIN 26
#endif
#endif
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
- #define Z_MIN_PIN 30
+ #define Z_MIN_PIN 30
#endif
#ifndef Z_MAX_PIN
- #define Z_MAX_PIN 32
+ #define Z_MAX_PIN 32
#endif
#endif
@@ -70,116 +70,116 @@
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 66
+ #define FIL_RUNOUT_PIN 66
#endif
#ifndef FIL_RUNOUT2_PIN
- #define FIL_RUNOUT2_PIN 67
+ #define FIL_RUNOUT2_PIN 67
#endif
//
// Power Recovery
//
-#define POWER_LOSS_PIN 69 // Pin to detect power loss
-#define POWER_LOSS_STATE LOW
+#define POWER_LOSS_PIN 69 // Pin to detect power loss
+#define POWER_LOSS_STATE LOW
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 39
-#define X_ENABLE_PIN 35
+#define X_STEP_PIN 37
+#define X_DIR_PIN 39
+#define X_ENABLE_PIN 35
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 25
-#define Z_DIR_PIN 23
-#define Z_ENABLE_PIN 27
+#define Z_STEP_PIN 25
+#define Z_DIR_PIN 23
+#define Z_ENABLE_PIN 27
-#define E0_STEP_PIN 46
-#define E0_DIR_PIN 44
-#define E0_ENABLE_PIN 12
+#define E0_STEP_PIN 46
+#define E0_DIR_PIN 44
+#define E0_ENABLE_PIN 12
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
-#define E2_STEP_PIN 43
-#define E2_DIR_PIN 45
-#define E2_ENABLE_PIN 41
+#define E2_STEP_PIN 43
+#define E2_DIR_PIN 45
+#define E2_ENABLE_PIN 41
//
// Temperature Sensors
//
-#define TEMP_0_PIN 11 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input
-#define TEMP_2_PIN 1 // Analog Input
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_0_PIN 11 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input
+#define TEMP_2_PIN 1 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 3
-#define HEATER_2_PIN 1
-#define HEATER_BED_PIN 4
-#define FAN_PIN 9
-#define FAN1_PIN 8
-#define FAN2_PIN 7
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 3
+#define HEATER_2_PIN 1
+#define HEATER_BED_PIN 4
+#define FAN_PIN 9
+#define FAN1_PIN 8
+#define FAN2_PIN 7
//
// Misc. Functions
//
-#define SD_DETECT_PIN 38
-#define SDSS 53
-#define LED_PIN 6
-#define PS_ON_PIN 12
-#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
+#define SD_DETECT_PIN 38
+#define SDSS 53
+#define LED_PIN 6
+#define PS_ON_PIN 12
+#define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
#ifndef CASE_LIGHT_PIN
- #define CASE_LIGHT_PIN 6 // 21
+ #define CASE_LIGHT_PIN 6 // 21
#endif
//
// LCD Controller
//
-#define BEEPER_PIN 18
+#define BEEPER_PIN 18
#ifndef LCD_PINS_RS
- #define LCD_PINS_RS 20
+ #define LCD_PINS_RS 20
#endif
#ifndef LCD_PINS_ENABLE
- #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_ENABLE 17
#endif
#ifndef LCD_PINS_D4
- #define LCD_PINS_D4 16
+ #define LCD_PINS_D4 16
#endif
#ifndef LCD_PINS_D5
- #define LCD_PINS_D5 21
+ #define LCD_PINS_D5 21
#endif
#ifndef LCD_PINS_D6
- #define LCD_PINS_D6 5
+ #define LCD_PINS_D6 5
#endif
#ifndef LCD_PINS_D7
- #define LCD_PINS_D7 36
+ #define LCD_PINS_D7 36
#endif
#if ENABLED(NEWPANEL)
#ifndef BTN_EN1
- #define BTN_EN1 42
+ #define BTN_EN1 42
#endif
#ifndef BTN_EN2
- #define BTN_EN2 40
+ #define BTN_EN2 40
#endif
#ifndef BTN_ENC
- #define BTN_ENC 19
+ #define BTN_ENC 19
#endif
#endif
diff --git a/Marlin/src/pins/mega/pins_GT2560_V3_A20.h b/Marlin/src/pins/mega/pins_GT2560_V3_A20.h
index 037ea13244..06ac9fd9df 100644
--- a/Marlin/src/pins/mega/pins_GT2560_V3_A20.h
+++ b/Marlin/src/pins/mega/pins_GT2560_V3_A20.h
@@ -25,15 +25,15 @@
* Geeetech A20M pin assignment
*/
-#define LCD_PINS_RS 5
-#define LCD_PINS_ENABLE 36
-#define LCD_PINS_D4 21
-#define LCD_PINS_D7 6
+#define LCD_PINS_RS 5
+#define LCD_PINS_ENABLE 36
+#define LCD_PINS_D4 21
+#define LCD_PINS_D7 6
#if ENABLED(NEWPANEL)
- #define BTN_EN1 16
- #define BTN_EN2 17
- #define BTN_ENC 19
+ #define BTN_EN1 16
+ #define BTN_EN2 17
+ #define BTN_ENC 19
#endif
#include "pins_GT2560_V3.h"
diff --git a/Marlin/src/pins/mega/pins_GT2560_V3_MC2.h b/Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
index 7ba9112d4e..0f06aaf256 100644
--- a/Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
+++ b/Marlin/src/pins/mega/pins_GT2560_V3_MC2.h
@@ -27,9 +27,9 @@
#define BOARD_INFO_NAME "GT2560 V3.0 (MC2)"
-#define X_MIN_PIN 22
-#define X_MAX_PIN 24
-#define Y_MIN_PIN 26
-#define Y_MAX_PIN 28
+#define X_MIN_PIN 22
+#define X_MAX_PIN 24
+#define Y_MIN_PIN 26
+#define Y_MAX_PIN 28
#include "pins_GT2560_V3.h"
diff --git a/Marlin/src/pins/mega/pins_HJC2560C_REV2.h b/Marlin/src/pins/mega/pins_HJC2560C_REV2.h
index b667566688..66adfb2fa7 100644
--- a/Marlin/src/pins/mega/pins_HJC2560C_REV2.h
+++ b/Marlin/src/pins/mega/pins_HJC2560C_REV2.h
@@ -42,79 +42,79 @@
//
// Limit Switches
//
-#define X_STOP_PIN 22
-#define Y_STOP_PIN 26
-#define Z_STOP_PIN 29
-//#define EXP_STOP_PIN 28
+#define X_STOP_PIN 22
+#define Y_STOP_PIN 26
+#define Z_STOP_PIN 29
+//#define EXP_STOP_PIN 28
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 32
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 31
+#define Y_STEP_PIN 32
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 31
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 36
-#define Z_ENABLE_PIN 34
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 36
+#define Z_ENABLE_PIN 34
-#define E0_STEP_PIN 42
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 37
+#define E0_STEP_PIN 42
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 37
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
-#define MOTOR_CURRENT_PWM_XY_PIN 44
-#define MOTOR_CURRENT_PWM_Z_PIN 45
-#define MOTOR_CURRENT_PWM_E_PIN 46
+#define MOTOR_CURRENT_PWM_XY_PIN 44
+#define MOTOR_CURRENT_PWM_Z_PIN 45
+#define MOTOR_CURRENT_PWM_E_PIN 46
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
#ifndef MOTOR_CURRENT_PWM_RANGE
- #define MOTOR_CURRENT_PWM_RANGE 2000
+ #define MOTOR_CURRENT_PWM_RANGE 2000
#endif
#define DEFAULT_PWM_MOTOR_CURRENT { 1300, 1300, 1250 }
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_0_PIN 8 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
+ #define FAN_PIN 7 //默认不使用PWM_FAN冷却喷嘴,如果需要,则取消注释
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define SD_DETECT_PIN 39
-//#define LED_PIN 8
-#define CASE_LIGHT_PIN 8 // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
+#define SDSS 53
+#define SD_DETECT_PIN 39
+//#define LED_PIN 8
+#define CASE_LIGHT_PIN 8 // 8 默认挤出机风扇作为Case LED,如果需要PWM FAN,则需要将FAN_PIN置为7,LED_PIN置为8
-//#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
-//#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
+//#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
+//#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
//
// M3/M4/M5 - Spindle/Laser Control
//
#if ENABLED(SPINDLE_LASER_ENABLE)
- #define SPINDLE_DIR_PIN 16
- #define SPINDLE_LASER_ENABLE_PIN 17 // Pin should have a pullup!
- #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
+ #define SPINDLE_DIR_PIN 16
+ #define SPINDLE_LASER_ENABLE_PIN 17 // Pin should have a pullup!
+ #define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
#endif
//
@@ -122,48 +122,48 @@
//
#if HAS_SPI_LCD
- #define BEEPER_PIN 18
+ #define BEEPER_PIN 18
#if ENABLED(NEWPANEL)
- #define LCD_PINS_RS 20 // LCD_CS
- #define LCD_PINS_ENABLE 15 // LCD_SDA
- #define LCD_PINS_D4 14 // LCD_SCK
+ #define LCD_PINS_RS 20 // LCD_CS
+ #define LCD_PINS_ENABLE 15 // LCD_SDA
+ #define LCD_PINS_D4 14 // LCD_SCK
#if ENABLED(HJC_LCD_SMART_CONTROLLER)
- #define LCD_BACKLIGHT_PIN 5 // LCD_Backlight
+ #define LCD_BACKLIGHT_PIN 5 // LCD_Backlight
//#ifndef LCD_CONTRAST_PIN
// #define LCD_CONTRAST_PIN 5 // LCD_Contrast
//#endif
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 24 // Filament runout
+ #define FIL_RUNOUT_PIN 24 // Filament runout
#endif
#else
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 5
- #define LCD_PINS_D7 6
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 5
+ #define LCD_PINS_D7 6
#endif
- #define BTN_EN1 41
- #define BTN_EN2 40
- #define BTN_ENC 19
+ #define BTN_EN1 41
+ #define BTN_EN2 40
+ #define BTN_ENC 19
- #define SD_DETECT_PIN 39
+ #define SD_DETECT_PIN 39
#else
// Buttons attached to a shift register
- #define SHIFT_CLK 38
- #define SHIFT_LD 42
- #define SHIFT_OUT 40
- #define SHIFT_EN 17
+ #define SHIFT_CLK 38
+ #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_EN 17
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 5
- #define LCD_PINS_D4 6
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 20
- #define LCD_PINS_D7 19
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 5
+ #define LCD_PINS_D4 6
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 20
+ #define LCD_PINS_D7 19
#endif // !NEWPANEL
diff --git a/Marlin/src/pins/mega/pins_LEAPFROG.h b/Marlin/src/pins/mega/pins_LEAPFROG.h
index f04b89d4bc..188cbcad3d 100644
--- a/Marlin/src/pins/mega/pins_LEAPFROG.h
+++ b/Marlin/src/pins/mega/pins_LEAPFROG.h
@@ -34,59 +34,59 @@
//
// Limit Switches
//
-#define X_MIN_PIN 47
-#define X_MAX_PIN 2
-#define Y_MIN_PIN 48
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 49
-#define Z_MAX_PIN -1
+#define X_MIN_PIN 47
+#define X_MAX_PIN 2
+#define Y_MIN_PIN 48
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 49
+#define Z_MAX_PIN -1
//
// Steppers
//
-#define X_STEP_PIN 28
-#define X_DIR_PIN 63
-#define X_ENABLE_PIN 29
+#define X_STEP_PIN 28
+#define X_DIR_PIN 63
+#define X_ENABLE_PIN 29
-#define Y_STEP_PIN 14 // A6
-#define Y_DIR_PIN 15 // A0
-#define Y_ENABLE_PIN 39
+#define Y_STEP_PIN 14 // A6
+#define Y_DIR_PIN 15 // A0
+#define Y_ENABLE_PIN 39
-#define Z_STEP_PIN 31 // A2
-#define Z_DIR_PIN 32 // A6
-#define Z_ENABLE_PIN 30 // A1
+#define Z_STEP_PIN 31 // A2
+#define Z_DIR_PIN 32 // A6
+#define Z_ENABLE_PIN 30 // A1
-#define E0_STEP_PIN 34 // 34
-#define E0_DIR_PIN 35 // 35
-#define E0_ENABLE_PIN 33 // 33
+#define E0_STEP_PIN 34 // 34
+#define E0_DIR_PIN 35 // 35
+#define E0_ENABLE_PIN 33 // 33
-#define E1_STEP_PIN 37 // 37
-#define E1_DIR_PIN 40 // 40
-#define E1_ENABLE_PIN 36 // 36
+#define E1_STEP_PIN 37 // 37
+#define E1_DIR_PIN 40 // 40
+#define E1_ENABLE_PIN 36 // 36
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13 // Analog Input (D27)
-#define TEMP_1_PIN 15 // Analog Input (1)
-#define TEMP_BED_PIN 14 // Analog Input (1,2 or I2C)
+#define TEMP_0_PIN 13 // Analog Input (D27)
+#define TEMP_1_PIN 15 // Analog Input (1)
+#define TEMP_BED_PIN 14 // Analog Input (1,2 or I2C)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 8 // 12
-#define HEATER_2_PIN 11 // 13
-#define HEATER_BED_PIN 10 // 14/15
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 8 // 12
+#define HEATER_2_PIN 11 // 13
+#define HEATER_BED_PIN 10 // 14/15
-#define FAN_PIN 7
+#define FAN_PIN 7
//
// Misc. Functions
//
-#define SDSS 11
-#define LED_PIN 13
-#define SOL1_PIN 16
-#define SOL2_PIN 17
+#define SDSS 11
+#define LED_PIN 13
+#define SOL1_PIN 16
+#define SOL2_PIN 17
/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
diff --git a/Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h b/Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
index ab6299a9b0..36cb0e2c14 100644
--- a/Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
+++ b/Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
@@ -38,9 +38,9 @@
//
// Limit Switches
//
-#define X_STOP_PIN 47 // 'X Min'
-#define Y_STOP_PIN 48 // 'Y Min'
-#define Z_STOP_PIN 49 // 'Z Min'
+#define X_STOP_PIN 47 // 'X Min'
+#define Y_STOP_PIN 48 // 'Y Min'
+#define Z_STOP_PIN 49 // 'Z Min'
//
// Steppers
@@ -51,65 +51,65 @@
//
// X-axis signal-level connector
-#define X_STEP_PIN 65
-#define X_DIR_PIN 64
-#define X_ENABLE_PIN 66 // Not actually used on Xeed, could be repurposed
+#define X_STEP_PIN 65
+#define X_DIR_PIN 64
+#define X_ENABLE_PIN 66 // Not actually used on Xeed, could be repurposed
// Y-axis signal-level connector
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24 // Not actually used on Xeed, could be repurposed
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24 // Not actually used on Xeed, could be repurposed
// ZMOT connector (Front Right Z Motor)
-#define Z_STEP_PIN 31
-#define Z_DIR_PIN 32
-#define Z_ENABLE_PIN 30
+#define Z_STEP_PIN 31
+#define Z_DIR_PIN 32
+#define Z_ENABLE_PIN 30
// XMOT connector (Rear Z Motor)
-#define Z2_STEP_PIN 28
-#define Z2_DIR_PIN 63
-#define Z2_ENABLE_PIN 29
+#define Z2_STEP_PIN 28
+#define Z2_DIR_PIN 63
+#define Z2_ENABLE_PIN 29
// YMOT connector (Front Left Z Motor)
-#define Z3_STEP_PIN 14
-#define Z3_DIR_PIN 15
-#define Z3_ENABLE_PIN 39
+#define Z3_STEP_PIN 14
+#define Z3_DIR_PIN 15
+#define Z3_ENABLE_PIN 39
// EMOT2 connector
-#define E0_STEP_PIN 37
-#define E0_DIR_PIN 40
-#define E0_ENABLE_PIN 36
+#define E0_STEP_PIN 37
+#define E0_DIR_PIN 40
+#define E0_ENABLE_PIN 36
// EMOT connector
-#define E1_STEP_PIN 34
-#define E1_DIR_PIN 35
-#define E1_ENABLE_PIN 33
+#define E1_STEP_PIN 34
+#define E1_DIR_PIN 35
+#define E1_ENABLE_PIN 33
//
// Filament runout
//
-#define FIL_RUNOUT_PIN 42 // ROT2 Connector
-#define FIL_RUNOUT2_PIN 44 // ROT1 Connector
+#define FIL_RUNOUT_PIN 42 // ROT2 Connector
+#define FIL_RUNOUT2_PIN 44 // ROT1 Connector
//
// Temperature Sensors
//
-#define TEMP_0_PIN 15 // T3 Connector
-#define TEMP_1_PIN 13 // T1 Connector
-#define TEMP_BED_PIN 14 // BED Connector (Between T1 and T3)
+#define TEMP_0_PIN 15 // T3 Connector
+#define TEMP_1_PIN 13 // T1 Connector
+#define TEMP_BED_PIN 14 // BED Connector (Between T1 and T3)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 8 // Misc Connector, pins 3 and 4 (Out2)
-#define HEATER_1_PIN 9 // Misc Connector, pins 5 and 6 (Out3)
-#define HEATER_BED_PIN 6 // Misc Connector, pins 9(-) and 10(+) (OutA)
+#define HEATER_0_PIN 8 // Misc Connector, pins 3 and 4 (Out2)
+#define HEATER_1_PIN 9 // Misc Connector, pins 5 and 6 (Out3)
+#define HEATER_BED_PIN 6 // Misc Connector, pins 9(-) and 10(+) (OutA)
-#define FAN_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
+#define FAN_PIN 10 // Misc Connector, pins 7(-) and 8 (+) (Out4)
-#define LED_PIN 13
+#define LED_PIN 13
-#define SOL1_PIN 7 // Misc Connector, pins 1(-) and 2(+) (Out1)
+#define SOL1_PIN 7 // Misc Connector, pins 1(-) and 2(+) (Out1)
// Door Closed Sensor
-//#define DOOR_PIN 45 // HM1 Connector
+//#define DOOR_PIN 45 // HM1 Connector
diff --git a/Marlin/src/pins/mega/pins_MEGACONTROLLER.h b/Marlin/src/pins/mega/pins_MEGACONTROLLER.h
index 8fecc71bac..2d0db15825 100644
--- a/Marlin/src/pins/mega/pins_MEGACONTROLLER.h
+++ b/Marlin/src/pins/mega/pins_MEGACONTROLLER.h
@@ -36,89 +36,89 @@
//
// Servos
//
-#define SERVO0_PIN 30
-#define SERVO1_PIN 31
-#define SERVO2_PIN 32
-#define SERVO3_PIN 33
+#define SERVO0_PIN 30
+#define SERVO1_PIN 31
+#define SERVO2_PIN 32
+#define SERVO3_PIN 33
//
// Limit Switches
//
-#define X_MIN_PIN 43
-#define X_MAX_PIN 42
-#define Y_MIN_PIN 38
-#define Y_MAX_PIN 41
-#define Z_MIN_PIN 40
-#define Z_MAX_PIN 37
+#define X_MIN_PIN 43
+#define X_MAX_PIN 42
+#define Y_MIN_PIN 38
+#define Y_MAX_PIN 41
+#define Z_MIN_PIN 40
+#define Z_MAX_PIN 37
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 37
+ #define Z_MIN_PROBE_PIN 37
#endif
//
// Steppers
//
-#define X_STEP_PIN 62 // A8
-#define X_DIR_PIN 63 // A9
-#define X_ENABLE_PIN 61 // A7
+#define X_STEP_PIN 62 // A8
+#define X_DIR_PIN 63 // A9
+#define X_ENABLE_PIN 61 // A7
-#define Y_STEP_PIN 65 // A11
-#define Y_DIR_PIN 66 // A12
-#define Y_ENABLE_PIN 64 // A10
+#define Y_STEP_PIN 65 // A11
+#define Y_DIR_PIN 66 // A12
+#define Y_ENABLE_PIN 64 // A10
-#define Z_STEP_PIN 68 // A14
-#define Z_DIR_PIN 69 // A15
-#define Z_ENABLE_PIN 67 // A13
+#define Z_STEP_PIN 68 // A14
+#define Z_DIR_PIN 69 // A15
+#define Z_ENABLE_PIN 67 // A13
-#define E0_STEP_PIN 23
-#define E0_DIR_PIN 24
-#define E0_ENABLE_PIN 22
+#define E0_STEP_PIN 23
+#define E0_DIR_PIN 24
+#define E0_ENABLE_PIN 22
-#define E1_STEP_PIN 26
-#define E1_DIR_PIN 27
-#define E1_ENABLE_PIN 25
+#define E1_STEP_PIN 26
+#define E1_DIR_PIN 27
+#define E1_ENABLE_PIN 25
//
// Temperature Sensors
//
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 4 // Analog Input
+ #define TEMP_0_PIN 4 // Analog Input
#else
- #define TEMP_0_PIN 0 // Analog Input
+ #define TEMP_0_PIN 0 // Analog Input
#endif
#if TEMP_SENSOR_1 == -1
- #define TEMP_1_PIN 5 // Analog Input
+ #define TEMP_1_PIN 5 // Analog Input
#else
- #define TEMP_1_PIN 2 // Analog Input
+ #define TEMP_1_PIN 2 // Analog Input
#endif
-#define TEMP_2_PIN 3 // Analog Input
+#define TEMP_2_PIN 3 // Analog Input
#if TEMP_SENSOR_BED == -1
- #define TEMP_BED_PIN 6 // Analog Input
+ #define TEMP_BED_PIN 6 // Analog Input
#else
- #define TEMP_BED_PIN 1 // Analog Input
+ #define TEMP_BED_PIN 1 // Analog Input
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 29
-#define HEATER_1_PIN 34
-#define HEATER_BED_PIN 28
+#define HEATER_0_PIN 29
+#define HEATER_1_PIN 34
+#define HEATER_BED_PIN 28
#ifndef FAN_PIN
- #define FAN_PIN 39
+ #define FAN_PIN 39
#endif
-#define FAN1_PIN 35
-#define FAN2_PIN 36
+#define FAN1_PIN 35
+#define FAN2_PIN 36
#ifndef CONTROLLER_FAN_PIN
- #define CONTROLLER_FAN_PIN FAN2_PIN
+ #define CONTROLLER_FAN_PIN FAN2_PIN
#endif
#define FAN_SOFT_PWM
@@ -126,39 +126,39 @@
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define CASE_LIGHT_PIN 2
+#define SDSS 53
+#define LED_PIN 13
+#define CASE_LIGHT_PIN 2
//
// LCD / Controller
//
#if ENABLED(MINIPANEL)
- #define BEEPER_PIN 46
+ #define BEEPER_PIN 46
// Pins for DOGM SPI LCD Support
- #define DOGLCD_A0 47
- #define DOGLCD_CS 45
- #define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
+ #define DOGLCD_A0 47
+ #define DOGLCD_CS 45
+ #define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
- #define KILL_PIN 12
+ #define KILL_PIN 12
// GLCD features
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BTN_EN1 48
- #define BTN_EN2 11
- #define BTN_ENC 10
+ #define BTN_EN1 48
+ #define BTN_EN2 11
+ #define BTN_ENC 10
- #define SD_DETECT_PIN 49
+ #define SD_DETECT_PIN 49
#endif // MINIPANEL
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 7 // Pullup!
-#define SPINDLE_DIR_PIN 8
+#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 7 // Pullup!
+#define SPINDLE_DIR_PIN 8
diff --git a/Marlin/src/pins/mega/pins_MEGATRONICS.h b/Marlin/src/pins/mega/pins_MEGATRONICS.h
index d3015340de..4d7a980050 100644
--- a/Marlin/src/pins/mega/pins_MEGATRONICS.h
+++ b/Marlin/src/pins/mega/pins_MEGATRONICS.h
@@ -33,99 +33,99 @@
//
// Limit Switches
//
-#define X_MIN_PIN 41
-#define X_MAX_PIN 37
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define X_MIN_PIN 41
+#define X_MAX_PIN 37
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 19
+ #define Z_MIN_PROBE_PIN 19
#endif
//
// Steppers
//
-#define X_STEP_PIN 26
-#define X_DIR_PIN 28
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 26
+#define X_DIR_PIN 28
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 60 // A6
-#define Y_DIR_PIN 61 // A7
-#define Y_ENABLE_PIN 22
+#define Y_STEP_PIN 60 // A6
+#define Y_DIR_PIN 61 // A7
+#define Y_ENABLE_PIN 22
-#define Z_STEP_PIN 54 // A0
-#define Z_DIR_PIN 55 // A1
-#define Z_ENABLE_PIN 56 // A2
+#define Z_STEP_PIN 54 // A0
+#define Z_DIR_PIN 55 // A1
+#define Z_ENABLE_PIN 56 // A2
-#define E0_STEP_PIN 31
-#define E0_DIR_PIN 32
-#define E0_ENABLE_PIN 38
+#define E0_STEP_PIN 31
+#define E0_DIR_PIN 32
+#define E0_ENABLE_PIN 38
-#define E1_STEP_PIN 34
-#define E1_DIR_PIN 36
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 34
+#define E1_DIR_PIN 36
+#define E1_ENABLE_PIN 30
//
// Temperature Sensors
//
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 8 // Analog Input
+ #define TEMP_0_PIN 8 // Analog Input
#else
- #define TEMP_0_PIN 13 // Analog Input
+ #define TEMP_0_PIN 13 // Analog Input
#endif
-#define TEMP_1_PIN 15 // Analog Input
-#define TEMP_BED_PIN 14 // Analog Input
+#define TEMP_1_PIN 15 // Analog Input
+#define TEMP_BED_PIN 14 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 8
-#define HEATER_BED_PIN 10
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 8
+#define HEATER_BED_PIN 10
#ifndef FAN_PIN
- #define FAN_PIN 7 // IO pin. Buffer needed
+ #define FAN_PIN 7 // IO pin. Buffer needed
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 12
-#define CASE_LIGHT_PIN 2
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 12
+#define CASE_LIGHT_PIN 2
//
// LCD / Controller
//
-#define BEEPER_PIN 33
+#define BEEPER_PIN 33
#if BOTH(ULTRA_LCD, NEWPANEL)
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
// Buttons directly attached to AUX-2
- #define BTN_EN1 59
- #define BTN_EN2 64
- #define BTN_ENC 43
+ #define BTN_EN1 59
+ #define BTN_EN2 64
+ #define BTN_ENC 43
- #define SD_DETECT_PIN -1 // RAMPS doesn't use this
+ #define SD_DETECT_PIN -1 // RAMPS doesn't use this
#endif // HAS_SPI_LCD && NEWPANEL
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
-#define SPINDLE_DIR_PIN 11
+#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
+#define SPINDLE_DIR_PIN 11
diff --git a/Marlin/src/pins/mega/pins_MEGATRONICS_2.h b/Marlin/src/pins/mega/pins_MEGATRONICS_2.h
index 160d9d4b78..d976e09816 100644
--- a/Marlin/src/pins/mega/pins_MEGATRONICS_2.h
+++ b/Marlin/src/pins/mega/pins_MEGATRONICS_2.h
@@ -33,120 +33,120 @@
//
// Limit Switches
//
-#define X_MIN_PIN 37
-#define X_MAX_PIN 40
-#define Y_MIN_PIN 41
-#define Y_MAX_PIN 38
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define X_MIN_PIN 37
+#define X_MAX_PIN 40
+#define Y_MIN_PIN 41
+#define Y_MAX_PIN 38
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 19
+ #define Z_MIN_PROBE_PIN 19
#endif
//
// Steppers
//
-#define X_STEP_PIN 26
-#define X_DIR_PIN 27
-#define X_ENABLE_PIN 25
+#define X_STEP_PIN 26
+#define X_DIR_PIN 27
+#define X_ENABLE_PIN 25
-#define Y_STEP_PIN 4 // A6
-#define Y_DIR_PIN 54 // A0
-#define Y_ENABLE_PIN 5
+#define Y_STEP_PIN 4 // A6
+#define Y_DIR_PIN 54 // A0
+#define Y_ENABLE_PIN 5
-#define Z_STEP_PIN 56 // A2
-#define Z_DIR_PIN 60 // A6
-#define Z_ENABLE_PIN 55 // A1
+#define Z_STEP_PIN 56 // A2
+#define Z_DIR_PIN 60 // A6
+#define Z_ENABLE_PIN 55 // A1
-#define E0_STEP_PIN 35
-#define E0_DIR_PIN 36
-#define E0_ENABLE_PIN 34
+#define E0_STEP_PIN 35
+#define E0_DIR_PIN 36
+#define E0_ENABLE_PIN 34
-#define E1_STEP_PIN 29
-#define E1_DIR_PIN 39
-#define E1_ENABLE_PIN 28
+#define E1_STEP_PIN 29
+#define E1_DIR_PIN 39
+#define E1_ENABLE_PIN 28
-#define E2_STEP_PIN 23 // ? schematic says 24
-#define E2_DIR_PIN 24 // ? schematic says 23
-#define E2_ENABLE_PIN 22
+#define E2_STEP_PIN 23 // ? schematic says 24
+#define E2_DIR_PIN 24 // ? schematic says 23
+#define E2_ENABLE_PIN 22
//
// Temperature Sensors
//
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 4 // Analog Input
+ #define TEMP_0_PIN 4 // Analog Input
#else
- #define TEMP_0_PIN 13 // Analog Input
+ #define TEMP_0_PIN 13 // Analog Input
#endif
#if TEMP_SENSOR_1 == -1
- #define TEMP_1_PIN 8 // Analog Input
+ #define TEMP_1_PIN 8 // Analog Input
#else
- #define TEMP_1_PIN 15 // Analog Input
+ #define TEMP_1_PIN 15 // Analog Input
#endif
#if TEMP_SENSOR_BED == -1
- #define TEMP_BED_PIN 8 // Analog Input
+ #define TEMP_BED_PIN 8 // Analog Input
#else
- #define TEMP_BED_PIN 14 // Analog Input
+ #define TEMP_BED_PIN 14 // Analog Input
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 8
-#define HEATER_BED_PIN 10
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 8
+#define HEATER_BED_PIN 10
#ifndef FAN_PIN
- #define FAN_PIN 7
+ #define FAN_PIN 7
#endif
-#define FAN1_PIN 6
+#define FAN1_PIN 6
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 12
-#define CASE_LIGHT_PIN 2
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 12
+#define CASE_LIGHT_PIN 2
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 16 // Pullup!
-#define SPINDLE_DIR_PIN 11
+#define SPINDLE_LASER_PWM_PIN 3 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 16 // Pullup!
+#define SPINDLE_DIR_PIN 11
//
// LCD / Controller
//
-#define BEEPER_PIN 64
+#define BEEPER_PIN 64
#if HAS_SPI_LCD
- #define LCD_PINS_RS 14
- #define LCD_PINS_ENABLE 15
- #define LCD_PINS_D4 30
- #define LCD_PINS_D5 31
- #define LCD_PINS_D6 32
- #define LCD_PINS_D7 33
+ #define LCD_PINS_RS 14
+ #define LCD_PINS_ENABLE 15
+ #define LCD_PINS_D4 30
+ #define LCD_PINS_D5 31
+ #define LCD_PINS_D6 32
+ #define LCD_PINS_D7 33
#if ENABLED(NEWPANEL)
// Buttons are directly attached using keypad
- #define BTN_EN1 61
- #define BTN_EN2 59
- #define BTN_ENC 43
+ #define BTN_EN1 61
+ #define BTN_EN2 59
+ #define BTN_ENC 43
#else
// Buttons attached to shift register of reprapworld keypad v1.1
- #define SHIFT_CLK 63
- #define SHIFT_LD 42
- #define SHIFT_OUT 17
- #define SHIFT_EN 17
+ #define SHIFT_CLK 63
+ #define SHIFT_LD 42
+ #define SHIFT_OUT 17
+ #define SHIFT_EN 17
#endif
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/mega/pins_MEGATRONICS_3.h b/Marlin/src/pins/mega/pins_MEGATRONICS_3.h
index fe0f4826be..78dd88809f 100644
--- a/Marlin/src/pins/mega/pins_MEGATRONICS_3.h
+++ b/Marlin/src/pins/mega/pins_MEGATRONICS_3.h
@@ -40,132 +40,132 @@
//
// Servos
//
-#define SERVO0_PIN 46 // AUX3-6
-#define SERVO1_PIN 47 // AUX3-5
-#define SERVO2_PIN 48 // AUX3-4
-#define SERVO3_PIN 49 // AUX3-3
+#define SERVO0_PIN 46 // AUX3-6
+#define SERVO1_PIN 47 // AUX3-5
+#define SERVO2_PIN 48 // AUX3-4
+#define SERVO3_PIN 49 // AUX3-3
//
// Limit Switches
//
-#define X_MIN_PIN 37 // No INT
-#define X_MAX_PIN 40 // No INT
-#define Y_MIN_PIN 41 // No INT
-#define Y_MAX_PIN 38 // No INT
-#define Z_MIN_PIN 18 // No INT
-#define Z_MAX_PIN 19 // No INT
+#define X_MIN_PIN 37 // No INT
+#define X_MAX_PIN 40 // No INT
+#define Y_MIN_PIN 41 // No INT
+#define Y_MAX_PIN 38 // No INT
+#define Z_MIN_PIN 18 // No INT
+#define Z_MAX_PIN 19 // No INT
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 19
+ #define Z_MIN_PROBE_PIN 19
#endif
//
// Steppers
//
-#define X_STEP_PIN 58
-#define X_DIR_PIN 57
-#define X_ENABLE_PIN 59
+#define X_STEP_PIN 58
+#define X_DIR_PIN 57
+#define X_ENABLE_PIN 59
-#define Y_STEP_PIN 5
-#define Y_DIR_PIN 17
-#define Y_ENABLE_PIN 4
+#define Y_STEP_PIN 5
+#define Y_DIR_PIN 17
+#define Y_ENABLE_PIN 4
-#define Z_STEP_PIN 16
-#define Z_DIR_PIN 11
-#define Z_ENABLE_PIN 3
+#define Z_STEP_PIN 16
+#define Z_DIR_PIN 11
+#define Z_ENABLE_PIN 3
-#define E0_STEP_PIN 28
-#define E0_DIR_PIN 27
-#define E0_ENABLE_PIN 29
+#define E0_STEP_PIN 28
+#define E0_DIR_PIN 27
+#define E0_ENABLE_PIN 29
-#define E1_STEP_PIN 25
-#define E1_DIR_PIN 24
-#define E1_ENABLE_PIN 26
+#define E1_STEP_PIN 25
+#define E1_DIR_PIN 24
+#define E1_ENABLE_PIN 26
-#define E2_STEP_PIN 22
-#define E2_DIR_PIN 60
-#define E2_ENABLE_PIN 23
+#define E2_STEP_PIN 22
+#define E2_DIR_PIN 60
+#define E2_ENABLE_PIN 23
//
// Temperature Sensors
//
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 11 // Analog Input
+ #define TEMP_0_PIN 11 // Analog Input
#else
- #define TEMP_0_PIN 15 // Analog Input
+ #define TEMP_0_PIN 15 // Analog Input
#endif
#if TEMP_SENSOR_1 == -1
- #define TEMP_1_PIN 10 // Analog Input
+ #define TEMP_1_PIN 10 // Analog Input
#else
- #define TEMP_1_PIN 13 // Analog Input
+ #define TEMP_1_PIN 13 // Analog Input
#endif
#if TEMP_SENSOR_2 == -1
- #define TEMP_2_PIN 9 // Analog Input
+ #define TEMP_2_PIN 9 // Analog Input
#else
- #define TEMP_2_PIN 12 // Analog Input
+ #define TEMP_2_PIN 12 // Analog Input
#endif
#if TEMP_SENSOR_BED == -1
- #define TEMP_BED_PIN 8 // Analog Input
+ #define TEMP_BED_PIN 8 // Analog Input
#else
- #define TEMP_BED_PIN 14 // Analog Input
+ #define TEMP_BED_PIN 14 // Analog Input
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 9
-#define HEATER_2_PIN 8
-#define HEATER_BED_PIN 10
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 9
+#define HEATER_2_PIN 8
+#define HEATER_BED_PIN 10
#ifndef FAN_PIN
- #define FAN_PIN 6
+ #define FAN_PIN 6
#endif
-#define FAN1_PIN 7
+#define FAN1_PIN 7
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 12
-#define CASE_LIGHT_PIN 45 // Try the keypad connector
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 12
+#define CASE_LIGHT_PIN 45 // Try the keypad connector
//
// LCD / Controller
//
-#define BEEPER_PIN 61
+#define BEEPER_PIN 61
-#define BTN_EN1 44
-#define BTN_EN2 45
-#define BTN_ENC 33
+#define BTN_EN1 44
+#define BTN_EN2 45
+#define BTN_ENC 33
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS 56 // CS chip select / SS chip slave select
- #define LCD_PINS_ENABLE 51 // SID (MOSI)
- #define LCD_PINS_D4 52 // SCK (CLK) clock
- #define SD_DETECT_PIN 35
+ #define LCD_PINS_RS 56 // CS chip select / SS chip slave select
+ #define LCD_PINS_ENABLE 51 // SID (MOSI)
+ #define LCD_PINS_D4 52 // SCK (CLK) clock
+ #define SD_DETECT_PIN 35
#else
- #define LCD_PINS_RS 32
- #define LCD_PINS_ENABLE 31
- #define LCD_PINS_D4 14
- #define LCD_PINS_D5 30
- #define LCD_PINS_D6 39
- #define LCD_PINS_D7 15
+ #define LCD_PINS_RS 32
+ #define LCD_PINS_ENABLE 31
+ #define LCD_PINS_D4 14
+ #define LCD_PINS_D5 30
+ #define LCD_PINS_D6 39
+ #define LCD_PINS_D7 15
- #define SHIFT_CLK 43
- #define SHIFT_LD 35
- #define SHIFT_OUT 34
- #define SHIFT_EN 44
+ #define SHIFT_CLK 43
+ #define SHIFT_LD 35
+ #define SHIFT_OUT 34
+ #define SHIFT_EN 44
#if MB(MEGATRONICS_31, MEGATRONICS_32)
- #define SD_DETECT_PIN 56
+ #define SD_DETECT_PIN 56
#endif
#endif
@@ -173,23 +173,23 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
-#if DISABLED(REPRAPWORLD_KEYPAD) // try to use the keypad connector first
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 43 // Pullup!
- #define SPINDLE_DIR_PIN 42
+#if DISABLED(REPRAPWORLD_KEYPAD) // try to use the keypad connector first
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 43 // Pullup!
+ #define SPINDLE_DIR_PIN 42
#elif EXTRUDERS <= 2
// Hijack the last extruder so that we can get the PWM signal off the Y breakout
// Move Y to the E2 plug. This makes dual Y steppers harder
- #undef Y_ENABLE_PIN // 4
- #undef Y_STEP_PIN // 5
- #undef Y_DIR_PIN // 17
- #undef E2_ENABLE_PIN // 23
- #undef E2_STEP_PIN // 22
- #undef E2_DIR_PIN // 60
- #define Y_ENABLE_PIN 23
- #define Y_STEP_PIN 22
- #define Y_DIR_PIN 60
- #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 17 // Pullup!
- #define SPINDLE_DIR_PIN 5
+ #undef Y_ENABLE_PIN // 4
+ #undef Y_STEP_PIN // 5
+ #undef Y_DIR_PIN // 17
+ #undef E2_ENABLE_PIN // 23
+ #undef E2_STEP_PIN // 22
+ #undef E2_DIR_PIN // 60
+ #define Y_ENABLE_PIN 23
+ #define Y_STEP_PIN 22
+ #define Y_DIR_PIN 60
+ #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 17 // Pullup!
+ #define SPINDLE_DIR_PIN 5
#endif
diff --git a/Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h b/Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
index 6d3102172b..3282216819 100644
--- a/Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
+++ b/Marlin/src/pins/mega/pins_MIGHTYBOARD_REVE.h
@@ -47,60 +47,60 @@
//
// Servos
//
-#define SERVO0_PIN 36 // C1 (1280-EX1)
-#define SERVO1_PIN 37 // C0 (1280-EX2)
-#define SERVO2_PIN 40 // G1 (1280-EX3)
-#define SERVO3_PIN 41 // G0 (1280-EX4)
+#define SERVO0_PIN 36 // C1 (1280-EX1)
+#define SERVO1_PIN 37 // C0 (1280-EX2)
+#define SERVO2_PIN 40 // G1 (1280-EX3)
+#define SERVO3_PIN 41 // G0 (1280-EX4)
//
// Limit Switches
//
-#define X_MIN_PIN 49 // L0
-#define X_MAX_PIN 48 // L1
-#define Y_MIN_PIN 47 // L2
-#define Y_MAX_PIN 46 // L3
-#define Z_MIN_PIN 43 // L6
-#define Z_MAX_PIN 42 // L7
+#define X_MIN_PIN 49 // L0
+#define X_MAX_PIN 48 // L1
+#define Y_MIN_PIN 47 // L2
+#define Y_MAX_PIN 46 // L3
+#define Z_MIN_PIN 43 // L6
+#define Z_MAX_PIN 42 // L7
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 42
+ #define Z_MIN_PROBE_PIN 42
#endif
//
// Filament Runout Pins
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 49
+ #define FIL_RUNOUT_PIN 49
#endif
#ifndef FIL_RUNOUT2_PIN
- #define FIL_RUNOUT2_PIN 47
+ #define FIL_RUNOUT2_PIN 47
#endif
//
// Steppers
//
-#define X_STEP_PIN 55 // F1
-#define X_DIR_PIN 54 // F0
-#define X_ENABLE_PIN 56 // F2
+#define X_STEP_PIN 55 // F1
+#define X_DIR_PIN 54 // F0
+#define X_ENABLE_PIN 56 // F2
-#define Y_STEP_PIN 59 // F5
-#define Y_DIR_PIN 58 // F4
-#define Y_ENABLE_PIN 60 // F6
+#define Y_STEP_PIN 59 // F5
+#define Y_DIR_PIN 58 // F4
+#define Y_ENABLE_PIN 60 // F6
-#define Z_STEP_PIN 63 // K1
-#define Z_DIR_PIN 62 // K0
-#define Z_ENABLE_PIN 64 // K2
+#define Z_STEP_PIN 63 // K1
+#define Z_DIR_PIN 62 // K0
+#define Z_ENABLE_PIN 64 // K2
-#define E0_STEP_PIN 25 // A3
-#define E0_DIR_PIN 24 // A2
-#define E0_ENABLE_PIN 26 // A4
+#define E0_STEP_PIN 25 // A3
+#define E0_DIR_PIN 24 // A2
+#define E0_ENABLE_PIN 26 // A4
-#define E1_STEP_PIN 29 // A7
-#define E1_DIR_PIN 28 // A6
-#define E1_ENABLE_PIN 39 // G2
+#define E1_STEP_PIN 29 // A7
+#define E1_DIR_PIN 28 // A6
+#define E1_ENABLE_PIN 39 // G2
//
// I2C Digipots - MCP4018
@@ -108,22 +108,22 @@
// Set from 0 - 127 with stop bit.
// (Ex. 3F << 1 | 1)
//
-#define DIGIPOTS_I2C_SCL 76 // J5
-#define DIGIPOTS_I2C_SDA_X 57 // F3
-#define DIGIPOTS_I2C_SDA_Y 61 // F7
-#define DIGIPOTS_I2C_SDA_Z 65 // K3
-#define DIGIPOTS_I2C_SDA_E0 27 // A5
-#define DIGIPOTS_I2C_SDA_E1 77 // J6
+#define DIGIPOTS_I2C_SCL 76 // J5
+#define DIGIPOTS_I2C_SDA_X 57 // F3
+#define DIGIPOTS_I2C_SDA_Y 61 // F7
+#define DIGIPOTS_I2C_SDA_Z 65 // K3
+#define DIGIPOTS_I2C_SDA_E0 27 // A5
+#define DIGIPOTS_I2C_SDA_E1 77 // J6
#ifndef DIGIPOT_I2C_ADDRESS_A
- #define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
+ #define DIGIPOT_I2C_ADDRESS_A 0x2F // unshifted slave address (5E <- 2F << 1)
#endif
//
// Temperature Sensors
//
// K7 - 69 / ADC15 - 15
-#define TEMP_BED_PIN 15
+#define TEMP_BED_PIN 15
// SPI for Max6675 or Max31855 Thermocouple
// Uses a separate SPI bus
@@ -133,15 +133,15 @@
// 2 E4 CS2
// 78 E2 SCK
//
-#define THERMO_SCK_PIN 78 // E2
-#define THERMO_DO_PIN 3 // E5
-#define THERMO_CS1_PIN 5 // E3
-#define THERMO_CS2_PIN 2 // E4
+#define THERMO_SCK_PIN 78 // E2
+#define THERMO_DO_PIN 3 // E5
+#define THERMO_CS1_PIN 5 // E3
+#define THERMO_CS2_PIN 2 // E4
-#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 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
//
// Augmentation for auto-assigning plugs
@@ -152,12 +152,12 @@
//
// Labels from the schematic:
-#define EX1_HEAT_PIN 6 // H3
-#define EX1_FAN_PIN 7 // H4
-#define EX2_HEAT_PIN 11 // B5
-#define EX2_FAN_PIN 12 // B6
-#define HBP_PIN 45 // L4
-#define EXTRA_FET_PIN 44 // L5
+#define EX1_HEAT_PIN 6 // H3
+#define EX1_FAN_PIN 7 // H4
+#define EX2_HEAT_PIN 11 // B5
+#define EX2_FAN_PIN 12 // B6
+#define HBP_PIN 45 // L4
+#define EXTRA_FET_PIN 44 // L5
#if HOTENDS > 1
#if TEMP_SENSOR_BED
@@ -174,35 +174,35 @@
//
// Heaters / Fans (24V)
//
-#define HEATER_0_PIN EX1_HEAT_PIN
+#define HEATER_0_PIN EX1_HEAT_PIN
-#if ENABLED(IS_EFB) // Hotend, Fan, Bed
- #define HEATER_BED_PIN HBP_PIN
-#elif ENABLED(IS_EEF) // Hotend, Hotend, Fan
- #define HEATER_1_PIN EX2_HEAT_PIN
-#elif ENABLED(IS_EEB) // Hotend, Hotend, Bed
- #define HEATER_1_PIN EX2_HEAT_PIN
- #define HEATER_BED_PIN HBP_PIN
-#elif ENABLED(IS_EFF) // Hotend, Fan, Fan
- #define FAN1_PIN HBP_PIN
+#if ENABLED(IS_EFB) // Hotend, Fan, Bed
+ #define HEATER_BED_PIN HBP_PIN
+#elif ENABLED(IS_EEF) // Hotend, Hotend, Fan
+ #define HEATER_1_PIN EX2_HEAT_PIN
+#elif ENABLED(IS_EEB) // Hotend, Hotend, Bed
+ #define HEATER_1_PIN EX2_HEAT_PIN
+ #define HEATER_BED_PIN HBP_PIN
+#elif ENABLED(IS_EFF) // Hotend, Fan, Fan
+ #define FAN1_PIN HBP_PIN
#endif
#ifndef FAN_PIN
#if EITHER(IS_EFB, IS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
- #define FAN_PIN EX2_HEAT_PIN
+ #define FAN_PIN EX2_HEAT_PIN
#elif EITHER(IS_EEF, IS_SF) // Hotend, Hotend, Fan or Spindle, Fan
- #define FAN_PIN HBP_PIN
+ #define FAN_PIN HBP_PIN
#else
- #define FAN_PIN EXTRA_FET_PIN
+ #define FAN_PIN EXTRA_FET_PIN
#endif
#endif
//
// Misc. Functions
//
-#define LED_PIN 13 // B7
-#define CUTOFF_RESET_PIN 16 // H1
-#define CUTOFF_TEST_PIN 17 // H0
+#define LED_PIN 13 // B7
+#define CUTOFF_RESET_PIN 16 // H1
+#define CUTOFF_TEST_PIN 17 // H0
//
// LCD / Controller
@@ -211,57 +211,57 @@
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define LCD_PINS_RS 33 // C4: LCD-STROBE
- #define LCD_PINS_ENABLE 72 // J2: LEFT
- #define LCD_PINS_D4 35 // C2: LCD-CLK
- #define LCD_PINS_D5 32 // C5: RLED
- #define LCD_PINS_D6 34 // C3: LCD-DATA
- #define LCD_PINS_D7 31 // C6: GLED
+ #define LCD_PINS_RS 33 // C4: LCD-STROBE
+ #define LCD_PINS_ENABLE 72 // J2: LEFT
+ #define LCD_PINS_D4 35 // C2: LCD-CLK
+ #define LCD_PINS_D5 32 // C5: RLED
+ #define LCD_PINS_D6 34 // C3: LCD-DATA
+ #define LCD_PINS_D7 31 // C6: GLED
- #define BTN_EN2 75 // J4, UP
- #define BTN_EN1 73 // J3, DOWN
+ #define BTN_EN2 75 // J4, UP
+ #define BTN_EN1 73 // J3, DOWN
//STOP button connected as KILL_PIN
- #define KILL_PIN 14 // J1, RIGHT
+ #define KILL_PIN 14 // J1, RIGHT
//KILL - not connected
- #define BEEPER_PIN 8 // H5, SD_WP
+ #define BEEPER_PIN 8 // H5, SD_WP
//on board leds
- #define STAT_LED_RED_LED SERVO0_PIN // C1 (1280-EX1, DEBUG2)
- #define STAT_LED_BLUE_PIN SERVO1_PIN // C0 (1280-EX2, DEBUG3)
+ #define STAT_LED_RED_LED SERVO0_PIN // C1 (1280-EX1, DEBUG2)
+ #define STAT_LED_BLUE_PIN SERVO1_PIN // C0 (1280-EX2, DEBUG3)
#else
// Replicator uses a 3-wire SR controller with HD44780
- #define SR_DATA_PIN 34 // C3
- #define SR_CLK_PIN 35 // C2
- #define SR_STROBE_PIN 33 // C4
+ #define SR_DATA_PIN 34 // C3
+ #define SR_CLK_PIN 35 // C2
+ #define SR_STROBE_PIN 33 // C4
- #define BTN_UP 75 // J4
- #define BTN_DWN 73 // J3
- #define BTN_LFT 72 // J2
- #define BTN_RT 14 // J1
+ #define BTN_UP 75 // J4
+ #define BTN_DWN 73 // J3
+ #define BTN_LFT 72 // J2
+ #define BTN_RT 14 // J1
// Disable encoder
#undef BTN_EN1
#undef BTN_EN2
- #define BEEPER_PIN 4 // G5
+ #define BEEPER_PIN 4 // G5
- #define STAT_LED_RED_PIN 32 // C5
- #define STAT_LED_BLUE_PIN 31 // C6 (Actually green)
+ #define STAT_LED_RED_PIN 32 // C5
+ #define STAT_LED_BLUE_PIN 31 // C6 (Actually green)
#endif
- #define BTN_CENTER 15 // J0
- #define BTN_ENC BTN_CENTER
+ #define BTN_CENTER 15 // J0
+ #define BTN_ENC BTN_CENTER
#endif // HAS_SPI_LCD
//
// SD Card
//
-#define SDSS 53 // B0
-#define SD_DETECT_PIN 9 // H6
+#define SDSS 53 // B0
+#define SD_DETECT_PIN 9 // H6
//
// TMC 220x
@@ -280,19 +280,19 @@
* Software serial
*/
- #define X_SERIAL_TX_PIN 16
- #define X_SERIAL_RX_PIN 17
+ #define X_SERIAL_TX_PIN 16
+ #define X_SERIAL_RX_PIN 17
- #define Y_SERIAL_TX_PIN 18
- #define Y_SERIAL_RX_PIN 19
+ #define Y_SERIAL_TX_PIN 18
+ #define Y_SERIAL_RX_PIN 19
- #define Z_SERIAL_TX_PIN 41
- #define Z_SERIAL_RX_PIN 66
+ #define Z_SERIAL_TX_PIN 41
+ #define Z_SERIAL_RX_PIN 66
- #define E0_SERIAL_TX_PIN 40
- #define E0_SERIAL_RX_PIN 67
+ #define E0_SERIAL_TX_PIN 40
+ #define E0_SERIAL_RX_PIN 67
- #define E1_SERIAL_TX_PIN 37
- #define E1_SERIAL_RX_PIN 68
+ #define E1_SERIAL_TX_PIN 37
+ #define E1_SERIAL_RX_PIN 68
#endif
diff --git a/Marlin/src/pins/mega/pins_MINITRONICS.h b/Marlin/src/pins/mega/pins_MINITRONICS.h
index 5b06e3b835..35d1b59ecb 100644
--- a/Marlin/src/pins/mega/pins_MINITRONICS.h
+++ b/Marlin/src/pins/mega/pins_MINITRONICS.h
@@ -42,102 +42,102 @@
//
// Limit Switches
//
-#define X_MIN_PIN 5
-#define X_MAX_PIN 2
-#define Y_MIN_PIN 2
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 6
-#define Z_MAX_PIN -1
+#define X_MIN_PIN 5
+#define X_MAX_PIN 2
+#define Y_MIN_PIN 2
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 6
+#define Z_MAX_PIN -1
//
// Steppers
//
-#define X_STEP_PIN 48
-#define X_DIR_PIN 47
-#define X_ENABLE_PIN 49
+#define X_STEP_PIN 48
+#define X_DIR_PIN 47
+#define X_ENABLE_PIN 49
-#define Y_STEP_PIN 39 // A6
-#define Y_DIR_PIN 40 // A0
-#define Y_ENABLE_PIN 38
+#define Y_STEP_PIN 39 // A6
+#define Y_DIR_PIN 40 // A0
+#define Y_ENABLE_PIN 38
-#define Z_STEP_PIN 42 // A2
-#define Z_DIR_PIN 43 // A6
-#define Z_ENABLE_PIN 41 // A1
+#define Z_STEP_PIN 42 // A2
+#define Z_DIR_PIN 43 // A6
+#define Z_ENABLE_PIN 41 // A1
-#define E0_STEP_PIN 45
-#define E0_DIR_PIN 44
-#define E0_ENABLE_PIN 27
+#define E0_STEP_PIN 45
+#define E0_DIR_PIN 44
+#define E0_ENABLE_PIN 27
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 35
-#define E1_ENABLE_PIN 37
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 35
+#define E1_ENABLE_PIN 37
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // Analog Input
-#define TEMP_1_PIN 6 // Analog Input
-#define TEMP_BED_PIN 6 // Analog Input
+#define TEMP_0_PIN 7 // Analog Input
+#define TEMP_1_PIN 6 // Analog Input
+#define TEMP_BED_PIN 6 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 7 // EXTRUDER 1
-#define HEATER_1_PIN 8 // EXTRUDER 2
-#define HEATER_BED_PIN 3 // BED
+#define HEATER_0_PIN 7 // EXTRUDER 1
+#define HEATER_1_PIN 8 // EXTRUDER 2
+#define HEATER_BED_PIN 3 // BED
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
//
// Misc. Functions
//
-#define SDSS 16
-#define LED_PIN 46
+#define SDSS 16
+#define LED_PIN 46
//
// LCD / Controller
//
-#define BEEPER_PIN -1
+#define BEEPER_PIN -1
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS 15 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE 11 // SID (MOSI)
- #define LCD_PINS_D4 10 // SCK (CLK) clock
+ #define LCD_PINS_RS 15 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE 11 // SID (MOSI)
+ #define LCD_PINS_D4 10 // SCK (CLK) clock
- #define BTN_EN1 18
- #define BTN_EN2 17
- #define BTN_ENC 25
+ #define BTN_EN1 18
+ #define BTN_EN2 17
+ #define BTN_ENC 25
- #define SD_DETECT_PIN 30
+ #define SD_DETECT_PIN 30
#else
- #define LCD_PINS_RS -1
- #define LCD_PINS_ENABLE -1
+ #define LCD_PINS_RS -1
+ #define LCD_PINS_ENABLE -1
// Buttons are directly attached using keypad
- #define BTN_EN1 -1
- #define BTN_EN2 -1
- #define BTN_ENC -1
+ #define BTN_EN1 -1
+ #define BTN_EN2 -1
+ #define BTN_ENC -1
- #define SD_DETECT_PIN -1 // Minitronics doesn't use this
+ #define SD_DETECT_PIN -1 // Minitronics doesn't use this
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
-#if HAS_CUTTER // assumes we're only doing CNC work (no 3D printing)
+#if HAS_CUTTER // assumes we're only doing CNC work (no 3D printing)
#undef HEATER_BED_PIN
- #undef TEMP_BED_PIN // need to free up some pins but also need to
- #undef TEMP_0_PIN // re-assign them (to unused pins) because Marlin
- #undef TEMP_1_PIN // requires the presence of certain pins or else it
- #define HEATER_BED_PIN 4 // won't compile
- #define TEMP_BED_PIN 50
- #define TEMP_0_PIN 51
- #define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup
- #define SPINDLE_LASER_PWM_PIN 3 // WARNING - LED & resistor pull up to +12/+24V stepper voltage
- #define SPINDLE_DIR_PIN 53
+ #undef TEMP_BED_PIN // need to free up some pins but also need to
+ #undef TEMP_0_PIN // re-assign them (to unused pins) because Marlin
+ #undef TEMP_1_PIN // requires the presence of certain pins or else it
+ #define HEATER_BED_PIN 4 // won't compile
+ #define TEMP_BED_PIN 50
+ #define TEMP_0_PIN 51
+ #define SPINDLE_LASER_ENA_PIN 52 // using A6 because it already has a pullup
+ #define SPINDLE_LASER_PWM_PIN 3 // WARNING - LED & resistor pull up to +12/+24V stepper voltage
+ #define SPINDLE_DIR_PIN 53
#endif
diff --git a/Marlin/src/pins/mega/pins_OVERLORD.h b/Marlin/src/pins/mega/pins_OVERLORD.h
index 80f72d04e9..4e02127c12 100644
--- a/Marlin/src/pins/mega/pins_OVERLORD.h
+++ b/Marlin/src/pins/mega/pins_OVERLORD.h
@@ -37,83 +37,83 @@
//
// Limit Switches
//
-#define X_STOP_PIN 24
-#define Y_STOP_PIN 28
-#define Z_MIN_PIN 46
-#define Z_MAX_PIN 32
+#define X_STOP_PIN 24
+#define Y_STOP_PIN 28
+#define Z_MIN_PIN 46
+#define Z_MAX_PIN 32
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 46 // JP4, Tfeed1
+ #define Z_MIN_PROBE_PIN 46 // JP4, Tfeed1
#endif
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
- #define FIL_RUNOUT_PIN 44 // JP3, Tfeed2
+ #define FIL_RUNOUT_PIN 44 // JP3, Tfeed2
#endif
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 37
-#define Z_DIR_PIN 39
-#define Z_ENABLE_PIN 35
+#define Z_STEP_PIN 37
+#define Z_DIR_PIN 39
+#define Z_ENABLE_PIN 35
-#define E0_STEP_PIN 43
-#define E0_DIR_PIN 45
-#define E0_ENABLE_PIN 41
+#define E0_STEP_PIN 43
+#define E0_DIR_PIN 45
+#define E0_ENABLE_PIN 41
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input - Redundant temp sensor
-#define TEMP_2_PIN 12 // Analog Input
-#define TEMP_3_PIN 14 // Analog Input
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_0_PIN 8 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input - Redundant temp sensor
+#define TEMP_2_PIN 12 // Analog Input
+#define TEMP_3_PIN 14 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_BED_PIN 4
-#define FAN_PIN 7 // material cooling fan
+#define FAN_PIN 7 // material cooling fan
//
// SD Card
//
-#define SDSS 53
-#define SD_DETECT_PIN 38
+#define SDSS 53
+#define SD_DETECT_PIN 38
//
// Misc. Functions
//
-#define LED_PIN 13 // On PCB status led
-#define PS_ON_PIN 12 // For stepper/heater/fan power. Active HIGH.
-#define POWER_LOSS_PIN 34 // Power check - whether hotends/steppers/fans have power
+#define LED_PIN 13 // On PCB status led
+#define PS_ON_PIN 12 // For stepper/heater/fan power. Active HIGH.
+#define POWER_LOSS_PIN 34 // Power check - whether hotends/steppers/fans have power
#if ENABLED(BATTERY_STATUS_AVAILABLE)
#undef BATTERY_STATUS_PIN
- #define BATTERY_STATUS_PIN 26 // Status of power loss battery, whether it is charged (low) or charging (high)
+ #define BATTERY_STATUS_PIN 26 // Status of power loss battery, whether it is charged (low) or charging (high)
#endif
#if ENABLED(INPUT_VOLTAGE_AVAILABLE)
#undef VOLTAGE_DETECTION_PIN
- #define VOLTAGE_DETECTION_PIN 11 // Analog Input - ADC Voltage level of main input
+ #define VOLTAGE_DETECTION_PIN 11 // Analog Input - ADC Voltage level of main input
#endif
//
@@ -121,24 +121,24 @@
//
#if HAS_GRAPHICAL_LCD
// OVERLORD OLED pins
- #define LCD_PINS_RS 20
- #define LCD_PINS_D5 21
- #define LCD_PINS_ENABLE 15
- #define LCD_PINS_D4 14
- #define LCD_PINS_D6 5
- #define LCD_PINS_D7 6
+ #define LCD_PINS_RS 20
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_ENABLE 15
+ #define LCD_PINS_D4 14
+ #define LCD_PINS_D6 5
+ #define LCD_PINS_D7 6
#ifndef LCD_RESET_PIN
- #define LCD_RESET_PIN 5 // LCD_PINS_D6
+ #define LCD_RESET_PIN 5 // LCD_PINS_D6
#endif
#endif
#if ENABLED(NEWPANEL)
- #define BTN_ENC 16 // Enter Pin
- #define BTN_UP 19 // Button UP Pin
- #define BTN_DWN 17 // Button DOWN Pin
+ #define BTN_ENC 16 // Enter Pin
+ #define BTN_UP 19 // Button UP Pin
+ #define BTN_DWN 17 // Button DOWN Pin
#endif
// Additional connectors/pins on the Overlord V1.X board
-#define PCB_VERSION_PIN 22
-#define APPROACH_PIN 11 // JP7, Tpd
-#define GATE_PIN 36 // Threshold, JP6, Tg
+#define PCB_VERSION_PIN 22
+#define APPROACH_PIN 11 // JP7, Tpd
+#define GATE_PIN 36 // Threshold, JP6, Tg
diff --git a/Marlin/src/pins/mega/pins_PICA.h b/Marlin/src/pins/mega/pins_PICA.h
index 4c618bda4e..f00d817d6e 100644
--- a/Marlin/src/pins/mega/pins_PICA.h
+++ b/Marlin/src/pins/mega/pins_PICA.h
@@ -49,95 +49,95 @@
//
// Limit Switches
//
-#define X_MIN_PIN 14
-#define X_MAX_PIN 15
-#define Y_MIN_PIN 16
-#define Y_MAX_PIN 17
-#define Z_MIN_PIN 23
-#define Z_MAX_PIN 22
+#define X_MIN_PIN 14
+#define X_MAX_PIN 15
+#define Y_MIN_PIN 16
+#define Y_MAX_PIN 17
+#define Z_MIN_PIN 23
+#define Z_MAX_PIN 22
//
// Steppers
//
-#define X_STEP_PIN 55
-#define X_DIR_PIN 54
-#define X_ENABLE_PIN 60
+#define X_STEP_PIN 55
+#define X_DIR_PIN 54
+#define X_ENABLE_PIN 60
-#define Y_STEP_PIN 57
-#define Y_DIR_PIN 56
-#define Y_ENABLE_PIN 61
+#define Y_STEP_PIN 57
+#define Y_DIR_PIN 56
+#define Y_ENABLE_PIN 61
-#define Z_STEP_PIN 59
-#define Z_DIR_PIN 58
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 59
+#define Z_DIR_PIN 58
+#define Z_ENABLE_PIN 62
-#define E0_STEP_PIN 67
-#define E0_DIR_PIN 24
-#define E0_ENABLE_PIN 26
+#define E0_STEP_PIN 67
+#define E0_DIR_PIN 24
+#define E0_ENABLE_PIN 26
//
// Temperature Sensors
//
-#define TEMP_0_PIN 9 // Analog Input
-#define TEMP_1_PIN 10
-#define TEMP_BED_PIN 10
-#define TEMP_2_PIN 11
-#define TEMP_3_PIN 12
+#define TEMP_0_PIN 9 // Analog Input
+#define TEMP_1_PIN 10
+#define TEMP_BED_PIN 10
+#define TEMP_2_PIN 11
+#define TEMP_3_PIN 12
//
// Heaters / Fans
//
#ifndef HEATER_0_PIN
- #define HEATER_0_PIN 10 // E0
+ #define HEATER_0_PIN 10 // E0
#endif
#ifndef HEATER_1_PIN
- #define HEATER_1_PIN 2 // E1
+ #define HEATER_1_PIN 2 // E1
#endif
-#define HEATER_BED_PIN 8 // HEAT-BED
+#define HEATER_BED_PIN 8 // HEAT-BED
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
#ifndef FAN_2_PIN
- #define FAN_2_PIN 7
+ #define FAN_2_PIN 7
#endif
-#define SDPOWER_PIN -1
-#define LED_PIN -1
-#define PS_ON_PIN -1
-#define KILL_PIN -1
+#define SDPOWER_PIN -1
+#define LED_PIN -1
+#define PS_ON_PIN -1
+#define KILL_PIN -1
-#define SSR_PIN 6
+#define SSR_PIN 6
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
// SD Support
//
-#define SD_DETECT_PIN 49
-#define SDSS 53
+#define SD_DETECT_PIN 49
+#define SDSS 53
//
// LCD / Controller
//
-#define BEEPER_PIN 29
+#define BEEPER_PIN 29
#if HAS_SPI_LCD
- #define LCD_PINS_RS 33
- #define LCD_PINS_ENABLE 30
- #define LCD_PINS_D4 35
- #define LCD_PINS_D5 32
- #define LCD_PINS_D6 37
- #define LCD_PINS_D7 36
+ #define LCD_PINS_RS 33
+ #define LCD_PINS_ENABLE 30
+ #define LCD_PINS_D4 35
+ #define LCD_PINS_D5 32
+ #define LCD_PINS_D6 37
+ #define LCD_PINS_D7 36
- #define BTN_EN1 47
- #define BTN_EN2 48
- #define BTN_ENC 31
+ #define BTN_EN1 47
+ #define BTN_EN2 48
+ #define BTN_ENC 31
- #define LCD_SDSS 53
+ #define LCD_SDSS 53
#endif
diff --git a/Marlin/src/pins/mega/pins_PICAOLD.h b/Marlin/src/pins/mega/pins_PICAOLD.h
index 88fa1ada29..34861277a8 100644
--- a/Marlin/src/pins/mega/pins_PICAOLD.h
+++ b/Marlin/src/pins/mega/pins_PICAOLD.h
@@ -20,9 +20,9 @@
*
*/
-#define HEATER_0_PIN 9 // E0
-#define HEATER_1_PIN 10 // E1
-#define FAN_PIN 11
-#define FAN2_PIN 12
+#define HEATER_0_PIN 9 // E0
+#define HEATER_1_PIN 10 // E1
+#define FAN_PIN 11
+#define FAN2_PIN 12
#include "pins_PICA.h"
diff --git a/Marlin/src/pins/mega/pins_SILVER_GATE.h b/Marlin/src/pins/mega/pins_SILVER_GATE.h
index bde1f87088..4c79507eab 100644
--- a/Marlin/src/pins/mega/pins_SILVER_GATE.h
+++ b/Marlin/src/pins/mega/pins_SILVER_GATE.h
@@ -27,67 +27,67 @@
#define BOARD_INFO_NAME "Silver Gate"
-#define X_STEP_PIN 43
-#define X_DIR_PIN 44
-#define X_ENABLE_PIN 42
-#define X_MIN_PIN 31
-#define X_MAX_PIN 34
+#define X_STEP_PIN 43
+#define X_DIR_PIN 44
+#define X_ENABLE_PIN 42
+#define X_MIN_PIN 31
+#define X_MAX_PIN 34
-#define Y_STEP_PIN 40
-#define Y_DIR_PIN 41
-#define Y_ENABLE_PIN 39
-#define Y_MIN_PIN 32
-#define Y_MAX_PIN 35
+#define Y_STEP_PIN 40
+#define Y_DIR_PIN 41
+#define Y_ENABLE_PIN 39
+#define Y_MIN_PIN 32
+#define Y_MAX_PIN 35
-#define Z_STEP_PIN 13
-#define Z_DIR_PIN 38
-#define Z_ENABLE_PIN 14
-#define Z_MIN_PIN 33
-#define Z_MAX_PIN 36
+#define Z_STEP_PIN 13
+#define Z_DIR_PIN 38
+#define Z_ENABLE_PIN 14
+#define Z_MIN_PIN 33
+#define Z_MAX_PIN 36
-#define E0_STEP_PIN 27
-#define E0_DIR_PIN 37
-#define E0_ENABLE_PIN 45
+#define E0_STEP_PIN 27
+#define E0_DIR_PIN 37
+#define E0_ENABLE_PIN 45
-#define SDSS 16
+#define SDSS 16
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
+ #define FIL_RUNOUT_PIN 34 // X_MAX unless overridden
#endif
#ifndef FAN_PIN
- #define FAN_PIN 5
+ #define FAN_PIN 5
#endif
-#define HEATER_0_PIN 7
+#define HEATER_0_PIN 7
-#define ORIG_E0_AUTO_FAN_PIN 3 // Use this by NOT overriding E0_AUTO_FAN_PIN
-#define CONTROLLER_FAN_PIN 2
+#define ORIG_E0_AUTO_FAN_PIN 3 // Use this by NOT overriding E0_AUTO_FAN_PIN
+#define CONTROLLER_FAN_PIN 2
-#define TEMP_0_PIN 7 // Analog Input
+#define TEMP_0_PIN 7 // Analog Input
-#define HEATER_BED_PIN 8
-#define TEMP_BED_PIN 6
+#define HEATER_BED_PIN 8
+#define TEMP_BED_PIN 6
#if HAS_GRAPHICAL_LCD
- #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
- #define LCD_PINS_RS 30
- #define LCD_PINS_ENABLE 20
- #define LCD_PINS_D4 25
- #define BEEPER_PIN 29
- #define BTN_EN1 19
- #define BTN_EN2 22
- #define BTN_ENC 24
- #define LCD_BACKLIGHT_PIN 6
+ #if ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920
+ #define LCD_PINS_RS 30
+ #define LCD_PINS_ENABLE 20
+ #define LCD_PINS_D4 25
+ #define BEEPER_PIN 29
+ #define BTN_EN1 19
+ #define BTN_EN2 22
+ #define BTN_ENC 24
+ #define LCD_BACKLIGHT_PIN 6
#if ENABLED(SILVER_GATE_GLCD_CONTROLLER)
- #define KILL_PIN 21
- #define HOME_PIN 28
+ #define KILL_PIN 21
+ #define HOME_PIN 28
#endif
#endif
#endif
-#define SD_DETECT_PIN 15
+#define SD_DETECT_PIN 15
-#define STAT_LED_RED_PIN 23
-#define STAT_LED_BLUE_PIN 26
-#define CASE_LIGHT_PIN 51
+#define STAT_LED_RED_PIN 23
+#define STAT_LED_BLUE_PIN 26
+#define CASE_LIGHT_PIN 51
diff --git a/Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h b/Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
index c011d9daa7..6c53b7ea4e 100644
--- a/Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
+++ b/Marlin/src/pins/mega/pins_WANHAO_ONEPLUS.h
@@ -36,76 +36,76 @@
//
// Limit Switches
//
-#define X_STOP_PIN 19
-#define Y_STOP_PIN 18
-#define Z_STOP_PIN 38
+#define X_STOP_PIN 19
+#define Y_STOP_PIN 18
+#define Z_STOP_PIN 38
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 38
+ #define Z_MIN_PROBE_PIN 38
#endif
//
// Steppers
//
-#define X_STEP_PIN 22
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 57
+#define X_STEP_PIN 22
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 57
-#define Y_STEP_PIN 25
-#define Y_DIR_PIN 26
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 25
+#define Y_DIR_PIN 26
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 29
-#define Z_DIR_PIN 39
-#define Z_ENABLE_PIN 28
+#define Z_STEP_PIN 29
+#define Z_DIR_PIN 39
+#define Z_ENABLE_PIN 28
-#define E0_STEP_PIN 55
-#define E0_DIR_PIN 56
-#define E0_ENABLE_PIN 54
+#define E0_STEP_PIN 55
+#define E0_DIR_PIN 56
+#define E0_ENABLE_PIN 54
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13
-#define TEMP_BED_PIN 14
+#define TEMP_0_PIN 13
+#define TEMP_BED_PIN 14
//
// Heaters / Fans
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 44
-#define FAN_PIN 12 // IO pin. Buffer needed
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 44
+#define FAN_PIN 12 // IO pin. Buffer needed
//
// SD Card
//
-#define SD_DETECT_PIN -1
-#define SDSS 53
+#define SD_DETECT_PIN -1
+#define SDSS 53
//
// Misc. Functions
//
-#define BEEPER_PIN 37
-#define KILL_PIN 64
+#define BEEPER_PIN 37
+#define KILL_PIN 64
//
// LCD / Controller (Integrated MINIPANEL)
//
#if ENABLED(MINIPANEL)
- #define DOGLCD_A0 40
- #define DOGLCD_CS 41
- #define LCD_BACKLIGHT_PIN 65 // Backlight LED on A11/D65
- #define LCD_RESET_PIN 27
+ #define DOGLCD_A0 40
+ #define DOGLCD_CS 41
+ #define LCD_BACKLIGHT_PIN 65 // Backlight LED on A11/D65
+ #define LCD_RESET_PIN 27
- #define BTN_EN1 2
- #define BTN_EN2 3
- #define BTN_ENC 5
+ #define BTN_EN1 2
+ #define BTN_EN2 3
+ #define BTN_ENC 5
// This display has adjustable contrast
- #define LCD_CONTRAST_MIN 0
- #define LCD_CONTRAST_MAX 255
- #define LCD_CONTRAST_INIT LCD_CONTRAST_MAX
+ #define LCD_CONTRAST_MIN 0
+ #define LCD_CONTRAST_MAX 255
+ #define LCD_CONTRAST_INIT LCD_CONTRAST_MAX
#endif
diff --git a/Marlin/src/pins/pins.h b/Marlin/src/pins/pins.h
index 64b9e85ba8..b43ba1cbc6 100644
--- a/Marlin/src/pins/pins.h
+++ b/Marlin/src/pins/pins.h
@@ -188,6 +188,8 @@
#include "ramps/pins_TANGO.h" // ATmega2560 env:mega2560
#elif MB(MKS_GEN_L_V2)
#include "ramps/pins_MKS_GEN_L_V2.h" // ATmega2560 env:mega2560
+#elif MB(COPYMASTER_3D)
+ #include "ramps/pins_COPYMASTER_3D.h" // ATmega2560 env:mega2560
//
// RAMBo and derivatives
@@ -465,53 +467,53 @@
//
#elif MB(STM32F103RE)
- #include "stm32/pins_STM32F1R.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_STM32F1R.h" // STM32F1 env:STM32F103RE
#elif MB(MALYAN_M200)
- #include "stm32/pins_MALYAN_M200.h" // STM32F1 env:STM32F103CB_malyan
+ #include "stm32f1/pins_MALYAN_M200.h" // STM32F1 env:STM32F103CB_malyan
#elif MB(STM3R_MINI)
- #include "stm32/pins_STM3R_MINI.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_STM3R_MINI.h" // STM32F1 env:STM32F103RE
#elif MB(GTM32_PRO_VB)
- #include "stm32/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_GTM32_PRO_VB.h" // STM32F1 env:STM32F103RE
#elif MB(GTM32_MINI_A30)
- #include "stm32/pins_GTM32_MINI_A30.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_GTM32_MINI_A30.h" // STM32F1 env:STM32F103RE
#elif MB(GTM32_MINI)
- #include "stm32/pins_GTM32_MINI.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_GTM32_MINI.h" // STM32F1 env:STM32F103RE
#elif MB(GTM32_REV_B)
- #include "stm32/pins_GTM32_REV_B.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_GTM32_REV_B.h" // STM32F1 env:STM32F103RE
#elif MB(MORPHEUS)
- #include "stm32/pins_MORPHEUS.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_MORPHEUS.h" // STM32F1 env:STM32F103RE
#elif MB(CHITU3D)
- #include "stm32/pins_CHITU3D.h" // STM32F1 env:STM32F103RE
+ #include "stm32f1/pins_CHITU3D.h" // STM32F1 env:STM32F103RE
#elif MB(MKS_ROBIN)
- #include "stm32/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin
+ #include "stm32f1/pins_MKS_ROBIN.h" // STM32F1 env:mks_robin
#elif MB(MKS_ROBIN_MINI)
- #include "stm32/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini
+ #include "stm32f1/pins_MKS_ROBIN_MINI.h" // STM32F1 env:mks_robin_mini
#elif MB(MKS_ROBIN_NANO)
- #include "stm32/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano
+ #include "stm32f1/pins_MKS_ROBIN_NANO.h" // STM32F1 env:mks_robin_nano
#elif MB(MKS_ROBIN_LITE)
- #include "stm32/pins_MKS_ROBIN_LITE.h" // STM32F1 env:mks_robin_lite
+ #include "stm32f1/pins_MKS_ROBIN_LITE.h" // STM32F1 env:mks_robin_lite
#elif MB(BTT_SKR_MINI_V1_1)
- #include "stm32/pins_BTT_SKR_MINI_V1_1.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
+ #include "stm32f1/pins_BTT_SKR_MINI_V1_1.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
#elif MB(BTT_SKR_MINI_E3_V1_0)
- #include "stm32/pins_BTT_SKR_MINI_E3_V1_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
+ #include "stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
#elif MB(BTT_SKR_MINI_E3_V1_2)
- #include "stm32/pins_BTT_SKR_MINI_E3_V1_2.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
+ #include "stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h" // STM32F1 env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
#elif MB(BTT_SKR_E3_DIP)
- #include "stm32/pins_BTT_SKR_E3_DIP.h" // STM32F1 env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
+ #include "stm32f1/pins_BTT_SKR_E3_DIP.h" // STM32F1 env:STM32F103RE_btt env:STM32F103RE_btt_USB env:STM32F103RC_btt env:STM32F103RC_btt_512K env:STM32F103RC_btt_USB env:STM32F103RC_btt_512K_USB
#elif MB(JGAURORA_A5S_A1)
- #include "stm32/pins_JGAURORA_A5S_A1.h" // STM32F1 env:jgaurora_a5s_a1
+ #include "stm32f1/pins_JGAURORA_A5S_A1.h" // STM32F1 env:jgaurora_a5s_a1
#elif MB(FYSETC_AIO_II)
- #include "stm32/pins_FYSETC_AIO_II.h" // STM32F1 env:STM32F103RC_fysetc
+ #include "stm32f1/pins_FYSETC_AIO_II.h" // STM32F1 env:STM32F103RC_fysetc
#elif MB(FYSETC_CHEETAH)
- #include "stm32/pins_FYSETC_CHEETAH.h" // STM32F1 env:STM32F103RC_fysetc
+ #include "stm32f1/pins_FYSETC_CHEETAH.h" // STM32F1 env:STM32F103RC_fysetc
#elif MB(FYSETC_CHEETAH_V12)
- #include "stm32/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:STM32F103RC_fysetc
+ #include "stm32f1/pins_FYSETC_CHEETAH_V12.h" // STM32F1 env:STM32F103RC_fysetc
#elif MB(LONGER3D_LK)
- #include "stm32/pins_LONGER3D_LK.h" // STM32F1 env:STM32F103VE_longer
+ #include "stm32f1/pins_LONGER3D_LK.h" // STM32F1 env:STM32F103VE_longer
#elif MB(MKS_ROBIN_LITE3)
- #include "stm32/pins_MKS_ROBIN_LITE3.h" // STM32F1 env:mks_robin_lite3
+ #include "stm32f1/pins_MKS_ROBIN_LITE3.h" // STM32F1 env:mks_robin_lite3
#elif MB(MKS_ROBIN_PRO)
- #include "stm32/pins_MKS_ROBIN_PRO.h" // STM32F1 env:mks_robin_pro
+ #include "stm32f1/pins_MKS_ROBIN_PRO.h" // STM32F1 env:mks_robin_pro
//
// ARM Cortex-M4F
@@ -527,46 +529,46 @@
//
#elif MB(BEAST)
- #include "stm32/pins_BEAST.h" // STM32F4 env:STM32F4
+ #include "stm32f4/pins_BEAST.h" // STM32F4 env:STM32F4
#elif MB(GENERIC_STM32F4)
- #include "stm32/pins_GENERIC_STM32F4.h" // STM32F4 env:STM32F4
+ #include "stm32f4/pins_GENERIC_STM32F4.h" // STM32F4 env:STM32F4
#elif MB(ARMED)
- #include "stm32/pins_ARMED.h" // STM32F4 env:ARMED
+ #include "stm32f4/pins_ARMED.h" // STM32F4 env:ARMED
#elif MB(RUMBA32_AUS3D)
- #include "stm32/pins_RUMBA32_AUS3D.h" // STM32F4 env:rumba32_f446ve
+ #include "stm32f4/pins_RUMBA32_AUS3D.h" // STM32F4 env:rumba32_f446ve
#elif MB(RUMBA32_MKS)
- #include "stm32/pins_RUMBA32_MKS.h" // STM32F4 env:rumba32_mks
+ #include "stm32f4/pins_RUMBA32_MKS.h" // STM32F4 env:rumba32_mks
#elif MB(BLACK_STM32F407VE)
- #include "stm32/pins_BLACK_STM32F407VE.h" // STM32F4 env:STM32F407VE_black
+ #include "stm32f4/pins_BLACK_STM32F407VE.h" // STM32F4 env:STM32F407VE_black
#elif MB(STEVAL_3DP001V1)
- #include "stm32/pins_STEVAL_3DP001V1.h" // STM32F4 env:STM32F401VE_STEVAL
+ #include "stm32f4/pins_STEVAL_3DP001V1.h" // STM32F4 env:STM32F401VE_STEVAL
#elif MB(BTT_SKR_PRO_V1_1)
- #include "stm32/pins_BTT_SKR_PRO_V1_1.h" // STM32F4 env:BIGTREE_SKR_PRO
+ #include "stm32f4/pins_BTT_SKR_PRO_V1_1.h" // STM32F4 env:BIGTREE_SKR_PRO
#elif MB(BTT_GTR_V1_0)
- #include "stm32/pins_BTT_GTR_V1_0.h" // STM32F4 env:BIGTREE_GTR_V1_0
+ #include "stm32f4/pins_BTT_GTR_V1_0.h" // STM32F4 env:BIGTREE_GTR_V1_0
#elif MB(BTT_BTT002_V1_0)
- #include "stm32/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
+ #include "stm32f4/pins_BTT_BTT002_V1_0.h" // STM32F4 env:BIGTREE_BTT002
#elif MB(LERDGE_K)
- #include "stm32/pins_LERDGE_K.h" // STM32F4 env:STM32F4
+ #include "stm32f4/pins_LERDGE_K.h" // STM32F4 env:STM32F4
#elif MB(LERDGE_X)
- #include "stm32/pins_LERDGE_X.h" // STM32F4 env:STM32F4
+ #include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:STM32F4
#elif MB(VAKE403D)
- #include "stm32/pins_VAKE403D.h" // STM32F4 env:STM32F4
+ #include "stm32f4/pins_VAKE403D.h" // STM32F4 env:STM32F4
#elif MB(FYSETC_S6)
- #include "stm32/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6
+ #include "stm32f4/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6
#elif MB(FLYF407ZG)
- #include "stm32/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
+ #include "stm32f4/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
#elif MB(MKS_ROBIN2)
- #include "pins_MKS_ROBIN2.h" // STM32F4 env:MKS_ROBIN2
+ #include "stm32f4/pins_MKS_ROBIN2.h" // STM32F4 env:MKS_ROBIN2
//
// ARM Cortex M7
//
#elif MB(THE_BORG)
- #include "stm32/pins_THE_BORG.h" // STM32F7 env:STM32F7
+ #include "stm32f7/pins_THE_BORG.h" // STM32F7 env:STM32F7
#elif MB(REMRAM_V1)
- #include "stm32/pins_REMRAM_V1.h" // STM32F7 env:STM32F7
+ #include "stm32f7/pins_REMRAM_V1.h" // STM32F7 env:STM32F7
//
// Espressif ESP32
diff --git a/Marlin/src/pins/rambo/pins_EINSY_RAMBO.h b/Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
index 4cfa326165..430fa170e1 100644
--- a/Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
+++ b/Marlin/src/pins/rambo/pins_EINSY_RAMBO.h
@@ -39,10 +39,10 @@
#endif
// TMC2130 Diag Pins (currently just for reference)
-#define X_DIAG_PIN 64
-#define Y_DIAG_PIN 69
-#define Z_DIAG_PIN 68
-#define E0_DIAG_PIN 65
+#define X_DIAG_PIN 64
+#define Y_DIAG_PIN 69
+#define Z_DIAG_PIN 68
+#define E0_DIAG_PIN 65
//
// Limit Switches
@@ -55,20 +55,20 @@
#if DISABLED(SENSORLESS_HOMING)
- #define X_STOP_PIN 12
- #define Y_STOP_PIN 11
- #define Z_STOP_PIN 10
+ #define X_STOP_PIN 12
+ #define Y_STOP_PIN 11
+ #define Z_STOP_PIN 10
#else
- #define X_STOP_PIN X_DIAG_PIN
- #define Y_STOP_PIN Y_DIAG_PIN
+ #define X_STOP_PIN X_DIAG_PIN
+ #define Y_STOP_PIN Y_DIAG_PIN
#if ENABLED(BLTOUCH)
- #define Z_STOP_PIN 11 // Y-MIN
- #define SERVO0_PIN 10 // Z-MIN
+ #define Z_STOP_PIN 11 // Y-MIN
+ #define SERVO0_PIN 10 // Z-MIN
#else
- #define Z_STOP_PIN 10
+ #define Z_STOP_PIN 10
#endif
#endif
@@ -77,104 +77,104 @@
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 10
+ #define Z_MIN_PROBE_PIN 10
#endif
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 49
-#define X_ENABLE_PIN 29
-#define X_CS_PIN 41
+#define X_STEP_PIN 37
+#define X_DIR_PIN 49
+#define X_ENABLE_PIN 29
+#define X_CS_PIN 41
-#define Y_STEP_PIN 36
-#define Y_DIR_PIN 48
-#define Y_ENABLE_PIN 28
-#define Y_CS_PIN 39
+#define Y_STEP_PIN 36
+#define Y_DIR_PIN 48
+#define Y_ENABLE_PIN 28
+#define Y_CS_PIN 39
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 47
-#define Z_ENABLE_PIN 27
-#define Z_CS_PIN 67
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 47
+#define Z_ENABLE_PIN 27
+#define Z_CS_PIN 67
-#define E0_STEP_PIN 34
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 26
-#define E0_CS_PIN 66
+#define E0_STEP_PIN 34
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 26
+#define E0_CS_PIN 66
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 8
+ #define FAN_PIN 8
#endif
#ifndef FAN1_PIN
- #define FAN1_PIN 6
+ #define FAN1_PIN 6
#endif
//
// Misc. Functions
//
-#define SDSS 77
-#define LED_PIN 13
-#define CASE_LIGHT_PIN 9
+#define SDSS 77
+#define LED_PIN 13
+#define CASE_LIGHT_PIN 9
//
// M3/M4/M5 - Spindle/Laser Control
//
// use P1 connector for spindle pins
-#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
-#define SPINDLE_DIR_PIN 19
+#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
+#define SPINDLE_DIR_PIN 19
//
// Průša i3 MK2 Multiplexer Support
//
-#define E_MUX0_PIN 17
-#define E_MUX1_PIN 16
-#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
+#define E_MUX0_PIN 17
+#define E_MUX1_PIN 16
+#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
//
// LCD / Controller
//
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
- #define KILL_PIN 32
+ #define KILL_PIN 32
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS 85
- #define LCD_PINS_ENABLE 71
- #define LCD_PINS_D4 70
- #define BTN_EN1 61
- #define BTN_EN2 59
+ #define LCD_PINS_RS 85
+ #define LCD_PINS_ENABLE 71
+ #define LCD_PINS_D4 70
+ #define BTN_EN1 61
+ #define BTN_EN2 59
#else
- #define LCD_PINS_RS 82
- #define LCD_PINS_ENABLE 61
- #define LCD_PINS_D4 59
- #define LCD_PINS_D5 70
- #define LCD_PINS_D6 85
- #define LCD_PINS_D7 71
- #define BTN_EN1 14
- #define BTN_EN2 72
+ #define LCD_PINS_RS 82
+ #define LCD_PINS_ENABLE 61
+ #define LCD_PINS_D4 59
+ #define LCD_PINS_D5 70
+ #define LCD_PINS_D6 85
+ #define LCD_PINS_D7 71
+ #define BTN_EN1 14
+ #define BTN_EN2 72
#endif
- #define BTN_ENC 9 // AUX-2
- #define BEEPER_PIN 84 // AUX-4
- #define SD_DETECT_PIN 15
+ #define BTN_ENC 9 // AUX-2
+ #define BEEPER_PIN 84 // AUX-4
+ #define SD_DETECT_PIN 15
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/rambo/pins_EINSY_RETRO.h b/Marlin/src/pins/rambo/pins_EINSY_RETRO.h
index 2bc577313e..6e8463d0bd 100644
--- a/Marlin/src/pins/rambo/pins_EINSY_RETRO.h
+++ b/Marlin/src/pins/rambo/pins_EINSY_RETRO.h
@@ -39,10 +39,10 @@
#endif
// TMC2130 Diag Pins
-#define X_DIAG_PIN 64
-#define Y_DIAG_PIN 69
-#define Z_DIAG_PIN 68
-#define E0_DIAG_PIN 65
+#define X_DIAG_PIN 64
+#define Y_DIAG_PIN 69
+#define Z_DIAG_PIN 68
+#define E0_DIAG_PIN 65
//
// Limit Switches
@@ -55,141 +55,141 @@
#if DISABLED(SENSORLESS_HOMING)
- #define X_MIN_PIN 12 // X-
- #define Y_MIN_PIN 11 // Y-
- #define Z_MIN_PIN 10 // Z-
- #define X_MAX_PIN 81 // X+
- #define Y_MAX_PIN 57 // Y+
+ #define X_MIN_PIN 12 // X-
+ #define Y_MIN_PIN 11 // Y-
+ #define Z_MIN_PIN 10 // Z-
+ #define X_MAX_PIN 81 // X+
+ #define Y_MAX_PIN 57 // Y+
#else
#if X_HOME_DIR < 0
- #define X_MIN_PIN X_DIAG_PIN
- #define X_MAX_PIN 81 // X+
+ #define X_MIN_PIN X_DIAG_PIN
+ #define X_MAX_PIN 81 // X+
#else
- #define X_MIN_PIN 12 // X-
- #define X_MAX_PIN X_DIAG_PIN
+ #define X_MIN_PIN 12 // X-
+ #define X_MAX_PIN X_DIAG_PIN
#endif
#if Y_HOME_DIR < 0
- #define Y_MIN_PIN Y_DIAG_PIN
- #define Y_MAX_PIN 57 // Y+
+ #define Y_MIN_PIN Y_DIAG_PIN
+ #define Y_MAX_PIN 57 // Y+
#else
- #define Y_MIN_PIN 11 // Y-
- #define Y_MAX_PIN Y_DIAG_PIN
+ #define Y_MIN_PIN 11 // Y-
+ #define Y_MAX_PIN Y_DIAG_PIN
#endif
#if ENABLED(BLTOUCH)
- #define Z_MIN_PIN 11 // Y-MIN
- #define SERVO0_PIN 10 // Z-MIN
+ #define Z_MIN_PIN 11 // Y-MIN
+ #define SERVO0_PIN 10 // Z-MIN
#else
- #define Z_MIN_PIN 10
+ #define Z_MIN_PIN 10
#endif
#endif
-#define Z_MAX_PIN 7
+#define Z_MAX_PIN 7
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 10
+ #define Z_MIN_PROBE_PIN 10
#endif
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 49
-#define X_ENABLE_PIN 29
-#define X_CS_PIN 41
+#define X_STEP_PIN 37
+#define X_DIR_PIN 49
+#define X_ENABLE_PIN 29
+#define X_CS_PIN 41
-#define Y_STEP_PIN 36
-#define Y_DIR_PIN 48
-#define Y_ENABLE_PIN 28
-#define Y_CS_PIN 39
+#define Y_STEP_PIN 36
+#define Y_DIR_PIN 48
+#define Y_ENABLE_PIN 28
+#define Y_CS_PIN 39
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 47
-#define Z_ENABLE_PIN 27
-#define Z_CS_PIN 67
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 47
+#define Z_ENABLE_PIN 27
+#define Z_CS_PIN 67
-#define E0_STEP_PIN 34
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 26
-#define E0_CS_PIN 66
+#define E0_STEP_PIN 34
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 26
+#define E0_CS_PIN 66
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 8
+ #define FAN_PIN 8
#endif
-#define FAN1_PIN 6
+#define FAN1_PIN 6
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define CASE_LIGHT_PIN 9
+#define SDSS 53
+#define LED_PIN 13
+#define CASE_LIGHT_PIN 9
//
// M3/M4/M5 - Spindle/Laser Control
//
// use P1 connector for spindle pins
-#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
-#define SPINDLE_DIR_PIN 19
+#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
+#define SPINDLE_DIR_PIN 19
//
// Průša i3 MK2 Multiplexer Support
//
-#define E_MUX0_PIN 17
-#define E_MUX1_PIN 16
-#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
+#define E_MUX0_PIN 17
+#define E_MUX1_PIN 16
+#define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
//
// LCD / Controller
//
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
- #define KILL_PIN 32
+ #define KILL_PIN 32
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS 85
- #define LCD_PINS_ENABLE 71
- #define LCD_PINS_D4 70
- #define BTN_EN1 18
- #define BTN_EN2 19
+ #define LCD_PINS_RS 85
+ #define LCD_PINS_ENABLE 71
+ #define LCD_PINS_D4 70
+ #define BTN_EN1 18
+ #define BTN_EN2 19
#else
- #define LCD_PINS_RS 82
- #define LCD_PINS_ENABLE 18 // On 0.6b, use 61
- #define LCD_PINS_D4 19 // On 0.6b, use 59
- #define LCD_PINS_D5 70
- #define LCD_PINS_D6 85
- #define LCD_PINS_D7 71
- #define BTN_EN1 14
- #define BTN_EN2 72
+ #define LCD_PINS_RS 82
+ #define LCD_PINS_ENABLE 18 // On 0.6b, use 61
+ #define LCD_PINS_D4 19 // On 0.6b, use 59
+ #define LCD_PINS_D5 70
+ #define LCD_PINS_D6 85
+ #define LCD_PINS_D7 71
+ #define BTN_EN1 14
+ #define BTN_EN2 72
#endif
- #define BTN_ENC 9 // AUX-2
- #define BEEPER_PIN 84 // AUX-4
+ #define BTN_ENC 9 // AUX-2
+ #define BEEPER_PIN 84 // AUX-4
- #define SD_DETECT_PIN 15
+ #define SD_DETECT_PIN 15
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/rambo/pins_MINIRAMBO.h b/Marlin/src/pins/rambo/pins_MINIRAMBO.h
index 50aec546a6..18bc3ddd16 100644
--- a/Marlin/src/pins/rambo/pins_MINIRAMBO.h
+++ b/Marlin/src/pins/rambo/pins_MINIRAMBO.h
@@ -38,104 +38,104 @@
//
// Limit Switches
//
-#define X_MIN_PIN 12
-#define X_MAX_PIN 30
-#define Y_MIN_PIN 11
-#define Y_MAX_PIN 24
-#define Z_MIN_PIN 10
-#define Z_MAX_PIN 23
+#define X_MIN_PIN 12
+#define X_MAX_PIN 30
+#define Y_MIN_PIN 11
+#define Y_MAX_PIN 24
+#define Z_MIN_PIN 10
+#define Z_MAX_PIN 23
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 23
+ #define Z_MIN_PROBE_PIN 23
#endif
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 48
-#define X_ENABLE_PIN 29
+#define X_STEP_PIN 37
+#define X_DIR_PIN 48
+#define X_ENABLE_PIN 29
-#define Y_STEP_PIN 36
-#define Y_DIR_PIN 49
-#define Y_ENABLE_PIN 28
+#define Y_STEP_PIN 36
+#define Y_DIR_PIN 49
+#define Y_ENABLE_PIN 28
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 47
-#define Z_ENABLE_PIN 27
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 47
+#define Z_ENABLE_PIN 27
-#define E0_STEP_PIN 34
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 26
+#define E0_STEP_PIN 34
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 26
// Microstepping pins - Mapping not from fastio.h (?)
-#define X_MS1_PIN 40
-#define X_MS2_PIN 41
-#define Y_MS1_PIN 69
-#define Y_MS2_PIN 39
-#define Z_MS1_PIN 68
-#define Z_MS2_PIN 67
-#define E0_MS1_PIN 65
-#define E0_MS2_PIN 66
+#define X_MS1_PIN 40
+#define X_MS2_PIN 41
+#define Y_MS1_PIN 69
+#define Y_MS2_PIN 39
+#define Z_MS1_PIN 68
+#define Z_MS2_PIN 67
+#define E0_MS1_PIN 65
+#define E0_MS2_PIN 66
-#define MOTOR_CURRENT_PWM_XY_PIN 46
-#define MOTOR_CURRENT_PWM_Z_PIN 45
-#define MOTOR_CURRENT_PWM_E_PIN 44
+#define MOTOR_CURRENT_PWM_XY_PIN 46
+#define MOTOR_CURRENT_PWM_Z_PIN 45
+#define MOTOR_CURRENT_PWM_E_PIN 44
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
#ifndef MOTOR_CURRENT_PWM_RANGE
- #define MOTOR_CURRENT_PWM_RANGE 2000
+ #define MOTOR_CURRENT_PWM_RANGE 2000
#endif
#define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250}
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 3
-#define HEATER_1_PIN 7
+#define HEATER_0_PIN 3
+#define HEATER_1_PIN 7
#if !MB(MINIRAMBO_10A)
- #define HEATER_2_PIN 6
+ #define HEATER_2_PIN 6
#endif
-#define HEATER_BED_PIN 4
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 8
+ #define FAN_PIN 8
#endif
-#define FAN1_PIN 6
+#define FAN1_PIN 6
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
#if !MB(MINIRAMBO_10A)
- #define CASE_LIGHT_PIN 9
+ #define CASE_LIGHT_PIN 9
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
// use P1 connector for spindle pins
-#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
-#define SPINDLE_DIR_PIN 19
+#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 18 // Pullup!
+#define SPINDLE_DIR_PIN 19
//
// Průša i3 MK2 Multiplexer Support
//
-#define E_MUX0_PIN 17
-#define E_MUX1_PIN 16
+#define E_MUX0_PIN 17
+#define E_MUX1_PIN 16
#if !MB(MINIRAMBO_10A)
- #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
+ #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
#endif
//
@@ -144,46 +144,46 @@
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
#if !MB(MINIRAMBO_10A)
- #define KILL_PIN 32
+ #define KILL_PIN 32
#endif
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
#if MB(MINIRAMBO_10A)
- #define BEEPER_PIN 78
+ #define BEEPER_PIN 78
- #define BTN_EN1 80
- #define BTN_EN2 73
- #define BTN_ENC 21
+ #define BTN_EN1 80
+ #define BTN_EN2 73
+ #define BTN_ENC 21
- #define LCD_PINS_RS 38
- #define LCD_PINS_ENABLE 5
- #define LCD_PINS_D4 14
- #define LCD_PINS_D5 15
- #define LCD_PINS_D6 32
- #define LCD_PINS_D7 31
+ #define LCD_PINS_RS 38
+ #define LCD_PINS_ENABLE 5
+ #define LCD_PINS_D4 14
+ #define LCD_PINS_D5 15
+ #define LCD_PINS_D6 32
+ #define LCD_PINS_D7 31
- #define SD_DETECT_PIN 72
+ #define SD_DETECT_PIN 72
- #else // !MINIRAMBO_10A
+ #else // !MINIRAMBO_10A
// AUX-4
- #define BEEPER_PIN 84
+ #define BEEPER_PIN 84
// AUX-2
- #define BTN_EN1 14
- #define BTN_EN2 72
- #define BTN_ENC 9
+ #define BTN_EN1 14
+ #define BTN_EN2 72
+ #define BTN_ENC 9
- #define LCD_PINS_RS 82
- #define LCD_PINS_ENABLE 18
- #define LCD_PINS_D4 19
- #define LCD_PINS_D5 70
- #define LCD_PINS_D6 85
- #define LCD_PINS_D7 71
+ #define LCD_PINS_RS 82
+ #define LCD_PINS_ENABLE 18
+ #define LCD_PINS_D4 19
+ #define LCD_PINS_D5 70
+ #define LCD_PINS_D6 85
+ #define LCD_PINS_D7 71
- #define SD_DETECT_PIN 15
+ #define SD_DETECT_PIN 15
#endif // !MINIRAMBO_10A
diff --git a/Marlin/src/pins/rambo/pins_RAMBO.h b/Marlin/src/pins/rambo/pins_RAMBO.h
index 2e52e9427c..0a443cc19a 100644
--- a/Marlin/src/pins/rambo/pins_RAMBO.h
+++ b/Marlin/src/pins/rambo/pins_RAMBO.h
@@ -50,64 +50,64 @@
//
// Servos
//
-#define SERVO0_PIN 22 // Motor header MX1
-#define SERVO1_PIN 23 // Motor header MX2
-#define SERVO2_PIN 24 // Motor header MX3
-#define SERVO3_PIN 5 // PWM header pin 5
+#define SERVO0_PIN 22 // Motor header MX1
+#define SERVO1_PIN 23 // Motor header MX2
+#define SERVO2_PIN 24 // Motor header MX3
+#define SERVO3_PIN 5 // PWM header pin 5
//
// Limit Switches
//
-#define X_MIN_PIN 12
-#define X_MAX_PIN 24
-#define Y_MIN_PIN 11
-#define Y_MAX_PIN 23
-#define Z_MIN_PIN 10
-#define Z_MAX_PIN 30
+#define X_MIN_PIN 12
+#define X_MAX_PIN 24
+#define Y_MIN_PIN 11
+#define Y_MAX_PIN 23
+#define Z_MIN_PIN 10
+#define Z_MAX_PIN 30
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 30
+ #define Z_MIN_PROBE_PIN 30
#endif
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 48
-#define X_ENABLE_PIN 29
+#define X_STEP_PIN 37
+#define X_DIR_PIN 48
+#define X_ENABLE_PIN 29
-#define Y_STEP_PIN 36
-#define Y_DIR_PIN 49
-#define Y_ENABLE_PIN 28
+#define Y_STEP_PIN 36
+#define Y_DIR_PIN 49
+#define Y_ENABLE_PIN 28
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 47
-#define Z_ENABLE_PIN 27
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 47
+#define Z_ENABLE_PIN 27
-#define E0_STEP_PIN 34
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 26
+#define E0_STEP_PIN 34
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 26
-#define E1_STEP_PIN 33
-#define E1_DIR_PIN 42
-#define E1_ENABLE_PIN 25
+#define E1_STEP_PIN 33
+#define E1_DIR_PIN 42
+#define E1_ENABLE_PIN 25
// Microstepping pins - Mapping not from fastio.h (?)
-#define X_MS1_PIN 40
-#define X_MS2_PIN 41
-#define Y_MS1_PIN 69
-#define Y_MS2_PIN 39
-#define Z_MS1_PIN 68
-#define Z_MS2_PIN 67
-#define E0_MS1_PIN 65
-#define E0_MS2_PIN 66
-#define E1_MS1_PIN 63
-#define E1_MS2_PIN 64
+#define X_MS1_PIN 40
+#define X_MS2_PIN 41
+#define Y_MS1_PIN 69
+#define Y_MS2_PIN 39
+#define Z_MS1_PIN 68
+#define Z_MS2_PIN 67
+#define E0_MS1_PIN 65
+#define E0_MS2_PIN 66
+#define E1_MS1_PIN 63
+#define E1_MS2_PIN 64
-#define DIGIPOTSS_PIN 38
+#define DIGIPOTSS_PIN 38
#define DIGIPOT_CHANNELS { 4,5,3,0,1 } // X Y Z E0 E1 digipot channels to stepper driver mapping
#ifndef DIGIPOT_MOTOR_CURRENT
#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
@@ -116,122 +116,122 @@
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 7
-#define HEATER_2_PIN 6
-#define HEATER_BED_PIN 3
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 7
+#define HEATER_2_PIN 6
+#define HEATER_BED_PIN 3
#ifndef FAN_PIN
- #define FAN_PIN 8
+ #define FAN_PIN 8
#endif
-#define FAN1_PIN 6
-#define FAN2_PIN 2
+#define FAN1_PIN 6
+#define FAN2_PIN 2
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 4
-#define CASE_LIGHT_PIN 46
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 4
+#define CASE_LIGHT_PIN 46
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 3 // Analog Input
+ #define FILWIDTH_PIN 3 // Analog Input
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 31 // Pullup!
-#define SPINDLE_DIR_PIN 32
+#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 31 // Pullup!
+#define SPINDLE_DIR_PIN 32
//
// M7/M8/M9 - Coolant Control
//
-#define COOLANT_MIST_PIN 22
-#define COOLANT_FLOOD_PIN 44
+#define COOLANT_MIST_PIN 22
+#define COOLANT_FLOOD_PIN 44
//
// Průša i3 MK2 Multiplexer Support
//
-#define E_MUX0_PIN 17
-#define E_MUX1_PIN 16
-#define E_MUX2_PIN 84 // 84 in MK2 Firmware
+#define E_MUX0_PIN 17
+#define E_MUX1_PIN 16
+#define E_MUX2_PIN 84 // 84 in MK2 Firmware
//
// LCD / Controller
//
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL
- #define KILL_PIN 80
+ #define KILL_PIN 80
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL
- #define LCD_PINS_RS 70
- #define LCD_PINS_ENABLE 71
- #define LCD_PINS_D4 72
- #define LCD_PINS_D5 73
- #define LCD_PINS_D6 74
- #define LCD_PINS_D7 75
+ #define LCD_PINS_RS 70
+ #define LCD_PINS_ENABLE 71
+ #define LCD_PINS_D4 72
+ #define LCD_PINS_D5 73
+ #define LCD_PINS_D6 74
+ #define LCD_PINS_D7 75
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN 44
+ #define BEEPER_PIN 44
// NB: Panucatt's Viki 2.0 wiring diagram (v1.2) indicates that the
// beeper/buzzer is connected to pin 33; however, the pin used in the
// diagram is actually pin 44, so this is correct.
- #define DOGLCD_A0 70
- #define DOGLCD_CS 71
+ #define DOGLCD_A0 70
+ #define DOGLCD_CS 71
#define LCD_SCREEN_ROT_180
- #define BTN_EN1 85
- #define BTN_EN2 84
- #define BTN_ENC 83
+ #define BTN_EN1 85
+ #define BTN_EN2 84
+ #define BTN_ENC 83
- #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
+ #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
- #define STAT_LED_RED_PIN 22
- #define STAT_LED_BLUE_PIN 32
+ #define STAT_LED_RED_PIN 22
+ #define STAT_LED_BLUE_PIN 32
- #else // !VIKI2 && !miniVIKI
+ #else // !VIKI2 && !miniVIKI
- #define BEEPER_PIN 79 // AUX-4
+ #define BEEPER_PIN 79 // AUX-4
// AUX-2
- #define BTN_EN1 76
- #define BTN_EN2 77
- #define BTN_ENC 78
+ #define BTN_EN1 76
+ #define BTN_EN2 77
+ #define BTN_ENC 78
- #define SD_DETECT_PIN 81
+ #define SD_DETECT_PIN 81
#endif // !VIKI2 && !miniVIKI
- #else // !NEWPANEL - old style panel with shift register
+ #else // !NEWPANEL - old style panel with shift register
// No Beeper added
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
// Buttons attached to a shift register
// Not wired yet
- //#define SHIFT_CLK 38
- //#define SHIFT_LD 42
- //#define SHIFT_OUT 40
- //#define SHIFT_EN 17
+ //#define SHIFT_CLK 38
+ //#define SHIFT_LD 42
+ //#define SHIFT_OUT 40
+ //#define SHIFT_EN 17
- #define LCD_PINS_RS 75
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define LCD_PINS_RS 75
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
#endif // !NEWPANEL
diff --git a/Marlin/src/pins/rambo/pins_SCOOVO_X9H.h b/Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
index 2bb6e9b979..49237c7062 100644
--- a/Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
+++ b/Marlin/src/pins/rambo/pins_SCOOVO_X9H.h
@@ -34,126 +34,126 @@
//
// Servos
//
-#define SERVO0_PIN 22 // Motor header MX1
-#define SERVO1_PIN 23 // Motor header MX2
-#define SERVO2_PIN 24 // Motor header MX3
-#define SERVO3_PIN 5 // PWM header pin 5
+#define SERVO0_PIN 22 // Motor header MX1
+#define SERVO1_PIN 23 // Motor header MX2
+#define SERVO2_PIN 24 // Motor header MX3
+#define SERVO3_PIN 5 // PWM header pin 5
//
// Limit Switches
//
-#define X_MIN_PIN 12
-#define X_MAX_PIN 24
-#define Y_MIN_PIN 11
-#define Y_MAX_PIN 23
-#define Z_MIN_PIN 10
-#define Z_MAX_PIN 30
+#define X_MIN_PIN 12
+#define X_MAX_PIN 24
+#define Y_MIN_PIN 11
+#define Y_MAX_PIN 23
+#define Z_MIN_PIN 10
+#define Z_MAX_PIN 30
//
// Z Probe (when not Z_MIN_IN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 30
+ #define Z_MIN_PROBE_PIN 30
#endif
//
// Steppers
//
-#define X_STEP_PIN 37
-#define X_DIR_PIN 48
-#define X_ENABLE_PIN 29
+#define X_STEP_PIN 37
+#define X_DIR_PIN 48
+#define X_ENABLE_PIN 29
-#define Y_STEP_PIN 36
-#define Y_DIR_PIN 49
-#define Y_ENABLE_PIN 28
+#define Y_STEP_PIN 36
+#define Y_DIR_PIN 49
+#define Y_ENABLE_PIN 28
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 47
-#define Z_ENABLE_PIN 27
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 47
+#define Z_ENABLE_PIN 27
-#define E0_STEP_PIN 34
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 26
+#define E0_STEP_PIN 34
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 26
-#define E1_STEP_PIN 33
-#define E1_DIR_PIN 42
-#define E1_ENABLE_PIN 25
+#define E1_STEP_PIN 33
+#define E1_DIR_PIN 42
+#define E1_ENABLE_PIN 25
// Microstepping pins - Mapping not from fastio.h (?)
-#define X_MS1_PIN 40
-#define X_MS2_PIN 41
-#define Y_MS1_PIN 69
-#define Y_MS2_PIN 39
-#define Z_MS1_PIN 68
-#define Z_MS2_PIN 67
-#define E0_MS1_PIN 65
-#define E0_MS2_PIN 66
-#define E1_MS1_PIN 63
-#define E1_MS2_PIN 64
+#define X_MS1_PIN 40
+#define X_MS2_PIN 41
+#define Y_MS1_PIN 69
+#define Y_MS2_PIN 39
+#define Z_MS1_PIN 68
+#define Z_MS2_PIN 67
+#define E0_MS1_PIN 65
+#define E0_MS2_PIN 66
+#define E1_MS1_PIN 63
+#define E1_MS2_PIN 64
-#define DIGIPOTSS_PIN 38
+#define DIGIPOTSS_PIN 38
#define DIGIPOT_CHANNELS {4,5,3,0,1} // X Y Z E0 E1 digipot channels to stepper driver mapping
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_BED_PIN 7 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_BED_PIN 7 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 7
-#define HEATER_BED_PIN 3
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 7
+#define HEATER_BED_PIN 3
#ifndef FAN_PIN
- #define FAN_PIN 8
+ #define FAN_PIN 8
#endif
-#define FAN1_PIN 6
-#define FAN2_PIN 2
+#define FAN1_PIN 6
+#define FAN2_PIN 2
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 4
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 4
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 3 // Analog Input
+ #define FILWIDTH_PIN 3 // Analog Input
#endif
//
// LCD / Controller
//
-#define LCD_PINS_RS 70 // Ext2_5
-#define LCD_PINS_ENABLE 71 // Ext2_7
-#define LCD_PINS_D4 72 // Ext2_9 ?
-#define LCD_PINS_D5 73 // Ext2_11 ?
-#define LCD_PINS_D6 74 // Ext2_13
-#define LCD_PINS_D7 75 // Ext2_15 ?
-#define BEEPER_PIN -1
+#define LCD_PINS_RS 70 // Ext2_5
+#define LCD_PINS_ENABLE 71 // Ext2_7
+#define LCD_PINS_D4 72 // Ext2_9 ?
+#define LCD_PINS_D5 73 // Ext2_11 ?
+#define LCD_PINS_D6 74 // Ext2_13
+#define LCD_PINS_D7 75 // Ext2_15 ?
+#define BEEPER_PIN -1
-#define BTN_HOME 80 // Ext_16
-#define BTN_CENTER 81 // Ext_14
-#define BTN_ENC BTN_CENTER
-#define BTN_RIGHT 82 // Ext_12
-#define BTN_LEFT 83 // Ext_10
-#define BTN_UP 84 // Ext2_8
-#define BTN_DOWN 85 // Ext2_6
+#define BTN_HOME 80 // Ext_16
+#define BTN_CENTER 81 // Ext_14
+#define BTN_ENC BTN_CENTER
+#define BTN_RIGHT 82 // Ext_12
+#define BTN_LEFT 83 // Ext_10
+#define BTN_UP 84 // Ext2_8
+#define BTN_DOWN 85 // Ext2_6
-#define HOME_PIN BTN_HOME
+#define HOME_PIN BTN_HOME
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN 44
+ #define BEEPER_PIN 44
// Pins for DOGM SPI LCD Support
- #define DOGLCD_A0 70
- #define DOGLCD_CS 71
+ #define DOGLCD_A0 70
+ #define DOGLCD_CS 71
#define LCD_SCREEN_ROT_180
- #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
+ #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
- #define STAT_LED_RED_PIN 22
- #define STAT_LED_BLUE_PIN 32
+ #define STAT_LED_RED_PIN 22
+ #define STAT_LED_BLUE_PIN 32
#endif // VIKI2/miniVIKI
diff --git a/Marlin/src/pins/ramps/pins_3DRAG.h b/Marlin/src/pins/ramps/pins_3DRAG.h
index 3f537a6663..69d2ac2088 100644
--- a/Marlin/src/pins/ramps/pins_3DRAG.h
+++ b/Marlin/src/pins/ramps/pins_3DRAG.h
@@ -40,11 +40,11 @@
//
// Heaters / Fans
//
-#define RAMPS_D8_PIN 9
-#define RAMPS_D9_PIN 8
-#define MOSFET_D_PIN 12
+#define RAMPS_D8_PIN 9
+#define RAMPS_D9_PIN 8
+#define MOSFET_D_PIN 12
-#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
+#define CASE_LIGHT_PIN -1 // Hardware PWM but one is not available on expansion header
#include "pins_RAMPS.h"
@@ -57,21 +57,21 @@
// Steppers
//
#undef Z_ENABLE_PIN
-#define Z_ENABLE_PIN 63
+#define Z_ENABLE_PIN 63
//
// Heaters / Fans
//
-#define HEATER_2_PIN 6
+#define HEATER_2_PIN 6
//
// Misc. Functions
//
#undef SDSS
-#define SDSS 25
+#define SDSS 25
#undef SD_DETECT_PIN
-#define SD_DETECT_PIN 53
+#define SD_DETECT_PIN 53
//
// LCD / Controller
@@ -85,24 +85,24 @@
#undef LCD_PINS_D5
#undef LCD_PINS_D6
#undef LCD_PINS_D7
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 37
- #define LCD_PINS_D5 35
- #define LCD_PINS_D6 33
- #define LCD_PINS_D7 31
+ #define LCD_PINS_RS 27
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 37
+ #define LCD_PINS_D5 35
+ #define LCD_PINS_D6 33
+ #define LCD_PINS_D7 31
// Buttons
#undef BTN_EN1
#undef BTN_EN2
#undef BTN_ENC
- #define BTN_EN1 16
- #define BTN_EN2 17
- #define BTN_ENC 23
+ #define BTN_EN1 16
+ #define BTN_EN2 17
+ #define BTN_ENC 23
#else
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#endif // HAS_SPI_LCD && NEWPANEL
@@ -137,7 +137,7 @@
*
* Note: Socket names vary from vendor to vendor
*/
-#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
+#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
#undef SPINDLE_LASER_ENA_PIN
#undef SPINDLE_DIR_PIN
@@ -149,14 +149,14 @@
#undef Z_DIR_PIN
#undef Z_ENABLE_PIN
#undef Z_STEP_PIN
- #define Z_DIR_PIN 28
- #define Z_ENABLE_PIN 24
- #define Z_STEP_PIN 26
- #define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 62 // Pullup!
- #define SPINDLE_DIR_PIN 48
- #elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
- #define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
- #define SPINDLE_DIR_PIN 17
+ #define Z_DIR_PIN 28
+ #define Z_ENABLE_PIN 24
+ #define Z_STEP_PIN 26
+ #define SPINDLE_LASER_PWM_PIN 46 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 62 // Pullup!
+ #define SPINDLE_DIR_PIN 48
+ #elif !BOTH(ULTRA_LCD, NEWPANEL) // use expansion header if no LCD in use
+ #define SPINDLE_LASER_ENA_PIN 16 // Pullup or pulldown!
+ #define SPINDLE_DIR_PIN 17
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_AZTEEG_X3.h b/Marlin/src/pins/ramps/pins_AZTEEG_X3.h
index 99b75d5e00..a38e4e1b43 100644
--- a/Marlin/src/pins/ramps/pins_AZTEEG_X3.h
+++ b/Marlin/src/pins/ramps/pins_AZTEEG_X3.h
@@ -32,15 +32,15 @@
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
- #define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
+ #define CASE_LIGHT_PIN 6 // Define before RAMPS pins include
#endif
#define BOARD_INFO_NAME "Azteeg X3"
//
// Servos
//
-#define SERVO0_PIN 44 // SERVO1 port
-#define SERVO1_PIN 55 // SERVO2 port
+#define SERVO0_PIN 44 // SERVO1 port
+#define SERVO1_PIN 55 // SERVO2 port
#include "pins_RAMPS_13.h"
@@ -55,17 +55,17 @@
#undef DOGLCD_A0
#undef DOGLCD_CS
#undef BTN_ENC
- #define DOGLCD_A0 31
- #define DOGLCD_CS 32
- #define BTN_ENC 12
+ #define DOGLCD_A0 31
+ #define DOGLCD_CS 32
+ #define BTN_ENC 12
- #define STAT_LED_RED_PIN 64
- #define STAT_LED_BLUE_PIN 63
+ #define STAT_LED_RED_PIN 64
+ #define STAT_LED_BLUE_PIN 63
#else
- #define STAT_LED_RED_PIN 6
- #define STAT_LED_BLUE_PIN 11
+ #define STAT_LED_RED_PIN 6
+ #define STAT_LED_BLUE_PIN 11
#endif
@@ -79,18 +79,18 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
-#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
+#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3 board
#undef SPINDLE_LASER_ENA_PIN
#undef SPINDLE_DIR_PIN
#if HAS_CUTTER
- #undef SDA // use EXP3 header
+ #undef SDA // use EXP3 header
#undef SCL
#if SERVO0_PIN == 7
#undef SERVO0_PIN
- #define SERVO0_PIN 11
+ #define SERVO0_PIN 11
#endif
- #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 20 // Pullup!
- #define SPINDLE_DIR_PIN 21
+ #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 20 // Pullup!
+ #define SPINDLE_DIR_PIN 21
#endif
diff --git a/Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h b/Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
index 627eaabfd6..c8e2a6683d 100644
--- a/Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
+++ b/Marlin/src/pins/ramps/pins_AZTEEG_X3_PRO.h
@@ -43,21 +43,21 @@
// Tested this pin with bed leveling on a Delta with 1 servo.
// Physical wire attachment on EXT1: GND, 5V, D47.
//
-#define SERVO0_PIN 47
+#define SERVO0_PIN 47
//
// Limit Switches
//
-#define X_STOP_PIN 3
-#define Y_STOP_PIN 14
-#define Z_STOP_PIN 18
+#define X_STOP_PIN 3
+#define Y_STOP_PIN 14
+#define Z_STOP_PIN 18
#ifndef FAN_PIN
- #define FAN_PIN 6
+ #define FAN_PIN 6
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
- #define CASE_LIGHT_PIN 44
+ #define CASE_LIGHT_PIN 44
#endif
//
@@ -67,100 +67,100 @@
// DIGIPOT slave addresses
#ifndef DIGIPOT_I2C_ADDRESS_A
- #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
+ #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for first DIGIPOT 0x2C (0x58 <- 0x2C << 1)
#endif
#ifndef DIGIPOT_I2C_ADDRESS_B
- #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
+ #define DIGIPOT_I2C_ADDRESS_B 0x2E // unshifted slave address for second DIGIPOT 0x2E (0x5C <- 0x2E << 1)
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 18
+ #define Z_MIN_PROBE_PIN 18
#endif
//
// Steppers
//
-#define E2_STEP_PIN 23
-#define E2_DIR_PIN 25
-#define E2_ENABLE_PIN 40
+#define E2_STEP_PIN 23
+#define E2_DIR_PIN 25
+#define E2_ENABLE_PIN 40
-#define E3_STEP_PIN 27
-#define E3_DIR_PIN 29
-#define E3_ENABLE_PIN 41
+#define E3_STEP_PIN 27
+#define E3_DIR_PIN 29
+#define E3_ENABLE_PIN 41
-#define E4_STEP_PIN 43
-#define E4_DIR_PIN 37
-#define E4_ENABLE_PIN 42
+#define E4_STEP_PIN 43
+#define E4_DIR_PIN 37
+#define E4_ENABLE_PIN 42
//
// Temperature Sensors
//
-#define TEMP_2_PIN 12 // Analog Input
-#define TEMP_3_PIN 11 // Analog Input
-#define TEMP_4_PIN 10 // Analog Input
-#define TC1 4 // Analog Input (Thermo couple on Azteeg X3Pro)
-#define TC2 5 // Analog Input (Thermo couple on Azteeg X3Pro)
+#define TEMP_2_PIN 12 // Analog Input
+#define TEMP_3_PIN 11 // Analog Input
+#define TEMP_4_PIN 10 // Analog Input
+#define TC1 4 // Analog Input (Thermo couple on Azteeg X3Pro)
+#define TC2 5 // Analog Input (Thermo couple on Azteeg X3Pro)
//
// Heaters / Fans
//
-#define HEATER_2_PIN 16
-#define HEATER_3_PIN 17
-#define HEATER_4_PIN 4
-#define HEATER_5_PIN 5
-#define HEATER_6_PIN 6
-#define HEATER_7_PIN 11
+#define HEATER_2_PIN 16
+#define HEATER_3_PIN 17
+#define HEATER_4_PIN 4
+#define HEATER_5_PIN 5
+#define HEATER_6_PIN 6
+#define HEATER_7_PIN 11
#ifndef CONTROLLER_FAN_PIN
- #define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
+ #define CONTROLLER_FAN_PIN 4 // Pin used for the fan to cool motherboard (-1 to disable)
#endif
// Fans/Water Pump to cool the hotend cool side.
-#define ORIG_E0_AUTO_FAN_PIN 5
-#define ORIG_E1_AUTO_FAN_PIN 5
-#define ORIG_E2_AUTO_FAN_PIN 5
-#define ORIG_E3_AUTO_FAN_PIN 5
+#define ORIG_E0_AUTO_FAN_PIN 5
+#define ORIG_E1_AUTO_FAN_PIN 5
+#define ORIG_E2_AUTO_FAN_PIN 5
+#define ORIG_E3_AUTO_FAN_PIN 5
//
// LCD / Controller
//
#undef BEEPER_PIN
-#define BEEPER_PIN 33
+#define BEEPER_PIN 33
#if ANY(VIKI2, miniVIKI)
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN 49 // For easy adapter board
+ #define SD_DETECT_PIN 49 // For easy adapter board
#undef BEEPER_PIN
- #define BEEPER_PIN 12 // 33 isn't physically available to the LCD display
+ #define BEEPER_PIN 12 // 33 isn't physically available to the LCD display
#else
- #define STAT_LED_RED_PIN 32
- #define STAT_LED_BLUE_PIN 35
+ #define STAT_LED_RED_PIN 32
+ #define STAT_LED_BLUE_PIN 35
#endif
//
// Misc. Functions
//
#if ENABLED(CASE_LIGHT_ENABLE) && PIN_EXISTS(CASE_LIGHT) && defined(DOGLCD_A0) && DOGLCD_A0 == CASE_LIGHT_PIN
- #undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
- #define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
+ #undef DOGLCD_A0 // Steal pin 44 for the case light; if you have a Viki2 and have connected it
+ #define DOGLCD_A0 57 // following the Panucatt wiring diagram, you may need to tweak these pin assignments
// as the wiring diagram uses pin 44 for DOGLCD_A0
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
-#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board
+#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are no good with the AzteegX3pro board
#undef SPINDLE_LASER_ENA_PIN
#undef SPINDLE_DIR_PIN
-#if HAS_CUTTER // EXP2 header
+#if HAS_CUTTER // EXP2 header
#if ANY(VIKI2, miniVIKI)
- #define BTN_EN2 31 // Pin 7 needed for Spindle PWM
+ #define BTN_EN2 31 // Pin 7 needed for Spindle PWM
#endif
- #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 20 // Pullup!
- #define SPINDLE_DIR_PIN 21
+ #define SPINDLE_LASER_PWM_PIN 7 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 20 // Pullup!
+ #define SPINDLE_DIR_PIN 21
#endif
diff --git a/Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h b/Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h
index 9945c94d76..1aa9b67f7c 100644
--- a/Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h
+++ b/Marlin/src/pins/ramps/pins_BAM_DICE_DUE.h
@@ -34,9 +34,9 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown!
-#define SPINDLE_DIR_PIN 67
-#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 66 // Pullup or pulldown!
+#define SPINDLE_DIR_PIN 67
+#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
#include "pins_RAMPS.h"
@@ -45,5 +45,5 @@
//
#undef TEMP_0_PIN
#undef TEMP_1_PIN
-#define TEMP_0_PIN 9 // Analog Input
-#define TEMP_1_PIN 11 // Analog Input
+#define TEMP_0_PIN 9 // Analog Input
+#define TEMP_1_PIN 11 // Analog Input
diff --git a/Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h b/Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
index bf75c1a2a2..44b6ff1e61 100644
--- a/Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
+++ b/Marlin/src/pins/ramps/pins_BQ_ZUM_MEGA_3D.h
@@ -34,30 +34,30 @@
//
// Heaters / Fans
//
-#define RAMPS_D8_PIN 10
-#define RAMPS_D9_PIN 12
-#define RAMPS_D10_PIN 9
-#define MOSFET_D_PIN 7
+#define RAMPS_D8_PIN 10
+#define RAMPS_D9_PIN 12
+#define RAMPS_D10_PIN 9
+#define MOSFET_D_PIN 7
//
// Auto fans
//
-#define ORIG_E0_AUTO_FAN_PIN 11
-#define ORIG_E1_AUTO_FAN_PIN 6
-#define ORIG_E2_AUTO_FAN_PIN 6
-#define ORIG_E3_AUTO_FAN_PIN 6
+#define ORIG_E0_AUTO_FAN_PIN 11
+#define ORIG_E1_AUTO_FAN_PIN 6
+#define ORIG_E2_AUTO_FAN_PIN 6
+#define ORIG_E3_AUTO_FAN_PIN 6
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
-#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
-#define SPINDLE_DIR_PIN 42
+#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
+#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+#define SPINDLE_DIR_PIN 42
//
// Limit Switches
//
-#define X_MAX_PIN 79 // 2
+#define X_MAX_PIN 79 // 2
//
// Import RAMPS 1.3 pins
@@ -68,34 +68,33 @@
// Z Probe (when not Z_MIN_PIN)
//
#undef Z_MIN_PROBE_PIN
-#define Z_MIN_PROBE_PIN 19 // IND_S_5V
+#define Z_MIN_PROBE_PIN 19 // IND_S_5V
#undef Z_ENABLE_PIN
-#define Z_ENABLE_PIN 77 // 62
+#define Z_ENABLE_PIN 77 // 62
//
// Steppers
//
-#define DIGIPOTSS_PIN 22
+#define DIGIPOTSS_PIN 22
#define DIGIPOT_CHANNELS { 4, 5, 3, 0, 1 }
//
// Temperature Sensors
//
#undef TEMP_1_PIN
-#define TEMP_1_PIN 14 // Analog Input (15)
+#define TEMP_1_PIN 14 // Analog Input (15)
#undef TEMP_BED_PIN
-#define TEMP_BED_PIN 15 // Analog Input (14)
+#define TEMP_BED_PIN 15 // Analog Input (14)
//
// Misc. Functions
//
-#undef PS_ON_PIN // 12
-#define PS_ON_PIN 81 // External Power Supply
-
-#define CASE_LIGHT_PIN 44 // Hardware PWM
+#undef PS_ON_PIN // 12
+#define PS_ON_PIN 81 // External Power Supply
+#define CASE_LIGHT_PIN 44 // Hardware PWM
// This board has headers for Z-min, Z-max and IND_S_5V *but* as the bq team
// decided to ship the printer only with the probe and no additional Z-min
@@ -104,8 +103,8 @@
#ifdef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#undef Z_MIN_PIN
#undef Z_MAX_PIN
- #define Z_MIN_PIN 19 // IND_S_5V
- #define Z_MAX_PIN 18 // Z-MIN Label
+ #define Z_MIN_PIN 19 // IND_S_5V
+ #define Z_MAX_PIN 18 // Z-MIN Label
#endif
//
@@ -113,5 +112,5 @@
//
#if ENABLED(HEPHESTOS2_HEATED_BED_KIT)
#undef HEATER_BED_PIN
- #define HEATER_BED_PIN 8
+ #define HEATER_BED_PIN 8
#endif
diff --git a/Marlin/src/pins/ramps/pins_COPYMASTER_3D.h b/Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
new file mode 100644
index 0000000000..8f61ef47dc
--- /dev/null
+++ b/Marlin/src/pins/ramps/pins_COPYMASTER_3D.h
@@ -0,0 +1,34 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#define BOARD_INFO_NAME "Copymaster 3D RAMPS"
+
+#define Z_STEP_PIN 47
+#define Y_MAX_PIN 14
+#define FIL_RUNOUT_PIN 15
+#define SD_DETECT_PIN 66
+
+//
+// Import RAMPS 1.4 pins
+//
+#include "pins_RAMPS.h"
diff --git a/Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h b/Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
index 6a98973347..9ff9d3be62 100644
--- a/Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
+++ b/Marlin/src/pins/ramps/pins_DUPLICATOR_I3_PLUS.h
@@ -34,68 +34,68 @@
//
// Limit Switches
//
-#define X_STOP_PIN 54 // PF0 / A0
-#define Y_STOP_PIN 24 // PA2 / AD2
-#define Z_MIN_PIN 23 // PA1 / AD1
-#define Z_MAX_PIN 25 // PA3 / AD3
-#define SERVO0_PIN 40 // PG1 / !RD
+#define X_STOP_PIN 54 // PF0 / A0
+#define Y_STOP_PIN 24 // PA2 / AD2
+#define Z_MIN_PIN 23 // PA1 / AD1
+#define Z_MAX_PIN 25 // PA3 / AD3
+#define SERVO0_PIN 40 // PG1 / !RD
//
// Steppers
//
-#define X_STEP_PIN 61 // PF7 / A7
-#define X_DIR_PIN 62 // PK0 / A8
-#define X_ENABLE_PIN 60 // PF6 / A6
+#define X_STEP_PIN 61 // PF7 / A7
+#define X_DIR_PIN 62 // PK0 / A8
+#define X_ENABLE_PIN 60 // PF6 / A6
-#define Y_STEP_PIN 64 // PK2 / A10
-#define Y_DIR_PIN 65 // PK3 / A11
-#define Y_ENABLE_PIN 63 // PK1 / A9
+#define Y_STEP_PIN 64 // PK2 / A10
+#define Y_DIR_PIN 65 // PK3 / A11
+#define Y_ENABLE_PIN 63 // PK1 / A9
-#define Z_STEP_PIN 67 // PK5 / A13
-#define Z_DIR_PIN 69 // PK7 / A15
-#define Z_ENABLE_PIN 66 // PK4 / A12
-#define Z_MIN_PROBE_PIN 25 // PA3 / AD3
+#define Z_STEP_PIN 67 // PK5 / A13
+#define Z_DIR_PIN 69 // PK7 / A15
+#define Z_ENABLE_PIN 66 // PK4 / A12
+#define Z_MIN_PROBE_PIN 25 // PA3 / AD3
-#define E0_STEP_PIN 58 // PF4 / A4
-#define E0_DIR_PIN 59 // PF5 / A5
-#define E0_ENABLE_PIN 57 // PF3 / A3
+#define E0_STEP_PIN 58 // PF4 / A4
+#define E0_DIR_PIN 59 // PF5 / A5
+#define E0_ENABLE_PIN 57 // PF3 / A3
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // PF1 / A1 Analog
-#define TEMP_BED_PIN 14 // PK6 / A14 Analog
+#define TEMP_0_PIN 1 // PF1 / A1 Analog
+#define TEMP_BED_PIN 14 // PK6 / A14 Analog
//
// Heaters / Fans
//
-#define HEATER_0_PIN 4 // PG5 / PWM4
-#define HEATER_BED_PIN 3 // PE5 / PWM3
+#define HEATER_0_PIN 4 // PG5 / PWM4
+#define HEATER_BED_PIN 3 // PE5 / PWM3
-#define FAN_PIN 5 // PE3 / PWM5
+#define FAN_PIN 5 // PE3 / PWM5
//
// Misc. Functions
//
-#define SDSS 53 // PB0 / SS
-#define LED_PIN 13 // PB7 / PWM13
+#define SDSS 53 // PB0 / SS
+#define LED_PIN 13 // PB7 / PWM13
-#define MISO_PIN 50 // PB3
-#define MOSI_PIN 51 // PB2
-#define SCK_PIN 52 // PB1
+#define MISO_PIN 50 // PB3
+#define MOSI_PIN 51 // PB2
+#define SCK_PIN 52 // PB1
//
// LCDs and Controllers
//
#if HAS_SPI_LCD
#if ENABLED(ZONESTAR_LCD)
- #define LCD_PINS_RS 2
- #define LCD_PINS_ENABLE 36
- #define LCD_PINS_D4 37
- #define LCD_PINS_D5 34
- #define LCD_PINS_D6 35
- #define LCD_PINS_D7 32
- #define ADC_KEYPAD_PIN 12 // Analog
+ #define LCD_PINS_RS 2
+ #define LCD_PINS_ENABLE 36
+ #define LCD_PINS_D4 37
+ #define LCD_PINS_D5 34
+ #define LCD_PINS_D6 35
+ #define LCD_PINS_D7 32
+ #define ADC_KEYPAD_PIN 12 // Analog
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_FELIX2.h b/Marlin/src/pins/ramps/pins_FELIX2.h
index f5a49db533..bfd341db6d 100644
--- a/Marlin/src/pins/ramps/pins_FELIX2.h
+++ b/Marlin/src/pins/ramps/pins_FELIX2.h
@@ -35,29 +35,29 @@
// Heaters / Fans
//
// Power outputs EFBF or EFBE
-#define MOSFET_D_PIN 7
+#define MOSFET_D_PIN 7
#include "pins_RAMPS.h"
//
// Misc. Functions
//
-#define SDPOWER_PIN 1
+#define SDPOWER_PIN 1
-#define PS_ON_PIN 12
+#define PS_ON_PIN 12
//
// LCD / Controller
//
#if BOTH(ULTRA_LCD, NEWPANEL)
- #define SD_DETECT_PIN 6
+ #define SD_DETECT_PIN 6
#endif // NEWPANEL && ULTRA_LCD
//
// M3/M4/M5 - Spindle/Laser Control
//
-#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not valid with this board
+#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not valid with this board
#undef SPINDLE_LASER_ENA_PIN
#undef SPINDLE_DIR_PIN
diff --git a/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h b/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
index 3dcd7e57bc..75d647fed5 100644
--- a/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
+++ b/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR.h
@@ -41,83 +41,83 @@
//
// Servos
//
-#define SERVO0_PIN 11
-#define SERVO1_PIN 6
-#define SERVO2_PIN 5
+#define SERVO0_PIN 11
+#define SERVO1_PIN 6
+#define SERVO2_PIN 5
//
// Limit Switches
//
-#define X_MIN_PIN 3
+#define X_MIN_PIN 3
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 53
+ #define X_CS_PIN 53
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 49
+ #define Y_CS_PIN 49
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN 40
+ #define Z_CS_PIN 40
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 42
+ #define E0_CS_PIN 42
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 44
+ #define E1_CS_PIN 44
#endif
-#define E2_STEP_PIN 42
-#define E2_DIR_PIN 43
-#define E2_ENABLE_PIN 44
+#define E2_STEP_PIN 42
+#define E2_DIR_PIN 43
+#define E2_ENABLE_PIN 44
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13 // Analog Input
-#define TEMP_1_PIN 15 // Analog Input
-#define TEMP_BED_PIN 14 // Analog Input
+#define TEMP_0_PIN 13 // Analog Input
+#define TEMP_1_PIN 15 // Analog Input
+#define TEMP_BED_PIN 14 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -140,39 +140,39 @@
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 7
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 7
+#define HEATER_BED_PIN 8
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 57
+ #define FIL_RUNOUT_PIN 57
#endif
#if !HAS_FILAMENT_SENSOR
- #define FAN1_PIN 4
+ #define FAN1_PIN 4
#endif
//
// Misc. Functions
//
#ifndef SDSS
- #define SDSS 53
+ #define SDSS 53
#endif
-#define LED_PIN 13
-#define LED4_PIN 5
+#define LED_PIN 13
+#define LED4_PIN 5
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
-#define FILWIDTH_PIN 5 // Analog Input
+#define FILWIDTH_PIN 5 // Analog Input
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
-#define CASE_LIGHT_PIN 5
+#define CASE_LIGHT_PIN 5
//
// LCD / Controller
@@ -180,16 +180,16 @@
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
//
#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
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define BEEPER_PIN 37
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
#endif
diff --git a/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h b/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h
index 3bbff7f8f2..3ed9fb9692 100644
--- a/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h
+++ b/Marlin/src/pins/ramps/pins_FORMBOT_RAPTOR2.h
@@ -28,10 +28,10 @@
#define BOARD_INFO_NAME "Formbot Raptor2"
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
-#define FAN_PIN 6
+#define FAN_PIN 6
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 22
+ #define FIL_RUNOUT_PIN 22
#endif
#include "pins_FORMBOT_RAPTOR.h"
@@ -42,22 +42,22 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
- #if !NUM_SERVOS // Try to use servo connector first
- #define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
- #elif !GREEDY_PANEL // Try to use AUX2
- #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_DIR_PIN 65
+ #if !NUM_SERVOS // Try to use servo connector first
+ #define SPINDLE_LASER_ENA_PIN 6 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
+ #elif !GREEDY_PANEL // Try to use AUX2
+ #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_DIR_PIN 65
#endif
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT)
- #if NUM_SERVOS <= 1 // Try to use servo connector first
- #define CASE_LIGHT_PIN 6 // Hardware PWM
- #elif !GREEDY_PANEL // Try to use AUX2
- #define CASE_LIGHT_PIN 44 // Hardware PWM
+ #if NUM_SERVOS <= 1 // Try to use servo connector first
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #elif !GREEDY_PANEL // Try to use AUX2
+ #define CASE_LIGHT_PIN 44 // Hardware PWM
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h b/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
index 1c911cd125..8fa3686514 100644
--- a/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
+++ b/Marlin/src/pins/ramps/pins_FORMBOT_TREX2PLUS.h
@@ -37,84 +37,84 @@
//
// Servos
//
-#define SERVO0_PIN 11
-#define SERVO1_PIN -1 // was 6
-#define SERVO2_PIN -1 // was 5
-#define SERVO3_PIN -1
+#define SERVO0_PIN 11
+#define SERVO1_PIN -1 // was 6
+#define SERVO2_PIN -1 // was 5
+#define SERVO3_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 3
+#define X_MIN_PIN 3
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 53
+ #define X_CS_PIN 53
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 49
+ #define Y_CS_PIN 49
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN 40
+ #define Z_CS_PIN 40
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 42
+ #define E0_CS_PIN 42
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 44
+ #define E1_CS_PIN 44
#endif
-#define E2_STEP_PIN 42
-#define E2_DIR_PIN 43
-#define E2_ENABLE_PIN 44
+#define E2_STEP_PIN 42
+#define E2_DIR_PIN 43
+#define E2_ENABLE_PIN 44
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13 // Analog Input
-#define TEMP_1_PIN 15 // Analog Input
-#define TEMP_BED_PIN 3 // Analog Input
+#define TEMP_0_PIN 13 // Analog Input
+#define TEMP_1_PIN 15 // Analog Input
+#define TEMP_BED_PIN 3 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -137,36 +137,36 @@
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 7
-#define HEATER_BED_PIN 58
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 7
+#define HEATER_BED_PIN 58
-#define FAN_PIN 9
+#define FAN_PIN 9
#if HAS_FILAMENT_SENSOR
- #define FIL_RUNOUT_PIN 4
- //#define FIL_RUNOUT2_PIN -1
+ #define FIL_RUNOUT_PIN 4
+ //#define FIL_RUNOUT2_PIN -1
#else
// Though defined as a fan pin, it is utilized as a dedicated laser pin by Formbot.
- #define FAN1_PIN 4
+ #define FAN1_PIN 4
#endif
//
// Misc. Functions
//
-#define SDSS 53
+#define SDSS 53
#ifndef LED_PIN
- #define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins on it. The Board's LED
+ #define LED_PIN 13 // The Formbot v 1 board has almost no unassigned pins on it. The Board's LED
#endif // is a good place to get a signal to control the Max7219 LED Matrix.
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
-#define FILWIDTH_PIN 5 // Analog Input
+#define FILWIDTH_PIN 5 // Analog Input
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
-#define CASE_LIGHT_PIN 8
+#define CASE_LIGHT_PIN 8
//
// LCD / Controller
@@ -175,22 +175,22 @@
//
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#ifndef BEEPER_PIN
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#endif
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
// Allow MAX7219 to steal the KILL pin
#if !defined(KILL_PIN) && MAX7219_CLK_PIN != 41 && MAX7219_DIN_PIN != 41 && MAX7219_LOAD_PIN != 41
- #define KILL_PIN 41
+ #define KILL_PIN 41
#endif
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
#endif
diff --git a/Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h b/Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
index bdcb28dac2..3846a7649e 100644
--- a/Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
+++ b/Marlin/src/pins/ramps/pins_FORMBOT_TREX3.h
@@ -37,116 +37,114 @@
//
// Servos
//
-#define SERVO0_PIN 11
-#define SERVO1_PIN -1 // was 6
-#define SERVO2_PIN -1
-#define SERVO3_PIN -1
+#define SERVO0_PIN 11
+#define SERVO1_PIN -1 // was 6
+#define SERVO2_PIN -1
+#define SERVO3_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 3
+#define X_MIN_PIN 3
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 53
+ #define X_CS_PIN 53
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 49
+ #define Y_CS_PIN 49
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN 40
+ #define Z_CS_PIN 40
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 42
+ #define E0_CS_PIN 42
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 44
+ #define E1_CS_PIN 44
#endif
-#define E2_STEP_PIN 42
-#define E2_DIR_PIN 43
-#define E2_ENABLE_PIN 44
+#define E2_STEP_PIN 42
+#define E2_DIR_PIN 43
+#define E2_ENABLE_PIN 44
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13 // Analog Input
-#define TEMP_1_PIN 15 // Analog Input
-#define TEMP_BED_PIN 14 // Analog Input
+#define TEMP_0_PIN 13 // Analog Input
+#define TEMP_1_PIN 15 // Analog Input
+#define TEMP_BED_PIN 14 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
-
-
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 7
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 7
+#define HEATER_BED_PIN 8
-#define FAN_PIN 9
-#define FAN1_PIN 12
+#define FAN_PIN 9
+#define FAN1_PIN 12
-#define NUM_RUNOUT_SENSORS 2
-#define FIL_RUNOUT_PIN 22
-#define FIL_RUNOUT2_PIN 21
+#define NUM_RUNOUT_SENSORS 2
+#define FIL_RUNOUT_PIN 22
+#define FIL_RUNOUT2_PIN 21
//
// Misc. Functions
//
-#define CASE_LIGHT_PIN 5
-#define SDSS 53
+#define CASE_LIGHT_PIN 5
+#define SDSS 53
#ifndef LED_PIN
- #define LED_PIN 13
+ #define LED_PIN 13
#endif
-#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
+#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
-#define FILWIDTH_PIN 5 // Analog Input
+#define FILWIDTH_PIN 5 // Analog Input
//
// LCD / Controller
@@ -154,20 +152,20 @@
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
//
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
#ifndef KILL_PIN
- #define KILL_PIN 41
+ #define KILL_PIN 41
#endif
#ifndef BEEPER_PIN
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_FYSETC_F6_13.h b/Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
index c67f8283b7..19238bc5f8 100644
--- a/Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
+++ b/Marlin/src/pins/ramps/pins_FYSETC_F6_13.h
@@ -33,83 +33,83 @@
#define BOARD_INFO_NAME "FYSETC F6 1.3"
#endif
-#define RESET_PIN 30
-#define SPI_FLASH_CS 83
+#define RESET_PIN 30
+#define SPI_FLASH_CS 83
//
// Servos
//
-#define SERVO0_PIN 13
-#define SERVO1_PIN 11 // (PS_ON_PIN)
-#define SERVO2_PIN 10 // (FIL_RUNOUT_PIN)
-#define SERVO3_PIN 4 // (RGB_LED_G_PIN)
+#define SERVO0_PIN 13
+#define SERVO1_PIN 11 // (PS_ON_PIN)
+#define SERVO2_PIN 10 // (FIL_RUNOUT_PIN)
+#define SERVO3_PIN 4 // (RGB_LED_G_PIN)
//
// Limit Switches
//
-#define X_MIN_PIN 63
-#define X_MAX_PIN 64
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 12
+#define X_MIN_PIN 63
+#define X_MAX_PIN 64
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 12
#ifndef Z_MAX_PIN
- #define Z_MAX_PIN 9
+ #define Z_MAX_PIN 9
#endif
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN SERVO2_PIN
+ #define FIL_RUNOUT_PIN SERVO2_PIN
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 9 // Servos pin
+ #define Z_MIN_PROBE_PIN 9 // Servos pin
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 70
+ #define X_CS_PIN 70
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 39
+ #define Y_CS_PIN 39
#endif
-#define Z_STEP_PIN 43
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 58
+#define Z_STEP_PIN 43
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 58
#ifndef Z_CS_PIN
- #define Z_CS_PIN 74
+ #define Z_CS_PIN 74
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 47
+ #define E0_CS_PIN 47
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 32
+ #define E1_CS_PIN 32
#endif
-#define E2_STEP_PIN 59
-#define E2_DIR_PIN 57
-#define E2_ENABLE_PIN 40
+#define E2_STEP_PIN 59
+#define E2_DIR_PIN 57
+#define E2_ENABLE_PIN 40
#ifndef E2_CS_PIN
- #define E2_CS_PIN 42
+ #define E2_CS_PIN 42
#endif
//
@@ -117,7 +117,7 @@
// the jumper next to the limit switch socket when using sensorless homing.
//
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -125,76 +125,76 @@
* At the moment, F6 rx pins are not pc interrupt pins
*/
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN -1 // 71
+ #define X_SERIAL_RX_PIN -1 // 71
#endif
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN 72
+ #define X_SERIAL_TX_PIN 72
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN -1 // 73
+ #define Y_SERIAL_RX_PIN -1 // 73
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN 75
+ #define Y_SERIAL_TX_PIN 75
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN -1 // 78
+ #define Z_SERIAL_RX_PIN -1 // 78
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN 79
+ #define Z_SERIAL_TX_PIN 79
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN -1 // 76
+ #define E0_SERIAL_RX_PIN -1 // 76
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN 77
+ #define E0_SERIAL_TX_PIN 77
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN -1 // 80
+ #define E1_SERIAL_RX_PIN -1 // 80
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN 81
+ #define E1_SERIAL_TX_PIN 81
#endif
#ifndef E2_SERIAL_RX_PIN
- #define E2_SERIAL_RX_PIN -1 // 22
+ #define E2_SERIAL_RX_PIN -1 // 22
#endif
#ifndef E2_SERIAL_TX_PIN
- #define E2_SERIAL_TX_PIN 82
+ #define E2_SERIAL_TX_PIN 82
#endif
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 12 // Analog Input
-#define TEMP_1_PIN 13 // Analog Input
-#define TEMP_2_PIN 14 // Analog Input
-#define TEMP_BED_PIN 15 // Analog Input
+#define TEMP_0_PIN 12 // Analog Input
+#define TEMP_1_PIN 13 // Analog Input
+#define TEMP_2_PIN 14 // Analog Input
+#define TEMP_BED_PIN 15 // Analog Input
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 9 // Analog Input on X+ endstop
+ #define FILWIDTH_PIN 9 // Analog Input on X+ endstop
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 5
-#define HEATER_1_PIN 6
-#define HEATER_2_PIN 7
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 5
+#define HEATER_1_PIN 6
+#define HEATER_2_PIN 7
+#define HEATER_BED_PIN 8
-#define FAN_PIN 44
-#define FAN1_PIN 45
-#define FAN2_PIN 46
+#define FAN_PIN 44
+#define FAN1_PIN 45
+#define FAN2_PIN 46
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define KILL_PIN 41
+#define SDSS 53
+#define LED_PIN 13
+#define KILL_PIN 41
#ifndef PS_ON_PIN
- #define PS_ON_PIN SERVO1_PIN
+ #define PS_ON_PIN SERVO1_PIN
#endif
/**
@@ -211,69 +211,69 @@
//
// LCDs and Controllers
//
-#define BEEPER_PIN 37
-#define SD_DETECT_PIN 49
+#define BEEPER_PIN 37
+#define SD_DETECT_PIN 49
#if ENABLED(FYSETC_MINI_12864)
//
// See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
//
- #define DOGLCD_A0 16
- #define DOGLCD_CS 17
+ #define DOGLCD_A0 16
+ #define DOGLCD_CS 17
#if ENABLED(FYSETC_GENERIC_12864_1_1)
- #define LCD_BACKLIGHT_PIN 27
+ #define LCD_BACKLIGHT_PIN 27
#endif
- #define KILL_PIN 41
- #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
+ #define KILL_PIN 41
+ #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
// Seems to work best if left open.
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN 25
+ #define RGB_LED_R_PIN 25
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 27
+ #define RGB_LED_G_PIN 27
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 29
+ #define RGB_LED_B_PIN 29
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 25
+ #define NEOPIXEL_PIN 25
#endif
#elif HAS_GRAPHICAL_LCD
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
#if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS 25
- #define DOGLCD_A0 27
+ #define DOGLCD_CS 25
+ #define DOGLCD_A0 27
#endif
#endif
#if ENABLED(NEWPANEL)
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
#endif
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN 3
+ #define RGB_LED_R_PIN 3
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 4
+ #define RGB_LED_G_PIN 4
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 9
+ #define RGB_LED_B_PIN 9
#endif
#ifndef RGB_LED_W_PIN
- #define RGB_LED_W_PIN -1
+ #define RGB_LED_W_PIN -1
#endif
diff --git a/Marlin/src/pins/ramps/pins_FYSETC_F6_14.h b/Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
index be5b92d4c1..f0eb0bf4c6 100644
--- a/Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
+++ b/Marlin/src/pins/ramps/pins_FYSETC_F6_14.h
@@ -27,24 +27,24 @@
#define BOARD_NAME "FYSETC F6 1.4"
-#define Z_MAX_PIN 2
+#define Z_MAX_PIN 2
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*/
- #define X_SERIAL_RX_PIN 72
- #define X_SERIAL_TX_PIN 71
- #define Y_SERIAL_RX_PIN 73
- #define Y_SERIAL_TX_PIN 78
- #define Z_SERIAL_RX_PIN 75
- #define Z_SERIAL_TX_PIN 79
- #define E0_SERIAL_RX_PIN 77
- #define E0_SERIAL_TX_PIN 81
- #define E1_SERIAL_RX_PIN 76
- #define E1_SERIAL_TX_PIN 80
- #define E2_SERIAL_RX_PIN 62
- #define E2_SERIAL_TX_PIN 82
+ #define X_SERIAL_RX_PIN 72
+ #define X_SERIAL_TX_PIN 71
+ #define Y_SERIAL_RX_PIN 73
+ #define Y_SERIAL_TX_PIN 78
+ #define Z_SERIAL_RX_PIN 75
+ #define Z_SERIAL_TX_PIN 79
+ #define E0_SERIAL_RX_PIN 77
+ #define E0_SERIAL_TX_PIN 81
+ #define E1_SERIAL_RX_PIN 76
+ #define E1_SERIAL_TX_PIN 80
+ #define E2_SERIAL_RX_PIN 62
+ #define E2_SERIAL_TX_PIN 82
#endif
#include "pins_FYSETC_F6_13.h"
diff --git a/Marlin/src/pins/ramps/pins_K8400.h b/Marlin/src/pins/ramps/pins_K8400.h
index f0928b0ed1..4c5ba7eca1 100644
--- a/Marlin/src/pins/ramps/pins_K8400.h
+++ b/Marlin/src/pins/ramps/pins_K8400.h
@@ -40,8 +40,8 @@
//
// Limit Switches
//
-#define X_STOP_PIN 3
-#define Y_STOP_PIN 14
+#define X_STOP_PIN 3
+#define Y_STOP_PIN 14
#undef X_MIN_PIN
#undef X_MAX_PIN
@@ -52,13 +52,13 @@
// Steppers
//
#undef E1_STEP_PIN
-#define E1_STEP_PIN 32
+#define E1_STEP_PIN 32
//
// Heaters / Fans
//
#undef HEATER_1_PIN
-#define HEATER_1_PIN 11
+#define HEATER_1_PIN 11
//
// Misc. Functions
@@ -69,5 +69,5 @@
#if Z_STEP_PIN == 26
#undef Z_STEP_PIN
- #define Z_STEP_PIN 32
+ #define Z_STEP_PIN 32
#endif
diff --git a/Marlin/src/pins/ramps/pins_K8800.h b/Marlin/src/pins/ramps/pins_K8800.h
index 8c426af17c..09f35b1fe0 100644
--- a/Marlin/src/pins/ramps/pins_K8800.h
+++ b/Marlin/src/pins/ramps/pins_K8800.h
@@ -37,73 +37,73 @@
//
// Limit Switches
//
-#define X_STOP_PIN 3
-#define Y_STOP_PIN 14
-#define Z_MIN_PIN 68 // Used for bed leveling
-#define Z_MAX_PIN 66
+#define X_STOP_PIN 3
+#define Y_STOP_PIN 14
+#define Z_MIN_PIN 68 // Used for bed leveling
+#define Z_MAX_PIN 66
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 63
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 63
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
-#define E1_STEP_PIN 32
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 32
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13
+#define TEMP_0_PIN 13
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define FAN_PIN 8
-#define CONTROLLER_FAN_PIN 9
+#define HEATER_0_PIN 10
+#define FAN_PIN 8
+#define CONTROLLER_FAN_PIN 9
//
// Misc. Functions
//
-#define SDSS 25
+#define SDSS 25
-#define FIL_RUNOUT_PIN 69 // PK7
-#define KILL_PIN 20 // PD1
+#define FIL_RUNOUT_PIN 69 // PK7
+#define KILL_PIN 20 // PD1
//
// LCD / Controller
//
-#define SD_DETECT_PIN 21 // PD0
-#define LCD_SDSS 53
-#define BEEPER_PIN 6
+#define SD_DETECT_PIN 21 // PD0
+#define LCD_SDSS 53
+#define BEEPER_PIN 6
-#define DOGLCD_CS 29
-#define DOGLCD_A0 27
+#define DOGLCD_CS 29
+#define DOGLCD_A0 27
-#define LCD_PINS_RS 27
-#define LCD_PINS_ENABLE 29
-#define LCD_PINS_D4 37
-#define LCD_PINS_D5 35
-#define LCD_PINS_D6 33
-#define LCD_PINS_D7 31
+#define LCD_PINS_RS 27
+#define LCD_PINS_ENABLE 29
+#define LCD_PINS_D4 37
+#define LCD_PINS_D5 35
+#define LCD_PINS_D6 33
+#define LCD_PINS_D7 31
#if ENABLED(NEWPANEL)
- #define BTN_EN1 17
- #define BTN_EN2 16
- #define BTN_ENC 23
+ #define BTN_EN1 17
+ #define BTN_EN2 16
+ #define BTN_ENC 23
#endif
diff --git a/Marlin/src/pins/ramps/pins_MKS_BASE_14.h b/Marlin/src/pins/ramps/pins_MKS_BASE_14.h
index b1564ea2c3..057b51a584 100644
--- a/Marlin/src/pins/ramps/pins_MKS_BASE_14.h
+++ b/Marlin/src/pins/ramps/pins_MKS_BASE_14.h
@@ -30,28 +30,28 @@
#endif
#define BOARD_INFO_NAME "MKS BASE 1.4"
-#define MKS_BASE_VERSION 14
+#define MKS_BASE_VERSION 14
//
// Heaters / Fans
//
-#define FAN_PIN 9 // PH6 ** Pin18 ** PWM9
+#define FAN_PIN 9 // PH6 ** Pin18 ** PWM9
// Other Mods
-#define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11
-#define SERVO3_PIN 12 // PB6 ** Pin25 ** D12
-#define PS_ON_PIN 2 // X+ // PE4 ** Pin6 ** PWM2 **MUST BE HARDWARE PWM
-#define FILWIDTH_PIN 15 // Y+ // PJ0 ** Pin63 ** USART3_RX **Pin should have a pullup!
-#define FIL_RUNOUT_PIN 19 // Z+ // PD2 ** Pin45 ** USART1_RX
+#define CASE_LIGHT_PIN 11 // PB5 ** Pin24 ** PWM11
+#define SERVO3_PIN 12 // PB6 ** Pin25 ** D12
+#define PS_ON_PIN 2 // X+ // PE4 ** Pin6 ** PWM2 **MUST BE HARDWARE PWM
+#define FILWIDTH_PIN 15 // Y+ // PJ0 ** Pin63 ** USART3_RX **Pin should have a pullup!
+#define FIL_RUNOUT_PIN 19 // Z+ // PD2 ** Pin45 ** USART1_RX
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN 50
+ #define RGB_LED_R_PIN 50
#endif
#ifndef RGB_LED_R_PIN
- #define RGB_LED_G_PIN 51
+ #define RGB_LED_G_PIN 51
#endif
#ifndef RGB_LED_R_PIN
- #define RGB_LED_B_PIN 52
+ #define RGB_LED_B_PIN 52
#endif
#include "pins_MKS_BASE_common.h"
diff --git a/Marlin/src/pins/ramps/pins_MKS_BASE_16.h b/Marlin/src/pins/ramps/pins_MKS_BASE_16.h
index 985aa056b8..b769d655d6 100644
--- a/Marlin/src/pins/ramps/pins_MKS_BASE_16.h
+++ b/Marlin/src/pins/ramps/pins_MKS_BASE_16.h
@@ -30,30 +30,30 @@
#endif
#define BOARD_INFO_NAME "MKS BASE 1.6"
-#define MKS_BASE_VERSION 16
+#define MKS_BASE_VERSION 16
//
// Servos
//
-#define SERVO1_PIN 12 // Digital 12 / Pin 25
+#define SERVO1_PIN 12 // Digital 12 / Pin 25
//
// Omitted RAMPS pins
//
#ifndef SERVO2_PIN
- #define SERVO2_PIN -1
+ #define SERVO2_PIN -1
#endif
#ifndef SERVO3_PIN
- #define SERVO3_PIN -1
+ #define SERVO3_PIN -1
#endif
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN -1
+ #define FILWIDTH_PIN -1
#endif
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN -1
+ #define FIL_RUNOUT_PIN -1
#endif
#ifndef PS_ON_PIN
- #define PS_ON_PIN -1
+ #define PS_ON_PIN -1
#endif
#include "pins_MKS_BASE_common.h"
diff --git a/Marlin/src/pins/ramps/pins_MKS_BASE_common.h b/Marlin/src/pins/ramps/pins_MKS_BASE_common.h
index 0406da5605..2d06171906 100644
--- a/Marlin/src/pins/ramps/pins_MKS_BASE_common.h
+++ b/Marlin/src/pins/ramps/pins_MKS_BASE_common.h
@@ -29,24 +29,24 @@
#define BOARD_INFO_NAME "MKS BASE"
#endif
-#if MKS_BASE_VERSION == 14 || MKS_BASE_VERSION == 15
+#if MKS_BASE_VERSION >= 14
//
// Heaters / Fans
//
// Power outputs EFBF or EFBE
- #define MOSFET_D_PIN 7
+ #define MOSFET_D_PIN 7
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
- #define SPINDLE_LASER_PWM_PIN 2 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 15 // Pullup!
- #define SPINDLE_DIR_PIN 19
+ #define SPINDLE_LASER_PWM_PIN 2 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 15 // Pullup!
+ #define SPINDLE_DIR_PIN 19
#endif
#ifndef CASE_LIGHT_PIN
- #define CASE_LIGHT_PIN 2
+ #define CASE_LIGHT_PIN 2
#endif
#endif
@@ -54,22 +54,22 @@
//
// Microstepping pins
//
-#if MKS_BASE_VERSION >= 14 // |===== 1.4 =====|===== 1.5+ =====|
- #define X_MS1_PIN 5 // PE3 | Pin 5 | PWM5 | | D3 | SERVO2_PIN
- #define X_MS2_PIN 6 // PH3 | Pin 15 | PWM6 | Pin 14 | D6 | SERVO1_PIN
- #define Y_MS1_PIN 59 // PF5 | Pin 92 | A5 | | |
- #define Y_MS2_PIN 58 // PF4 | Pin 93 | A4 | | |
- #define Z_MS1_PIN 22 // PA0 | Pin 78 | D22 | | |
- #define Z_MS2_PIN 39 // PG2 | Pin 70 | D39 | | |
+#if MKS_BASE_VERSION >= 14 // |===== 1.4 =====|===== 1.5+ =====|
+ #define X_MS1_PIN 5 // PE3 | Pin 5 | PWM5 | | D3 | SERVO2_PIN
+ #define X_MS2_PIN 6 // PH3 | Pin 15 | PWM6 | Pin 14 | D6 | SERVO1_PIN
+ #define Y_MS1_PIN 59 // PF5 | Pin 92 | A5 | | |
+ #define Y_MS2_PIN 58 // PF4 | Pin 93 | A4 | | |
+ #define Z_MS1_PIN 22 // PA0 | Pin 78 | D22 | | |
+ #define Z_MS2_PIN 39 // PG2 | Pin 70 | D39 | | |
#if MKS_BASE_VERSION == 14
- #define E0_MS1_PIN 64 // PK2 | Pin 87 | A10 | | |
- #define E0_MS2_PIN 63 // PK1 | Pin 88 | A9 | | |
+ #define E0_MS1_PIN 64 // PK2 | Pin 87 | A10 | | |
+ #define E0_MS2_PIN 63 // PK1 | Pin 88 | A9 | | |
#else
- #define E0_MS1_PIN 63 // PK1 | | | Pin 86 | A9 |
- #define E0_MS2_PIN 64 // PK2 | | | Pin 87 | A10 |
+ #define E0_MS1_PIN 63 // PK1 | | | Pin 86 | A9 |
+ #define E0_MS2_PIN 64 // PK2 | | | Pin 87 | A10 |
#endif
- #define E1_MS1_PIN 57 // PF3 | Pin 94 | A3 | Pin 93 | A3 |
- #define E1_MS2_PIN 4 // PG5 | Pin 1 | PWM4 | | D4 | SERVO3_PIN
+ #define E1_MS1_PIN 57 // PF3 | Pin 94 | A3 | Pin 93 | A3 |
+ #define E1_MS2_PIN 4 // PG5 | Pin 1 | PWM4 | | D4 | SERVO3_PIN
#endif
#include "pins_RAMPS.h"
diff --git a/Marlin/src/pins/ramps/pins_MKS_GEN_13.h b/Marlin/src/pins/ramps/pins_MKS_GEN_13.h
index 82a2111810..c4c90ba6fa 100644
--- a/Marlin/src/pins/ramps/pins_MKS_GEN_13.h
+++ b/Marlin/src/pins/ramps/pins_MKS_GEN_13.h
@@ -40,7 +40,7 @@
// Heaters / Fans
//
// Power outputs EFBF or EFBE
-#define MOSFET_D_PIN 7
+#define MOSFET_D_PIN 7
//
// PSU / SERVO
@@ -48,8 +48,8 @@
// If PSU_CONTROL is specified, always hijack Servo 3
//
#if ENABLED(PSU_CONTROL)
- #define SERVO3_PIN -1
- #define PS_ON_PIN 4
+ #define SERVO3_PIN -1
+ #define PS_ON_PIN 4
#endif
#include "pins_RAMPS.h"
@@ -104,44 +104,44 @@
//
// orange/white SDCD
- #define SD_DETECT_PIN 49
+ #define SD_DETECT_PIN 49
// white ENCA
- #define BTN_EN1 35
+ #define BTN_EN1 35
// green ENCB
- #define BTN_EN2 37
+ #define BTN_EN2 37
// purple ENCBTN
- #define BTN_ENC 31
+ #define BTN_ENC 31
// brown A0
- #define DOGLCD_A0 27
+ #define DOGLCD_A0 27
// green/white LCS
- #define DOGLCD_CS 29
+ #define DOGLCD_CS 29
// 50 gray MISO
// 51 yellow MOSI
// 52 orange SCK
// blue SDCS
- //#define SDSS 53
+ //#define SDSS 53
//
// VIKI2 4-wire lead
//
// blue BTN
- #define KILL_PIN 23
+ #define KILL_PIN 23
// green BUZZER
- #define BEEPER_PIN 25
+ #define BEEPER_PIN 25
// yellow RED-LED
- #define STAT_LED_RED_PIN 16
+ #define STAT_LED_RED_PIN 16
// white BLUE-LED
- #define STAT_LED_BLUE_PIN 17
+ #define STAT_LED_BLUE_PIN 17
#endif
diff --git a/Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h b/Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h
index d56bbd1e45..3236627c3b 100644
--- a/Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h
+++ b/Marlin/src/pins/ramps/pins_MKS_GEN_L_V2.h
@@ -35,7 +35,7 @@
// Heaters / Fans
//
// Power outputs EFBF or EFBE
-#define MOSFET_D_PIN 7
+#define MOSFET_D_PIN 7
//
// CS Pins wired to avoid conflict with the LCD
@@ -43,47 +43,47 @@
//
#ifndef X_CS_PIN
- #define X_CS_PIN 63
+ #define X_CS_PIN 63
#endif
#ifndef Y_CS_PIN
- #define Y_CS_PIN 64
+ #define Y_CS_PIN 64
#endif
#ifndef Z_CS_PIN
- #define Z_CS_PIN 65
+ #define Z_CS_PIN 65
#endif
#ifndef E0_CS_PIN
- #define E0_CS_PIN 66
+ #define E0_CS_PIN 66
#endif
#ifndef E1_CS_PIN
- #define E1_CS_PIN 21
+ #define E1_CS_PIN 21
#endif
// TMC2130 Diag Pins (currently just for reference)
-#define X_DIAG_PIN 3
-#define Y_DIAG_PIN 14
-#define Z_DIAG_PIN 18
-#define E0_DIAG_PIN 2
-#define E1_DIAG_PIN 15
+#define X_DIAG_PIN 3
+#define Y_DIAG_PIN 14
+#define Z_DIAG_PIN 18
+#define E0_DIAG_PIN 2
+#define E1_DIAG_PIN 15
#ifndef SERVO1_PIN
- #define SERVO1_PIN 12
+ #define SERVO1_PIN 12
#endif
#ifndef SERVO2_PIN
- #define SERVO2_PIN 39
+ #define SERVO2_PIN 39
#endif
#ifndef SERVO3_PIN
- #define SERVO3_PIN 32
+ #define SERVO3_PIN 32
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN 20
+ #define E1_SERIAL_TX_PIN 20
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN 21
+ #define E1_SERIAL_RX_PIN 21
#endif
#include "pins_RAMPS.h"
diff --git a/Marlin/src/pins/ramps/pins_RAMPS.h b/Marlin/src/pins/ramps/pins_RAMPS.h
index 4ec882bcce..050932773e 100644
--- a/Marlin/src/pins/ramps/pins_RAMPS.h
+++ b/Marlin/src/pins/ramps/pins_RAMPS.h
@@ -66,19 +66,19 @@
//
#ifndef SERVO0_PIN
#ifdef IS_RAMPS_13
- #define SERVO0_PIN 7
+ #define SERVO0_PIN 7
#else
- #define SERVO0_PIN 11
+ #define SERVO0_PIN 11
#endif
#endif
#ifndef SERVO1_PIN
- #define SERVO1_PIN 6
+ #define SERVO1_PIN 6
#endif
#ifndef SERVO2_PIN
- #define SERVO2_PIN 5
+ #define SERVO2_PIN 5
#endif
#ifndef SERVO3_PIN
- #define SERVO3_PIN 4
+ #define SERVO3_PIN 4
#endif
//
@@ -86,26 +86,26 @@
//
#ifndef X_STOP_PIN
#ifndef X_MIN_PIN
- #define X_MIN_PIN 3
+ #define X_MIN_PIN 3
#endif
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
#endif
#ifndef Y_STOP_PIN
#ifndef Y_MIN_PIN
- #define Y_MIN_PIN 14
+ #define Y_MIN_PIN 14
#endif
#ifndef Y_MAX_PIN
- #define Y_MAX_PIN 15
+ #define Y_MAX_PIN 15
#endif
#endif
#ifndef Z_STOP_PIN
#ifndef Z_MIN_PIN
- #define Z_MIN_PIN 18
+ #define Z_MIN_PIN 18
#endif
#ifndef Z_MAX_PIN
- #define Z_MAX_PIN 19
+ #define Z_MAX_PIN 19
#endif
#endif
@@ -113,65 +113,67 @@
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 53
+ #define X_CS_PIN 53
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN 49
+ #define Y_CS_PIN 49
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#ifndef Z_STEP_PIN
+ #define Z_STEP_PIN 46
+#endif
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN 40
+ #define Z_CS_PIN 40
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 42
+ #define E0_CS_PIN 42
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN 44
+ #define E1_CS_PIN 44
#endif
//
// Temperature Sensors
//
#ifndef TEMP_0_PIN
- #define TEMP_0_PIN 13 // Analog Input
+ #define TEMP_0_PIN 13 // Analog Input
#endif
#ifndef TEMP_1_PIN
- #define TEMP_1_PIN 15 // Analog Input
+ #define TEMP_1_PIN 15 // Analog Input
#endif
#ifndef TEMP_BED_PIN
- #define TEMP_BED_PIN 14 // Analog Input
+ #define TEMP_BED_PIN 14 // Analog Input
#endif
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -195,74 +197,74 @@
// Heaters / Fans
//
#ifndef MOSFET_D_PIN
- #define MOSFET_D_PIN -1
+ #define MOSFET_D_PIN -1
#endif
#ifndef RAMPS_D8_PIN
- #define RAMPS_D8_PIN 8
+ #define RAMPS_D8_PIN 8
#endif
#ifndef RAMPS_D9_PIN
- #define RAMPS_D9_PIN 9
+ #define RAMPS_D9_PIN 9
#endif
#ifndef RAMPS_D10_PIN
- #define RAMPS_D10_PIN 10
+ #define RAMPS_D10_PIN 10
#endif
-#define HEATER_0_PIN RAMPS_D10_PIN
+#define HEATER_0_PIN RAMPS_D10_PIN
-#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
- #define HEATER_1_PIN RAMPS_D9_PIN
-#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
- #define HEATER_1_PIN RAMPS_D9_PIN
- #define HEATER_BED_PIN RAMPS_D8_PIN
-#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
- #define FAN1_PIN RAMPS_D8_PIN
-#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
- #define HEATER_BED_PIN RAMPS_D8_PIN
+#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EEF) // Hotend, Hotend, Fan
+ #define HEATER_1_PIN RAMPS_D9_PIN
+#elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
+ #define HEATER_1_PIN RAMPS_D9_PIN
+ #define HEATER_BED_PIN RAMPS_D8_PIN
+#elif ENABLED(IS_RAMPS_EFF) // Hotend, Fan, Fan
+ #define FAN1_PIN RAMPS_D8_PIN
+#elif DISABLED(IS_RAMPS_SF) // Not Spindle, Fan (i.e., "EFBF" or "EFBE")
+ #define HEATER_BED_PIN RAMPS_D8_PIN
#if HOTENDS == 1
- #define FAN1_PIN MOSFET_D_PIN
+ #define FAN1_PIN MOSFET_D_PIN
#else
- #define HEATER_1_PIN MOSFET_D_PIN
+ #define HEATER_1_PIN MOSFET_D_PIN
#endif
#endif
#ifndef FAN_PIN
#if EITHER(IS_RAMPS_EFB, IS_RAMPS_EFF) // Hotend, Fan, Bed or Hotend, Fan, Fan
- #define FAN_PIN RAMPS_D9_PIN
+ #define FAN_PIN RAMPS_D9_PIN
#elif EITHER(IS_RAMPS_EEF, IS_RAMPS_SF) // Hotend, Hotend, Fan or Spindle, Fan
- #define FAN_PIN RAMPS_D8_PIN
- #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
- #define FAN_PIN 4 // IO pin. Buffer needed
- #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
- #define FAN_PIN RAMPS_D9_PIN
+ #define FAN_PIN RAMPS_D8_PIN
+ #elif ENABLED(IS_RAMPS_EEB) // Hotend, Hotend, Bed
+ #define FAN_PIN 4 // IO pin. Buffer needed
+ #else // Non-specific are "EFB" (i.e., "EFBF" or "EFBE")
+ #define FAN_PIN RAMPS_D9_PIN
#endif
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 5 // Analog Input on AUX2
+ #define FILWIDTH_PIN 5 // Analog Input on AUX2
#endif
// RAMPS 1.4 DIO 4 on the servos connector
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 4
+ #define FIL_RUNOUT_PIN 4
#endif
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
- #if NUM_SERVOS <= 1 // Prefer the servo connector
- #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #if NUM_SERVOS <= 1 // Prefer the servo connector
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
#elif HAS_FREE_AUX2_PINS
- #define CASE_LIGHT_PIN 44 // Hardware PWM
+ #define CASE_LIGHT_PIN 44 // Hardware PWM
#endif
#endif
@@ -270,14 +272,14 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
- #if !NUM_SERVOS // Use servo connector if possible
- #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
+ #if !NUM_SERVOS // Use servo connector if possible
+ #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
#elif HAS_FREE_AUX2_PINS
- #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_DIR_PIN 65
+ #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_DIR_PIN 65
#else
#error "No auto-assignable Spindle/Laser pins available."
#endif
@@ -288,28 +290,28 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI 66
+ #define TMC_SW_MOSI 66
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO 44
+ #define TMC_SW_MISO 44
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK 64
+ #define TMC_SW_SCK 64
#endif
#endif
-#if HAS_TMC220x
+#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 X_HARDWARE_SERIAL Serial1
//#define X2_HARDWARE_SERIAL Serial1
- //#define Y_HARDWARE_SERIAL Serial1
+ //#define Y_HARDWARE_SERIAL Serial1
//#define Y2_HARDWARE_SERIAL Serial1
- //#define Z_HARDWARE_SERIAL Serial1
+ //#define Z_HARDWARE_SERIAL Serial1
//#define Z2_HARDWARE_SERIAL Serial1
//#define E0_HARDWARE_SERIAL Serial1
//#define E1_HARDWARE_SERIAL Serial1
@@ -322,91 +324,91 @@
//
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN 40
+ #define X_SERIAL_TX_PIN 40
#endif
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN 63
+ #define X_SERIAL_RX_PIN 63
#endif
#ifndef X2_SERIAL_TX_PIN
- #define X2_SERIAL_TX_PIN -1
+ #define X2_SERIAL_TX_PIN -1
#endif
#ifndef X2_SERIAL_RX_PIN
- #define X2_SERIAL_RX_PIN -1
+ #define X2_SERIAL_RX_PIN -1
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN 59
+ #define Y_SERIAL_TX_PIN 59
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN 64
+ #define Y_SERIAL_RX_PIN 64
#endif
#ifndef Y2_SERIAL_TX_PIN
- #define Y2_SERIAL_TX_PIN -1
+ #define Y2_SERIAL_TX_PIN -1
#endif
#ifndef Y2_SERIAL_RX_PIN
- #define Y2_SERIAL_RX_PIN -1
+ #define Y2_SERIAL_RX_PIN -1
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN 42
+ #define Z_SERIAL_TX_PIN 42
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN 65
+ #define Z_SERIAL_RX_PIN 65
#endif
#ifndef Z2_SERIAL_TX_PIN
- #define Z2_SERIAL_TX_PIN -1
+ #define Z2_SERIAL_TX_PIN -1
#endif
#ifndef Z2_SERIAL_RX_PIN
- #define Z2_SERIAL_RX_PIN -1
+ #define Z2_SERIAL_RX_PIN -1
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN 44
+ #define E0_SERIAL_TX_PIN 44
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN 66
+ #define E0_SERIAL_RX_PIN 66
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN -1
+ #define E1_SERIAL_TX_PIN -1
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN -1
+ #define E1_SERIAL_RX_PIN -1
#endif
#ifndef E2_SERIAL_TX_PIN
- #define E2_SERIAL_TX_PIN -1
+ #define E2_SERIAL_TX_PIN -1
#endif
#ifndef E2_SERIAL_RX_PIN
- #define E2_SERIAL_RX_PIN -1
+ #define E2_SERIAL_RX_PIN -1
#endif
#ifndef E3_SERIAL_TX_PIN
- #define E3_SERIAL_TX_PIN -1
+ #define E3_SERIAL_TX_PIN -1
#endif
#ifndef E3_SERIAL_RX_PIN
- #define E3_SERIAL_RX_PIN -1
+ #define E3_SERIAL_RX_PIN -1
#endif
#ifndef E4_SERIAL_TX_PIN
- #define E4_SERIAL_TX_PIN -1
+ #define E4_SERIAL_TX_PIN -1
#endif
#ifndef E4_SERIAL_RX_PIN
- #define E4_SERIAL_RX_PIN -1
+ #define E4_SERIAL_RX_PIN -1
#endif
#ifndef E5_SERIAL_TX_PIN
- #define E5_SERIAL_TX_PIN -1
+ #define E5_SERIAL_TX_PIN -1
#endif
#ifndef E5_SERIAL_RX_PIN
- #define E5_SERIAL_RX_PIN -1
+ #define E5_SERIAL_RX_PIN -1
#endif
#ifndef E6_SERIAL_TX_PIN
- #define E6_SERIAL_TX_PIN -1
+ #define E6_SERIAL_TX_PIN -1
#endif
#ifndef E6_SERIAL_RX_PIN
- #define E6_SERIAL_RX_PIN -1
+ #define E6_SERIAL_RX_PIN -1
#endif
#ifndef E7_SERIAL_TX_PIN
- #define E7_SERIAL_TX_PIN -1
+ #define E7_SERIAL_TX_PIN -1
#endif
#ifndef E7_SERIAL_RX_PIN
- #define E7_SERIAL_RX_PIN -1
+ #define E7_SERIAL_RX_PIN -1
#endif
#endif
@@ -414,13 +416,13 @@
// Průša i3 MK2 Multiplexer Support
//
#ifndef E_MUX0_PIN
- #define E_MUX0_PIN 40 // Z_CS_PIN
+ #define E_MUX0_PIN 40 // Z_CS_PIN
#endif
#ifndef E_MUX1_PIN
- #define E_MUX1_PIN 42 // E0_CS_PIN
+ #define E_MUX1_PIN 42 // E0_CS_PIN
#endif
#ifndef E_MUX2_PIN
- #define E_MUX2_PIN 44 // E1_CS_PIN
+ #define E_MUX2_PIN 44 // E1_CS_PIN
#endif
//////////////////////////
@@ -434,62 +436,62 @@
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE 51 // SID (MOSI)
- #define LCD_PINS_D4 52 // SCK (CLK) clock
+ #define LCD_PINS_RS 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 40
- #define LCD_PINS_ENABLE 42
- #define LCD_PINS_D4 65
- #define LCD_PINS_D5 66
- #define LCD_PINS_D6 44
- #define LCD_PINS_D7 64
+ #define LCD_PINS_RS 40
+ #define LCD_PINS_ENABLE 42
+ #define LCD_PINS_D4 65
+ #define LCD_PINS_D5 66
+ #define LCD_PINS_D6 44
+ #define LCD_PINS_D7 64
#else
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 25
+ #define LCD_PINS_RS 27
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 25
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#endif
#elif ENABLED(ZONESTAR_LCD)
- #define LCD_PINS_RS 64
- #define LCD_PINS_ENABLE 44
- #define LCD_PINS_D4 63
- #define LCD_PINS_D5 40
- #define LCD_PINS_D6 42
- #define LCD_PINS_D7 65
+ #define LCD_PINS_RS 64
+ #define LCD_PINS_ENABLE 44
+ #define LCD_PINS_D4 63
+ #define LCD_PINS_D5 40
+ #define LCD_PINS_D6 42
+ #define LCD_PINS_D7 65
#else
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
- #define LCD_PINS_DC 25 // Set as output on init
- #define LCD_PINS_RS 27 // Pull low for 1s to init
+ #define LCD_PINS_DC 25 // Set as output on init
+ #define LCD_PINS_RS 27 // Pull low for 1s to init
// DOGM SPI LCD Support
- #define DOGLCD_CS 16
- #define DOGLCD_MOSI 17
- #define DOGLCD_SCK 23
- #define DOGLCD_A0 LCD_PINS_DC
+ #define DOGLCD_CS 16
+ #define DOGLCD_MOSI 17
+ #define DOGLCD_SCK 23
+ #define DOGLCD_A0 LCD_PINS_DC
#else
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
#endif
- #define LCD_PINS_D7 29
+ #define LCD_PINS_D7 29
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#endif
#endif
@@ -497,10 +499,10 @@
#if DISABLED(NEWPANEL)
// Buttons attached to a shift register
// Not wired yet
- //#define SHIFT_CLK 38
- //#define SHIFT_LD 42
- //#define SHIFT_OUT 40
- //#define SHIFT_EN 17
+ //#define SHIFT_CLK 38
+ //#define SHIFT_LD 42
+ //#define SHIFT_OUT 40
+ //#define SHIFT_EN 17
#endif
#endif
@@ -512,99 +514,99 @@
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#if ENABLED(CR10_STOCKDISPLAY)
- #define BTN_EN1 17
- #define BTN_EN2 23
+ #define BTN_EN1 17
+ #define BTN_EN2 23
#else
- #define BTN_EN1 31
- #define BTN_EN2 33
+ #define BTN_EN1 31
+ #define BTN_EN2 33
#endif
- #define BTN_ENC 35
+ #define BTN_ENC 35
#ifndef SD_DETECT_PIN
- #define SD_DETECT_PIN 49
+ #define SD_DETECT_PIN 49
#endif
#ifndef KILL_PIN
- #define KILL_PIN 41
+ #define KILL_PIN 41
#endif
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
- #define LCD_BACKLIGHT_PIN 39
+ #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
+ #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 SDSS
- #define KILL_PIN 41
+ #define BTN_EN1 47
+ #define BTN_EN2 43
+ #define BTN_ENC 32
+ #define LCD_SDSS SDSS
+ #define KILL_PIN 41
#elif ENABLED(LCD_I2C_VIKI)
- #define BTN_EN1 40 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
- #define BTN_EN2 42
- #define BTN_ENC -1
+ #define BTN_EN1 40 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
+ #define BTN_EN2 42
+ #define BTN_ENC -1
- #define LCD_SDSS SDSS
- #define SD_DETECT_PIN 49
+ #define LCD_SDSS SDSS
+ #define SD_DETECT_PIN 49
#elif ANY(VIKI2, miniVIKI)
- #define DOGLCD_CS 45
- #define DOGLCD_A0 44
+ #define DOGLCD_CS 45
+ #define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
- #define BEEPER_PIN 33
- #define STAT_LED_RED_PIN 32
- #define STAT_LED_BLUE_PIN 35
+ #define BEEPER_PIN 33
+ #define STAT_LED_RED_PIN 32
+ #define STAT_LED_BLUE_PIN 35
- #define BTN_EN1 22
- #define BTN_EN2 7
- #define BTN_ENC 39
+ #define BTN_EN1 22
+ #define BTN_EN2 7
+ #define BTN_ENC 39
- #define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
- #define KILL_PIN 31
+ #define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
+ #define KILL_PIN 31
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
- #define DOGLCD_CS 29
- #define DOGLCD_A0 27
+ #define DOGLCD_CS 29
+ #define DOGLCD_A0 27
- #define BEEPER_PIN 23
- #define LCD_BACKLIGHT_PIN 33
+ #define BEEPER_PIN 23
+ #define LCD_BACKLIGHT_PIN 33
- #define BTN_EN1 35
- #define BTN_EN2 37
- #define BTN_ENC 31
+ #define BTN_EN1 35
+ #define BTN_EN2 37
+ #define BTN_ENC 31
- #define LCD_SDSS SDSS
- #define SD_DETECT_PIN 49
- #define KILL_PIN 41
+ #define LCD_SDSS SDSS
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
- #define BEEPER_PIN 37
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
+ #define BEEPER_PIN 37
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
#ifndef KILL_PIN
- #define KILL_PIN 41
+ #define KILL_PIN 41
#endif
- #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
+ #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
- #define DOGLCD_A0 27
- #define DOGLCD_CS 25
+ #define DOGLCD_A0 27
+ #define DOGLCD_CS 25
// GLCD features
// Uncomment screen orientation
@@ -613,50 +615,50 @@
//#define LCD_SCREEN_ROT_270
// not connected to a pin
- #define LCD_BACKLIGHT_PIN -1 // 65 (MKS mini12864 can't adjust backlight by software!)
+ #define LCD_BACKLIGHT_PIN -1 // 65 (MKS mini12864 can't adjust backlight by software!)
- #define BTN_EN1 31
- #define BTN_EN2 33
+ #define BTN_EN1 31
+ #define BTN_EN2 33
#elif ENABLED(FYSETC_MINI_12864)
// From https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
- #define DOGLCD_A0 16
- #define DOGLCD_CS 17
+ #define DOGLCD_A0 16
+ #define DOGLCD_CS 17
- #define BTN_EN1 33
- #define BTN_EN2 31
+ #define BTN_EN1 33
+ #define BTN_EN2 31
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN 23 // 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 25
+ #define RGB_LED_R_PIN 25
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 27
+ #define RGB_LED_G_PIN 27
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 29
+ #define RGB_LED_B_PIN 29
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 25
+ #define NEOPIXEL_PIN 25
#endif
#endif
#elif ENABLED(MINIPANEL)
- #define BEEPER_PIN 42
+ #define BEEPER_PIN 42
// not connected to a pin
- #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
+ #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
- #define DOGLCD_A0 44
- #define DOGLCD_CS 66
+ #define DOGLCD_A0 44
+ #define DOGLCD_CS 66
// GLCD features
// Uncomment screen orientation
@@ -664,16 +666,16 @@
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BTN_EN1 40
- #define BTN_EN2 63
- #define BTN_ENC 59
+ #define BTN_EN1 40
+ #define BTN_EN2 63
+ #define BTN_ENC 59
- #define SD_DETECT_PIN 49
- #define KILL_PIN 64
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 64
#elif ENABLED(ZONESTAR_LCD)
- #define ADC_KEYPAD_PIN 12
+ #define ADC_KEYPAD_PIN 12
#elif ENABLED(AZSMZ_12864)
@@ -682,22 +684,22 @@
#else
// Beeper on AUX-4
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
// Buttons are directly attached to AUX-2
#if ENABLED(PANEL_ONE)
- #define BTN_EN1 59 // AUX2 PIN 3
- #define BTN_EN2 63 // AUX2 PIN 4
- #define BTN_ENC 49 // AUX3 PIN 7
+ #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
+ #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
+ #define SD_DETECT_PIN 49
+ #define KILL_PIN 41
#endif
#endif
@@ -706,16 +708,16 @@
#endif // HAS_SPI_LCD
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT 40
- #define SHIFT_CLK 44
- #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_CLK 44
+ #define SHIFT_LD 42
#ifndef BTN_EN1
- #define BTN_EN1 64
+ #define BTN_EN1 64
#endif
#ifndef BTN_EN2
- #define BTN_EN2 59
+ #define BTN_EN2 59
#endif
#ifndef BTN_ENC
- #define BTN_ENC 63
+ #define BTN_ENC 63
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h b/Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
index ea2ace7e86..f6847feb4b 100644
--- a/Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
+++ b/Marlin/src/pins/ramps/pins_RAMPS_CREALITY.h
@@ -32,31 +32,31 @@
//
// Power outputs EFBF or EFBE
-#define MOSFET_D_PIN 7
+#define MOSFET_D_PIN 7
-#define FIL_RUNOUT_PIN 2
+#define FIL_RUNOUT_PIN 2
#if NUM_RUNOUT_SENSORS > 1
- #define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors
+ #define FIL_RUNOUT2_PIN 15 // Creality CR-X can use dual runout sensors
#endif
-#define SD_DETECT_PIN 49 // Always define onboard SD detect
+#define SD_DETECT_PIN 49 // Always define onboard SD detect
-#define PS_ON_PIN 40 // Used by CR2020 Industrial series
+#define PS_ON_PIN 40 // Used by CR2020 Industrial series
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN)
- #define CASE_LIGHT_PIN 65
+ #define CASE_LIGHT_PIN 65
#endif
#include "pins_RAMPS.h"
#ifndef BEEPER_PIN
- #define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI
+ #define BEEPER_PIN 37 // Always define beeper pin so Play Tone works with ExtUI
#endif
-#define EXP1_PIN 65 // A11 - Used by CR2020 Industrial series for case
-#define EXP2_PIN 66 // A12
-#define EXP3_PIN 11 // SERVO0_PIN
-#define EXP4_PIN 12 // PS_ON_PIN
+#define EXP1_PIN 65 // A11 - Used by CR2020 Industrial series for case
+#define EXP2_PIN 66 // A12
+#define EXP3_PIN 11 // SERVO0_PIN
+#define EXP4_PIN 12 // PS_ON_PIN
-#define SUICIDE_PIN 12 // Used by CR2020 Industrial series
-#define SUICIDE_PIN_INVERTING true // Used by CR2020 Industrial series
+#define SUICIDE_PIN 12 // Used by CR2020 Industrial series
+#define SUICIDE_PIN_INVERTING true // Used by CR2020 Industrial series
diff --git a/Marlin/src/pins/ramps/pins_RAMPS_DAGOMA.h b/Marlin/src/pins/ramps/pins_RAMPS_DAGOMA.h
index 39aecb0bc7..b0ba7822ef 100644
--- a/Marlin/src/pins/ramps/pins_RAMPS_DAGOMA.h
+++ b/Marlin/src/pins/ramps/pins_RAMPS_DAGOMA.h
@@ -27,12 +27,12 @@
#define BOARD_INFO_NAME "Dagoma3D F5 RAMPS"
-#define X_STOP_PIN 2
-#define Y_STOP_PIN 3
-#define Z_STOP_PIN 15
-#define FIL_RUNOUT_PIN 39
+#define X_STOP_PIN 2
+#define Y_STOP_PIN 3
+#define Z_STOP_PIN 15
+#define FIL_RUNOUT_PIN 39
-#define ORIG_E0_AUTO_FAN_PIN 7
+#define ORIG_E0_AUTO_FAN_PIN 7
//
// Import RAMPS 1.4 pins
diff --git a/Marlin/src/pins/ramps/pins_RAMPS_OLD.h b/Marlin/src/pins/ramps/pins_RAMPS_OLD.h
index aa45370e6a..0323366944 100644
--- a/Marlin/src/pins/ramps/pins_RAMPS_OLD.h
+++ b/Marlin/src/pins/ramps/pins_RAMPS_OLD.h
@@ -37,80 +37,80 @@
//
// Limit Switches
//
-#define X_MIN_PIN 3
-#define X_MAX_PIN 2
-#define Y_MIN_PIN 16
-#define Y_MAX_PIN 17
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define X_MIN_PIN 3
+#define X_MAX_PIN 2
+#define Y_MIN_PIN 16
+#define Y_MAX_PIN 17
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 19
+ #define Z_MIN_PROBE_PIN 19
#endif
//
// Steppers
//
-#define X_STEP_PIN 26
-#define X_DIR_PIN 28
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 26
+#define X_DIR_PIN 28
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 38
-#define Y_DIR_PIN 40
-#define Y_ENABLE_PIN 36
+#define Y_STEP_PIN 38
+#define Y_DIR_PIN 40
+#define Y_ENABLE_PIN 36
-#define Z_STEP_PIN 44
-#define Z_DIR_PIN 46
-#define Z_ENABLE_PIN 42
+#define Z_STEP_PIN 44
+#define Z_DIR_PIN 46
+#define Z_ENABLE_PIN 42
-#define E0_STEP_PIN 32
-#define E0_DIR_PIN 34
-#define E0_ENABLE_PIN 30
+#define E0_STEP_PIN 32
+#define E0_DIR_PIN 34
+#define E0_ENABLE_PIN 30
//
// Temperature Sensors
//
-#define TEMP_0_PIN 2 // Analog Input
-#define TEMP_BED_PIN 1 // Analog Input
+#define TEMP_0_PIN 2 // Analog Input
+#define TEMP_BED_PIN 1 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 66 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 66 // Don't use 49 (SD_DETECT_PIN)
#endif
//
// Heaters / Fans
//
#if ENABLED(RAMPS_V_1_0)
- #define HEATER_0_PIN 12
- #define HEATER_BED_PIN -1
+ #define HEATER_0_PIN 12
+ #define HEATER_BED_PIN -1
#ifndef FAN_PIN
- #define FAN_PIN 11
+ #define FAN_PIN 11
#endif
-#else // RAMPS_V_1_1 or RAMPS_V_1_2
- #define HEATER_0_PIN 10
- #define HEATER_BED_PIN 8
+#else // RAMPS_V_1_1 or RAMPS_V_1_2
+ #define HEATER_0_PIN 10
+ #define HEATER_BED_PIN 8
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
#endif
//
// Misc. Functions
//
-#define SDPOWER_PIN 48
-#define SDSS 53
-#define LED_PIN 13
-#define CASE_LIGHT_PIN 45 // Hardware PWM
+#define SDPOWER_PIN 48
+#define SDSS 53
+#define LED_PIN 13
+#define CASE_LIGHT_PIN 45 // Hardware PWM
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
-#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
-#define SPINDLE_DIR_PIN 43
+#define SPINDLE_LASER_ENA_PIN 41 // Pullup or pulldown!
+#define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
+#define SPINDLE_DIR_PIN 43
diff --git a/Marlin/src/pins/ramps/pins_RAMPS_PLUS.h b/Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
index 24aa7b9c90..f93b6dcc86 100644
--- a/Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
+++ b/Marlin/src/pins/ramps/pins_RAMPS_PLUS.h
@@ -44,8 +44,8 @@
#define BOARD_INFO_NAME "RAMPS 1.4 Plus"
-#define RAMPS_D8_PIN 10
-#define RAMPS_D10_PIN 8
+#define RAMPS_D8_PIN 10
+#define RAMPS_D10_PIN 8
#include "pins_RAMPS.h"
@@ -60,13 +60,13 @@
#undef E1_DIR_PIN
#undef E1_ENABLE_PIN
-#define E0_STEP_PIN 36
-#define E0_DIR_PIN 34
-#define E0_ENABLE_PIN 30
+#define E0_STEP_PIN 36
+#define E0_DIR_PIN 34
+#define E0_ENABLE_PIN 30
-#define E1_STEP_PIN 26
-#define E1_DIR_PIN 28
-#define E1_ENABLE_PIN 24
+#define E1_STEP_PIN 26
+#define E1_DIR_PIN 28
+#define E1_ENABLE_PIN 24
#undef X_CS_PIN
#undef Y_CS_PIN
@@ -77,10 +77,10 @@
#if ENABLED(ULTRA_LCD, REPRAPWORLD_GRAPHICAL_LCD, CR10_STOCKDISPLAY) && !BOTH(NEWPANEL, PANEL_ONE)
#if DISABLED(MKS_12864OLED) || ENABLED(MKS_12864OLED_SSD1306)
#undef LCD_PINS_RS
- #define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
+ #define LCD_PINS_RS 42 // 3DYMY boards pin 16 -> 42
#undef LCD_PINS_ENABLE
- #define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
+ #define LCD_PINS_ENABLE 44 // 3DYMY boards pin 17 -> 44
#endif
#undef LCD_PINS_D7
- #define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
+ #define LCD_PINS_D7 53 // 3DYMY boards pin 29 -> 53
#endif
diff --git a/Marlin/src/pins/ramps/pins_RIGIDBOARD.h b/Marlin/src/pins/ramps/pins_RIGIDBOARD.h
index da6b6e4187..8e84281754 100644
--- a/Marlin/src/pins/ramps/pins_RIGIDBOARD.h
+++ b/Marlin/src/pins/ramps/pins_RIGIDBOARD.h
@@ -33,15 +33,15 @@
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 19 // Z-MAX pin J14 End Stops
+ #define Z_MIN_PROBE_PIN 19 // Z-MAX pin J14 End Stops
#endif
//
// MOSFET changes
//
-#define RAMPS_D9_PIN 8 // FAN (by default)
-#define RAMPS_D10_PIN 9 // EXTRUDER 1
-#define MOSFET_D_PIN 12 // EXTRUDER 2 or FAN
+#define RAMPS_D9_PIN 8 // FAN (by default)
+#define RAMPS_D10_PIN 9 // EXTRUDER 1
+#define MOSFET_D_PIN 12 // EXTRUDER 2 or FAN
#include "pins_RAMPS.h"
@@ -52,18 +52,18 @@
#undef E0_STEP_PIN
#undef E0_DIR_PIN
#undef E0_ENABLE_PIN
-#define E0_STEP_PIN 36
-#define E0_DIR_PIN 34
-#define E0_ENABLE_PIN 30
+#define E0_STEP_PIN 36
+#define E0_DIR_PIN 34
+#define E0_ENABLE_PIN 30
#undef E1_STEP_PIN
#undef E1_DIR_PIN
#undef E1_ENABLE_PIN
-#define E1_STEP_PIN 26
-#define E1_DIR_PIN 28
-#define E1_ENABLE_PIN 24
+#define E1_STEP_PIN 26
+#define E1_DIR_PIN 28
+#define E1_ENABLE_PIN 24
-#define STEPPER_RESET_PIN 41 // Stepper drivers have a reset on RigidBot
+#define STEPPER_RESET_PIN 41 // Stepper drivers have a reset on RigidBot
//
// Temperature Sensors
@@ -71,33 +71,33 @@
#undef TEMP_0_PIN
#undef TEMP_1_PIN
#undef TEMP_BED_PIN
-#define TEMP_0_PIN 14 // Analog Input
-#define TEMP_1_PIN 13 // Analog Input
-#define TEMP_BED_PIN 15 // Analog Input
+#define TEMP_0_PIN 14 // Analog Input
+#define TEMP_1_PIN 13 // Analog Input
+#define TEMP_BED_PIN 15 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53 // Don't use pin 53 if there is even the remote possibility of using Display/SD card
+ #define MAX6675_SS_PIN 53 // Don't use pin 53 if there is even the remote possibility of using Display/SD card
#else
- #define MAX6675_SS_PIN 49 // Don't use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
+ #define MAX6675_SS_PIN 49 // Don't use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
#endif
//
// Heaters / Fans
//
#undef HEATER_BED_PIN
-#define HEATER_BED_PIN 10
+#define HEATER_BED_PIN 10
#ifndef FAN_PIN
- #define FAN_PIN 8 // Same as RAMPS_13_EEF
+ #define FAN_PIN 8 // Same as RAMPS_13_EEF
#endif
//
// Misc. Functions
//
#undef PS_ON_PIN
-#define PS_ON_PIN -1
+#define PS_ON_PIN -1
//
// LCD / Controller
@@ -106,33 +106,33 @@
#if ENABLED(RIGIDBOT_PANEL)
#undef BEEPER_PIN
- #define BEEPER_PIN -1
+ #define BEEPER_PIN -1
// Direction buttons
- #define BTN_UP 37
- #define BTN_DWN 35
- #define BTN_LFT 33
- #define BTN_RT 32
+ #define BTN_UP 37
+ #define BTN_DWN 35
+ #define BTN_LFT 33
+ #define BTN_RT 32
// 'R' button
#undef BTN_ENC
- #define BTN_ENC 31
+ #define BTN_ENC 31
// Disable encoder
#undef BTN_EN1
- #define BTN_EN1 -1
+ #define BTN_EN1 -1
#undef BTN_EN2
- #define BTN_EN2 -1
+ #define BTN_EN2 -1
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN 22
+ #define SD_DETECT_PIN 22
#elif ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN 22
+ #define SD_DETECT_PIN 22
#undef KILL_PIN
- #define KILL_PIN 32
+ #define KILL_PIN 32
#endif
diff --git a/Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h b/Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h
index eb46ec9eaa..d56ab1bb7f 100644
--- a/Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h
+++ b/Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h
@@ -40,12 +40,12 @@
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }
#define DAC_STEPPER_SENSE 0.05 // sense resistors on rigidboard stepper chips are .05 value
-#define DAC_STEPPER_ADDRESS 0
-#define DAC_STEPPER_MAX 4096 // was 5000 but max allowable value is actually 4096
-#define DAC_STEPPER_VREF 1 // internal Vref, gain 2x = 4.096V
-#define DAC_STEPPER_GAIN 1 // value of 1 here sets gain of 2
-#define DAC_DISABLE_PIN 42 // set low to enable DAC
-#define DAC_OR_ADDRESS 0x01
+#define DAC_STEPPER_ADDRESS 0
+#define DAC_STEPPER_MAX 4096 // was 5000 but max allowable value is actually 4096
+#define DAC_STEPPER_VREF 1 // internal Vref, gain 2x = 4.096V
+#define DAC_STEPPER_GAIN 1 // value of 1 here sets gain of 2
+#define DAC_DISABLE_PIN 42 // set low to enable DAC
+#define DAC_OR_ADDRESS 0x01
#ifndef DAC_MOTOR_CURRENT_DEFAULT
#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
diff --git a/Marlin/src/pins/ramps/pins_RL200.h b/Marlin/src/pins/ramps/pins_RL200.h
index 570a9c26f9..7b0303476b 100644
--- a/Marlin/src/pins/ramps/pins_RL200.h
+++ b/Marlin/src/pins/ramps/pins_RL200.h
@@ -37,16 +37,16 @@
#error "You must set ([XYZ]|Z2|E0)_DRIVER_TYPE to DRV8825 in Configuration.h for RL200."
#endif
-#define E0_STEP_PIN 26 // (RUMBA E1 pins)
-#define E0_DIR_PIN 25
-#define E0_ENABLE_PIN 27
+#define E0_STEP_PIN 26 // (RUMBA E1 pins)
+#define E0_DIR_PIN 25
+#define E0_ENABLE_PIN 27
-#define E1_STEP_PIN 29 // (RUMBA E2 pins)
-#define E1_DIR_PIN 28
-#define E1_ENABLE_PIN 39
+#define E1_STEP_PIN 29 // (RUMBA E2 pins)
+#define E1_DIR_PIN 28
+#define E1_ENABLE_PIN 39
-#define Z2_STEP_PIN 23 // (RUMBA E0 pins)
-#define Z2_DIR_PIN 22
-#define Z2_ENABLE_PIN 24
+#define Z2_STEP_PIN 23 // (RUMBA E0 pins)
+#define Z2_DIR_PIN 22
+#define Z2_ENABLE_PIN 24
#include "pins_RUMBA.h"
diff --git a/Marlin/src/pins/ramps/pins_RUMBA.h b/Marlin/src/pins/ramps/pins_RUMBA.h
index e613b9cb6c..4bf10d7399 100644
--- a/Marlin/src/pins/ramps/pins_RUMBA.h
+++ b/Marlin/src/pins/ramps/pins_RUMBA.h
@@ -41,56 +41,56 @@
//
// Servos
//
-#define SERVO0_PIN 5
+#define SERVO0_PIN 5
//
// Limit Switches
//
-#define X_MIN_PIN 37
-#define X_MAX_PIN 36
-#define Y_MIN_PIN 35
-#define Y_MAX_PIN 34
-#define Z_MIN_PIN 33
-#define Z_MAX_PIN 32
+#define X_MIN_PIN 37
+#define X_MAX_PIN 36
+#define Y_MIN_PIN 35
+#define Y_MAX_PIN 34
+#define Z_MIN_PIN 33
+#define Z_MAX_PIN 32
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 17
-#define X_DIR_PIN 16
-#define X_ENABLE_PIN 48
+#define X_STEP_PIN 17
+#define X_DIR_PIN 16
+#define X_ENABLE_PIN 48
-#define Y_STEP_PIN 54
-#define Y_DIR_PIN 47
-#define Y_ENABLE_PIN 55
+#define Y_STEP_PIN 54
+#define Y_DIR_PIN 47
+#define Y_ENABLE_PIN 55
-#define Z_STEP_PIN 57
-#define Z_DIR_PIN 56
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 57
+#define Z_DIR_PIN 56
+#define Z_ENABLE_PIN 62
#ifndef E0_STEP_PIN
- #define E0_STEP_PIN 23
- #define E0_DIR_PIN 22
- #define E0_ENABLE_PIN 24
+ #define E0_STEP_PIN 23
+ #define E0_DIR_PIN 22
+ #define E0_ENABLE_PIN 24
#endif
#ifndef E1_STEP_PIN
- #define E1_STEP_PIN 26
- #define E1_DIR_PIN 25
- #define E1_ENABLE_PIN 27
+ #define E1_STEP_PIN 26
+ #define E1_DIR_PIN 25
+ #define E1_ENABLE_PIN 27
#endif
#if E1_STEP_PIN != 29
- #define E2_STEP_PIN 29
- #define E2_DIR_PIN 28
- #define E2_ENABLE_PIN 39
+ #define E2_STEP_PIN 29
+ #define E2_DIR_PIN 28
+ #define E2_ENABLE_PIN 39
#endif
//
@@ -98,134 +98,134 @@
//
#ifndef TEMP_0_PIN
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 6 // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used)
+ #define TEMP_0_PIN 6 // Analog Input (connector *K1* on RUMBA thermocouple ADD ON is used)
#else
- #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used)
+ #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used)
#endif
#endif
#ifndef TEMP_1_PIN
#if TEMP_SENSOR_1 == -1
- #define TEMP_1_PIN 5 // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used)
+ #define TEMP_1_PIN 5 // Analog Input (connector *K2* on RUMBA thermocouple ADD ON is used)
#else
- #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used)
+ #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used)
#endif
#endif
#if TEMP_SENSOR_2 == -1
- #define TEMP_2_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_BED is defined as thermocouple)
+ #define TEMP_2_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_BED is defined as thermocouple)
#else
- #define TEMP_2_PIN 13 // Analog Input (default connector for thermistor *T2* on rumba board is used)
+ #define TEMP_2_PIN 13 // Analog Input (default connector for thermistor *T2* on rumba board is used)
#endif
// Optional for extruder 4 or chamber:
-//#define TEMP_X_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
+//#define TEMP_X_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
#ifndef TEMP_CHAMBER_PIN
- //#define TEMP_CHAMBER_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
+ //#define TEMP_CHAMBER_PIN 12 // Analog Input (default connector for thermistor *T3* on rumba board is used)
#endif
#if TEMP_SENSOR_BED == -1
- #define TEMP_BED_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_2 is defined as thermocouple)
+ #define TEMP_BED_PIN 7 // Analog Input (connector *K3* on RUMBA thermocouple ADD ON is used <-- this can't be used when TEMP_SENSOR_2 is defined as thermocouple)
#else
- #define TEMP_BED_PIN 11 // Analog Input (default connector for thermistor *THB* on rumba board is used)
+ #define TEMP_BED_PIN 11 // Analog Input (default connector for thermistor *THB* on rumba board is used)
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_2_PIN 6
-#define HEATER_3_PIN 8
-#define HEATER_BED_PIN 9
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_2_PIN 6
+#define HEATER_3_PIN 8
+#define HEATER_BED_PIN 9
#ifndef FAN_PIN
- #define FAN_PIN 7
+ #define FAN_PIN 7
#endif
#ifndef FAN1_PIN
- #define FAN1_PIN 8
+ #define FAN1_PIN 8
#endif
//
// Misc. Functions
//
-#define LED_PIN 13
-#define PS_ON_PIN 45
-#define KILL_PIN 46
-#define CASE_LIGHT_PIN 45
+#define LED_PIN 13
+#define PS_ON_PIN 45
+#define KILL_PIN 46
+#define CASE_LIGHT_PIN 45
//
// M3/M4/M5 - Spindle/Laser Control
//
#ifndef SPINDLE_LASER_PWM_PIN
- #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM. Pin 4 interrupts OC0* and OC1* always in use?
+ #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM. Pin 4 interrupts OC0* and OC1* always in use?
#endif
#ifndef SPINDLE_LASER_ENA_PIN
- #define SPINDLE_LASER_ENA_PIN 14 // Pullup!
+ #define SPINDLE_LASER_ENA_PIN 14 // Pullup!
#endif
#ifndef SPINDLE_DIR_PIN
- #define SPINDLE_DIR_PIN 15
+ #define SPINDLE_DIR_PIN 15
#endif
//
// LCD / Controller
//
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
- #define LCD_PINS_DC 38 // Set as output on init
- #define LCD_PINS_RS 41 // Pull low for 1s to init
+ #define LCD_PINS_DC 38 // Set as output on init
+ #define LCD_PINS_RS 41 // Pull low for 1s to init
// DOGM SPI LCD Support
- #define DOGLCD_CS 19
- #define DOGLCD_MOSI 42
- #define DOGLCD_SCK 18
- #define DOGLCD_A0 LCD_PINS_DC
+ #define DOGLCD_CS 19
+ #define DOGLCD_MOSI 42
+ #define DOGLCD_SCK 18
+ #define DOGLCD_A0 LCD_PINS_DC
#elif ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS 42
- #define DOGLCD_A0 19
- #define DOGLCD_MOSI 51
- #define DOGLCD_SCK 52
+ #define DOGLCD_CS 42
+ #define DOGLCD_A0 19
+ #define DOGLCD_MOSI 51
+ #define DOGLCD_SCK 52
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN 18 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN 18 // 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 41
+ #define RGB_LED_R_PIN 41
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 38
+ #define RGB_LED_G_PIN 38
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 40
+ #define RGB_LED_B_PIN 40
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 25
+ #define NEOPIXEL_PIN 25
#endif
#else
- #define LCD_PINS_RS 19
- #define LCD_PINS_ENABLE 42
- #define LCD_PINS_D4 18
- #define LCD_PINS_D5 38
- #define LCD_PINS_D6 41
+ #define LCD_PINS_RS 19
+ #define LCD_PINS_ENABLE 42
+ #define LCD_PINS_D4 18
+ #define LCD_PINS_D5 38
+ #define LCD_PINS_D6 41
#endif
-#define LCD_PINS_D7 40
+#define LCD_PINS_D7 40
//
// Beeper, SD Card, Encoder
//
-#define BEEPER_PIN 44
+#define BEEPER_PIN 44
#if ENABLED(SDSUPPORT)
- #define SDSS 53
- #define SD_DETECT_PIN 49
+ #define SDSS 53
+ #define SD_DETECT_PIN 49
#endif
#if ENABLED(NEWPANEL)
- #define BTN_EN1 11
- #define BTN_EN2 12
- #define BTN_ENC 43
+ #define BTN_EN1 11
+ #define BTN_EN2 12
+ #define BTN_ENC 43
#endif
diff --git a/Marlin/src/pins/ramps/pins_TANGO.h b/Marlin/src/pins/ramps/pins_TANGO.h
index d3b7413fa2..221b30b0cb 100644
--- a/Marlin/src/pins/ramps/pins_TANGO.h
+++ b/Marlin/src/pins/ramps/pins_TANGO.h
@@ -27,24 +27,24 @@
#define BOARD_INFO_NAME "Tango"
-#define FAN_PIN 8
-#define FAN1_PIN -1
+#define FAN_PIN 8
+#define FAN1_PIN -1
-#define ORIG_E0_AUTO_FAN_PIN 7
+#define ORIG_E0_AUTO_FAN_PIN 7
#ifndef TEMP_0_PIN
#if TEMP_SENSOR_0 == -1
- #define TEMP_0_PIN 10 // Analog Input (connector *K1* on Tango thermocouple ADD ON is used)
+ #define TEMP_0_PIN 10 // Analog Input (connector *K1* on Tango thermocouple ADD ON is used)
#else
- #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used)
+ #define TEMP_0_PIN 15 // Analog Input (default connector for thermistor *T0* on rumba board is used)
#endif
#endif
#ifndef TEMP_1_PIN
#if TEMP_SENSOR_1 == -1
- #define TEMP_1_PIN 9 // Analog Input (connector *K2* on Tango thermocouple ADD ON is used)
+ #define TEMP_1_PIN 9 // Analog Input (connector *K2* on Tango thermocouple ADD ON is used)
#else
- #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used)
+ #define TEMP_1_PIN 14 // Analog Input (default connector for thermistor *T1* on rumba board is used)
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_TRIGORILLA_14.h b/Marlin/src/pins/ramps/pins_TRIGORILLA_14.h
index 1c5ea39279..dcf5ff5a0a 100644
--- a/Marlin/src/pins/ramps/pins_TRIGORILLA_14.h
+++ b/Marlin/src/pins/ramps/pins_TRIGORILLA_14.h
@@ -31,10 +31,10 @@
// Servos
//
#if MB(TRIGORILLA_14_11)
- #define SERVO0_PIN 5
- #define SERVO1_PIN 4
- #define SERVO2_PIN 11
- #define SERVO3_PIN 6
+ #define SERVO0_PIN 5
+ #define SERVO1_PIN 4
+ #define SERVO2_PIN 11
+ #define SERVO3_PIN 6
#endif
//
@@ -42,48 +42,48 @@
//
//#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
#if ENABLED(ANYCUBIC_4_MAX_PRO_ENDSTOPS)
- #define X_MAX_PIN 43
- #define Y_MIN_PIN 19
+ #define X_MAX_PIN 43
+ #define Y_MIN_PIN 19
#endif
// Labeled pins
-#define TRIGORILLA_HEATER_BED_PIN 8
-#define TRIGORILLA_HEATER_0_PIN 10
-#define TRIGORILLA_HEATER_1_PIN 45 // Anycubic Kossel: Unused
+#define TRIGORILLA_HEATER_BED_PIN 8
+#define TRIGORILLA_HEATER_0_PIN 10
+#define TRIGORILLA_HEATER_1_PIN 45 // Anycubic Kossel: Unused
-#define TRIGORILLA_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
-#define TRIGORILLA_FAN1_PIN 7 // Anycubic Kossel: Unused
-#define TRIGORILLA_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
+#define TRIGORILLA_FAN0_PIN 9 // Anycubic Kossel: Usually the part cooling fan
+#define TRIGORILLA_FAN1_PIN 7 // Anycubic Kossel: Unused
+#define TRIGORILLA_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
// Remap MOSFET pins to common usages:
-#define RAMPS_D10_PIN TRIGORILLA_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
+#define RAMPS_D10_PIN TRIGORILLA_HEATER_0_PIN // HEATER_0_PIN is always RAMPS_D10_PIN in pins_RAMPS.h
-#if HOTENDS > 1 // EEF and EEB
+#if HOTENDS > 1 // EEF and EEB
#define RAMPS_D9_PIN TRIGORILLA_HEATER_1_PIN
#if !TEMP_SENSOR_BED
// EEF
- #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
+ #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
#else
// EEB
- #define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
- #define FAN_PIN TRIGORILLA_FAN0_PIN // Override pin 4 in pins_RAMPS.h
+ #define RAMPS_D8_PINTRIGORILLA_HEATER_BED_PIN
+ #define FAN_PIN TRIGORILLA_FAN0_PIN // Override pin 4 in pins_RAMPS.h
#endif
#elif TEMP_SENSOR_BED
// EFB (Anycubic Kossel default)
- #define RAMPS_D9_PIN TRIGORILLA_FAN0_PIN
- #define RAMPS_D8_PIN TRIGORILLA_HEATER_BED_PIN
+ #define RAMPS_D9_PIN TRIGORILLA_FAN0_PIN
+ #define RAMPS_D8_PINTRIGORILLA_HEATER_BED_PIN
#else
// EFF
- #define RAMPS_D9_PIN TRIGORILLA_FAN1_PIN
- #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
+ #define RAMPS_D9_PIN TRIGORILLA_FAN1_PIN
+ #define RAMPS_D8_PIN TRIGORILLA_FAN0_PIN
#endif
-#if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
- #define FAN1_PIN TRIGORILLA_FAN1_PIN
+#if HOTENDS > 1 || TEMP_SENSOR_BED // EEF, EEB, EFB
+ #define FAN1_PIN TRIGORILLA_FAN1_PIN
#endif
-#define FAN2_PIN TRIGORILLA_FAN2_PIN
-#define ORIG_E0_AUTO_FAN_PIN TRIGORILLA_FAN2_PIN // Used in Anycubic Kossel example config
+#define FAN2_PIN TRIGORILLA_FAN2_PIN
+#define ORIG_E0_AUTO_FAN_PINTRIGORILLA_FAN2_PIN // Used in Anycubic Kossel example config
#include "pins_RAMPS.h"
@@ -96,25 +96,25 @@
// LCD Display output pins
#if BOTH(NEWPANEL, PANEL_ONE)
#undef LCD_PINS_D6
- #define LCD_PINS_D6 57
+ #define LCD_PINS_D6 57
#endif
// LCD Display input pins
#if ENABLED(NEWPANEL)
#if ANY(VIKI2, miniVIKI)
#undef DOGLCD_A0
- #define DOGLCD_A0 23
+ #define DOGLCD_A0 23
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
#undef BEEPER_PIN
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#undef LCD_BACKLIGHT_PIN
- #define LCD_BACKLIGHT_PIN 67
+ #define LCD_BACKLIGHT_PIN 67
#endif
#elif ENABLED(MINIPANEL)
#undef BEEPER_PIN
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#undef DOGLCD_A0
- #define DOGLCD_A0 42
+ #define DOGLCD_A0 42
#endif
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/ramps/pins_TT_OSCAR.h b/Marlin/src/pins/ramps/pins_TT_OSCAR.h
index 3b2d3c8b8d..f5c79d0b57 100644
--- a/Marlin/src/pins/ramps/pins_TT_OSCAR.h
+++ b/Marlin/src/pins/ramps/pins_TT_OSCAR.h
@@ -34,72 +34,72 @@
//
// Servos
//
-#define SERVO0_PIN 11
-#define SERVO1_PIN 12
-#define SERVO2_PIN 5
-#define SERVO3_PIN 4
+#define SERVO0_PIN 11
+#define SERVO1_PIN 12
+#define SERVO2_PIN 5
+#define SERVO3_PIN 4
//
// Limit Switches
//
-#define X_MIN_PIN 3
-#define X_MAX_PIN 2
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define X_MIN_PIN 3
+#define X_MAX_PIN 2
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN SERVO3_PIN
+ #define Z_MIN_PROBE_PIN SERVO3_PIN
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
-#define X_CS_PIN 57
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
+#define X_CS_PIN 57
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
-#define Y_CS_PIN 58
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
+#define Y_CS_PIN 58
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
-#define Z_CS_PIN 53
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
+#define Z_CS_PIN 53
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
-#define E0_CS_PIN 49
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
+#define E0_CS_PIN 49
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
-#define E1_CS_PIN E0_CS_PIN
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
+#define E1_CS_PIN E0_CS_PIN
-#define E2_STEP_PIN 63
-#define E2_DIR_PIN 22
-#define E2_ENABLE_PIN 59
-#define E2_CS_PIN E0_CS_PIN
+#define E2_STEP_PIN 63
+#define E2_DIR_PIN 22
+#define E2_ENABLE_PIN 59
+#define E2_CS_PIN E0_CS_PIN
-#define E3_STEP_PIN 32
-#define E3_DIR_PIN 40
-#define E3_ENABLE_PIN 39
-#define E3_CS_PIN E0_CS_PIN
+#define E3_STEP_PIN 32
+#define E3_DIR_PIN 40
+#define E3_ENABLE_PIN 39
+#define E3_CS_PIN E0_CS_PIN
-#define E4_STEP_PIN 43
-#define E4_DIR_PIN 42
-#define E4_ENABLE_PIN 47
-#define E4_CS_PIN E0_CS_PIN
+#define E4_STEP_PIN 43
+#define E4_DIR_PIN 42
+#define E4_ENABLE_PIN 47
+#define E4_CS_PIN E0_CS_PIN
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -122,34 +122,34 @@
// Software serial
//
- #define X_SERIAL_TX_PIN -1 // 59
- #define X_SERIAL_RX_PIN -1 // 63
- #define X2_SERIAL_TX_PIN -1
- #define X2_SERIAL_RX_PIN -1
+ #define X_SERIAL_TX_PIN -1 // 59
+ #define X_SERIAL_RX_PIN -1 // 63
+ #define X2_SERIAL_TX_PIN -1
+ #define X2_SERIAL_RX_PIN -1
- #define Y_SERIAL_TX_PIN -1 // 64
- #define Y_SERIAL_RX_PIN -1 // 40
- #define Y2_SERIAL_TX_PIN -1
- #define Y2_SERIAL_RX_PIN -1
+ #define Y_SERIAL_TX_PIN -1 // 64
+ #define Y_SERIAL_RX_PIN -1 // 40
+ #define Y2_SERIAL_TX_PIN -1
+ #define Y2_SERIAL_RX_PIN -1
- #define Z_SERIAL_TX_PIN -1 // 44
- #define Z_SERIAL_RX_PIN -1 // 42
- #define Z2_SERIAL_TX_PIN -1
- #define Z2_SERIAL_RX_PIN -1
+ #define Z_SERIAL_TX_PIN -1 // 44
+ #define Z_SERIAL_RX_PIN -1 // 42
+ #define Z2_SERIAL_TX_PIN -1
+ #define Z2_SERIAL_RX_PIN -1
- #define E0_SERIAL_TX_PIN -1 // 66
- #define E0_SERIAL_RX_PIN -1 // 65
- #define E1_SERIAL_TX_PIN -1
- #define E1_SERIAL_RX_PIN -1
- #define E2_SERIAL_TX_PIN -1
- #define E2_SERIAL_RX_PIN -1
- #define E3_SERIAL_TX_PIN -1
- #define E3_SERIAL_RX_PIN -1
- #define E4_SERIAL_TX_PIN -1
- #define E4_SERIAL_RX_PIN -1
- #define E5_SERIAL_RX_PIN -1
- #define E6_SERIAL_RX_PIN -1
- #define E7_SERIAL_RX_PIN -1
+ #define E0_SERIAL_TX_PIN -1 // 66
+ #define E0_SERIAL_RX_PIN -1 // 65
+ #define E1_SERIAL_TX_PIN -1
+ #define E1_SERIAL_RX_PIN -1
+ #define E2_SERIAL_TX_PIN -1
+ #define E2_SERIAL_RX_PIN -1
+ #define E3_SERIAL_TX_PIN -1
+ #define E3_SERIAL_RX_PIN -1
+ #define E4_SERIAL_TX_PIN -1
+ #define E4_SERIAL_RX_PIN -1
+ #define E5_SERIAL_RX_PIN -1
+ #define E6_SERIAL_RX_PIN -1
+ #define E7_SERIAL_RX_PIN -1
#endif
//
@@ -170,16 +170,16 @@
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13
-#define TEMP_1_PIN 15
-#define TEMP_2_PIN 10
-#define TEMP_3_PIN 11
-#define TEMP_BED_PIN 14
+#define TEMP_0_PIN 13
+#define TEMP_1_PIN 15
+#define TEMP_2_PIN 10
+#define TEMP_3_PIN 11
+#define TEMP_BED_PIN 14
#if TEMP_SENSOR_CHAMBER > 0
- #define TEMP_CHAMBER_PIN 12
+ #define TEMP_CHAMBER_PIN 12
#else
- #define TEMP_4_PIN 12
+ #define TEMP_4_PIN 12
#endif
// SPI for Max6675 or Max31855 Thermocouple
@@ -192,50 +192,50 @@
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 7
-#define HEATER_2_PIN 44
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 7
+#define HEATER_2_PIN 44
+#define HEATER_BED_PIN 8
-#define FAN_PIN 9
+#define FAN_PIN 9
#if EXTRUDERS >= 5
- #define HEATER_4_PIN 6
+ #define HEATER_4_PIN 6
#else
- #define FAN1_PIN 6
+ #define FAN1_PIN 6
#endif
#if EXTRUDERS >= 4
- #define HEATER_3_PIN 45
+ #define HEATER_3_PIN 45
#else
- #define FAN2_PIN 45
+ #define FAN2_PIN 45
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
//#ifndef FILWIDTH_PIN
// #define FILWIDTH_PIN 5 // Analog Input
//#endif
// DIO 4 (Servos plug) for the runout sensor.
-//#define FIL_RUNOUT_PIN SERVO3_PIN
+//#define FIL_RUNOUT_PIN SERVO3_PIN
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
//
// Case Light
//
#if ENABLED(CASE_LIGHT_ENABLE) && !PIN_EXISTS(CASE_LIGHT) && !defined(SPINDLE_LASER_ENABLE_PIN)
- #if !NUM_SERVOS // Prefer the servo connector
- #define CASE_LIGHT_PIN 6 // Hardware PWM
- #elif HAS_FREE_AUX2_PINS // Try to use AUX 2
- #define CASE_LIGHT_PIN 44 // Hardware PWM
+ #if !NUM_SERVOS // Prefer the servo connector
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #elif HAS_FREE_AUX2_PINS // Try to use AUX 2
+ #define CASE_LIGHT_PIN 44 // Hardware PWM
#endif
#endif
@@ -243,14 +243,14 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if ENABLED(SPINDLE_LASER_ENABLE) && !PIN_EXISTS(SPINDLE_LASER_ENABLE)
- #if !NUM_SERVOS // Prefer the servo connector
- #define SPINDLE_LASER_ENABLE_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
- #elif HAS_FREE_AUX2_PINS // Try to use AUX 2
- #define SPINDLE_LASER_ENABLE_PIN 40 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_DIR_PIN 65
+ #if !NUM_SERVOS // Prefer the servo connector
+ #define SPINDLE_LASER_ENABLE_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
+ #elif HAS_FREE_AUX2_PINS // Try to use AUX 2
+ #define SPINDLE_LASER_ENABLE_PIN 40 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_DIR_PIN 65
#endif
#endif
@@ -278,63 +278,63 @@
//
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS 49 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE 51 // SID (MOSI)
- #define LCD_PINS_D4 52 // SCK (CLK) clock
+ #define LCD_PINS_RS 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 40
- #define LCD_PINS_ENABLE 42
- #define LCD_PINS_D4 65
- #define LCD_PINS_D5 66
- #define LCD_PINS_D6 44
- #define LCD_PINS_D7 64
+ #define LCD_PINS_RS 40
+ #define LCD_PINS_ENABLE 42
+ #define LCD_PINS_D4 65
+ #define LCD_PINS_D5 66
+ #define LCD_PINS_D6 44
+ #define LCD_PINS_D7 64
#elif ENABLED(ZONESTAR_LCD)
- #define LCD_PINS_RS 64
- #define LCD_PINS_ENABLE 44
- #define LCD_PINS_D4 63
- #define LCD_PINS_D5 40
- #define LCD_PINS_D6 42
- #define LCD_PINS_D7 65
- #define ADC_KEYPAD_PIN 12
+ #define LCD_PINS_RS 64
+ #define LCD_PINS_ENABLE 44
+ #define LCD_PINS_D4 63
+ #define LCD_PINS_D5 40
+ #define LCD_PINS_D6 42
+ #define LCD_PINS_D7 65
+ #define ADC_KEYPAD_PIN 12
#else
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 25
+ #define LCD_PINS_RS 27
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 25
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#endif
#else
#if EITHER(MKS_12864OLED, MKS_12864OLED_SSD1306)
- #define LCD_PINS_DC 25 // Set as output on init
- #define LCD_PINS_RS 27 // Pull low for 1s to init
+ #define LCD_PINS_DC 25 // Set as output on init
+ #define LCD_PINS_RS 27 // Pull low for 1s to init
// DOGM SPI LCD Support
- #define DOGLCD_CS 16
- #define DOGLCD_MOSI 17
- #define DOGLCD_SCK 23
- #define DOGLCD_A0 LCD_PINS_DC
+ #define DOGLCD_CS 16
+ #define DOGLCD_MOSI 17
+ #define DOGLCD_SCK 23
+ #define DOGLCD_A0 LCD_PINS_DC
#else
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
#endif
- #define LCD_PINS_D7 29
+ #define LCD_PINS_D7 29
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#endif
#endif
@@ -342,10 +342,10 @@
#if DISABLED(NEWPANEL)
// Buttons attached to a shift register
// Not wired yet
- //#define SHIFT_CLK 38
- //#define SHIFT_LD 42
- //#define SHIFT_OUT 40
- //#define SHIFT_EN 17
+ //#define SHIFT_CLK 38
+ //#define SHIFT_LD 42
+ //#define SHIFT_OUT 40
+ //#define SHIFT_EN 17
#endif
#endif
@@ -357,155 +357,155 @@
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#if ENABLED(CR10_STOCKDISPLAY)
- #define BTN_EN1 17
- #define BTN_EN2 23
+ #define BTN_EN1 17
+ #define BTN_EN2 23
#else
- #define BTN_EN1 31
- #define BTN_EN2 33
+ #define BTN_EN1 31
+ #define BTN_EN2 33
#endif
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
- //#define KILL_PIN 41
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
+ //#define KILL_PIN 41
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
- #define LCD_BACKLIGHT_PIN 39
+ #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
+ #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 KILL_PIN 41
+ #define BTN_EN1 47
+ #define BTN_EN2 43
+ #define BTN_ENC 32
+ #define LCD_SDSS 53
+ //#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 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
+ #define LCD_SDSS 53
+ #define SD_DETECT_PIN 49
#elif EITHER(VIKI2, miniVIKI)
- #define DOGLCD_CS 45
- #define DOGLCD_A0 44
+ #define DOGLCD_CS 45
+ #define DOGLCD_A0 44
#define LCD_SCREEN_ROT_180
- #define BEEPER_PIN 33
- #define STAT_LED_RED_PIN 32
- #define STAT_LED_BLUE_PIN 35
+ #define BEEPER_PIN 33
+ #define STAT_LED_RED_PIN 32
+ #define STAT_LED_BLUE_PIN 35
- #define BTN_EN1 22
- #define BTN_EN2 7
- #define BTN_ENC 39
+ #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 SDSS 53
+ #define SD_DETECT_PIN -1 // Pin 49 for display SD interface, 72 for easy adapter board
+ //#define KILL_PIN 31
#elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
- #define DOGLCD_CS 29
- #define DOGLCD_A0 27
+ #define DOGLCD_CS 29
+ #define DOGLCD_A0 27
- #define BEEPER_PIN 23
- #define LCD_BACKLIGHT_PIN 33
+ #define BEEPER_PIN 23
+ #define LCD_BACKLIGHT_PIN 33
- #define BTN_EN1 35
- #define BTN_EN2 37
- #define BTN_ENC 31
+ #define BTN_EN1 35
+ #define BTN_EN2 37
+ #define BTN_ENC 31
- #define LCD_SDSS 53
- #define SD_DETECT_PIN 49
- //#define KILL_PIN 41
+ #define LCD_SDSS 53
+ #define SD_DETECT_PIN 49
+ //#define KILL_PIN 41
#elif ENABLED(MKS_MINI_12864)
- #define DOGLCD_A0 27
- #define DOGLCD_CS 25
+ #define DOGLCD_A0 27
+ #define DOGLCD_CS 25
// GLCD features
- //#define LCD_CONTRAST_INIT 190
+ //#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
- #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
+ #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
- #define BTN_EN1 31
- #define BTN_EN2 33
- #define BTN_ENC 35
- //#define SDSS 53
- #define SD_DETECT_PIN 49
- //#define KILL_PIN 64
+ #define BTN_EN1 31
+ #define BTN_EN2 33
+ #define BTN_ENC 35
+ //#define SDSS 53
+ #define SD_DETECT_PIN 49
+ //#define KILL_PIN 64
#elif ENABLED(MINIPANEL)
- #define BEEPER_PIN 42
+ #define BEEPER_PIN 42
// not connected to a pin
- #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
+ #define LCD_BACKLIGHT_PIN 65 // backlight LED on A11/D65
- #define DOGLCD_A0 44
- #define DOGLCD_CS 66
+ #define DOGLCD_A0 44
+ #define DOGLCD_CS 66
// GLCD features
- //#define LCD_CONTRAST_INIT 190
+ //#define LCD_CONTRAST_INIT 190
// Uncomment screen orientation
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #define BTN_EN1 40
- #define BTN_EN2 63
- #define BTN_ENC 59
+ #define BTN_EN1 40
+ #define BTN_EN2 63
+ #define BTN_ENC 59
- #define SDSS 53
- #define SD_DETECT_PIN 49
- //#define KILL_PIN 64
+ #define SDSS 53
+ #define SD_DETECT_PIN 49
+ //#define KILL_PIN 64
#else
// Beeper on AUX-4
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
// Buttons are directly attached to AUX-2
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT 40
- #define SHIFT_CLK 44
- #define SHIFT_LD 42
- #define BTN_EN1 64
- #define BTN_EN2 59
- #define BTN_ENC 63
+ #define SHIFT_OUT 40
+ #define SHIFT_CLK 44
+ #define SHIFT_LD 42
+ #define BTN_EN1 64
+ #define BTN_EN2 59
+ #define BTN_ENC 63
#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
+ #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
+ #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
+ #define SD_DETECT_PIN 49
+ //#define KILL_PIN 41
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_ULTIMAIN_2.h b/Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
index 2af64bb2a0..776dfcc3da 100644
--- a/Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
+++ b/Marlin/src/pins/ramps/pins_ULTIMAIN_2.h
@@ -44,97 +44,97 @@
//
// Limit Switches
//
-#define X_STOP_PIN 22
-#define Y_STOP_PIN 26
-#define Z_STOP_PIN 29
+#define X_STOP_PIN 22
+#define Y_STOP_PIN 26
+#define Z_STOP_PIN 29
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 32
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 31
+#define Y_STEP_PIN 32
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 31
-#define Z_STEP_PIN 35
-#define Z_DIR_PIN 36
-#define Z_ENABLE_PIN 34
+#define Z_STEP_PIN 35
+#define Z_DIR_PIN 36
+#define Z_ENABLE_PIN 34
-#define E0_STEP_PIN 42
-#define E0_DIR_PIN 43
-#define E0_ENABLE_PIN 37
+#define E0_STEP_PIN 42
+#define E0_DIR_PIN 43
+#define E0_ENABLE_PIN 37
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
-#define MOTOR_CURRENT_PWM_XY_PIN 44
-#define MOTOR_CURRENT_PWM_Z_PIN 45
-#define MOTOR_CURRENT_PWM_E_PIN 46
+#define MOTOR_CURRENT_PWM_XY_PIN 44
+#define MOTOR_CURRENT_PWM_Z_PIN 45
+#define MOTOR_CURRENT_PWM_E_PIN 46
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
#ifndef MOTOR_CURRENT_PWM_RANGE
- #define MOTOR_CURRENT_PWM_RANGE 2000
+ #define MOTOR_CURRENT_PWM_RANGE 2000
#endif
#define DEFAULT_PWM_MOTOR_CURRENT {1300, 1300, 1250}
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_0_PIN 8 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 7
+ #define FAN_PIN 7
#endif
-#define ORIG_E0_AUTO_FAN_PIN 77
+#define ORIG_E0_AUTO_FAN_PIN 77
//
// Misc. Functions
//
-#define SDSS 53
-#define SD_DETECT_PIN 39
-#define LED_PIN 8
-#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
-#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
+#define SDSS 53
+#define SD_DETECT_PIN 39
+#define LED_PIN 8
+#define SAFETY_TRIGGERED_PIN 28 // PIN to detect the safety circuit has triggered
+#define MAIN_VOLTAGE_MEASURE_PIN 14 // ANALOG PIN to measure the main voltage, with a 100k - 4k7 resitor divider.
//
// LCD / Controller
//
-#define BEEPER_PIN 18
+#define BEEPER_PIN 18
-#define LCD_PINS_RS 20
-#define LCD_PINS_ENABLE 15
-#define LCD_PINS_D4 14
-#define LCD_PINS_D5 21
-#define LCD_PINS_D6 5
-#define LCD_PINS_D7 6
+#define LCD_PINS_RS 20
+#define LCD_PINS_ENABLE 15
+#define LCD_PINS_D4 14
+#define LCD_PINS_D5 21
+#define LCD_PINS_D6 5
+#define LCD_PINS_D7 6
// Buttons are directly attached
-#define BTN_EN1 40
-#define BTN_EN2 41
-#define BTN_ENC 19
+#define BTN_EN1 40
+#define BTN_EN2 41
+#define BTN_ENC 19
//
// M3/M4/M5 - Spindle/Laser Control
//
-#if HAS_CUTTER // use the LED_PIN for spindle speed control or case light
+#if HAS_CUTTER // use the LED_PIN for spindle speed control or case light
#undef LED_PIN
- #define SPINDLE_DIR_PIN 16
- #define SPINDLE_LASER_ENA_PIN 17 // Pullup!
- #define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM
+ #define SPINDLE_DIR_PIN 16
+ #define SPINDLE_LASER_ENA_PIN 17 // Pullup!
+ #define SPINDLE_LASER_PWM_PIN 8 // Hardware PWM
#else
#undef LED_PIN
- #define CASE_LIGHT_PIN 8
+ #define CASE_LIGHT_PIN 8
#endif
diff --git a/Marlin/src/pins/ramps/pins_ULTIMAKER.h b/Marlin/src/pins/ramps/pins_ULTIMAKER.h
index 8a48b07de7..8cc588a2f9 100644
--- a/Marlin/src/pins/ramps/pins_ULTIMAKER.h
+++ b/Marlin/src/pins/ramps/pins_ULTIMAKER.h
@@ -44,114 +44,114 @@
//
// Servos
//
-#define SERVO0_PIN 11
+#define SERVO0_PIN 11
//
// Limit Switches
//
-#define X_MIN_PIN 22
-#define X_MAX_PIN 24
-#define Y_MIN_PIN 26
-#define Y_MAX_PIN 28
-#define Z_MIN_PIN 30
-#define Z_MAX_PIN 32
+#define X_MIN_PIN 22
+#define X_MAX_PIN 24
+#define Y_MIN_PIN 26
+#define Y_MAX_PIN 28
+#define Z_MIN_PIN 30
+#define Z_MAX_PIN 32
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 37
-#define Z_DIR_PIN 39
-#define Z_ENABLE_PIN 35
+#define Z_STEP_PIN 37
+#define Z_DIR_PIN 39
+#define Z_ENABLE_PIN 35
-#define E0_STEP_PIN 43
-#define E0_DIR_PIN 45
-#define E0_ENABLE_PIN 41
+#define E0_STEP_PIN 43
+#define E0_DIR_PIN 45
+#define E0_ENABLE_PIN 41
-#define E1_STEP_PIN 49
-#define E1_DIR_PIN 47
-#define E1_ENABLE_PIN 48
+#define E1_STEP_PIN 49
+#define E1_DIR_PIN 47
+#define E1_ENABLE_PIN 48
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8 // Analog Input
-#define TEMP_1_PIN 9 // Analog Input
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_0_PIN 8 // Analog Input
+#define TEMP_1_PIN 9 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-#define HEATER_1_PIN 3
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+#define HEATER_1_PIN 3
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 7
+ #define FAN_PIN 7
#endif
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
-#define PS_ON_PIN 12
-#define SUICIDE_PIN 54 // PIN that has to be turned on right after start, to keep power flowing.
-#define CASE_LIGHT_PIN 8
+#define SDSS 53
+#define LED_PIN 13
+#define PS_ON_PIN 12
+#define SUICIDE_PIN 54 // PIN that has to be turned on right after start, to keep power flowing.
+#define CASE_LIGHT_PIN 8
//
// LCD / Controller
//
#if HAS_SPI_LCD
- #define BEEPER_PIN 18
+ #define BEEPER_PIN 18
#if ENABLED(NEWPANEL)
- #define LCD_PINS_RS 20
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 16
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 5
- #define LCD_PINS_D7 6
+ #define LCD_PINS_RS 20
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 16
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 5
+ #define LCD_PINS_D7 6
// Buttons directly attached
- #define BTN_EN1 40
- #define BTN_EN2 42
- #define BTN_ENC 19
+ #define BTN_EN1 40
+ #define BTN_EN2 42
+ #define BTN_ENC 19
- #define SD_DETECT_PIN 38
+ #define SD_DETECT_PIN 38
- #else // !NEWPANEL - Old style panel with shift register
+ #else // !NEWPANEL - Old style panel with shift register
// Buttons attached to a shift register
- #define SHIFT_CLK 38
- #define SHIFT_LD 42
- #define SHIFT_OUT 40
- #define SHIFT_EN 17
+ #define SHIFT_CLK 38
+ #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_EN 17
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 5
- #define LCD_PINS_D4 6
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 20
- #define LCD_PINS_D7 19
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 5
+ #define LCD_PINS_D4 6
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 20
+ #define LCD_PINS_D7 19
- #define SD_DETECT_PIN -1
+ #define SD_DETECT_PIN -1
#endif // !NEWPANEL
@@ -160,6 +160,6 @@
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
-#define SPINDLE_LASER_ENA_PIN 10 // Pullup!
-#define SPINDLE_DIR_PIN 11 // use the EXP3 PWM header
+#define SPINDLE_LASER_PWM_PIN 9 // Hardware PWM
+#define SPINDLE_LASER_ENA_PIN 10 // Pullup!
+#define SPINDLE_DIR_PIN 11 // use the EXP3 PWM header
diff --git a/Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h b/Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
index e128dc98d2..dc12442224 100644
--- a/Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
+++ b/Marlin/src/pins/ramps/pins_ULTIMAKER_OLD.h
@@ -80,134 +80,134 @@
// Limit Switches
//
#if ENABLED(BOARD_REV_1_1_TO_1_3)
- #define X_MIN_PIN 15 // SW1
- #define X_MAX_PIN 14 // SW2
- #define Y_MIN_PIN 17 // SW3
- #define Y_MAX_PIN 16 // SW4
- #define Z_MIN_PIN 19 // SW5
- #define Z_MAX_PIN 18 // SW6
+ #define X_MIN_PIN 15 // SW1
+ #define X_MAX_PIN 14 // SW2
+ #define Y_MIN_PIN 17 // SW3
+ #define Y_MAX_PIN 16 // SW4
+ #define Z_MIN_PIN 19 // SW5
+ #define Z_MAX_PIN 18 // SW6
#endif
#if ENABLED(BOARD_REV_1_0)
#if HAS_CUTTER
- #define X_STOP_PIN 13 // SW1 (didn't change) - also has a useable hardware PWM
- #define Y_STOP_PIN 12 // SW2
- #define Z_STOP_PIN 11 // SW3
+ #define X_STOP_PIN 13 // SW1 (didn't change) - also has a useable hardware PWM
+ #define Y_STOP_PIN 12 // SW2
+ #define Z_STOP_PIN 11 // SW3
#else
- #define X_MIN_PIN 13 // SW1
- #define X_MAX_PIN 12 // SW2
- #define Y_MIN_PIN 11 // SW3
- #define Y_MAX_PIN 10 // SW4
- #define Z_MIN_PIN 9 // SW5
- #define Z_MAX_PIN 8 // SW6
+ #define X_MIN_PIN 13 // SW1
+ #define X_MAX_PIN 12 // SW2
+ #define Y_MIN_PIN 11 // SW3
+ #define Y_MAX_PIN 10 // SW4
+ #define Z_MIN_PIN 9 // SW5
+ #define Z_MAX_PIN 8 // SW6
#endif
#endif
#if ENABLED(BOARD_REV_1_5)
- #define X_MIN_PIN 22
- #define X_MAX_PIN 24
- #define Y_MIN_PIN 26
- #define Y_MAX_PIN 28
- #define Z_MIN_PIN 30
- #define Z_MAX_PIN 32
+ #define X_MIN_PIN 22
+ #define X_MAX_PIN 24
+ #define Y_MIN_PIN 26
+ #define Y_MAX_PIN 28
+ #define Z_MIN_PIN 30
+ #define Z_MAX_PIN 32
#endif
//
// Z Probe (when not Z_MIN_PIN)
//
#if !defined(Z_MIN_PROBE_PIN) && !(HAS_CUTTER && ENABLED(BOARD_REV_1_0))
- #define Z_MIN_PROBE_PIN Z_MAX_PIN
+ #define Z_MIN_PROBE_PIN Z_MAX_PIN
#endif
//
// Steppers
//
-#define X_STEP_PIN 25
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 27
+#define X_STEP_PIN 25
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 27
-#define Y_STEP_PIN 31
-#define Y_DIR_PIN 33
-#define Y_ENABLE_PIN 29
+#define Y_STEP_PIN 31
+#define Y_DIR_PIN 33
+#define Y_ENABLE_PIN 29
-#define Z_STEP_PIN 37
-#define Z_DIR_PIN 39
-#define Z_ENABLE_PIN 35
+#define Z_STEP_PIN 37
+#define Z_DIR_PIN 39
+#define Z_ENABLE_PIN 35
#if HAS_CUTTER && ENABLED(BOARD_REV_1_1_TO_1_3) && EXTRUDERS == 1
// Move E0 to the spare and get Spindle/Laser signals from E0
- #define E0_STEP_PIN 49
- #define E0_DIR_PIN 47
- #define E0_ENABLE_PIN 48
+ #define E0_STEP_PIN 49
+ #define E0_DIR_PIN 47
+ #define E0_ENABLE_PIN 48
#else
- #define E0_STEP_PIN 43
- #define E0_DIR_PIN 45
- #define E0_ENABLE_PIN 41
+ #define E0_STEP_PIN 43
+ #define E0_DIR_PIN 45
+ #define E0_ENABLE_PIN 41
- #define E1_STEP_PIN 49
- #define E1_DIR_PIN 47
- #define E1_ENABLE_PIN 48
+ #define E1_STEP_PIN 49
+ #define E1_DIR_PIN 47
+ #define E1_ENABLE_PIN 48
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 8 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_0_PIN 8 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 2
-//#define HEATER_1_PIN 3 // used for case light Rev A said "1"
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 2
+//#define HEATER_1_PIN 3 // used for case light Rev A said "1"
+#define HEATER_BED_PIN 4
//
// LCD / Controller
//
#if ANY(BOARD_REV_1_0, BOARD_REV_1_1_TO_1_3)
- #define LCD_PINS_RS 24
- #define LCD_PINS_ENABLE 22
- #define LCD_PINS_D4 36
- #define LCD_PINS_D5 34
- #define LCD_PINS_D6 32
- #define LCD_PINS_D7 30
+ #define LCD_PINS_RS 24
+ #define LCD_PINS_ENABLE 22
+ #define LCD_PINS_D4 36
+ #define LCD_PINS_D5 34
+ #define LCD_PINS_D6 32
+ #define LCD_PINS_D7 30
#elif ENABLED(BOARD_REV_1_5, ULTRA_LCD)
- #define BEEPER_PIN 18
+ #define BEEPER_PIN 18
#if ENABLED(NEWPANEL)
- #define LCD_PINS_RS 20
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 16
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 5
- #define LCD_PINS_D7 6
+ #define LCD_PINS_RS 20
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 16
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 5
+ #define LCD_PINS_D7 6
// Buttons directly attached
- #define BTN_EN1 40
- #define BTN_EN2 42
- #define BTN_ENC 19
+ #define BTN_EN1 40
+ #define BTN_EN2 42
+ #define BTN_ENC 19
- #define SD_DETECT_PIN 38
+ #define SD_DETECT_PIN 38
- #else // !NEWPANEL - Old style panel with shift register
+ #else // !NEWPANEL - Old style panel with shift register
// Buttons attached to a shift register
- #define SHIFT_CLK 38
- #define SHIFT_LD 42
- #define SHIFT_OUT 40
- #define SHIFT_EN 17
+ #define SHIFT_CLK 38
+ #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_EN 17
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 5
- #define LCD_PINS_D4 6
- #define LCD_PINS_D5 21
- #define LCD_PINS_D6 20
- #define LCD_PINS_D7 19
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 5
+ #define LCD_PINS_D4 6
+ #define LCD_PINS_D5 21
+ #define LCD_PINS_D6 20
+ #define LCD_PINS_D7 19
#endif // !NEWPANEL
@@ -217,17 +217,17 @@
// case light - see spindle section for more info on available hardware PWMs
//
#if !PIN_EXISTS(CASE_LIGHT) && ENABLED(BOARD_REV_1_5)
- #define CASE_LIGHT_PIN 7 // use PWM - MUST BE HARDWARE PWM
+ #define CASE_LIGHT_PIN 7 // use PWM - MUST BE HARDWARE PWM
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
- #if EITHER(BOARD_REV_1_0, BOARD_REV_1_5) // Use the last three SW positions
- #define SPINDLE_DIR_PIN 10 // 1.0: SW4 1.5: EXP3-6 ("10")
- #define SPINDLE_LASER_PWM_PIN 9 // 1.0: SW5 1.5: EXP3-7 ( "9") .. MUST BE HARDWARE PWM
- #define SPINDLE_LASER_ENA_PIN 8 // 1.0: SW6 1.5: EXP3-8 ( "8") .. Pin should have a pullup!
+ #if EITHER(BOARD_REV_1_0, BOARD_REV_1_5) // Use the last three SW positions
+ #define SPINDLE_DIR_PIN 10 // 1.0: SW4 1.5: EXP3-6 ("10")
+ #define SPINDLE_LASER_PWM_PIN 9 // 1.0: SW5 1.5: EXP3-7 ( "9") .. MUST BE HARDWARE PWM
+ #define SPINDLE_LASER_ENA_PIN 8 // 1.0: SW6 1.5: EXP3-8 ( "8") .. Pin should have a pullup!
#elif ENABLED(BOARD_REV_1_1_TO_1_3)
/**
* Only four hardware PWMs physically connected to anything on these boards:
@@ -241,14 +241,14 @@
* They have an LED and resistor pullup to +24V which could damage 3.3V-5V ICs.
*/
#if EXTRUDERS == 1
- #define SPINDLE_DIR_PIN 43
- #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 41 // Pullup!
- #elif TEMP_SENSOR_BED == 0 // Can't use E0 so see if HEATER_BED_PIN is available
+ #define SPINDLE_DIR_PIN 43
+ #define SPINDLE_LASER_PWM_PIN 45 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 41 // Pullup!
+ #elif TEMP_SENSOR_BED == 0 // Can't use E0 so see if HEATER_BED_PIN is available
#undef HEATER_BED_PIN
- #define SPINDLE_DIR_PIN 38 // Probably pin 4 on 10 pin connector closest to the E0 socket
- #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM - Special precautions usually needed.
- #define SPINDLE_LASER_ENA_PIN 40 // Pullup! (Probably pin 6 on the 10-pin
+ #define SPINDLE_DIR_PIN 38 // Probably pin 4 on 10 pin connector closest to the E0 socket
+ #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM - Special precautions usually needed.
+ #define SPINDLE_LASER_ENA_PIN 40 // Pullup! (Probably pin 6 on the 10-pin
// connector closest to the E0 socket)
#endif
#endif
diff --git a/Marlin/src/pins/ramps/pins_VORON.h b/Marlin/src/pins/ramps/pins_VORON.h
index a6cb05928a..12c0a36db1 100644
--- a/Marlin/src/pins/ramps/pins_VORON.h
+++ b/Marlin/src/pins/ramps/pins_VORON.h
@@ -28,7 +28,7 @@
#define BOARD_INFO_NAME "VORON Design v2"
-#define RAMPS_D8_PIN 11
+#define RAMPS_D8_PIN 11
#include "pins_RAMPS.h"
@@ -36,10 +36,10 @@
// Heaters / Fans
//
#undef FAN_PIN
-#define FAN_PIN 5 // Using the pin for the controller fan since controller fan is always on.
-#define CONTROLLER_FAN_PIN 8
-#define ORIG_E0_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan
-#define ORIG_E1_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan (same pin for both extruders since it's the same fan)
+#define FAN_PIN 5 // Using the pin for the controller fan since controller fan is always on.
+#define CONTROLLER_FAN_PIN 8
+#define ORIG_E0_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan
+#define ORIG_E1_AUTO_FAN_PIN 6 // Servo pin 6 for E3D Fan (same pin for both extruders since it's the same fan)
//
// LCDs and Controllers
diff --git a/Marlin/src/pins/ramps/pins_ZRIB_V20.h b/Marlin/src/pins/ramps/pins_ZRIB_V20.h
index 450ad1f825..5aee07c96f 100644
--- a/Marlin/src/pins/ramps/pins_ZRIB_V20.h
+++ b/Marlin/src/pins/ramps/pins_ZRIB_V20.h
@@ -28,24 +28,24 @@
#include "pins_MKS_GEN_13.h"
-#define ZRIB_V20_D6_PIN 6 // Fan
-#define ZRIB_V20_D9_PIN 9 // Fan2
-#define ZRIB_V20_A10_PIN 10
-#define ZRIB_V20_D16_PIN 16
-#define ZRIB_V20_D17_PIN 17
-#define ZRIB_V20_D23_PIN 23
-#define ZRIB_V20_D25_PIN 25
-#define ZRIB_V20_D27_PIN 27
-#define ZRIB_V20_D29_PIN 29
-#define ZRIB_V20_D37_PIN 37
+#define ZRIB_V20_D6_PIN 6 // Fan
+#define ZRIB_V20_D9_PIN 9 // Fan2
+#define ZRIB_V20_A10_PIN 10
+#define ZRIB_V20_D16_PIN 16
+#define ZRIB_V20_D17_PIN 17
+#define ZRIB_V20_D23_PIN 23
+#define ZRIB_V20_D25_PIN 25
+#define ZRIB_V20_D27_PIN 27
+#define ZRIB_V20_D29_PIN 29
+#define ZRIB_V20_D37_PIN 37
-#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D6_PIN
-#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D6_PIN
-#define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D6_PIN
-#define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D6_PIN
+#define ORIG_E0_AUTO_FAN_PIN ZRIB_V20_D6_PIN
+#define ORIG_E1_AUTO_FAN_PIN ZRIB_V20_D6_PIN
+#define ORIG_E2_AUTO_FAN_PIN ZRIB_V20_D6_PIN
+#define ORIG_E3_AUTO_FAN_PIN ZRIB_V20_D6_PIN
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 11 // Analog Input
+ #define FILWIDTH_PIN 11 // Analog Input
#endif
#if ENABLED(ZONESTAR_LCD)
@@ -58,12 +58,12 @@
#undef ADC_KEYPAD_PIN
#undef BEEPER_PIN
- #define LCD_PINS_RS ZRIB_V20_D16_PIN
- #define LCD_PINS_ENABLE ZRIB_V20_D17_PIN
- #define LCD_PINS_D4 ZRIB_V20_D23_PIN
- #define LCD_PINS_D5 ZRIB_V20_D25_PIN
- #define LCD_PINS_D6 ZRIB_V20_D27_PIN
- #define LCD_PINS_D7 ZRIB_V20_D29_PIN
- #define ADC_KEYPAD_PIN ZRIB_V20_A10_PIN
- #define BEEPER_PIN ZRIB_V20_D37_PIN
+ #define LCD_PINS_RS ZRIB_V20_D16_PIN
+ #define LCD_PINS_ENABLE ZRIB_V20_D17_PIN
+ #define LCD_PINS_D4 ZRIB_V20_D23_PIN
+ #define LCD_PINS_D5 ZRIB_V20_D25_PIN
+ #define LCD_PINS_D6 ZRIB_V20_D27_PIN
+ #define LCD_PINS_D7 ZRIB_V20_D29_PIN
+ #define ADC_KEYPAD_PIN ZRIB_V20_A10_PIN
+ #define BEEPER_PIN ZRIB_V20_D37_PIN
#endif
diff --git a/Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h b/Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h
index 9808646d32..f55ec51567 100644
--- a/Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h
+++ b/Marlin/src/pins/ramps/pins_Z_BOLT_X_SERIES.h
@@ -37,129 +37,129 @@
// Servos
//
#ifndef SERVO0_PIN
- #define SERVO0_PIN 11
+ #define SERVO0_PIN 11
#endif
#ifndef SERVO3_PIN
- #define SERVO3_PIN 4
+ #define SERVO3_PIN 4
#endif
//
// Limit Switches
//
-#define X_MIN_PIN 3
+#define X_MIN_PIN 3
#ifndef X_MAX_PIN
- #define X_MAX_PIN 2
+ #define X_MAX_PIN 2
#endif
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 54
-#define X_DIR_PIN 55
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 54
+#define X_DIR_PIN 55
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN -1
+ #define X_CS_PIN -1
#endif
-#define Y_STEP_PIN 60
-#define Y_DIR_PIN 61
-#define Y_ENABLE_PIN 56
+#define Y_STEP_PIN 60
+#define Y_DIR_PIN 61
+#define Y_ENABLE_PIN 56
#ifndef Y_CS_PIN
- #define Y_CS_PIN -1
+ #define Y_CS_PIN -1
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 62
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 62
#ifndef Z_CS_PIN
- #define Z_CS_PIN -1
+ #define Z_CS_PIN -1
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN -1
+ #define E0_CS_PIN -1
#endif
-#define E1_STEP_PIN 36
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 30
+#define E1_STEP_PIN 36
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 30
#ifndef E1_CS_PIN
- #define E1_CS_PIN -1
+ #define E1_CS_PIN -1
#endif
// Red
-#define E2_STEP_PIN 42
-#define E2_DIR_PIN 40
-#define E2_ENABLE_PIN 65
+#define E2_STEP_PIN 42
+#define E2_DIR_PIN 40
+#define E2_ENABLE_PIN 65
#ifndef E2_CS_PIN
- #define E2_CS_PIN -1
+ #define E2_CS_PIN -1
#endif
// Black
-#define E3_STEP_PIN 44
-#define E3_DIR_PIN 64
-#define E3_ENABLE_PIN 66
+#define E3_STEP_PIN 44
+#define E3_DIR_PIN 64
+#define E3_ENABLE_PIN 66
#ifndef E3_CS_PIN
- #define E3_CS_PIN -1
+ #define E3_CS_PIN -1
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13 // Analog Input
-#define TEMP_1_PIN 15 // Analog Input
-#define TEMP_2_PIN 5 // Analog Input (BLACK)
-#define TEMP_3_PIN 9 // Analog Input (RED)
-#define TEMP_BED_PIN 14 // Analog Input
+#define TEMP_0_PIN 13 // Analog Input
+#define TEMP_1_PIN 15 // Analog Input
+#define TEMP_2_PIN 5 // Analog Input (BLACK)
+#define TEMP_3_PIN 9 // Analog Input (RED)
+#define TEMP_BED_PIN 14 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_1_PIN 7
-#define HEATER_2_PIN 6
-#define HEATER_3_PIN 5
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 10
+#define HEATER_1_PIN 7
+#define HEATER_2_PIN 6
+#define HEATER_3_PIN 5
+#define HEATER_BED_PIN 8
-#define FAN_PIN 9
+#define FAN_PIN 9
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 5 // Analog Input on AUX2
+ #define FILWIDTH_PIN 5 // Analog Input on AUX2
#endif
// Оn the servos connector
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 4
+ #define FIL_RUNOUT_PIN 4
#endif
#ifndef PS_ON_PIN
- #define PS_ON_PIN 12
+ #define PS_ON_PIN 12
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
- #if NUM_SERVOS <= 1 // Prefer the servo connector
- #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #if NUM_SERVOS <= 1 // Prefer the servo connector
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
#elif HAS_FREE_AUX2_PINS
- #define CASE_LIGHT_PIN 44 // Hardware PWM
+ #define CASE_LIGHT_PIN 44 // Hardware PWM
#endif
#endif
@@ -167,14 +167,14 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
- #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
- #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
+ #if !defined(NUM_SERVOS) || NUM_SERVOS == 0 // Prefer the servo connector
+ #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
#elif HAS_FREE_AUX2_PINS
- #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
- #define SPINDLE_DIR_PIN 65
+ #define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
+ #define SPINDLE_DIR_PIN 65
#endif
#endif
@@ -183,13 +183,13 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI 66
+ #define TMC_SW_MOSI 66
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO 44
+ #define TMC_SW_MISO 44
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK 64
+ #define TMC_SW_SCK 64
#endif
#endif
@@ -217,90 +217,90 @@
//
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN 40
+ #define X_SERIAL_TX_PIN 40
#endif
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN 63
+ #define X_SERIAL_RX_PIN 63
#endif
#ifndef X2_SERIAL_TX_PIN
- #define X2_SERIAL_TX_PIN -1
+ #define X2_SERIAL_TX_PIN -1
#endif
#ifndef X2_SERIAL_RX_PIN
- #define X2_SERIAL_RX_PIN -1
+ #define X2_SERIAL_RX_PIN -1
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN 59
+ #define Y_SERIAL_TX_PIN 59
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN 64
+ #define Y_SERIAL_RX_PIN 64
#endif
#ifndef Y2_SERIAL_TX_PIN
- #define Y2_SERIAL_TX_PIN -1
+ #define Y2_SERIAL_TX_PIN -1
#endif
#ifndef Y2_SERIAL_RX_PIN
- #define Y2_SERIAL_RX_PIN -1
+ #define Y2_SERIAL_RX_PIN -1
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN 42
+ #define Z_SERIAL_TX_PIN 42
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN 65
+ #define Z_SERIAL_RX_PIN 65
#endif
#ifndef Z2_SERIAL_TX_PIN
- #define Z2_SERIAL_TX_PIN -1
+ #define Z2_SERIAL_TX_PIN -1
#endif
#ifndef Z2_SERIAL_RX_PIN
- #define Z2_SERIAL_RX_PIN -1
+ #define Z2_SERIAL_RX_PIN -1
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN 44
+ #define E0_SERIAL_TX_PIN 44
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN 66
+ #define E0_SERIAL_RX_PIN 66
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN -1
+ #define E1_SERIAL_TX_PIN -1
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN -1
+ #define E1_SERIAL_RX_PIN -1
#endif
#ifndef E2_SERIAL_TX_PIN
- #define E2_SERIAL_TX_PIN -1
+ #define E2_SERIAL_TX_PIN -1
#endif
#ifndef E2_SERIAL_RX_PIN
- #define E2_SERIAL_RX_PIN -1
+ #define E2_SERIAL_RX_PIN -1
#endif
#ifndef E3_SERIAL_TX_PIN
- #define E3_SERIAL_TX_PIN -1
+ #define E3_SERIAL_TX_PIN -1
#endif
#ifndef E3_SERIAL_RX_PIN
- #define E3_SERIAL_RX_PIN -1
+ #define E3_SERIAL_RX_PIN -1
#endif
#ifndef E4_SERIAL_TX_PIN
- #define E4_SERIAL_TX_PIN -1
+ #define E4_SERIAL_TX_PIN -1
#endif
#ifndef E4_SERIAL_RX_PIN
- #define E4_SERIAL_RX_PIN -1
+ #define E4_SERIAL_RX_PIN -1
#endif
#ifndef E5_SERIAL_TX_PIN
- #define E5_SERIAL_TX_PIN -1
+ #define E5_SERIAL_TX_PIN -1
#endif
#ifndef E5_SERIAL_RX_PIN
- #define E5_SERIAL_RX_PIN -1
+ #define E5_SERIAL_RX_PIN -1
#endif
#ifndef E6_SERIAL_TX_PIN
- #define E6_SERIAL_TX_PIN -1
+ #define E6_SERIAL_TX_PIN -1
#endif
#ifndef E6_SERIAL_RX_PIN
- #define E6_SERIAL_RX_PIN -1
+ #define E6_SERIAL_RX_PIN -1
#endif
#ifndef E7_SERIAL_TX_PIN
- #define E7_SERIAL_TX_PIN -1
+ #define E7_SERIAL_TX_PIN -1
#endif
#ifndef E7_SERIAL_RX_PIN
- #define E7_SERIAL_RX_PIN -1
+ #define E7_SERIAL_RX_PIN -1
#endif
#endif
diff --git a/Marlin/src/pins/sam/pins_ADSK.h b/Marlin/src/pins/sam/pins_ADSK.h
index 3a38e5ce16..61c2e1b494 100644
--- a/Marlin/src/pins/sam/pins_ADSK.h
+++ b/Marlin/src/pins/sam/pins_ADSK.h
@@ -81,55 +81,55 @@ A stepper for E0 extruder
//
// Servos
//
-#define SERVO0_PIN 61 // Analog pin 7, Digital pin 61
+#define SERVO0_PIN 61 // Analog pin 7, Digital pin 61
//
// Limit Switches
//
-#define X_MIN_PIN 9
-#define Y_MIN_PIN 10
-#define Z_MIN_PIN 11
+#define X_MIN_PIN 9
+#define Y_MIN_PIN 10
+#define Z_MIN_PIN 11
-#define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62
+#define Z_MIN_PROBE_PIN 62 // Analog pin 8, Digital pin 62
//
// Steppers
//
-#define X_STEP_PIN 2
-#define X_DIR_PIN 5
-#define X_ENABLE_PIN 8
+#define X_STEP_PIN 2
+#define X_DIR_PIN 5
+#define X_ENABLE_PIN 8
-#define Y_STEP_PIN 3
-#define Y_DIR_PIN 6
-#define Y_ENABLE_PIN 8
+#define Y_STEP_PIN 3
+#define Y_DIR_PIN 6
+#define Y_ENABLE_PIN 8
-#define Z_STEP_PIN 4
-#define Z_DIR_PIN 7
-#define Z_ENABLE_PIN 8
+#define Z_STEP_PIN 4
+#define Z_DIR_PIN 7
+#define Z_ENABLE_PIN 8
-#define E0_STEP_PIN 12
-#define E0_DIR_PIN 13
-#define E0_ENABLE_PIN 8
+#define E0_STEP_PIN 12
+#define E0_DIR_PIN 13
+#define E0_ENABLE_PIN 8
//
// Heaters / Fans
//
-#define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55
-#define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57
-#define FAN_PIN 54 // "Abort": Analog pin 0, Digital pin 54
+#define HEATER_0_PIN 55 // "Hold": Analog pin 1, Digital pin 55
+#define HEATER_BED_PIN 57 // "CoolEn": Analog pin 3, Digital pin 57
+#define FAN_PIN 54 // "Abort": Analog pin 0, Digital pin 54
#undef E0_AUTO_FAN_PIN
-#define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56
+#define E0_AUTO_FAN_PIN 56 // "Resume": Analog pin 2, Digital pin 56
//
// Temperature Sensors
//
-#define TEMP_0_PIN 4 // "SDA": Analog pin 4, Digital pin 58
-#define TEMP_BED_PIN 5 // "SCL": Analog pin 5, Digital pin 59
+#define TEMP_0_PIN 4 // "SDA": Analog pin 4, Digital pin 58
+#define TEMP_BED_PIN 5 // "SCL": Analog pin 5, Digital pin 59
//
// Misc. Functions
//
-#define SDSS 52
+#define SDSS 52
#if ENABLED(ZONESTAR_LCD)
@@ -160,13 +160,13 @@ A stepper for E0 extruder
//
// LCD / Controller
//
- #define LCD_PINS_ENABLE 14
- #define LCD_PINS_RS 15
- #define LCD_PINS_D4 16
- #define LCD_PINS_D5 17
- #define LCD_PINS_D6 18
- #define LCD_PINS_D7 19
- #define ADC_KEYPAD_PIN 6 //60 // Analog pin 6, Digital pin 60
+ #define LCD_PINS_ENABLE 14
+ #define LCD_PINS_RS 15
+ #define LCD_PINS_D4 16
+ #define LCD_PINS_D5 17
+ #define LCD_PINS_D6 18
+ #define LCD_PINS_D7 19
+ #define ADC_KEYPAD_PIN 6 //60 // Analog pin 6, Digital pin 60
/**
* The below defines will scale all the values to work properly on both
diff --git a/Marlin/src/pins/sam/pins_ALLIGATOR_R2.h b/Marlin/src/pins/sam/pins_ALLIGATOR_R2.h
index 619d7f62c7..8b035e8876 100644
--- a/Marlin/src/pins/sam/pins_ALLIGATOR_R2.h
+++ b/Marlin/src/pins/sam/pins_ALLIGATOR_R2.h
@@ -35,126 +35,126 @@
//
// Servos
//
-#define SERVO0_PIN 36
-#define SERVO1_PIN 40
-#define SERVO2_PIN 41
-#define SERVO3_PIN -1
+#define SERVO0_PIN 36
+#define SERVO1_PIN 40
+#define SERVO2_PIN 41
+#define SERVO3_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 33 // PC1
-#define X_MAX_PIN 34 // PC2
-#define Y_MIN_PIN 35 // PC3
-#define Y_MAX_PIN 37 // PC5
-#define Z_MIN_PIN 38 // PC6
-#define Z_MAX_PIN 39 // PC7
+#define X_MIN_PIN 33 // PC1
+#define X_MAX_PIN 34 // PC2
+#define Y_MIN_PIN 35 // PC3
+#define Y_MAX_PIN 37 // PC5
+#define Z_MIN_PIN 38 // PC6
+#define Z_MAX_PIN 39 // PC7
//
// Steppers
//
-#define X_STEP_PIN 96 // PB24
-#define X_DIR_PIN 2 // PB25
-#define X_ENABLE_PIN 24 // PA15, motor RESET pin
+#define X_STEP_PIN 96 // PB24
+#define X_DIR_PIN 2 // PB25
+#define X_ENABLE_PIN 24 // PA15, motor RESET pin
-#define Y_STEP_PIN 94 // PB22
-#define Y_DIR_PIN 95 // PB23
-#define Y_ENABLE_PIN 24 // PA15, motor RESET pin
+#define Y_STEP_PIN 94 // PB22
+#define Y_DIR_PIN 95 // PB23
+#define Y_ENABLE_PIN 24 // PA15, motor RESET pin
-#define Z_STEP_PIN 98 // PC27
-#define Z_DIR_PIN 3 // PC28
-#define Z_ENABLE_PIN 24 // PA15, motor RESET pin
+#define Z_STEP_PIN 98 // PC27
+#define Z_DIR_PIN 3 // PC28
+#define Z_ENABLE_PIN 24 // PA15, motor RESET pin
-#define E0_STEP_PIN 5 // PC25
-#define E0_DIR_PIN 4 // PC26
-#define E0_ENABLE_PIN 24 // PA15, motor RESET pin
+#define E0_STEP_PIN 5 // PC25
+#define E0_DIR_PIN 4 // PC26
+#define E0_ENABLE_PIN 24 // PA15, motor RESET pin
-#define E1_STEP_PIN 28 // PD3 on piggy
-#define E1_DIR_PIN 27 // PD2 on piggy
-#define E1_ENABLE_PIN 24 // PA15, motor RESET pin
+#define E1_STEP_PIN 28 // PD3 on piggy
+#define E1_DIR_PIN 27 // PD2 on piggy
+#define E1_ENABLE_PIN 24 // PA15, motor RESET pin
-#define E2_STEP_PIN 11 // PD7 on piggy
-#define E2_DIR_PIN 29 // PD6 on piggy
-#define E2_ENABLE_PIN 24 // PA15, motor RESET pin
+#define E2_STEP_PIN 11 // PD7 on piggy
+#define E2_DIR_PIN 29 // PD6 on piggy
+#define E2_ENABLE_PIN 24 // PA15, motor RESET pin
-#define E3_STEP_PIN 30 // PD9 on piggy
-#define E3_DIR_PIN 12 // PD8 on piggy
-#define E3_ENABLE_PIN 24 // PA15, motor RESET pin
+#define E3_STEP_PIN 30 // PD9 on piggy
+#define E3_DIR_PIN 12 // PD8 on piggy
+#define E3_ENABLE_PIN 24 // PA15, motor RESET pin
// Microstepping pins - Mapping not from fastio.h (?)
-#define X_MS1_PIN 99 // PC10
-#define Y_MS1_PIN 10 // PC29
-#define Z_MS1_PIN 44 // PC19
-#define E0_MS1_PIN 45 // PC18
+#define X_MS1_PIN 99 // PC10
+#define Y_MS1_PIN 10 // PC29
+#define Z_MS1_PIN 44 // PC19
+#define E0_MS1_PIN 45 // PC18
-//#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
+//#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input (PA24)
-#define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
-#define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
-#define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
-#define TEMP_BED_PIN 0 // Analog Input (PA16)
+#define TEMP_0_PIN 1 // Analog Input (PA24)
+#define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
+#define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
+#define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
+#define TEMP_BED_PIN 0 // Analog Input (PA16)
//
// Heaters / Fans
//
// Note that on the Due pin A0 on the board is channel 2 on the ARM chip
-#define HEATER_0_PIN 68 // PA1
-#define HEATER_1_PIN 8 // PC22 on piggy
-#define HEATER_2_PIN 9 // PC21 on piggy
-#define HEATER_3_PIN 97 // PC20 on piggy
-#define HEATER_BED_PIN 69 // PA0
+#define HEATER_0_PIN 68 // PA1
+#define HEATER_1_PIN 8 // PC22 on piggy
+#define HEATER_2_PIN 9 // PC21 on piggy
+#define HEATER_3_PIN 97 // PC20 on piggy
+#define HEATER_BED_PIN 69 // PA0
#ifndef FAN_PIN
- #define FAN_PIN 92 // PA5
+ #define FAN_PIN 92 // PA5
#endif
-#define FAN1_PIN 31 // PA7
+#define FAN1_PIN 31 // PA7
//
// Misc. Functions
//
-#define SDSS 77 // PA28
-#define SD_DETECT_PIN 87 // PA29
-#define LED_RED_PIN 40 // PC8
-#define LED_GREEN_PIN 41 // PC9
+#define SDSS 77 // PA28
+#define SD_DETECT_PIN 87 // PA29
+#define LED_RED_PIN 40 // PC8
+#define LED_GREEN_PIN 41 // PC9
-#define EXP_VOLTAGE_LEVEL_PIN 65
+#define EXP_VOLTAGE_LEVEL_PIN 65
-#define SPI_CHAN_DAC 1
+#define SPI_CHAN_DAC 1
-#define DAC0_SYNC 53 // PB14
-#define DAC1_SYNC 6 // PC24
+#define DAC0_SYNC 53 // PB14
+#define DAC1_SYNC 6 // PC24
// 64K SPI EEPROM
#define SPI_EEPROM
-#define SPI_CHAN_EEPROM1 2
-#define SPI_EEPROM1_CS 25 // PD0
+#define SPI_CHAN_EEPROM1 2
+#define SPI_EEPROM1_CS 25 // PD0
// 2K SPI EEPROM
-#define SPI_EEPROM2_CS 26 // PD1
+#define SPI_EEPROM2_CS 26 // PD1
// FLASH SPI
// 32Mb
-#define SPI_FLASH_CS 23 // PA14
+#define SPI_FLASH_CS 23 // PA14
//
// LCD / Controller
//
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define LCD_PINS_RS 18
- #define LCD_PINS_ENABLE 15
- #define LCD_PINS_D4 19
- #define BEEPER_PIN 64
+ #define LCD_PINS_RS 18
+ #define LCD_PINS_ENABLE 15
+ #define LCD_PINS_D4 19
+ #define BEEPER_PIN 64
- #define BTN_EN1 14
- #define BTN_EN2 16
- #define BTN_ENC 17
+ #define BTN_EN1 14
+ #define BTN_EN2 16
+ #define BTN_ENC 17
#undef UI_VOLTAGE_LEVEL
- #define UI_VOLTAGE_LEVEL 1
+ #define UI_VOLTAGE_LEVEL 1
#endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
diff --git a/Marlin/src/pins/sam/pins_ARCHIM1.h b/Marlin/src/pins/sam/pins_ARCHIM1.h
index ddc9f407ec..606e024697 100644
--- a/Marlin/src/pins/sam/pins_ARCHIM1.h
+++ b/Marlin/src/pins/sam/pins_ARCHIM1.h
@@ -46,7 +46,7 @@
//
// Timers
//
-#define STEP_TIMER_NUM 3
+#define STEP_TIMER_NUM 3
#define HAL_STEP_TIMER_ISR() void TC3_Handler()
//
@@ -56,147 +56,145 @@
//
// Servos
//
-#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
-#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
-
+#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
+#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
//
// Limit Switches
//
-#define X_MIN_PIN 14 // PD4 MIN ES1
-#define X_MAX_PIN 32 // PD10 MAX ES1
-#define Y_MIN_PIN 29 // PD6 MIN ES2
-#define Y_MAX_PIN 15 // PD5 MAX ES2
-#define Z_MIN_PIN 31 // PA7 MIN ES3
-#define Z_MAX_PIN 30 // PD9 MAX ES3
+#define X_MIN_PIN 14 // PD4 MIN ES1
+#define X_MAX_PIN 32 // PD10 MAX ES1
+#define Y_MIN_PIN 29 // PD6 MIN ES2
+#define Y_MAX_PIN 15 // PD5 MAX ES2
+#define Z_MIN_PIN 31 // PA7 MIN ES3
+#define Z_MAX_PIN 30 // PD9 MAX ES3
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15)
+ #define FIL_RUNOUT_PIN 66 // D66 PB15 (Header J20 15)
#endif
#ifndef FIL_RUNOUT2_PIN
- #define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16)
+ #define FIL_RUNOUT2_PIN 67 // D67 PB16 (Header J20 16)
#endif
-
//
// Steppers
//
-#define X_STEP_PIN 40 // PC8 STEP1 *
-#define X_DIR_PIN 59 // PA4 DIR1 *
-#define X_ENABLE_PIN 41 // PC9 EN1
+#define X_STEP_PIN 40 // PC8 STEP1 *
+#define X_DIR_PIN 59 // PA4 DIR1 *
+#define X_ENABLE_PIN 41 // PC9 EN1
-#define Y_STEP_PIN 49 // PC14 STEP2 *
-#define Y_DIR_PIN 47 // PC16 DIR2 *
-#define Y_ENABLE_PIN 48 // PC15 EN2 *
+#define Y_STEP_PIN 49 // PC14 STEP2 *
+#define Y_DIR_PIN 47 // PC16 DIR2 *
+#define Y_ENABLE_PIN 48 // PC15 EN2 *
-#define Z_STEP_PIN 36 // PC4 STEP Z *
-#define Z_DIR_PIN 107 // PB10 DIR Z *
-#define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns *
+#define Z_STEP_PIN 36 // PC4 STEP Z *
+#define Z_DIR_PIN 107 // PB10 DIR Z *
+#define Z_ENABLE_PIN 96 // PC10 EN Z -AddOns *
-#define E0_STEP_PIN 78 // PB23 STEP3 *
-#define E0_DIR_PIN 22 // PB26 DIR3 *
-#define E0_ENABLE_PIN 97 // PB24 EN3 -Addons *
+#define E0_STEP_PIN 78 // PB23 STEP3 *
+#define E0_DIR_PIN 22 // PB26 DIR3 *
+#define E0_ENABLE_PIN 97 // PB24 EN3 -Addons *
-#define E1_STEP_PIN 26 // PD1 STEP4 *
-#define E1_DIR_PIN 27 // PD2 DIR4 *
-#define E1_ENABLE_PIN 28 // PD3 EN4 *
+#define E1_STEP_PIN 26 // PD1 STEP4 *
+#define E1_DIR_PIN 27 // PD2 DIR4 *
+#define E1_ENABLE_PIN 28 // PD3 EN4 *
// Microstepping mode pins *
-#define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic
-#define X_MS2_PIN 38 // PC6 MOD1E1
-#define X_MS3_PIN 37 // PC5 MOD2E1
+#define X_MS1_PIN 39 // PC7 MOD0E1 - As listed in schematic
+#define X_MS2_PIN 38 // PC6 MOD1E1
+#define X_MS3_PIN 37 // PC5 MOD2E1
-#define Y_MS1_PIN 50 // PC13 MODE0E2
-#define Y_MS2_PIN 51 // PC12 MODE1E2
-#define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns
+#define Y_MS1_PIN 50 // PC13 MODE0E2
+#define Y_MS2_PIN 51 // PC12 MODE1E2
+#define Y_MS3_PIN 92 // PC11 MODE2E2 - AddOns
-#define Z_MS1_PIN 44 // PC19 MOD0E Z
-#define Z_MS2_PIN 45 // PC18 MOD1E Z
-#define Z_MS3_PIN 46 // PC17 MOD2E Z
+#define Z_MS1_PIN 44 // PC19 MOD0E Z
+#define Z_MS2_PIN 45 // PC18 MOD1E Z
+#define Z_MS3_PIN 46 // PC17 MOD2E Z
-#define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns
-#define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns
-#define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns
+#define E0_MS1_PIN 105 // PB22 MOD0E3 - AddOns
+#define E0_MS2_PIN 106 // PC27 MOD1E3 - AddOns
+#define E0_MS3_PIN 104 // PC20 MOD2E3 - AddOns
-#define E1_MS1_PIN 25 // PD0 MOD0E4
-#define E1_MS2_PIN 18 // PA11 MOD1E4
-#define E1_MS3_PIN 19 // PA10 MOD2E4
+#define E1_MS1_PIN 25 // PD0 MOD0E4
+#define E1_MS2_PIN 18 // PA11 MOD1E4
+#define E1_MS3_PIN 19 // PA10 MOD2E4
// Motor current PWM pins *
-#define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2
-#define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8
-#define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7
-#define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7
-#define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8
+#define MOTOR_CURRENT_PWM_X_PIN 58 // PA6 X-REF TIOB2
+#define MOTOR_CURRENT_PWM_Y_PIN 12 // PD8 Y-REF TIOB8
+#define MOTOR_CURRENT_PWM_Z_PIN 10 // PC29 Z-REF TIOB7
+#define MOTOR_CURRENT_PWM_E0_PIN 3 // PC28 E1-REF TIOA7
+#define MOTOR_CURRENT_PWM_E1_PIN 11 // PD7 E2-REF TIOA8
-#define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref)
+#define MOTOR_CURRENT_PWM_RANGE 2750 // (3.3 Volts * 100000 Ohms) / (100000 Ohms + 20000 Ohms) = 2.75 Volts (max vref)
#define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } //, 1000, 1000} // X Y Z E0 E1, 1000 = 1000mAh
//
// Temperature Sensors
//
-#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
-#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
-#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
-#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
+#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
+#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
+#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
+#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
//
// Heaters / Fans
//
-#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
-#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
-#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
-#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
+#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
+#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
+#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
+#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#ifndef FAN_PIN
- #define FAN_PIN 4 // D4 PC26 FET_PWM1
+ #define FAN_PIN 4 // D4 PC26 FET_PWM1
#endif
-#define FAN1_PIN 5 // D5 PC25 FET_PWM2
+#define FAN1_PIN 5 // D5 PC25 FET_PWM2
//
// Misc. Functions
//
// Internal MicroSD card reader on the PCB
-#define INT_SCK_PIN 42 // D42 PA19/MCCK
-#define INT_MISO_PIN 43 // D43 PA20/MCCDA
-#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
-#define INT_SDSS 55 // D55 PA24/MCDA3
+#define INT_SCK_PIN 42 // D42 PA19/MCCK
+#define INT_MISO_PIN 43 // D43 PA20/MCCDA
+#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
+#define INT_SDSS 55 // D55 PA24/MCDA3
// External SD card reader on SC2
-#define SCK_PIN 76 // D76 PA27
-#define MISO_PIN 74 // D74 PA25
-#define MOSI_PIN 75 // D75 PA26
-#define SDSS 87 // D87 PA29
+#define SCK_PIN 76 // D76 PA27
+#define MISO_PIN 74 // D74 PA25
+#define MOSI_PIN 75 // D75 PA26
+#define SDSS 87 // D87 PA29
// 2MB SPI Flash
-#define SPI_FLASH_SS 52 // D52 PB21
+#define SPI_FLASH_SS 52 // D52 PB21
//
// LCD / Controller
//
#if HAS_SPI_LCD
- #define BEEPER_PIN 23 // D24 PA15_CTS1
- #define LCD_PINS_RS 17 // D17 PA12_RXD1
- #define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
- #define LCD_PINS_D4 69 // D69 PA0_CANTX0
- #define LCD_PINS_D5 54 // D54 PA16_SCK1
- #define LCD_PINS_D6 68 // D68 PA1_CANRX0
- #define LCD_PINS_D7 34 // D34 PC2_PWML0
+ #define BEEPER_PIN 23 // D24 PA15_CTS1
+ #define LCD_PINS_RS 17 // D17 PA12_RXD1
+ #define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
+ #define LCD_PINS_D4 69 // D69 PA0_CANTX0
+ #define LCD_PINS_D5 54 // D54 PA16_SCK1
+ #define LCD_PINS_D6 68 // D68 PA1_CANRX0
+ #define LCD_PINS_D7 34 // D34 PC2_PWML0
- #define SD_DETECT_PIN 2 // D2 PB25_TIOA0
+ #define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#if ENABLED(NEWPANEL)
// Buttons on AUX-2
- #define BTN_EN1 60 // D60 PA3_TIOB1
- #define BTN_EN2 13 // D13 PB27_TIOB0
- #define BTN_ENC 16 // D16 PA13_TXD1
+ #define BTN_EN1 60 // D60 PA3_TIOB1
+ #define BTN_EN2 13 // D13 PB27_TIOB0
+ #define BTN_ENC 16 // D16 PA13_TXD1
#endif // NEWPANEL
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_ARCHIM2.h b/Marlin/src/pins/sam/pins_ARCHIM2.h
index acd515d8c1..d2114ea433 100644
--- a/Marlin/src/pins/sam/pins_ARCHIM2.h
+++ b/Marlin/src/pins/sam/pins_ARCHIM2.h
@@ -52,8 +52,8 @@
//
// Servos
//
-#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
-#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
+#define SERVO0_PIN 20 // D20 PB12 (Header J20 20)
+#define SERVO1_PIN 21 // D21 PB13 (Header J20 19)
//
// Limit Switches
@@ -65,83 +65,83 @@
// Otherwise use a physical endstop based configuration.
// TMC2130 Diag Pins
- #define X_DIAG_PIN 59 // PA4
- #define Y_DIAG_PIN 48 // PC15
- #define Z_DIAG_PIN 36 // PC4
- #define E0_DIAG_PIN 78 // PB23
- #define E1_DIAG_PIN 25 // PD0
+ #define X_DIAG_PIN 59 // PA4
+ #define Y_DIAG_PIN 48 // PC15
+ #define Z_DIAG_PIN 36 // PC4
+ #define E0_DIAG_PIN 78 // PB23
+ #define E1_DIAG_PIN 25 // PD0
#if X_HOME_DIR < 0
- #define X_MIN_PIN X_DIAG_PIN
- #define X_MAX_PIN 32
+ #define X_MIN_PIN X_DIAG_PIN
+ #define X_MAX_PIN 32
#else
- #define X_MIN_PIN 14
- #define X_MAX_PIN X_DIAG_PIN
+ #define X_MIN_PIN 14
+ #define X_MAX_PIN X_DIAG_PIN
#endif
#if Y_HOME_DIR < 0
- #define Y_MIN_PIN Y_DIAG_PIN
- #define Y_MAX_PIN 15
+ #define Y_MIN_PIN Y_DIAG_PIN
+ #define Y_MAX_PIN 15
#else
- #define Y_MIN_PIN 29
- #define Y_MAX_PIN Y_DIAG_PIN
+ #define Y_MIN_PIN 29
+ #define Y_MAX_PIN Y_DIAG_PIN
#endif
#else
- #define X_MIN_PIN 14 // PD4 MIN ES1
- #define X_MAX_PIN 32 // PD10 MAX ES1
- #define Y_MIN_PIN 29 // PD6 MIN ES2
- #define Y_MAX_PIN 15 // PD5 MAX ES2
+ #define X_MIN_PIN 14 // PD4 MIN ES1
+ #define X_MAX_PIN 32 // PD10 MAX ES1
+ #define Y_MIN_PIN 29 // PD6 MIN ES2
+ #define Y_MAX_PIN 15 // PD5 MAX ES2
#endif
-#define Z_MIN_PIN 31 // PA7 MIN ES3
-#define Z_MAX_PIN 30 // PD9 MAX ES3
+#define Z_MIN_PIN 31 // PA7 MIN ES3
+#define Z_MAX_PIN 30 // PD9 MAX ES3
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 32
+ #define Z_MIN_PROBE_PIN 32
#endif
//
// Steppers
//
-#define X_STEP_PIN 38 // PC6 X-STEP *
-#define X_DIR_PIN 37 // PC5 X-DIR *
-#define X_ENABLE_PIN 41 // PC9 EN1
+#define X_STEP_PIN 38 // PC6 X-STEP *
+#define X_DIR_PIN 37 // PC5 X-DIR *
+#define X_ENABLE_PIN 41 // PC9 EN1
#ifndef X_CS_PIN
- #define X_CS_PIN 39 // PC7 X_nCS
+ #define X_CS_PIN 39 // PC7 X_nCS
#endif
-#define Y_STEP_PIN 51 // PC12 Y-STEP *
-#define Y_DIR_PIN 92 // PC11 Y-DIR -AddOns *
-#define Y_ENABLE_PIN 49 // PC14 Y-EN *
+#define Y_STEP_PIN 51 // PC12 Y-STEP *
+#define Y_DIR_PIN 92 // PC11 Y-DIR -AddOns *
+#define Y_ENABLE_PIN 49 // PC14 Y-EN *
#ifndef Y_CS_PIN
- #define Y_CS_PIN 50 // PC13 Y_nCS
+ #define Y_CS_PIN 50 // PC13 Y_nCS
#endif
-#define Z_STEP_PIN 46 // PC17 Z-STEP *
-#define Z_DIR_PIN 47 // PC16 Z-DIR *
-#define Z_ENABLE_PIN 44 // PC19 Z-END *
+#define Z_STEP_PIN 46 // PC17 Z-STEP *
+#define Z_DIR_PIN 47 // PC16 Z-DIR *
+#define Z_ENABLE_PIN 44 // PC19 Z-END *
#ifndef Z_CS_PIN
- #define Z_CS_PIN 45 // PC18 Z_nCS
+ #define Z_CS_PIN 45 // PC18 Z_nCS
#endif
-#define E0_STEP_PIN 107 // PB10 E1-STEP -AddOns *
-#define E0_DIR_PIN 96 // PC10 E1-DIR -AddOns *
-#define E0_ENABLE_PIN 105 // PB22 E1-EN -AddOns *
+#define E0_STEP_PIN 107 // PB10 E1-STEP -AddOns *
+#define E0_DIR_PIN 96 // PC10 E1-DIR -AddOns *
+#define E0_ENABLE_PIN 105 // PB22 E1-EN -AddOns *
#ifndef E0_CS_PIN
- #define E0_CS_PIN 104 // PC20 E1_nCS -AddOns *
+ #define E0_CS_PIN 104 // PC20 E1_nCS -AddOns *
#endif
-#define E1_STEP_PIN 22 // PB26 E2_STEP *
-#define E1_DIR_PIN 97 // PB24 E2_DIR -AddOns *
-#define E1_ENABLE_PIN 18 // PA11 E2-EN
+#define E1_STEP_PIN 22 // PB26 E2_STEP *
+#define E1_DIR_PIN 97 // PB24 E2_DIR -AddOns *
+#define E1_ENABLE_PIN 18 // PA11 E2-EN
#ifndef E1_CS_PIN
- #define E1_CS_PIN 19 // PA10 E2_nCS
+ #define E1_CS_PIN 19 // PA10 E2_nCS
#endif
//
@@ -150,106 +150,106 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI 28 // PD3
+ #define TMC_SW_MOSI 28 // PD3
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO 26 // PD1
+ #define TMC_SW_MISO 26 // PD1
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK 27 // PD2
+ #define TMC_SW_SCK 27 // PD2
#endif
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
-#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
-#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
-#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
+#define TEMP_0_PIN 10 // D10 PB19 THERM AN1 *
+#define TEMP_1_PIN 9 // D9 PB18 THERM AN2 *
+#define TEMP_2_PIN 8 // D8 PB17 THERM AN4 *
+#define TEMP_BED_PIN 11 // D11 PB20 THERM AN3 *
//
// Heaters / Fans
//
-#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
-#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
-#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
-#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
+#define HEATER_0_PIN 6 // D6 PC24 FET_PWM3
+#define HEATER_1_PIN 7 // D7 PC23 FET_PWM4
+#define HEATER_2_PIN 8 // D8 PC22 FET_PWM5
+#define HEATER_BED_PIN 9 // D9 PC21 BED_PWM
#ifndef FAN_PIN
- #define FAN_PIN 4 // D4 PC26 FET_PWM1
+ #define FAN_PIN 4 // D4 PC26 FET_PWM1
#endif
-#define FAN1_PIN 5 // D5 PC25 FET_PWM2
+#define FAN1_PIN 5 // D5 PC25 FET_PWM2
//
// Misc. Functions
//
// Internal MicroSD card reader on the PCB
-#define INT_SCK_PIN 42 // D42 PA19/MCCK
-#define INT_MISO_PIN 43 // D43 PA20/MCCDA
-#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
-#define INT_SDSS 55 // D55 PA24/MCDA3
+#define INT_SCK_PIN 42 // D42 PA19/MCCK
+#define INT_MISO_PIN 43 // D43 PA20/MCCDA
+#define INT_MOSI_PIN 73 // D73 PA21/MCDA0
+#define INT_SDSS 55 // D55 PA24/MCDA3
// External SD card reader on SC2
-#define SCK_PIN 76 // D76 PA27
-#define MISO_PIN 74 // D74 PA25
-#define MOSI_PIN 75 // D75 PA26
-#define SDSS 87 // D87 PA29
+#define SCK_PIN 76 // D76 PA27
+#define MISO_PIN 74 // D74 PA25
+#define MOSI_PIN 75 // D75 PA26
+#define SDSS 87 // D87 PA29
// Unused Digital GPIO J20 Pins
-#define GPIO_PB1_J20_5 94 // D94 PB1 (Header J20 5)
-#define GPIO_PB0_J20_6 95 // D95 PB0 (Header J20 6)
-#define GPIO_PB3_J20_7 103 // D103 PB3 (Header J20 7)
-#define GPIO_PB2_J20_8 93 // D93 PB2 (Header J20 8)
-#define GPIO_PB6_J20_9 99 // D99 PB6 (Header J20 9)
-#define GPIO_PB5_J20_10 101 // D101 PB5 (Header J20 10)
-#define GPIO_PB8_J20_11 100 // D100 PB8 (Header J20 11)
-#define GPIO_PB4_J20_12 102 // D102 PB4 (Header J20 12)
-#define GPIO_PB9_J20_13 108 // D108 PB9 (Header J20 13)
-#define GPIO_PB7_J20_14 98 // D98 PB7 (Header J20 14)
-#define GPIO_PB15_J20_15 66 // D66 PB15 (Header J20 15)
-#define GPIO_PB16_J20_16 67 // D67 PB16 (Header J20 16)
-#define GPIO_PB14_J20_17 53 // D53 PB14 (Header J20 17)
-#define GPIO_PA18_J20_21 71 // D71 PA17 (Header J20 21)
-#define GPIO_PA17_J20_22 70 // D70 PA17 (Header J20 22)
+#define GPIO_PB1_J20_5 94 // D94 PB1 (Header J20 5)
+#define GPIO_PB0_J20_6 95 // D95 PB0 (Header J20 6)
+#define GPIO_PB3_J20_7 103 // D103 PB3 (Header J20 7)
+#define GPIO_PB2_J20_8 93 // D93 PB2 (Header J20 8)
+#define GPIO_PB6_J20_9 99 // D99 PB6 (Header J20 9)
+#define GPIO_PB5_J20_10 101 // D101 PB5 (Header J20 10)
+#define GPIO_PB8_J20_11 100 // D100 PB8 (Header J20 11)
+#define GPIO_PB4_J20_12 102 // D102 PB4 (Header J20 12)
+#define GPIO_PB9_J20_13 108 // D108 PB9 (Header J20 13)
+#define GPIO_PB7_J20_14 98 // D98 PB7 (Header J20 14)
+#define GPIO_PB15_J20_15 66 // D66 PB15 (Header J20 15)
+#define GPIO_PB16_J20_16 67 // D67 PB16 (Header J20 16)
+#define GPIO_PB14_J20_17 53 // D53 PB14 (Header J20 17)
+#define GPIO_PA18_J20_21 71 // D71 PA17 (Header J20 21)
+#define GPIO_PA17_J20_22 70 // D70 PA17 (Header J20 22)
// Case Light
-#define CASE_LIGHT_PIN GPIO_PB1_J20_5
+#define CASE_LIGHT_PIN GPIO_PB1_J20_5
// 2MB SPI Flash
-#define SPI_FLASH_SS 52 // D52 PB21
+#define SPI_FLASH_SS 52 // D52 PB21
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN GPIO_PB15_J20_15
+ #define FIL_RUNOUT_PIN GPIO_PB15_J20_15
#endif
#ifndef FIL_RUNOUT2_PIN
- #define FIL_RUNOUT2_PIN GPIO_PB16_J20_16
+ #define FIL_RUNOUT2_PIN GPIO_PB16_J20_16
#endif
//
// LCD / Controller
//
#if HAS_SPI_LCD || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
- #define BEEPER_PIN 23 // D24 PA15_CTS1
- #define LCD_PINS_RS 17 // D17 PA12_RXD1
- #define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
- #define LCD_PINS_D4 69 // D69 PA0_CANTX0
- #define LCD_PINS_D5 54 // D54 PA16_SCK1
- #define LCD_PINS_D6 68 // D68 PA1_CANRX0
- #define LCD_PINS_D7 34 // D34 PC2_PWML0
+ #define BEEPER_PIN 23 // D24 PA15_CTS1
+ #define LCD_PINS_RS 17 // D17 PA12_RXD1
+ #define LCD_PINS_ENABLE 24 // D23 PA14_RTS1
+ #define LCD_PINS_D4 69 // D69 PA0_CANTX0
+ #define LCD_PINS_D5 54 // D54 PA16_SCK1
+ #define LCD_PINS_D6 68 // D68 PA1_CANRX0
+ #define LCD_PINS_D7 34 // D34 PC2_PWML0
- #define SD_DETECT_PIN 2 // D2 PB25_TIOA0
+ #define SD_DETECT_PIN 2 // D2 PB25_TIOA0
#if ENABLED(ULTIPANEL) || TOUCH_UI_ULTIPANEL || ENABLED(TOUCH_UI_FTDI_EVE)
// Buttons on AUX-2
- #define BTN_EN1 60 // D60 PA3_TIOB1
- #define BTN_EN2 13 // D13 PB27_TIOB0
- #define BTN_ENC 16 // D16 PA13_TXD1 // the click
+ #define BTN_EN1 60 // D60 PA3_TIOB1
+ #define BTN_EN2 13 // D13 PB27_TIOB0
+ #define BTN_ENC 16 // D16 PA13_TXD1 // the click
#endif // ULTIPANEL || TOUCH_UI_ULTIPANEL
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_CNCONTROLS_15D.h b/Marlin/src/pins/sam/pins_CNCONTROLS_15D.h
index 69fb2a3dfc..f23d008bec 100644
--- a/Marlin/src/pins/sam/pins_CNCONTROLS_15D.h
+++ b/Marlin/src/pins/sam/pins_CNCONTROLS_15D.h
@@ -33,91 +33,91 @@
//
// Servos
//
-#define SERVO0_PIN 6
+#define SERVO0_PIN 6
//
// Limit Switches
//
-#define X_STOP_PIN 34
-#define Y_STOP_PIN 39
-#define Z_STOP_PIN 62
+#define X_STOP_PIN 34
+#define Y_STOP_PIN 39
+#define Z_STOP_PIN 62
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 49
+ #define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
-#define X_STEP_PIN 14
-#define X_DIR_PIN 25
-#define X_ENABLE_PIN 26
+#define X_STEP_PIN 14
+#define X_DIR_PIN 25
+#define X_ENABLE_PIN 26
-#define Y_STEP_PIN 11
-#define Y_DIR_PIN 12
-#define Y_ENABLE_PIN 15
+#define Y_STEP_PIN 11
+#define Y_DIR_PIN 12
+#define Y_ENABLE_PIN 15
-#define Z_STEP_PIN 24
-#define Z_DIR_PIN 27
-#define Z_ENABLE_PIN 28
+#define Z_STEP_PIN 24
+#define Z_DIR_PIN 27
+#define Z_ENABLE_PIN 28
-#define E0_STEP_PIN 64
-#define E0_DIR_PIN 65
-#define E0_ENABLE_PIN 63
+#define E0_STEP_PIN 64
+#define E0_DIR_PIN 65
+#define E0_ENABLE_PIN 63
-#define E1_STEP_PIN 8
-#define E1_DIR_PIN 7
-#define E1_ENABLE_PIN 29
+#define E1_STEP_PIN 8
+#define E1_DIR_PIN 7
+#define E1_ENABLE_PIN 29
//
// Temperature Sensors
// Analog Inputs
//
-#define TEMP_0_PIN 1
-#define TEMP_1_PIN 2
-#define TEMP_BED_PIN 4
+#define TEMP_0_PIN 1
+#define TEMP_1_PIN 2
+#define TEMP_BED_PIN 4
#ifndef TEMP_CHAMBER_PIN
- #define TEMP_CHAMBER_PIN 5
+ #define TEMP_CHAMBER_PIN 5
#endif
//
// Heaters
//
-#define HEATER_0_PIN 3
-#define HEATER_1_PIN 4
-#define HEATER_BED_PIN 32
-#define HEATER_CHAMBER_PIN 33
+#define HEATER_0_PIN 3
+#define HEATER_1_PIN 4
+#define HEATER_BED_PIN 32
+#define HEATER_CHAMBER_PIN 33
//
// Fans
//
-//#define FAN0_PIN 8
-#define ORIG_E0_AUTO_FAN_PIN 30
-#define ORIG_E1_AUTO_FAN_PIN 30
-#define ORIG_E2_AUTO_FAN_PIN 30
-#define ORIG_E3_AUTO_FAN_PIN 30
-#define ORIG_CHAMBER_AUTO_FAN_PIN 10
+//#define FAN0_PIN 8
+#define ORIG_E0_AUTO_FAN_PIN 30
+#define ORIG_E1_AUTO_FAN_PIN 30
+#define ORIG_E2_AUTO_FAN_PIN 30
+#define ORIG_E3_AUTO_FAN_PIN 30
+#define ORIG_CHAMBER_AUTO_FAN_PIN 10
//
// SD card
//
-#define SCK_PIN 76
-#define MISO_PIN 74
-#define MOSI_PIN 75
-#define SDSS 53
-#define SD_DETECT_PIN 40
+#define SCK_PIN 76
+#define MISO_PIN 74
+#define MOSI_PIN 75
+#define SDSS 53
+#define SD_DETECT_PIN 40
// Common I/O
-//#define PWM_1_PIN 6 // probe
-//#define PWM_2_PIN 13
-//#define SPARE_IO 17
-#define BEEPER_PIN 13
-#define STAT_LED_BLUE_PIN -1
-#define STAT_LED_RED_PIN 31
+//#define PWM_1_PIN 6 // probe
+//#define PWM_2_PIN 13
+//#define SPARE_IO 17
+#define BEEPER_PIN 13
+#define STAT_LED_BLUE_PIN -1
+#define STAT_LED_RED_PIN 31
// G425 CALIBRATION_GCODE default pin
#ifndef CALIBRATION_PIN
- #define CALIBRATION_PIN 66
+ #define CALIBRATION_PIN 66
#endif
diff --git a/Marlin/src/pins/sam/pins_DUE3DOM.h b/Marlin/src/pins/sam/pins_DUE3DOM.h
index 4f352ff152..8f1fb75012 100644
--- a/Marlin/src/pins/sam/pins_DUE3DOM.h
+++ b/Marlin/src/pins/sam/pins_DUE3DOM.h
@@ -34,138 +34,138 @@
//
// Servos
//
-#define SERVO0_PIN 5
-#define SERVO1_PIN 6
-#define SERVO2_PIN 13
-#define SERVO3_PIN -1
+#define SERVO0_PIN 5
+#define SERVO1_PIN 6
+#define SERVO2_PIN 13
+#define SERVO3_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 38
-#define X_MAX_PIN 36
-#define Y_MIN_PIN 34
-#define Y_MAX_PIN 32
-#define Z_MIN_PIN 30
-#define Z_MAX_PIN 28
+#define X_MIN_PIN 38
+#define X_MAX_PIN 36
+#define Y_MIN_PIN 34
+#define Y_MAX_PIN 32
+#define Z_MIN_PIN 30
+#define Z_MAX_PIN 28
//
// Steppers
//
-#define X_STEP_PIN 2
-#define X_DIR_PIN 3
-#define X_ENABLE_PIN 22
+#define X_STEP_PIN 2
+#define X_DIR_PIN 3
+#define X_ENABLE_PIN 22
-#define Y_STEP_PIN 17
-#define Y_DIR_PIN 16
-#define Y_ENABLE_PIN 26
+#define Y_STEP_PIN 17
+#define Y_DIR_PIN 16
+#define Y_ENABLE_PIN 26
-#define Z_STEP_PIN 61 // Z1 STP
-#define Z_DIR_PIN 60 // Z1 DIR
-#define Z_ENABLE_PIN 15 // Z1 ENA
+#define Z_STEP_PIN 61 // Z1 STP
+#define Z_DIR_PIN 60 // Z1 DIR
+#define Z_ENABLE_PIN 15 // Z1 ENA
-#define E0_STEP_PIN 64 // Z2 STP
-#define E0_DIR_PIN 63 // Z2 DIR
-#define E0_ENABLE_PIN 62 // Z2 ENA
+#define E0_STEP_PIN 64 // Z2 STP
+#define E0_DIR_PIN 63 // Z2 DIR
+#define E0_ENABLE_PIN 62 // Z2 ENA
-#define E1_STEP_PIN 51 // E1 STP
-#define E1_DIR_PIN 53 // E1 DIR
-#define E1_ENABLE_PIN 65 // E1 ENA
+#define E1_STEP_PIN 51 // E1 STP
+#define E1_DIR_PIN 53 // E1 DIR
+#define E1_ENABLE_PIN 65 // E1 ENA
-#define E2_STEP_PIN 24 // E2 STP
-#define E2_DIR_PIN 23 // E2 DIR
-#define E2_ENABLE_PIN 49 // E2 ENA
+#define E2_STEP_PIN 24 // E2 STP
+#define E2_DIR_PIN 23 // E2 DIR
+#define E2_ENABLE_PIN 49 // E2 ENA
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
-#define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor)
-#define TEMP_2_PIN 5 // Analog Input (unused)
-#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
+#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
+#define TEMP_1_PIN 2 // Analog Input (HOTEND1 thermistor)
+#define TEMP_2_PIN 5 // Analog Input (unused)
+#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN -1
+ #define MAX6675_SS_PIN -1
#else
- #define MAX6675_SS_PIN -1
+ #define MAX6675_SS_PIN -1
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 7 // HOTEND0 MOSFET
-#define HEATER_1_PIN 8 // HOTEND1 MOSFET
-#define HEATER_BED_PIN 39 // BED MOSFET
+#define HEATER_0_PIN 7 // HOTEND0 MOSFET
+#define HEATER_1_PIN 8 // HOTEND1 MOSFET
+#define HEATER_BED_PIN 39 // BED MOSFET
#ifndef FAN_PIN
- #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
+ #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#endif
-#define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN
-#define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN
+#define FAN1_PIN 9 // FAN2 header on board - CONTROLLER FAN
+#define FAN2_PIN 12 // FAN3 header on board - EXTRUDER0 FAN
//
// Misc. Functions
//
-#define SDSS 4
-#define PS_ON_PIN 40
+#define SDSS 4
+#define PS_ON_PIN 40
//
// LCD / Controller
//
#if HAS_SPI_LCD
- #define LCD_PINS_RS 42
- #define LCD_PINS_ENABLE 43
- #define LCD_PINS_D4 44
- #define LCD_PINS_D5 45
- #define LCD_PINS_D6 46
- #define LCD_PINS_D7 47
+ #define LCD_PINS_RS 42
+ #define LCD_PINS_ENABLE 43
+ #define LCD_PINS_D4 44
+ #define LCD_PINS_D5 45
+ #define LCD_PINS_D6 46
+ #define LCD_PINS_D7 47
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define SDSS 4
- #define SD_DETECT_PIN 14
+ #define SDSS 4
+ #define SD_DETECT_PIN 14
#elif ENABLED(RADDS_DISPLAY)
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define BTN_BACK 71
+ #define BTN_BACK 71
#undef SDSS
- #define SDSS 4
- #define SD_DETECT_PIN 14
+ #define SDSS 4
+ #define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
- #define BEEPER_PIN 41
- #define LCD_SDSS 4
- #define SD_DETECT_PIN 14
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
+ #define BEEPER_PIN 41
+ #define LCD_SDSS 4
+ #define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
- #define LCD_PINS_D4 29
- #define LCD_PINS_ENABLE 27
- #define LCD_PINS_RS 25
+ #define LCD_PINS_D4 29
+ #define LCD_PINS_ENABLE 27
+ #define LCD_PINS_RS 25
- #define BTN_EN1 35
- #define BTN_EN2 33
- #define BTN_ENC 37
+ #define BTN_EN1 35
+ #define BTN_EN2 33
+ #define BTN_ENC 37
- #define BEEPER_PIN -1
+ #define BEEPER_PIN -1
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_DUE3DOM_MINI.h b/Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
index 240204ced9..34706d5e90 100644
--- a/Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
+++ b/Marlin/src/pins/sam/pins_DUE3DOM_MINI.h
@@ -34,141 +34,141 @@
//
// Servos
//
-#define SERVO0_PIN 5
-#define SERVO1_PIN 6
-#define SERVO2_PIN 8 // 4-pin header FAN0
-#define SERVO3_PIN -1
+#define SERVO0_PIN 5
+#define SERVO1_PIN 6
+#define SERVO2_PIN 8 // 4-pin header FAN0
+#define SERVO3_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 38
-#define X_MAX_PIN -1
-#define Y_MIN_PIN 34
-#define Y_MAX_PIN -1
-#define Z_MIN_PIN 30
-#define Z_MAX_PIN -1
+#define X_MIN_PIN 38
+#define X_MAX_PIN -1
+#define Y_MIN_PIN 34
+#define Y_MAX_PIN -1
+#define Z_MIN_PIN 30
+#define Z_MAX_PIN -1
//
// Steppers
//
-#define X_STEP_PIN 17
-#define X_DIR_PIN 16
-#define X_ENABLE_PIN 22
+#define X_STEP_PIN 17
+#define X_DIR_PIN 16
+#define X_ENABLE_PIN 22
-#define Y_STEP_PIN 2
-#define Y_DIR_PIN 3
-#define Y_ENABLE_PIN 26
+#define Y_STEP_PIN 2
+#define Y_DIR_PIN 3
+#define Y_ENABLE_PIN 26
-#define Z_STEP_PIN 64
-#define Z_DIR_PIN 63
-#define Z_ENABLE_PIN 15
+#define Z_STEP_PIN 64
+#define Z_DIR_PIN 63
+#define Z_ENABLE_PIN 15
-#define E0_STEP_PIN 61
-#define E0_DIR_PIN 60
-#define E0_ENABLE_PIN 62
+#define E0_STEP_PIN 61
+#define E0_DIR_PIN 60
+#define E0_ENABLE_PIN 62
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
-#define TEMP_1_PIN 2 // Analog Input (unused)
-#define TEMP_2_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
-#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
+#define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
+#define TEMP_1_PIN 2 // Analog Input (unused)
+#define TEMP_2_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
+#define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#else
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13 // HOTEND0 MOSFET
-#define HEATER_BED_PIN 7 // BED MOSFET
+#define HEATER_0_PIN 13 // HOTEND0 MOSFET
+#define HEATER_BED_PIN 7 // BED MOSFET
#ifndef FAN_PIN
- #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
+ #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
#endif
-#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN
-#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN
-//#define FAN3_PIN 8 // FAN0 4-pin header on board
+#define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN
+#define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN
+//#define FAN3_PIN 8 // FAN0 4-pin header on board
//
// Misc. Functions
//
-#define SDSS 4
-#define PS_ON_PIN 40
+#define SDSS 4
+#define PS_ON_PIN 40
//
// LCD / Controller
//
#if HAS_SPI_LCD
- #define LCD_PINS_RS 42
- #define LCD_PINS_ENABLE 43
- #define LCD_PINS_D4 44
- #define LCD_PINS_D5 45
- #define LCD_PINS_D6 46
- #define LCD_PINS_D7 47
+ #define LCD_PINS_RS 42
+ #define LCD_PINS_ENABLE 43
+ #define LCD_PINS_D4 44
+ #define LCD_PINS_D5 45
+ #define LCD_PINS_D6 46
+ #define LCD_PINS_D7 47
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define SDSS 4
- #define SD_DETECT_PIN 14
+ #define SDSS 4
+ #define SD_DETECT_PIN 14
#elif ENABLED(RADDS_DISPLAY)
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define BTN_BACK 71
+ #define BTN_BACK 71
#undef SDSS
- #define SDSS 4
- #define SD_DETECT_PIN 14
+ #define SDSS 4
+ #define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
- #define BEEPER_PIN 41
- #define LCD_SDSS 4
- #define SD_DETECT_PIN 14
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
+ #define BEEPER_PIN 41
+ #define LCD_SDSS 4
+ #define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
- #define LCD_PINS_D4 29
- #define LCD_PINS_ENABLE 27
- #define LCD_PINS_RS 25
+ #define LCD_PINS_D4 29
+ #define LCD_PINS_ENABLE 27
+ #define LCD_PINS_RS 25
- #define BTN_EN1 35
- #define BTN_EN2 33
- #define BTN_ENC 37
+ #define BTN_EN1 35
+ #define BTN_EN2 33
+ #define BTN_ENC 37
- #define BEEPER_PIN -1
+ #define BEEPER_PIN -1
#elif ENABLED(MINIPANEL)
- #define BTN_EN1 52
- #define BTN_EN2 50
- #define BTN_ENC 48
- #define LCD_SDSS 4
- #define SD_DETECT_PIN 14
- #define BEEPER_PIN 41
- #define DOGLCD_A0 46
- #define DOGLCD_CS 45
+ #define BTN_EN1 52
+ #define BTN_EN2 50
+ #define BTN_ENC 48
+ #define LCD_SDSS 4
+ #define SD_DETECT_PIN 14
+ #define BEEPER_PIN 41
+ #define DOGLCD_A0 46
+ #define DOGLCD_CS 45
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h b/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
index c05c6169d6..b3a9e456a2 100644
--- a/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
+++ b/Marlin/src/pins/sam/pins_PRINTRBOARD_G2.h
@@ -36,38 +36,38 @@
//
// Servos
//
-//#define SERVO0_PIN -1
-//#define SERVO1_PIN -1
+//#define SERVO0_PIN -1
+//#define SERVO1_PIN -1
//
// Limit Switches
//
-#define X_MIN_PIN 22 // PB26
-#define Y_MAX_PIN 18 // PA11
-#define Z_MIN_PIN 19 // PA10
+#define X_MIN_PIN 22 // PB26
+#define Y_MAX_PIN 18 // PA11
+#define Z_MIN_PIN 19 // PA10
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 22
+ #define Z_MIN_PROBE_PIN 22
#endif
#ifndef FIL_RUNOUT_PIN
- //#define FIL_RUNOUT_PIN 57 // PA22
+ //#define FIL_RUNOUT_PIN 57 // PA22
#endif
#ifndef FIL_RUNOUT2_PIN
- //#define FIL_RUNOUT2_PIN 21 // PB13
+ //#define FIL_RUNOUT2_PIN 21 // PB13
#endif
//
// LED defines
//
-//#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
-//#define NEOPIXEL_PIN 20 // LED driving pin on motherboard
-//#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip
-//#define SDA0 20 // PB12 NeoPixel pin I2C data
-//#define SCL0 21 // PB13 I2C clock
+//#define NEOPIXEL_TYPE NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
+//#define NEOPIXEL_PIN 20 // LED driving pin on motherboard
+//#define NEOPIXEL_PIXELS 3 // Number of LEDs in the strip
+//#define SDA0 20 // PB12 NeoPixel pin I2C data
+//#define SCL0 21 // PB13 I2C clock
// D0_12 #REF! (INDICATOR_LED)
// B28 JTAG-CLK
@@ -79,82 +79,82 @@
//A15 UART_CTS
//PB2 Unassigned
//PB4 to PB9 Unassigned
-//#define UART_RX_PIN 0 // PA8 "RX0"
-//#define UART_TX_PIN 1 // PA9 "TX0"
-//#define UART_RTS_PIN 23 // PA14
-//#define UART_CTS_PIN 24 // PA15
+//#define UART_RX_PIN 0 // PA8 "RX0"
+//#define UART_TX_PIN 1 // PA9 "TX0"
+//#define UART_RTS_PIN 23 // PA14
+//#define UART_CTS_PIN 24 // PA15
//
// Steppers
//
-#define Z_STEP_PIN 73 // PA21 MOTOR 1
-#define Z_DIR_PIN 75 // PA26
-#define Z_ENABLE_PIN 74 // PA25
+#define Z_STEP_PIN 73 // PA21 MOTOR 1
+#define Z_DIR_PIN 75 // PA26
+#define Z_ENABLE_PIN 74 // PA25
-#define X_STEP_PIN 66 // PB15 MOTOR 2
-#define X_DIR_PIN 54 // PA16
-#define X_ENABLE_PIN 67 // PB16
+#define X_STEP_PIN 66 // PB15 MOTOR 2
+#define X_DIR_PIN 54 // PA16
+#define X_ENABLE_PIN 67 // PB16
-#define Y_STEP_PIN 34 // PA29 MOTOR 3
-#define Y_DIR_PIN 35 // PB1
-#define Y_ENABLE_PIN 36 // PB0
+#define Y_STEP_PIN 34 // PA29 MOTOR 3
+#define Y_DIR_PIN 35 // PB1
+#define Y_ENABLE_PIN 36 // PB0
-#define E0_STEP_PIN 53 // PB14 MOTOR 4
-#define E0_DIR_PIN 78 // PB23
-#define E0_ENABLE_PIN 37 // PB22
+#define E0_STEP_PIN 53 // PB14 MOTOR 4
+#define E0_DIR_PIN 78 // PB23
+#define E0_ENABLE_PIN 37 // PB22
// Microstepping mode pins
-#define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1
-#define Z_MS2_PIN 52 // PB21 MODE1
-#define Z_MS3_PIN 65 // PB20 MODE2
+#define Z_MS1_PIN 52 // PB21 MODE0 MOTOR 1
+#define Z_MS2_PIN 52 // PB21 MODE1
+#define Z_MS3_PIN 65 // PB20 MODE2
-#define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2
-#define X_MS2_PIN 43 // PA20 MODE1
-#define X_MS3_PIN 42 // PA19 MODE2
+#define X_MS1_PIN 43 // PA20 MODE0 MOTOR 2
+#define X_MS2_PIN 43 // PA20 MODE1
+#define X_MS3_PIN 42 // PA19 MODE2
-#define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3
-#define Y_MS2_PIN 77 // PA28 MODE1
-#define Y_MS3_PIN 76 // PA27 MODE2
+#define Y_MS1_PIN 77 // PA28 MODE0 MOTOR 3
+#define Y_MS2_PIN 77 // PA28 MODE1
+#define Y_MS3_PIN 76 // PA27 MODE2
-#define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4
-#define E0_MS2_PIN 38 // PB11 MODE1
-#define E0_MS3_PIN 39 // PB10 MODE2
+#define E0_MS1_PIN 38 // PB11 MODE0 MOTOR 4
+#define E0_MS2_PIN 38 // PB11 MODE1
+#define E0_MS3_PIN 39 // PB10 MODE2
// Motor current PWM pins
-#define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1
-#define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2
-#define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3
-#define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4
+#define MOTOR_CURRENT_PWM_X_PIN 62 // PB17 MOTOR 1
+#define MOTOR_CURRENT_PWM_Z_PIN 63 // PB18 MOTOR 2
+#define MOTOR_CURRENT_PWM_Y_PIN 64 // PB19 MOTOR 3
+#define MOTOR_CURRENT_PWM_E_PIN 61 // PA2 MOTOR 4
#define DEFAULT_PWM_MOTOR_CURRENT { 300, 400, 1000} // XY Z E0, 1000 = 1000mAh
//
// Temperature Sensors
//
-#define TEMP_0_PIN 2 // digital 56 PA23
-#define TEMP_BED_PIN 5 // digital 59 PA4
+#define TEMP_0_PIN 2 // digital 56 PA23
+#define TEMP_BED_PIN 5 // digital 59 PA4
//
// Heaters / Fans
//
-#define HEATER_0_PIN 40 // PA5
-#define HEATER_BED_PIN 41 // PB24
+#define HEATER_0_PIN 40 // PA5
+#define HEATER_BED_PIN 41 // PB24
#ifndef FAN_PIN
- #define FAN_PIN 13 // PB27 Fan1A
+ #define FAN_PIN 13 // PB27 Fan1A
#endif
-#define FAN1_PIN 58 // PA6 Fan1B
+#define FAN1_PIN 58 // PA6 Fan1B
-#define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
-#define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
-#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
+#define FET_SAFETY_PIN 31 // PA7 must be pulsed low every 50 mS or FETs are turned off
+#define FET_SAFETY_DELAY 50 // 50 mS delay between pulses
+#define FET_SAFETY_INVERTED true // true - negative going pulse of 2 uS
/////////////////////////////////////////////////////////
-#define MISO_PIN 68 // set to unused pins for now
-#define MOSI_PIN 69 // set to unused pins for now
-#define SCK_PIN 70 // set to unused pins for now
-#define SDSS 71 // set to unused pins for now
+#define MISO_PIN 68 // set to unused pins for now
+#define MOSI_PIN 69 // set to unused pins for now
+#define SCK_PIN 70 // set to unused pins for now
+#define SDSS 71 // set to unused pins for now
/**
* G2 uses 8 pins that are not available in the DUE environment:
diff --git a/Marlin/src/pins/sam/pins_RADDS.h b/Marlin/src/pins/sam/pins_RADDS.h
index 41daba4e8e..3bc52e9387 100644
--- a/Marlin/src/pins/sam/pins_RADDS.h
+++ b/Marlin/src/pins/sam/pins_RADDS.h
@@ -35,187 +35,187 @@
// Servos
//
#if !HAS_CUTTER
- #define SERVO0_PIN 5
+ #define SERVO0_PIN 5
#endif
-#define SERVO1_PIN 6
-#define SERVO2_PIN 39
-#define SERVO3_PIN 40
+#define SERVO1_PIN 6
+#define SERVO2_PIN 39
+#define SERVO3_PIN 40
//
// Limit Switches
//
-#define X_MIN_PIN 28
-#define X_MAX_PIN 34
-#define Y_MIN_PIN 30
-#define Y_MAX_PIN 36
-#define Z_MIN_PIN 32
-#define Z_MAX_PIN 38
+#define X_MIN_PIN 28
+#define X_MAX_PIN 34
+#define Y_MIN_PIN 30
+#define Y_MAX_PIN 36
+#define Z_MIN_PIN 32
+#define Z_MAX_PIN 38
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 38
+ #define Z_MIN_PROBE_PIN 38
#endif
//
// Steppers
//
-#define X_STEP_PIN 24
-#define X_DIR_PIN 23
-#define X_ENABLE_PIN 26
+#define X_STEP_PIN 24
+#define X_DIR_PIN 23
+#define X_ENABLE_PIN 26
#ifndef X_CS_PIN
- #define X_CS_PIN 25
+ #define X_CS_PIN 25
#endif
-#define Y_STEP_PIN 17
-#define Y_DIR_PIN 16
-#define Y_ENABLE_PIN 22
+#define Y_STEP_PIN 17
+#define Y_DIR_PIN 16
+#define Y_ENABLE_PIN 22
#ifndef Y_CS_PIN
- #define Y_CS_PIN 27
+ #define Y_CS_PIN 27
#endif
-#define Z_STEP_PIN 2
-#define Z_DIR_PIN 3
-#define Z_ENABLE_PIN 15
+#define Z_STEP_PIN 2
+#define Z_DIR_PIN 3
+#define Z_ENABLE_PIN 15
#ifndef Z_CS_PIN
- #define Z_CS_PIN 29
+ #define Z_CS_PIN 29
#endif
-#define E0_STEP_PIN 61
-#define E0_DIR_PIN 60
-#define E0_ENABLE_PIN 62
+#define E0_STEP_PIN 61
+#define E0_DIR_PIN 60
+#define E0_ENABLE_PIN 62
#ifndef E0_CS_PIN
- #define E0_CS_PIN 31
+ #define E0_CS_PIN 31
#endif
-#define E1_STEP_PIN 64
-#define E1_DIR_PIN 63
-#define E1_ENABLE_PIN 65
+#define E1_STEP_PIN 64
+#define E1_DIR_PIN 63
+#define E1_ENABLE_PIN 65
#ifndef E1_CS_PIN
- #define E1_CS_PIN 33
+ #define E1_CS_PIN 33
#endif
-#define E2_STEP_PIN 51
-#define E2_DIR_PIN 53
-#define E2_ENABLE_PIN 49
+#define E2_STEP_PIN 51
+#define E2_DIR_PIN 53
+#define E2_ENABLE_PIN 49
#ifndef E2_CS_PIN
- #define E2_CS_PIN 35
+ #define E2_CS_PIN 35
#endif
/**
* RADDS Extension Board V2 / V3
* http://doku.radds.org/dokumentation/extension-board
*/
-//#define RADDS_EXTENSION 2
+//#define RADDS_EXTENSION 2
#if RADDS_EXTENSION >= 2
- #define E3_DIR_PIN 33
- #define E3_STEP_PIN 35
- #define E3_ENABLE_PIN 37
+ #define E3_DIR_PIN 33
+ #define E3_STEP_PIN 35
+ #define E3_ENABLE_PIN 37
#ifndef E3_CS_PIN
- #define E3_CS_PIN 6
+ #define E3_CS_PIN 6
#endif
#if RADDS_EXTENSION == 3
- #define E4_DIR_PIN 27
- #define E4_STEP_PIN 29
- #define E4_ENABLE_PIN 31
+ #define E4_DIR_PIN 27
+ #define E4_STEP_PIN 29
+ #define E4_ENABLE_PIN 31
#ifndef E4_CS_PIN
- #define E4_CS_PIN 39
+ #define E4_CS_PIN 39
#endif
- #define E5_DIR_PIN 66
- #define E5_STEP_PIN 67
- #define E5_ENABLE_PIN 68
+ #define E5_DIR_PIN 66
+ #define E5_STEP_PIN 67
+ #define E5_ENABLE_PIN 68
#ifndef E5_CS_PIN
- #define E5_CS_PIN 6
+ #define E5_CS_PIN 6
#endif
- #define RADDS_EXT_MSI_PIN 69
+ #define RADDS_EXT_MSI_PIN 69
#define BOARD_INIT() OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH)
#else
- #define E4_DIR_PIN 27
- #define E4_STEP_PIN 29
- #define E4_ENABLE_PIN 31
+ #define E4_DIR_PIN 27
+ #define E4_STEP_PIN 29
+ #define E4_ENABLE_PIN 31
#ifndef E4_CS_PIN
- #define E4_CS_PIN 39
+ #define E4_CS_PIN 39
#endif
// E3 and E4 share the same MSx pins
- #define E3_MS1_PIN 67
- #define E4_MS1_PIN 67
- #define E3_MS2_PIN 68
- #define E4_MS2_PIN 68
- #define E3_MS3_PIN 69
- #define E4_MS3_PIN 69
+ #define E3_MS1_PIN 67
+ #define E4_MS1_PIN 67
+ #define E3_MS2_PIN 68
+ #define E4_MS2_PIN 68
+ #define E3_MS3_PIN 69
+ #define E4_MS3_PIN 69
- #define RADDS_EXT_VDD2_PIN 66
+ #define RADDS_EXT_VDD2_PIN 66
#define BOARD_INIT() do{ OUT_WRITE(RADDS_EXT_VDD_PIN, HIGH); OUT_WRITE(RADDS_EXT_VDD2_PIN, HIGH); }while(0)
#endif
- #define RADDS_EXT_VDD_PIN 25
+ #define RADDS_EXT_VDD_PIN 25
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_2_PIN 2 // Analog Input
-#define TEMP_3_PIN 3 // Analog Input
-#define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
-#define TEMP_BED_PIN 4 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_2_PIN 2 // Analog Input
+#define TEMP_3_PIN 3 // Analog Input
+#define TEMP_4_PIN 5 // dummy so will compile when PINS_DEBUGGING is enabled
+#define TEMP_BED_PIN 4 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#else
- #define MAX6675_SS_PIN 49
+ #define MAX6675_SS_PIN 49
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13
-#define HEATER_1_PIN 12
-#define HEATER_2_PIN 11
+#define HEATER_0_PIN 13
+#define HEATER_1_PIN 12
+#define HEATER_2_PIN 11
#if !HAS_CUTTER
- #define HEATER_BED_PIN 7 // BED
+ #define HEATER_BED_PIN 7 // BED
#endif
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
-#define FAN1_PIN 8
+#define FAN1_PIN 8
//
// Misc. Functions
//
-#define SD_DETECT_PIN 14
-#define PS_ON_PIN 40 // SERVO3_PIN
+#define SD_DETECT_PIN 14
+#define PS_ON_PIN 40 // SERVO3_PIN
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 39 // SERVO2_PIN
+ #define FIL_RUNOUT_PIN 39 // SERVO2_PIN
#endif
#define I2C_EEPROM
-#define E2END 0x1FFF // 8KB
+#define E2END 0x1FFF // 8KB
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
#if !NUM_SERVOS
- #define SPINDLE_LASER_PWM_PIN 5 // SERVO0_PIN
+ #define SPINDLE_LASER_PWM_PIN 5 // SERVO0_PIN
#endif
- #define SPINDLE_LASER_ENA_PIN 7 // HEATER_BED_PIN - Pullup/down!
+ #define SPINDLE_LASER_ENA_PIN 7 // HEATER_BED_PIN - Pullup/down!
#endif
//
@@ -225,65 +225,65 @@
#if ENABLED(RADDS_DISPLAY)
- #define LCD_PINS_RS 42
- #define LCD_PINS_ENABLE 43
- #define LCD_PINS_D4 44
- #define LCD_PINS_D5 45
- #define LCD_PINS_D6 46
- #define LCD_PINS_D7 47
+ #define LCD_PINS_RS 42
+ #define LCD_PINS_ENABLE 43
+ #define LCD_PINS_D4 44
+ #define LCD_PINS_D5 45
+ #define LCD_PINS_D6 46
+ #define LCD_PINS_D7 47
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define BTN_BACK 71
+ #define BTN_BACK 71
- #define SDSS 10
- #define SD_DETECT_PIN 14
+ #define SDSS 10
+ #define SD_DETECT_PIN 14
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
// The REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER requires
// an adapter such as https://www.thingiverse.com/thing:1740725
- #define LCD_PINS_RS 42
- #define LCD_PINS_ENABLE 43
- #define LCD_PINS_D4 44
+ #define LCD_PINS_RS 42
+ #define LCD_PINS_ENABLE 43
+ #define LCD_PINS_D4 44
- #define BEEPER_PIN 41
+ #define BEEPER_PIN 41
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
- #define SDSS 10
- #define SD_DETECT_PIN 14
+ #define SDSS 10
+ #define SD_DETECT_PIN 14
#elif HAS_SSD1306_OLED_I2C
- #define BTN_EN1 50
- #define BTN_EN2 52
- #define BTN_ENC 48
- #define BEEPER_PIN 41
- #define LCD_SDSS 10
- #define SD_DETECT_PIN 14
+ #define BTN_EN1 50
+ #define BTN_EN2 52
+ #define BTN_ENC 48
+ #define BEEPER_PIN 41
+ #define LCD_SDSS 10
+ #define SD_DETECT_PIN 14
#elif ENABLED(SPARK_FULL_GRAPHICS)
- #define LCD_PINS_D4 29
- #define LCD_PINS_ENABLE 27
- #define LCD_PINS_RS 25
+ #define LCD_PINS_D4 29
+ #define LCD_PINS_ENABLE 27
+ #define LCD_PINS_RS 25
- #define BTN_EN1 35
- #define BTN_EN2 33
- #define BTN_ENC 37
+ #define BTN_EN1 35
+ #define BTN_EN2 33
+ #define BTN_ENC 37
#endif // SPARK_FULL_GRAPHICS
#endif // HAS_SPI_LCD
#ifndef SDSS
- #define SDSS 4
+ #define SDSS 4
#endif
diff --git a/Marlin/src/pins/sam/pins_RAMPS_DUO.h b/Marlin/src/pins/sam/pins_RAMPS_DUO.h
index d25ef9e059..916dbf6430 100644
--- a/Marlin/src/pins/sam/pins_RAMPS_DUO.h
+++ b/Marlin/src/pins/sam/pins_RAMPS_DUO.h
@@ -56,20 +56,20 @@
// Temperature Sensors
//
#undef TEMP_0_PIN
-#define TEMP_0_PIN 9 // Analog Input
+#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
-#define TEMP_1_PIN 11 // Analog Input
+#define TEMP_1_PIN 11 // Analog Input
#undef TEMP_BED_PIN
-#define TEMP_BED_PIN 10 // Analog Input
+#define TEMP_BED_PIN 10 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -79,13 +79,13 @@
#if BOTH(NEWPANEL, PANEL_ONE)
#undef LCD_PINS_D4
- #define LCD_PINS_D4 68
+ #define LCD_PINS_D4 68
#undef LCD_PINS_D5
- #define LCD_PINS_D5 69
+ #define LCD_PINS_D5 69
#undef LCD_PINS_D7
- #define LCD_PINS_D7 67
+ #define LCD_PINS_D7 67
#endif
#if ENABLED(NEWPANEL)
@@ -93,36 +93,36 @@
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#undef BTN_EN1
- #define BTN_EN1 67
+ #define BTN_EN1 67
#undef BTN_ENC
- #define BTN_ENC 66
+ #define BTN_ENC 66
#elif ENABLED(MINIPANEL)
#undef DOGLCD_CS
- #define DOGLCD_CS 69
+ #define DOGLCD_CS 69
#undef LCD_BACKLIGHT_PIN
- #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
+ #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
#undef KILL_PIN
- #define KILL_PIN 67
+ #define KILL_PIN 67
#undef BTN_EN2
- #define BTN_EN2 66
+ #define BTN_EN2 66
#else
#if ENABLED(REPRAPWORLD_KEYPAD)
#undef BTN_EN1
- #define BTN_EN1 67 // encoder
+ #define BTN_EN1 67 // encoder
#undef BTN_ENC
- #define BTN_ENC 66 // enter button
+ #define BTN_ENC 66 // enter button
#elif ENABLED(PANEL_ONE)
#undef BTN_EN2
- #define BTN_EN2 66 // AUX2 PIN 4
+ #define BTN_EN2 66 // AUX2 PIN 4
#endif
#endif
diff --git a/Marlin/src/pins/sam/pins_RAMPS_FD_V1.h b/Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
index 2e03504475..297aaa9cb8 100644
--- a/Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
+++ b/Marlin/src/pins/sam/pins_RAMPS_FD_V1.h
@@ -43,98 +43,98 @@
//
// Servos
//
-#define SERVO0_PIN 7
-#define SERVO1_PIN 6
-#define SERVO2_PIN 5
-#define SERVO3_PIN 3
+#define SERVO0_PIN 7
+#define SERVO1_PIN 6
+#define SERVO2_PIN 5
+#define SERVO3_PIN 3
//
// Limit Switches
//
-#define X_MIN_PIN 22
-#define X_MAX_PIN 30
-#define Y_MIN_PIN 24
-#define Y_MAX_PIN 38
-#define Z_MIN_PIN 26
-#define Z_MAX_PIN 34
+#define X_MIN_PIN 22
+#define X_MAX_PIN 30
+#define Y_MIN_PIN 24
+#define Y_MAX_PIN 38
+#define Z_MIN_PIN 26
+#define Z_MAX_PIN 34
//
// Steppers
//
-#define X_STEP_PIN 63
-#define X_DIR_PIN 62
-#define X_ENABLE_PIN 48
+#define X_STEP_PIN 63
+#define X_DIR_PIN 62
+#define X_ENABLE_PIN 48
#ifndef X_CS_PIN
- #define X_CS_PIN 68
+ #define X_CS_PIN 68
#endif
-#define Y_STEP_PIN 65
-#define Y_DIR_PIN 64
-#define Y_ENABLE_PIN 46
+#define Y_STEP_PIN 65
+#define Y_DIR_PIN 64
+#define Y_ENABLE_PIN 46
#ifndef Y_CS_PIN
- #define Y_CS_PIN 60
+ #define Y_CS_PIN 60
#endif
-#define Z_STEP_PIN 67
-#define Z_DIR_PIN 66
-#define Z_ENABLE_PIN 44
+#define Z_STEP_PIN 67
+#define Z_DIR_PIN 66
+#define Z_ENABLE_PIN 44
#ifndef Z_CS_PIN
- #define Z_CS_PIN 58
+ #define Z_CS_PIN 58
#endif
-#define E0_STEP_PIN 36
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 42
+#define E0_STEP_PIN 36
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 42
#ifndef E0_CS_PIN
- #define E0_CS_PIN 67
+ #define E0_CS_PIN 67
#endif
-#define E1_STEP_PIN 43
-#define E1_DIR_PIN 41
-#define E1_ENABLE_PIN 39
+#define E1_STEP_PIN 43
+#define E1_DIR_PIN 41
+#define E1_ENABLE_PIN 39
#ifndef E1_CS_PIN
- #define E1_CS_PIN 61
+ #define E1_CS_PIN 61
#endif
-#define E2_STEP_PIN 32
-#define E2_DIR_PIN 47
-#define E2_ENABLE_PIN 45
+#define E2_STEP_PIN 32
+#define E2_DIR_PIN 47
+#define E2_ENABLE_PIN 45
#ifndef E2_CS_PIN
- #define E2_CS_PIN 59
+ #define E2_CS_PIN 59
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input
-#define TEMP_1_PIN 2 // Analog Input
-#define TEMP_2_PIN 3 // Analog Input
-#define TEMP_BED_PIN 0 // Analog Input
+#define TEMP_0_PIN 1 // Analog Input
+#define TEMP_1_PIN 2 // Analog Input
+#define TEMP_2_PIN 3 // Analog Input
+#define TEMP_BED_PIN 0 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#else
- #define MAX6675_SS_PIN 49
+ #define MAX6675_SS_PIN 49
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 9
-#define HEATER_1_PIN 10
-#define HEATER_2_PIN 11
-#define HEATER_BED_PIN 8
+#define HEATER_0_PIN 9
+#define HEATER_1_PIN 10
+#define HEATER_2_PIN 11
+#define HEATER_BED_PIN 8
#ifndef FAN_PIN
- #define FAN_PIN 12
+ #define FAN_PIN 12
#endif
//
// Misc. Functions
//
-#define SDSS 4
-#define LED_PIN 13
+#define SDSS 4
+#define LED_PIN 13
//
// LCD / Controller
@@ -142,70 +142,70 @@
#if HAS_SPI_LCD
// ramps-fd lcd adaptor
- #define BEEPER_PIN 37
- #define BTN_EN1 33
- #define BTN_EN2 31
- #define BTN_ENC 35
- #define SD_DETECT_PIN 49
+ #define BEEPER_PIN 37
+ #define BTN_EN1 33
+ #define BTN_EN2 31
+ #define BTN_ENC 35
+ #define SD_DETECT_PIN 49
#if ENABLED(NEWPANEL)
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
#endif
#if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS LCD_PINS_ENABLE
- #define DOGLCD_A0 LCD_PINS_RS
- #define DOGLCD_SCK 76
- #define DOGLCD_MOSI 75
+ #define DOGLCD_CS LCD_PINS_ENABLE
+ #define DOGLCD_A0 LCD_PINS_RS
+ #define DOGLCD_SCK 76
+ #define DOGLCD_MOSI 75
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN 23 // 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 25
+ #define RGB_LED_R_PIN 25
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 27
+ #define RGB_LED_G_PIN 27
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 29
+ #define RGB_LED_B_PIN 29
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 25
+ #define NEOPIXEL_PIN 25
#endif
#elif ENABLED(NEWPANEL)
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
- #define LCD_PINS_D7 29
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
+ #define LCD_PINS_D7 29
#if ENABLED(MINIPANEL)
- #define DOGLCD_CS 25
- #define DOGLCD_A0 27
+ #define DOGLCD_CS 25
+ #define DOGLCD_A0 27
#endif
#endif
#if ANY(VIKI2, miniVIKI)
- #define DOGLCD_A0 16
- #define KILL_PIN 51
- #define STAT_LED_BLUE_PIN 29
- #define STAT_LED_RED_PIN 23
- #define DOGLCD_CS 17
- #define DOGLCD_SCK 76 // SCK_PIN - Required for DUE Hardware SPI
- #define DOGLCD_MOSI 75 // MOSI_PIN
- #define DOGLCD_MISO 74 // MISO_PIN
+ #define DOGLCD_A0 16
+ #define KILL_PIN 51
+ #define STAT_LED_BLUE_PIN 29
+ #define STAT_LED_RED_PIN 23
+ #define DOGLCD_CS 17
+ #define DOGLCD_SCK 76 // SCK_PIN - Required for DUE Hardware SPI
+ #define DOGLCD_MOSI 75 // MOSI_PIN
+ #define DOGLCD_MISO 74 // MISO_PIN
#endif
#endif // HAS_SPI_LCD
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -229,7 +229,7 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HOTENDS < 3 && HAS_CUTTER && !PIN_EXISTS(SPINDLE_LASER_ENA)
- #define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA
- #define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM
- #define SPINDLE_DIR_PIN 47 // Use E2 DIR
+ #define SPINDLE_LASER_ENA_PIN 45 // Use E2 ENA
+ #define SPINDLE_LASER_PWM_PIN 12 // Hardware PWM
+ #define SPINDLE_DIR_PIN 47 // Use E2 DIR
#endif
diff --git a/Marlin/src/pins/sam/pins_RAMPS_SMART.h b/Marlin/src/pins/sam/pins_RAMPS_SMART.h
index 455d40a999..0fd4a6b3ea 100644
--- a/Marlin/src/pins/sam/pins_RAMPS_SMART.h
+++ b/Marlin/src/pins/sam/pins_RAMPS_SMART.h
@@ -73,26 +73,26 @@
#define I2C_EEPROM
#define E2END 0xFFF
-#define RESET_PIN 42 // Resets the board if the jumper is attached
+#define RESET_PIN 42 // Resets the board if the jumper is attached
//
// Temperature Sensors
//
#undef TEMP_0_PIN
-#define TEMP_0_PIN 9 // Analog Input
+#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
-#define TEMP_1_PIN 10 // Analog Input
+#define TEMP_1_PIN 10 // Analog Input
#undef TEMP_BED_PIN
-#define TEMP_BED_PIN 11 // Analog Input
+#define TEMP_BED_PIN 11 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 67 // Don't use 53 if using Display/SD card
+ #define MAX6675_SS_PIN 67 // Don't use 53 if using Display/SD card
#else
- #define MAX6675_SS_PIN 67 // Don't use 49 (SD_DETECT_PIN)
+ #define MAX6675_SS_PIN 67 // Don't use 49 (SD_DETECT_PIN)
#endif
//
@@ -100,12 +100,12 @@
//
// Support for AZSMZ 12864 LCD with SD Card 3D printer smart controller control panel
#if ENABLED(AZSMZ_12864)
- #define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
- #define DOGLCD_A0 59
- #define DOGLCD_CS 44
- #define BTN_EN1 58
- #define BTN_EN2 40
- #define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
- #define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
- #define KILL_PIN 42
+ #define BEEPER_PIN 66 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 65
+ #define DOGLCD_A0 59
+ #define DOGLCD_CS 44
+ #define BTN_EN1 58
+ #define BTN_EN2 40
+ #define BTN_ENC 67 // Smart RAMPS 1.42 pinout diagram on RepRap WIKI erroneously says this should be pin 66
+ #define SD_DETECT_PIN 49 // Pin 49 for display sd interface, 72 for easy adapter board
+ #define KILL_PIN 42
#endif
diff --git a/Marlin/src/pins/sam/pins_RURAMPS4D_11.h b/Marlin/src/pins/sam/pins_RURAMPS4D_11.h
index 6963a164bb..7b844b5be0 100644
--- a/Marlin/src/pins/sam/pins_RURAMPS4D_11.h
+++ b/Marlin/src/pins/sam/pins_RURAMPS4D_11.h
@@ -41,76 +41,76 @@
//
// Servos
//
-#define SERVO0_PIN 5
-#define SERVO1_PIN 3
+#define SERVO0_PIN 5
+#define SERVO1_PIN 3
//
// Limit Switches
//
-#define X_MIN_PIN 45
-#define X_MAX_PIN 39
-#define Y_MIN_PIN 46
-#define Y_MAX_PIN 41
-#define Z_MIN_PIN 47
-#define Z_MAX_PIN 43
+#define X_MIN_PIN 45
+#define X_MAX_PIN 39
+#define Y_MIN_PIN 46
+#define Y_MAX_PIN 41
+#define Z_MIN_PIN 47
+#define Z_MAX_PIN 43
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 43
+ #define Z_MIN_PROBE_PIN 43
#endif
//
// Steppers
//
-#define X_STEP_PIN 37 // Support Extension Board
-#define X_DIR_PIN 36
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 37 // Support Extension Board
+#define X_DIR_PIN 36
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN -1
+ #define X_CS_PIN -1
#endif
-#define Y_STEP_PIN 32 // Support Extension Board
-#define Y_DIR_PIN 35
-#define Y_ENABLE_PIN 34
+#define Y_STEP_PIN 32 // Support Extension Board
+#define Y_DIR_PIN 35
+#define Y_ENABLE_PIN 34
#ifndef Y_CS_PIN
- #define Y_CS_PIN -1
+ #define Y_CS_PIN -1
#endif
-#define Z_STEP_PIN 30 // Support Extension Board
-#define Z_DIR_PIN 2
-#define Z_ENABLE_PIN 33
+#define Z_STEP_PIN 30 // Support Extension Board
+#define Z_DIR_PIN 2
+#define Z_ENABLE_PIN 33
#ifndef Z_CS_PIN
- #define Z_CS_PIN -1
+ #define Z_CS_PIN -1
#endif
-#define E0_STEP_PIN 29
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 31
+#define E0_STEP_PIN 29
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 31
#ifndef E0_CS_PIN
- #define E0_CS_PIN -1
+ #define E0_CS_PIN -1
#endif
-#define E1_STEP_PIN 22
-#define E1_DIR_PIN 24
-#define E1_ENABLE_PIN 26
+#define E1_STEP_PIN 22
+#define E1_DIR_PIN 24
+#define E1_ENABLE_PIN 26
#ifndef E1_CS_PIN
- #define E1_CS_PIN -1
+ #define E1_CS_PIN -1
#endif
-#define E2_STEP_PIN 25
-#define E2_DIR_PIN 23
-#define E2_ENABLE_PIN 27
+#define E2_STEP_PIN 25
+#define E2_DIR_PIN 23
+#define E2_ENABLE_PIN 27
#ifndef E2_CS_PIN
- #define E2_CS_PIN -1
+ #define E2_CS_PIN -1
#endif
-#define E3_STEP_PIN 15 // Only For Extension Board
-#define E3_DIR_PIN 14
-#define E3_ENABLE_PIN 61
+#define E3_STEP_PIN 15 // Only For Extension Board
+#define E3_DIR_PIN 14
+#define E3_ENABLE_PIN 61
#ifndef E3_CS_PIN
- #define E3_CS_PIN -1
+ #define E3_CS_PIN -1
#endif
// For Future: Microstepping pins - Mapping not from fastio.h (?)
@@ -119,77 +119,77 @@
//#define E3_MS3_PIN ?
#if HAS_CUSTOM_PROBE_PIN
- #define Z_MIN_PROBE_PIN 49
+ #define Z_MIN_PROBE_PIN 49
#endif
#if HAS_FILAMENT_SENSOR
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN Y_MIN_PIN
+ #define FIL_RUNOUT_PIN Y_MIN_PIN
#endif
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13
-#define HEATER_1_PIN 12
-#define HEATER_2_PIN 11
-#define HEATER_BED_PIN 7 // BED H1
+#define HEATER_0_PIN 13
+#define HEATER_1_PIN 12
+#define HEATER_2_PIN 11
+#define HEATER_BED_PIN 7 // BED H1
#ifndef FAN_PIN
- #define FAN_PIN 9
+ #define FAN_PIN 9
#endif
-#define FAN1_PIN 8
-#define CONTROLLER_FAN_PIN -1
+#define FAN1_PIN 8
+#define CONTROLLER_FAN_PIN -1
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // ANALOG A0
-#define TEMP_1_PIN 1 // ANALOG A1
-#define TEMP_2_PIN 2 // ANALOG A2
-#define TEMP_3_PIN 3 // ANALOG A3
-#define TEMP_BED_PIN 4 // ANALOG A4
+#define TEMP_0_PIN 0 // ANALOG A0
+#define TEMP_1_PIN 1 // ANALOG A1
+#define TEMP_2_PIN 2 // ANALOG A2
+#define TEMP_3_PIN 3 // ANALOG A3
+#define TEMP_BED_PIN 4 // ANALOG A4
// The thermocouple uses Analog pins
-#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
- #define TEMP_4_PIN 5 // A5
- #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
+#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
+ #define TEMP_4_PIN 5 // A5
+ #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#endif
// SPI for Max6675 or Max31855 Thermocouple
/*
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#else
- #define MAX6675_SS_PIN 49
+ #define MAX6675_SS_PIN 49
#endif
*/
//
// Misc. Functions
//
-#define SDSS 4 // 4,10,52 if using HW SPI.
-#define LED_PIN -1 // 13 - HEATER_0_PIN
-#define PS_ON_PIN -1 // 65
+#define SDSS 4 // 4,10,52 if using HW SPI.
+#define LED_PIN -1 // 13 - HEATER_0_PIN
+#define PS_ON_PIN -1 // 65
// MKS TFT / Nextion Use internal USART-1
-#define TFT_LCD_MODULE_COM 1
-#define TFT_LCD_MODULE_BAUDRATE 115600
+#define TFT_LCD_MODULE_COM 1
+#define TFT_LCD_MODULE_BAUDRATE 115600
// ESP WiFi Use internal USART-2
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115600
-#define ESP_WIFI_MODULE_RESET_PIN -1
-#define PIGGY_GPIO_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115600
+#define ESP_WIFI_MODULE_RESET_PIN -1
+#define PIGGY_GPIO_PIN -1
//
// EEPROM
//
-#define E2END 0x7FFF // 32Kb (24lc256)
-#define I2C_EEPROM // EEPROM on I2C-0
-//#define EEPROM_SD // EEPROM on SDCARD
-//#define SPI_EEPROM // EEPROM on SPI-0
+#define E2END 0x7FFF // 32Kb (24lc256)
+#define I2C_EEPROM // EEPROM on I2C-0
+//#define EEPROM_SD // EEPROM on SDCARD
+//#define SPI_EEPROM // EEPROM on SPI-0
//#define SPI_CHAN_EEPROM1 ?
//#define SPI_EEPROM1_CS ?
// 2K EEPROM
@@ -203,72 +203,72 @@
#if HAS_SPI_LCD
#if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define BEEPER_PIN 62
- #define LCD_PINS_D4 48
- #define LCD_PINS_D5 50
- #define LCD_PINS_D6 52
- #define LCD_PINS_D7 53
- #define SD_DETECT_PIN 51
+ #define BEEPER_PIN 62
+ #define LCD_PINS_D4 48
+ #define LCD_PINS_D5 50
+ #define LCD_PINS_D6 52
+ #define LCD_PINS_D7 53
+ #define SD_DETECT_PIN 51
#endif
#if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define LCD_PINS_RS 63
- #define LCD_PINS_ENABLE 64
+ #define LCD_PINS_RS 63
+ #define LCD_PINS_ENABLE 64
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define LCD_PINS_RS 52
- #define LCD_PINS_ENABLE 53
+ #define LCD_PINS_RS 52
+ #define LCD_PINS_ENABLE 53
#elif HAS_SSD1306_OLED_I2C
- #define BEEPER_PIN 62
- #define LCD_SDSS 10
- #define SD_DETECT_PIN 51
+ #define BEEPER_PIN 62
+ #define LCD_SDSS 10
+ #define SD_DETECT_PIN 51
#elif ENABLED(FYSETC_MINI_12864)
- #define BEEPER_PIN 62
- #define DOGLCD_CS 64
- #define DOGLCD_A0 63
+ #define BEEPER_PIN 62
+ #define DOGLCD_CS 64
+ #define DOGLCD_A0 63
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN 48 // 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 50 // D5
+ #define RGB_LED_R_PIN 50 // D5
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 52 // D6
+ #define RGB_LED_G_PIN 52 // D6
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 53 // D7
+ #define RGB_LED_B_PIN 53 // D7
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 50 // D5
+ #define NEOPIXEL_PIN 50 // D5
#endif
#elif ENABLED(SPARK_FULL_GRAPHICS)
//http://doku.radds.org/dokumentation/other-electronics/sparklcd/
#error "Oops! SPARK_FULL_GRAPHICS not supported with RURAMPS4D."
- //#define LCD_PINS_D4 29 //?
- //#define LCD_PINS_ENABLE 27 //?
- //#define LCD_PINS_RS 25 //?
- //#define BTN_EN1 35 //?
- //#define BTN_EN2 33 //?
- //#define BTN_ENC 37 //?
+ //#define LCD_PINS_D4 29 //?
+ //#define LCD_PINS_ENABLE 27 //?
+ //#define LCD_PINS_RS 25 //?
+ //#define BTN_EN1 35 //?
+ //#define BTN_EN2 33 //?
+ //#define BTN_ENC 37 //?
#endif // SPARK_FULL_GRAPHICS
#if ENABLED(NEWPANEL)
- #define BTN_EN1 44
- #define BTN_EN2 42
- #define BTN_ENC 40
+ #define BTN_EN1 44
+ #define BTN_EN2 42
+ #define BTN_ENC 40
#endif
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_RURAMPS4D_13.h b/Marlin/src/pins/sam/pins_RURAMPS4D_13.h
index d0c24e68a3..3ba6fd17cf 100644
--- a/Marlin/src/pins/sam/pins_RURAMPS4D_13.h
+++ b/Marlin/src/pins/sam/pins_RURAMPS4D_13.h
@@ -41,141 +41,141 @@
//
// Servos
//
-#define SERVO0_PIN 5
-#define SERVO1_PIN 3
+#define SERVO0_PIN 5
+#define SERVO1_PIN 3
//
// Limit Switches
//
-#define X_MIN_PIN 45
-#define X_MAX_PIN 39
-#define Y_MIN_PIN 46
-#define Y_MAX_PIN 41
-#define Z_MIN_PIN 47
-#define Z_MAX_PIN 43
+#define X_MIN_PIN 45
+#define X_MAX_PIN 39
+#define Y_MIN_PIN 46
+#define Y_MAX_PIN 41
+#define Z_MIN_PIN 47
+#define Z_MAX_PIN 43
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 49
+ #define Z_MIN_PROBE_PIN 49
#endif
//
// Steppers
//
-#define X_STEP_PIN 37 // Support Extension Board
-#define X_DIR_PIN 36
-#define X_ENABLE_PIN 31
+#define X_STEP_PIN 37 // Support Extension Board
+#define X_DIR_PIN 36
+#define X_ENABLE_PIN 31
#ifndef X_CS_PIN
- #define X_CS_PIN 38
+ #define X_CS_PIN 38
#endif
-#define Y_STEP_PIN 32 // Support Extension Board
-#define Y_DIR_PIN 35
-#define Y_ENABLE_PIN 31
+#define Y_STEP_PIN 32 // Support Extension Board
+#define Y_DIR_PIN 35
+#define Y_ENABLE_PIN 31
#ifndef Y_CS_PIN
- #define Y_CS_PIN 34
+ #define Y_CS_PIN 34
#endif
-#define Z_STEP_PIN 30 // Support Extension Board
-#define Z_DIR_PIN 2
-#define Z_ENABLE_PIN 31
+#define Z_STEP_PIN 30 // Support Extension Board
+#define Z_DIR_PIN 2
+#define Z_ENABLE_PIN 31
#ifndef Z_CS_PIN
- #define Z_CS_PIN 10
+ #define Z_CS_PIN 10
#endif
-#define E0_STEP_PIN 29
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 33
+#define E0_STEP_PIN 29
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 33
#ifndef E0_CS_PIN
- #define E0_CS_PIN 14
+ #define E0_CS_PIN 14
#endif
-#define E1_STEP_PIN 22
-#define E1_DIR_PIN 24
-#define E1_ENABLE_PIN 26
+#define E1_STEP_PIN 22
+#define E1_DIR_PIN 24
+#define E1_ENABLE_PIN 26
#ifndef E1_CS_PIN
- #define E1_CS_PIN 15
+ #define E1_CS_PIN 15
#endif
-#define E2_STEP_PIN 25
-#define E2_DIR_PIN 23
-#define E2_ENABLE_PIN 27
+#define E2_STEP_PIN 25
+#define E2_DIR_PIN 23
+#define E2_ENABLE_PIN 27
#ifndef E2_CS_PIN
- #define E2_CS_PIN 61
+ #define E2_CS_PIN 61
#endif
#if HAS_CUSTOM_PROBE_PIN
- #define Z_MIN_PROBE_PIN 49
+ #define Z_MIN_PROBE_PIN 49
#endif
#if HAS_FILAMENT_SENSOR
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN Y_MIN_PIN
+ #define FIL_RUNOUT_PIN Y_MIN_PIN
#endif
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13
-#define HEATER_1_PIN 12
-#define HEATER_2_PIN 11
-#define HEATER_BED_PIN 7 // BED H1
+#define HEATER_0_PIN 13
+#define HEATER_1_PIN 12
+#define HEATER_2_PIN 11
+#define HEATER_BED_PIN 7 // BED H1
-#define FAN_PIN 9
-#define FAN1_PIN 8
-#define CONTROLLER_FAN_PIN -1
+#define FAN_PIN 9
+#define FAN1_PIN 8
+#define CONTROLLER_FAN_PIN -1
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // ANALOG A0
-#define TEMP_1_PIN 1 // ANALOG A1
-#define TEMP_2_PIN 2 // ANALOG A2
-#define TEMP_3_PIN 3 // ANALOG A3
-#define TEMP_BED_PIN 4 // ANALOG A4
+#define TEMP_0_PIN 0 // ANALOG A0
+#define TEMP_1_PIN 1 // ANALOG A1
+#define TEMP_2_PIN 2 // ANALOG A2
+#define TEMP_3_PIN 3 // ANALOG A3
+#define TEMP_BED_PIN 4 // ANALOG A4
// The thermocouple uses Analog pins
-#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
- #define TEMP_4_PIN 5 // A5
- #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
+#if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
+ #define TEMP_4_PIN 5 // A5
+ #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
#endif
// SPI for Max6675 or Max31855 Thermocouple
/*
#if DISABLED(SDSUPPORT)
- #define MAX6675_SS_PIN 53
+ #define MAX6675_SS_PIN 53
#else
- #define MAX6675_SS_PIN 49
+ #define MAX6675_SS_PIN 49
#endif
*/
//
// Misc. Functions
//
-#define SDSS 4 // 4,10,52 if using HW SPI.
-#define LED_PIN -1 // 13 - HEATER_0_PIN
-#define PS_ON_PIN -1 // 65
+#define SDSS 4 // 4,10,52 if using HW SPI.
+#define LED_PIN -1 // 13 - HEATER_0_PIN
+#define PS_ON_PIN -1 // 65
// MKS TFT / Nextion Use internal USART-1
-#define TFT_LCD_MODULE_COM 1
-#define TFT_LCD_MODULE_BAUDRATE 115200
+#define TFT_LCD_MODULE_COM 1
+#define TFT_LCD_MODULE_BAUDRATE 115200
// ESP WiFi Use internal USART-2
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115200
-#define ESP_WIFI_MODULE_RESET_PIN -1
-#define PIGGY_GPIO_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115200
+#define ESP_WIFI_MODULE_RESET_PIN -1
+#define PIGGY_GPIO_PIN -1
//
// EEPROM
//
-#define E2END 0x7FFF // 32Kb (24lc256)
-#define I2C_EEPROM // EEPROM on I2C-0
-//#define EEPROM_SD // EEPROM on SDCARD
-//#define SPI_EEPROM // EEPROM on SPI-0
+#define E2END 0x7FFF // 32Kb (24lc256)
+#define I2C_EEPROM // EEPROM on I2C-0
+//#define EEPROM_SD // EEPROM on SDCARD
+//#define SPI_EEPROM // EEPROM on SPI-0
//#define SPI_CHAN_EEPROM1 ?
//#define SPI_EEPROM1_CS ?
// 2K EEPROM
@@ -189,70 +189,70 @@
#if HAS_SPI_LCD
#if ANY(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER, REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define BEEPER_PIN 62
- #define LCD_PINS_D4 48
- #define LCD_PINS_D5 50
- #define LCD_PINS_D6 52
- #define LCD_PINS_D7 53
- #define SD_DETECT_PIN 51
+ #define BEEPER_PIN 62
+ #define LCD_PINS_D4 48
+ #define LCD_PINS_D5 50
+ #define LCD_PINS_D6 52
+ #define LCD_PINS_D7 53
+ #define SD_DETECT_PIN 51
#endif
#if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define LCD_PINS_RS 63
- #define LCD_PINS_ENABLE 64
+ #define LCD_PINS_RS 63
+ #define LCD_PINS_ENABLE 64
#elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
- #define LCD_PINS_RS 52
- #define LCD_PINS_ENABLE 53
+ #define LCD_PINS_RS 52
+ #define LCD_PINS_ENABLE 53
#elif HAS_SSD1306_OLED_I2C
- #define BEEPER_PIN 62
- #define LCD_SDSS 10
- #define SD_DETECT_PIN 51
+ #define BEEPER_PIN 62
+ #define LCD_SDSS 10
+ #define SD_DETECT_PIN 51
#elif ENABLED(FYSETC_MINI_12864)
- #define BEEPER_PIN 62
- #define DOGLCD_CS 64
- #define DOGLCD_A0 63
+ #define BEEPER_PIN 62
+ #define DOGLCD_CS 64
+ #define DOGLCD_A0 63
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
- #define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
+ #define LCD_RESET_PIN 48 // 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 50 // D5
+ #define RGB_LED_R_PIN 50 // D5
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN 52 // D6
+ #define RGB_LED_G_PIN 52 // D6
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN 53 // D7
+ #define RGB_LED_B_PIN 53 // D7
#endif
#elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN 50 // D5
+ #define NEOPIXEL_PIN 50 // D5
#endif
#elif ENABLED(MKS_MINI_12864)
- #define ORIG_BEEPER_PIN 62
+ #define ORIG_BEEPER_PIN 62
- #define DOGLCD_A0 52
- #define DOGLCD_CS 50
+ #define DOGLCD_A0 52
+ #define DOGLCD_CS 50
- #define SD_DETECT_PIN 51
+ #define SD_DETECT_PIN 51
#endif
#if ENABLED(NEWPANEL)
- #define BTN_EN1 44
- #define BTN_EN2 42
- #define BTN_ENC 40
+ #define BTN_EN1 44
+ #define BTN_EN2 42
+ #define BTN_ENC 40
#endif
#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h b/Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h
index db0826e7c9..ae01d5da4c 100644
--- a/Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h
+++ b/Marlin/src/pins/sam/pins_ULTRATRONICS_PRO.h
@@ -35,140 +35,140 @@
// Servos
//
#if NUM_SERVOS > 0
- #define SERVO0_PIN 11
+ #define SERVO0_PIN 11
#if NUM_SERVOS > 1
- #define SERVO1_PIN 12
+ #define SERVO1_PIN 12
#endif
#endif
//
// Limit Switches
//
-#define X_MIN_PIN 31
-#define X_MAX_PIN 30
-#define Y_MIN_PIN 12
-#define Y_MAX_PIN 11
-#define Z_MIN_PIN 29
-#define Z_MAX_PIN 28
+#define X_MIN_PIN 31
+#define X_MAX_PIN 30
+#define Y_MIN_PIN 12
+#define Y_MAX_PIN 11
+#define Z_MIN_PIN 29
+#define Z_MAX_PIN 28
//
// Steppers
//
-#define X_STEP_PIN 35
-#define X_DIR_PIN 34
-#define X_ENABLE_PIN 37
+#define X_STEP_PIN 35
+#define X_DIR_PIN 34
+#define X_ENABLE_PIN 37
#ifndef X_CS_PIN
- #define X_CS_PIN 18
+ #define X_CS_PIN 18
#endif
-#define Y_STEP_PIN 22
-#define Y_DIR_PIN 23
-#define Y_ENABLE_PIN 33
+#define Y_STEP_PIN 22
+#define Y_DIR_PIN 23
+#define Y_ENABLE_PIN 33
#ifndef Y_CS_PIN
- #define Y_CS_PIN 19
+ #define Y_CS_PIN 19
#endif
-#define Z_STEP_PIN 25
-#define Z_DIR_PIN 26
-#define Z_ENABLE_PIN 24
+#define Z_STEP_PIN 25
+#define Z_DIR_PIN 26
+#define Z_ENABLE_PIN 24
#ifndef Z_CS_PIN
- #define Z_CS_PIN 16
+ #define Z_CS_PIN 16
#endif
-#define E0_STEP_PIN 47
-#define E0_DIR_PIN 46
-#define E0_ENABLE_PIN 48
+#define E0_STEP_PIN 47
+#define E0_DIR_PIN 46
+#define E0_ENABLE_PIN 48
#ifndef E0_CS_PIN
- #define E0_CS_PIN 17
+ #define E0_CS_PIN 17
#endif
-#define E1_STEP_PIN 44
-#define E1_DIR_PIN 36
-#define E1_ENABLE_PIN 45
+#define E1_STEP_PIN 44
+#define E1_DIR_PIN 36
+#define E1_ENABLE_PIN 45
#ifndef E1_CS_PIN
- #define E1_CS_PIN -1
+ #define E1_CS_PIN -1
#endif
-#define E2_STEP_PIN 42
-#define E2_DIR_PIN 41
-#define E2_ENABLE_PIN 43
+#define E2_STEP_PIN 42
+#define E2_DIR_PIN 41
+#define E2_ENABLE_PIN 43
#ifndef E2_CS_PIN
- #define E2_CS_PIN -1
+ #define E2_CS_PIN -1
#endif
-#define E3_STEP_PIN 39
-#define E3_DIR_PIN 38
-#define E3_ENABLE_PIN 40
+#define E3_STEP_PIN 39
+#define E3_DIR_PIN 38
+#define E3_ENABLE_PIN 40
#ifndef E3_CS_PIN
- #define E3_CS_PIN -1
+ #define E3_CS_PIN -1
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 2 // Analog Input
-#define TEMP_2_PIN 3 // Analog Input
-#define TEMP_3_PIN 4 // Analog Input
-#define TEMP_BED_PIN 1 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 2 // Analog Input
+#define TEMP_2_PIN 3 // Analog Input
+#define TEMP_3_PIN 4 // Analog Input
+#define TEMP_BED_PIN 1 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 3
-#define HEATER_1_PIN 8
-#define HEATER_2_PIN 7
-#define HEATER_3_PIN 9
-#define HEATER_BED_PIN 2
+#define HEATER_0_PIN 3
+#define HEATER_1_PIN 8
+#define HEATER_2_PIN 7
+#define HEATER_3_PIN 9
+#define HEATER_BED_PIN 2
#ifndef FAN_PIN
- #define FAN_PIN 6
+ #define FAN_PIN 6
#endif
-#define FAN2_PIN 5
+#define FAN2_PIN 5
//
// Misc. Functions
//
-#define SDSS 59
-#define SD_DETECT_PIN 60
-#define LED_PIN 13
-#define PS_ON_PIN 32
+#define SDSS 59
+#define SD_DETECT_PIN 60
+#define LED_PIN 13
+#define PS_ON_PIN 32
//
// SPI Buses
//
-#define DAC0_SYNC 53 // PB14
-#define SPI_CHAN_DAC 1
+#define DAC0_SYNC 53 // PB14
+#define SPI_CHAN_DAC 1
-#define SPI_CHAN_EEPROM1 -1
-#define SPI_EEPROM1_CS -1
-#define SPI_EEPROM2_CS -1
-#define SPI_FLASH_CS -1
+#define SPI_CHAN_EEPROM1 -1
+#define SPI_EEPROM1_CS -1
+#define SPI_EEPROM2_CS -1
+#define SPI_FLASH_CS -1
// SPI for Max6675 or Max31855 Thermocouple
-#define MAX6675_SS_PIN 65
-#define MAX31855_SS0 65
-#define MAX31855_SS1 52
-#define MAX31855_SS2 50
-#define MAX31855_SS3 51
+#define MAX6675_SS_PIN 65
+#define MAX31855_SS0 65
+#define MAX31855_SS1 52
+#define MAX31855_SS2 50
+#define MAX31855_SS3 51
-#define ENC424_SS 61
+#define ENC424_SS 61
//
// LCD / Controller
//
-#define BEEPER_PIN 27
+#define BEEPER_PIN 27
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
- #define LCD_PINS_RS A8 // CS chip select / SS chip slave select
- #define LCD_PINS_ENABLE MOSI // SID (MOSI)
- #define LCD_PINS_D4 SCK // SCK (CLK) clock
+ #define LCD_PINS_RS A8 // CS chip select / SS chip slave select
+ #define LCD_PINS_ENABLE MOSI // SID (MOSI)
+ #define LCD_PINS_D4 SCK // SCK (CLK) clock
- #define BTN_EN1 20
- #define BTN_EN2 21
- #define BTN_ENC 64
+ #define BTN_EN1 20
+ #define BTN_EN2 21
+ #define BTN_ENC 64
#endif // REPRAPWORLD_GRAPHICAL_LCD
diff --git a/Marlin/src/pins/samd/pins_RAMPS_144.h b/Marlin/src/pins/samd/pins_RAMPS_144.h
index 107ef9f57e..b7d5172e0d 100644
--- a/Marlin/src/pins/samd/pins_RAMPS_144.h
+++ b/Marlin/src/pins/samd/pins_RAMPS_144.h
@@ -36,110 +36,110 @@
//
// Servos
//
-#define SERVO0_PIN 11
-#define SERVO1_PIN 6
-#define SERVO2_PIN 5
-#define SERVO3_PIN 4
+#define SERVO0_PIN 11
+#define SERVO1_PIN 6
+#define SERVO2_PIN 5
+#define SERVO3_PIN 4
//
// EEPROM
//
-#define E2END 0x7FFF // 32Kb (24lc256)
-#define I2C_EEPROM // EEPROM on I2C-0
+#define E2END 0x7FFF // 32Kb (24lc256)
+#define I2C_EEPROM // EEPROM on I2C-0
//
// Limit Switches
//
-#define X_MIN_PIN 3
-#define X_MAX_PIN 2
-#define Y_MIN_PIN 14
-#define Y_MAX_PIN 15
-#define Z_MIN_PIN 18
-#define Z_MAX_PIN 19
+#define X_MIN_PIN 3
+#define X_MAX_PIN 2
+#define Y_MIN_PIN 14
+#define Y_MAX_PIN 15
+#define Z_MIN_PIN 18
+#define Z_MAX_PIN 19
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 18
+ #define Z_MIN_PROBE_PIN 18
#endif
//
// Steppers
//
-#define X_STEP_PIN 67 // Mega/Due:54 - AGCM4:67
-#define X_DIR_PIN 68 // Mega/Due:55 - AGCM4:68
-#define X_ENABLE_PIN 38
+#define X_STEP_PIN 67 // Mega/Due:54 - AGCM4:67
+#define X_DIR_PIN 68 // Mega/Due:55 - AGCM4:68
+#define X_ENABLE_PIN 38
#ifndef X_CS_PIN
- #define X_CS_PIN 47
+ #define X_CS_PIN 47
#endif
-#define Y_STEP_PIN 73 // Mega/Due:60 - AGCM4:73
-#define Y_DIR_PIN 74 // Mega/Due:61 - AGCM4:74
-#define Y_ENABLE_PIN 69 // Mega/Due:56 - AGCM4:69
+#define Y_STEP_PIN 73 // Mega/Due:60 - AGCM4:73
+#define Y_DIR_PIN 74 // Mega/Due:61 - AGCM4:74
+#define Y_ENABLE_PIN 69 // Mega/Due:56 - AGCM4:69
#ifndef Y_CS_PIN
- #define Y_CS_PIN 45
+ #define Y_CS_PIN 45
#endif
-#define Z_STEP_PIN 46
-#define Z_DIR_PIN 48
-#define Z_ENABLE_PIN 54 // Mega/Due:62 - AGCM4:54
+#define Z_STEP_PIN 46
+#define Z_DIR_PIN 48
+#define Z_ENABLE_PIN 54 // Mega/Due:62 - AGCM4:54
#ifndef Z_CS_PIN
- #define Z_CS_PIN 32
+ #define Z_CS_PIN 32
#endif
-#define Z2_STEP_PIN 36
-#define Z2_DIR_PIN 34
-#define Z2_ENABLE_PIN 30
+#define Z2_STEP_PIN 36
+#define Z2_DIR_PIN 34
+#define Z2_ENABLE_PIN 30
#ifndef Z2_CS_PIN
- #define Z2_CS_PIN 22
+ #define Z2_CS_PIN 22
#endif
-#define E0_STEP_PIN 26
-#define E0_DIR_PIN 28
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 26
+#define E0_DIR_PIN 28
+#define E0_ENABLE_PIN 24
#ifndef E0_CS_PIN
- #define E0_CS_PIN 43
+ #define E0_CS_PIN 43
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 13
-#define TEMP_BED_PIN 14
-#define TEMP_CHAMBER_PIN 15
+#define TEMP_0_PIN 13
+#define TEMP_BED_PIN 14
+#define TEMP_CHAMBER_PIN 15
//
// Heaters / Fans
//
-#define HEATER_0_PIN 10
-#define HEATER_BED_PIN 8
-#define FAN_PIN 9
-#define FAN1_PIN 7
-#define FAN2_PIN 12
+#define HEATER_0_PIN 10
+#define HEATER_BED_PIN 8
+#define FAN_PIN 9
+#define FAN1_PIN 7
+#define FAN2_PIN 12
//
// Misc. Functions
//
-#define SDSS 53
-#define LED_PIN 13
+#define SDSS 53
+#define LED_PIN 13
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 5 // Analog Input on AUX2
+ #define FILWIDTH_PIN 5 // Analog Input on AUX2
#endif
// RAMPS 1.4 DIO 4 on the servos connector
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN 4
+ #define FIL_RUNOUT_PIN 4
#endif
#ifndef PS_ON_PIN
- #define PS_ON_PIN 39
+ #define PS_ON_PIN 39
#endif
#if ENABLED(CASE_LIGHT_ENABLE) && !defined(CASE_LIGHT_PIN) && !defined(SPINDLE_LASER_ENA_PIN)
- #if NUM_SERVOS <= 1 // Prefer the servo connector
- #define CASE_LIGHT_PIN 6 // Hardware PWM
+ #if NUM_SERVOS <= 1 // Prefer the servo connector
+ #define CASE_LIGHT_PIN 6 // Hardware PWM
#endif
#endif
@@ -147,10 +147,10 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
- #if !NUM_SERVOS // Use servo connector if possible
- #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
- #define SPINDLE_DIR_PIN 5
+ #if !NUM_SERVOS // Use servo connector if possible
+ #define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
+ #define SPINDLE_DIR_PIN 5
#else
#error "No auto-assignable Spindle/Laser pins available."
#endif
@@ -161,17 +161,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI 58 // Mega/Due:66 - AGCM4:58
+ #define TMC_SW_MOSI 58 // Mega/Due:66 - AGCM4:58
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO 44
+ #define TMC_SW_MISO 44
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK 56 // Mega/Due:64 - AGCM4:56
+ #define TMC_SW_SCK 56 // Mega/Due:64 - AGCM4:56
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -195,91 +195,91 @@
//
#ifndef X_SERIAL_TX_PIN
- #define X_SERIAL_TX_PIN 47
+ #define X_SERIAL_TX_PIN 47
#endif
#ifndef X_SERIAL_RX_PIN
- #define X_SERIAL_RX_PIN 47
+ #define X_SERIAL_RX_PIN 47
#endif
#ifndef X2_SERIAL_TX_PIN
- #define X2_SERIAL_TX_PIN -1
+ #define X2_SERIAL_TX_PIN -1
#endif
#ifndef X2_SERIAL_RX_PIN
- #define X2_SERIAL_RX_PIN -1
+ #define X2_SERIAL_RX_PIN -1
#endif
#ifndef Y_SERIAL_TX_PIN
- #define Y_SERIAL_TX_PIN 45
+ #define Y_SERIAL_TX_PIN 45
#endif
#ifndef Y_SERIAL_RX_PIN
- #define Y_SERIAL_RX_PIN 45
+ #define Y_SERIAL_RX_PIN 45
#endif
#ifndef Y2_SERIAL_TX_PIN
- #define Y2_SERIAL_TX_PIN -1
+ #define Y2_SERIAL_TX_PIN -1
#endif
#ifndef Y2_SERIAL_RX_PIN
- #define Y2_SERIAL_RX_PIN -1
+ #define Y2_SERIAL_RX_PIN -1
#endif
#ifndef Z_SERIAL_TX_PIN
- #define Z_SERIAL_TX_PIN 32
+ #define Z_SERIAL_TX_PIN 32
#endif
#ifndef Z_SERIAL_RX_PIN
- #define Z_SERIAL_RX_PIN 32
+ #define Z_SERIAL_RX_PIN 32
#endif
#ifndef Z2_SERIAL_TX_PIN
- #define Z2_SERIAL_TX_PIN 22
+ #define Z2_SERIAL_TX_PIN 22
#endif
#ifndef Z2_SERIAL_RX_PIN
- #define Z2_SERIAL_RX_PIN 22
+ #define Z2_SERIAL_RX_PIN 22
#endif
#ifndef E0_SERIAL_TX_PIN
- #define E0_SERIAL_TX_PIN 43
+ #define E0_SERIAL_TX_PIN 43
#endif
#ifndef E0_SERIAL_RX_PIN
- #define E0_SERIAL_RX_PIN 43
+ #define E0_SERIAL_RX_PIN 43
#endif
#ifndef E1_SERIAL_TX_PIN
- #define E1_SERIAL_TX_PIN -1
+ #define E1_SERIAL_TX_PIN -1
#endif
#ifndef E1_SERIAL_RX_PIN
- #define E1_SERIAL_RX_PIN -1
+ #define E1_SERIAL_RX_PIN -1
#endif
#ifndef E2_SERIAL_TX_PIN
- #define E2_SERIAL_TX_PIN -1
+ #define E2_SERIAL_TX_PIN -1
#endif
#ifndef E2_SERIAL_RX_PIN
- #define E2_SERIAL_RX_PIN -1
+ #define E2_SERIAL_RX_PIN -1
#endif
#ifndef E3_SERIAL_TX_PIN
- #define E3_SERIAL_TX_PIN -1
+ #define E3_SERIAL_TX_PIN -1
#endif
#ifndef E3_SERIAL_RX_PIN
- #define E3_SERIAL_RX_PIN -1
+ #define E3_SERIAL_RX_PIN -1
#endif
#ifndef E4_SERIAL_TX_PIN
- #define E4_SERIAL_TX_PIN -1
+ #define E4_SERIAL_TX_PIN -1
#endif
#ifndef E4_SERIAL_RX_PIN
- #define E4_SERIAL_RX_PIN -1
+ #define E4_SERIAL_RX_PIN -1
#endif
#ifndef E5_SERIAL_TX_PIN
- #define E5_SERIAL_TX_PIN -1
+ #define E5_SERIAL_TX_PIN -1
#endif
#ifndef E5_SERIAL_RX_PIN
- #define E5_SERIAL_RX_PIN -1
+ #define E5_SERIAL_RX_PIN -1
#endif
#ifndef E6_SERIAL_TX_PIN
- #define E6_SERIAL_TX_PIN -1
+ #define E6_SERIAL_TX_PIN -1
#endif
#ifndef E6_SERIAL_RX_PIN
- #define E6_SERIAL_RX_PIN -1
+ #define E6_SERIAL_RX_PIN -1
#endif
#ifndef E7_SERIAL_TX_PIN
- #define E7_SERIAL_TX_PIN -1
+ #define E7_SERIAL_TX_PIN -1
#endif
#ifndef E7_SERIAL_RX_PIN
- #define E7_SERIAL_RX_PIN -1
+ #define E7_SERIAL_RX_PIN -1
#endif
#endif
@@ -345,17 +345,17 @@
// #define DOGLCD_SCK 23
// #define DOGLCD_A0 LCD_PINS_DC
#else
- #define LCD_PINS_RS 16
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 23
- #define LCD_PINS_D5 25
- #define LCD_PINS_D6 27
+ #define LCD_PINS_RS 16
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 23
+ #define LCD_PINS_D5 25
+ #define LCD_PINS_D6 27
#endif
- #define LCD_PINS_D7 29
+ #define LCD_PINS_D7 29
#if DISABLED(NEWPANEL)
- #define BEEPER_PIN 33
+ #define BEEPER_PIN 33
#endif
#endif
@@ -363,10 +363,10 @@
#if DISABLED(NEWPANEL)
// Buttons attached to a shift register
// Not wired yet
- //#define SHIFT_CLK 38
- //#define SHIFT_LD 42
- //#define SHIFT_OUT 40
- //#define SHIFT_EN 17
+ //#define SHIFT_CLK 38
+ //#define SHIFT_LD 42
+ //#define SHIFT_OUT 40
+ //#define SHIFT_EN 17
#endif
#endif
@@ -378,22 +378,22 @@
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
- #define BEEPER_PIN 37
+ #define BEEPER_PIN 37
#if ENABLED(CR10_STOCKDISPLAY)
// TO TEST
// #define BTN_EN1 17
// #define BTN_EN2 23
#else
- #define BTN_EN1 31
- #define BTN_EN2 33
+ #define BTN_EN1 31
+ #define BTN_EN2 33
#endif
- #define BTN_ENC 35
+ #define BTN_ENC 35
#ifndef SD_DETECT_PIN
- #define SD_DETECT_PIN 49
+ #define SD_DETECT_PIN 49
#endif
- #define KILL_PIN 41
+ #define KILL_PIN 41
#if ENABLED(BQ_LCD_SMART_CONTROLLER)
// TO TEST
@@ -465,15 +465,15 @@
#elif EITHER(MKS_MINI_12864, FYSETC_MINI_12864)
// TO TEST
- //#define BEEPER_PIN 37
- //#define BTN_ENC 35
- //#define SD_DETECT_PIN 49
+ //#define BEEPER_PIN 37
+ //#define BTN_ENC 35
+ //#define SD_DETECT_PIN 49
//#ifndef KILL_PIN
// #define KILL_PIN 41
//#endif
- #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
+ #if ENABLED(MKS_MINI_12864) // Added in Marlin 1.1.6
// TO TEST
// #define DOGLCD_A0 27
@@ -502,8 +502,8 @@
// #define BTN_EN1 33
// #define BTN_EN2 31
- //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
- // results in LCD soft SPI mode 3, SD soft SPI mode 0
+ //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
+ // results in LCD soft SPI mode 3, SD soft SPI mode 0
// #define LCD_RESET_PIN 23 // Must be high or open for LCD to operate normally.
@@ -600,12 +600,12 @@
// SD Support
//
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
#if SD_CONNECTION_IS(ONBOARD)
#undef SDSS
- #define SDSS 83
+ #define SDSS 83
#undef SD_DETECT_PIN
- #define SD_DETECT_PIN 95
+ #define SD_DETECT_PIN 95
#endif
diff --git a/Marlin/src/pins/sanguino/pins_ANET_10.h b/Marlin/src/pins/sanguino/pins_ANET_10.h
index ebd0503712..73145a3cdb 100644
--- a/Marlin/src/pins/sanguino/pins_ANET_10.h
+++ b/Marlin/src/pins/sanguino/pins_ANET_10.h
@@ -98,50 +98,50 @@
//
// Limit Switches
//
-#define X_STOP_PIN 18
-#define Y_STOP_PIN 19
-#define Z_STOP_PIN 20
+#define X_STOP_PIN 18
+#define Y_STOP_PIN 19
+#define Z_STOP_PIN 20
//
// Steppers
//
-#define X_STEP_PIN 15
-#define X_DIR_PIN 21
-#define X_ENABLE_PIN 14
+#define X_STEP_PIN 15
+#define X_DIR_PIN 21
+#define X_ENABLE_PIN 14
-#define Y_STEP_PIN 22
-#define Y_DIR_PIN 23
-#define Y_ENABLE_PIN 14
+#define Y_STEP_PIN 22
+#define Y_DIR_PIN 23
+#define Y_ENABLE_PIN 14
-#define Z_STEP_PIN 3
-#define Z_DIR_PIN 2
-#define Z_ENABLE_PIN 26
+#define Z_STEP_PIN 3
+#define Z_DIR_PIN 2
+#define Z_ENABLE_PIN 26
-#define E0_STEP_PIN 1
-#define E0_DIR_PIN 0
-#define E0_ENABLE_PIN 14
+#define E0_STEP_PIN 1
+#define E0_DIR_PIN 0
+#define E0_ENABLE_PIN 14
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
-#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
+#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
+#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13 // (extruder)
-#define HEATER_BED_PIN 12 // (bed)
+#define HEATER_0_PIN 13 // (extruder)
+#define HEATER_BED_PIN 12 // (bed)
#ifndef FAN_PIN
- #define FAN_PIN 4
+ #define FAN_PIN 4
#endif
//
// Misc. Functions
//
-#define SDSS 31
-#define LED_PIN -1
+#define SDSS 31
+#define LED_PIN -1
/**
* LCD / Controller
@@ -153,36 +153,36 @@
*/
#if HAS_SPI_LCD
- #define LCD_SDSS 28
+ #define LCD_SDSS 28
#if ENABLED(ADC_KEYPAD)
- #define SERVO0_PIN 27 // free for BLTouch/3D-Touch
- #define LCD_PINS_RS 28
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 10
- #define LCD_PINS_D5 11
- #define LCD_PINS_D6 16
- #define LCD_PINS_D7 17
- #define ADC_KEYPAD_PIN 1
+ #define SERVO0_PIN 27 // free for BLTouch/3D-Touch
+ #define LCD_PINS_RS 28
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 10
+ #define LCD_PINS_D5 11
+ #define LCD_PINS_D6 16
+ #define LCD_PINS_D7 17
+ #define ADC_KEYPAD_PIN 1
#elif EITHER(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, ANET_FULL_GRAPHICS_LCD)
// Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
// display using an adapter board // https://go.aisler.net/benlye/anet-lcd-adapter/pcb
// See below for alternative pin definitions for use with https://www.thingiverse.com/thing:2103748
- #define SERVO0_PIN 29 // free for BLTouch/3D-Touch
- #define BEEPER_PIN 17
- #define LCD_PINS_RS 27
- #define LCD_PINS_ENABLE 28
- #define LCD_PINS_D4 30
- #define BTN_EN1 11
- #define BTN_EN2 10
- #define BTN_ENC 16
+ #define SERVO0_PIN 29 // free for BLTouch/3D-Touch
+ #define BEEPER_PIN 17
+ #define LCD_PINS_RS 27
+ #define LCD_PINS_ENABLE 28
+ #define LCD_PINS_D4 30
+ #define BTN_EN1 11
+ #define BTN_EN2 10
+ #define BTN_ENC 16
#define BOARD_ST7920_DELAY_1 DELAY_NS(0)
#define BOARD_ST7920_DELAY_2 DELAY_NS(63)
#define BOARD_ST7920_DELAY_3 DELAY_NS(125)
- #define STD_ENCODER_PULSES_PER_STEP 4
- #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
+ #define STD_ENCODER_PULSES_PER_STEP 4
+ #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
#endif
#else
- #define SERVO0_PIN 27
+ #define SERVO0_PIN 27
#endif
/**
diff --git a/Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h b/Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h
index 833f99fb7f..b9a917d65d 100644
--- a/Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h
+++ b/Marlin/src/pins/sanguino/pins_GEN3_MONOLITHIC.h
@@ -55,47 +55,47 @@
#endif
#define BOARD_INFO_NAME "Gen3 Monolithic"
-#define DEBUG_PIN 0
+#define DEBUG_PIN 0
//
// Limit Switches
//
-#define X_STOP_PIN 20
-#define Y_STOP_PIN 25
-#define Z_STOP_PIN 30
+#define X_STOP_PIN 20
+#define Y_STOP_PIN 25
+#define Z_STOP_PIN 30
//
// Steppers
//
-#define X_STEP_PIN 15
-#define X_DIR_PIN 18
-#define X_ENABLE_PIN 24 // actually uses Y_enable_pin
+#define X_STEP_PIN 15
+#define X_DIR_PIN 18
+#define X_ENABLE_PIN 24 // actually uses Y_enable_pin
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24 // shared with X_enable_pin
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24 // shared with X_enable_pin
-#define Z_STEP_PIN 27
-#define Z_DIR_PIN 28
-#define Z_ENABLE_PIN 29
+#define Z_STEP_PIN 27
+#define Z_DIR_PIN 28
+#define Z_ENABLE_PIN 29
-#define E0_STEP_PIN 12
-#define E0_DIR_PIN 17
-#define E0_ENABLE_PIN 3
+#define E0_STEP_PIN 12
+#define E0_DIR_PIN 17
+#define E0_ENABLE_PIN 3
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_0_PIN 0 // Analog Input
//
// Heaters
//
-#define HEATER_0_PIN 16
+#define HEATER_0_PIN 16
//
// Misc. Functions
//
-#define PS_ON_PIN 14 // Alex, does this work on the card?
+#define PS_ON_PIN 14 // Alex, does this work on the card?
// Alex extras from Gen3+
diff --git a/Marlin/src/pins/sanguino/pins_GEN3_PLUS.h b/Marlin/src/pins/sanguino/pins_GEN3_PLUS.h
index c7c037fd4d..6cd6fdaf27 100644
--- a/Marlin/src/pins/sanguino/pins_GEN3_PLUS.h
+++ b/Marlin/src/pins/sanguino/pins_GEN3_PLUS.h
@@ -50,7 +50,6 @@
*
*/
-
#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega1284P__)
#error "Oops! Select 'Sanguino' in 'Tools > Boards' and 'ATmega644P' or 'ATmega1284P' in 'Tools > Processor.'"
#endif
@@ -60,43 +59,43 @@
//
// Limit Switches
//
-#define X_STOP_PIN 20
-#define Y_STOP_PIN 25
-#define Z_STOP_PIN 30
+#define X_STOP_PIN 20
+#define Y_STOP_PIN 25
+#define Z_STOP_PIN 30
//
// Steppers
//
-#define X_STEP_PIN 15
-#define X_DIR_PIN 18
-#define X_ENABLE_PIN 19
+#define X_STEP_PIN 15
+#define X_DIR_PIN 18
+#define X_ENABLE_PIN 19
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 27
-#define Z_DIR_PIN 28
-#define Z_ENABLE_PIN 29
+#define Z_STEP_PIN 27
+#define Z_DIR_PIN 28
+#define Z_ENABLE_PIN 29
-#define E0_STEP_PIN 17
-#define E0_DIR_PIN 21
-#define E0_ENABLE_PIN 13
+#define E0_STEP_PIN 17
+#define E0_DIR_PIN 21
+#define E0_ENABLE_PIN 13
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input (pin 33 extruder)
-#define TEMP_BED_PIN 5 // Analog Input (pin 34 bed)
+#define TEMP_0_PIN 0 // Analog Input (pin 33 extruder)
+#define TEMP_BED_PIN 5 // Analog Input (pin 34 bed)
//
// Heaters
//
-#define HEATER_0_PIN 12
-#define HEATER_BED_PIN 16
+#define HEATER_0_PIN 12
+#define HEATER_BED_PIN 16
//
// Misc. Functions
//
-#define SDSS 4
-#define PS_ON_PIN 14
+#define SDSS 4
+#define PS_ON_PIN 14
diff --git a/Marlin/src/pins/sanguino/pins_GEN6.h b/Marlin/src/pins/sanguino/pins_GEN6.h
index d1b8391bcd..0d2449ae6e 100644
--- a/Marlin/src/pins/sanguino/pins_GEN6.h
+++ b/Marlin/src/pins/sanguino/pins_GEN6.h
@@ -63,58 +63,58 @@
//
// Limit Switches
//
-#define X_STOP_PIN 20
-#define Y_STOP_PIN 25
-#define Z_STOP_PIN 30
+#define X_STOP_PIN 20
+#define Y_STOP_PIN 25
+#define Z_STOP_PIN 30
//
// Steppers
//
-#define X_STEP_PIN 15
-#define X_DIR_PIN 18
-#define X_ENABLE_PIN 19
+#define X_STEP_PIN 15
+#define X_DIR_PIN 18
+#define X_ENABLE_PIN 19
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 27
-#define Z_DIR_PIN 28
-#define Z_ENABLE_PIN 29
+#define Z_STEP_PIN 27
+#define Z_DIR_PIN 28
+#define Z_ENABLE_PIN 29
-#define E0_STEP_PIN 4 // Edited @ EJE Electronics 20100715
-#define E0_DIR_PIN 2 // Edited @ EJE Electronics 20100715
-#define E0_ENABLE_PIN 3 // Added @ EJE Electronics 20100715
+#define E0_STEP_PIN 4 // Edited @ EJE Electronics 20100715
+#define E0_DIR_PIN 2 // Edited @ EJE Electronics 20100715
+#define E0_ENABLE_PIN 3 // Added @ EJE Electronics 20100715
//
// Temperature Sensor
//
-#define TEMP_0_PIN 5 // Analog Input
+#define TEMP_0_PIN 5 // Analog Input
//
// Heaters
//
-#define HEATER_0_PIN 14 // changed @ rkoeppl 20110410
+#define HEATER_0_PIN 14 // changed @ rkoeppl 20110410
#if !MB(GEN6)
- #define HEATER_BED_PIN 1 // changed @ rkoeppl 20110410
- #define TEMP_BED_PIN 0 // Analog Input
+ #define HEATER_BED_PIN 1 // changed @ rkoeppl 20110410
+ #define TEMP_BED_PIN 0 // Analog Input
#endif
//
// Misc. Functions
//
-#define SDSS 17
-#define DEBUG_PIN 0
-#define CASE_LIGHT_PIN 16 // Hardware PWM
+#define SDSS 17
+#define DEBUG_PIN 0
+#define CASE_LIGHT_PIN 16 // Hardware PWM
// RS485 pins
-#define TX_ENABLE_PIN 12
-#define RX_ENABLE_PIN 13
+#define TX_ENABLE_PIN 12
+#define RX_ENABLE_PIN 13
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 5 // Pullup or pulldown!
-#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
-#define SPINDLE_DIR_PIN 6
+#define SPINDLE_LASER_ENA_PIN 5 // Pullup or pulldown!
+#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
+#define SPINDLE_DIR_PIN 6
diff --git a/Marlin/src/pins/sanguino/pins_GEN7_12.h b/Marlin/src/pins/sanguino/pins_GEN7_12.h
index 4ab53faa98..bb0e44a300 100644
--- a/Marlin/src/pins/sanguino/pins_GEN7_12.h
+++ b/Marlin/src/pins/sanguino/pins_GEN7_12.h
@@ -61,90 +61,89 @@
#endif
#ifndef GEN7_VERSION
- #define GEN7_VERSION 12 // v1.x
+ #define GEN7_VERSION 12 // v1.x
#endif
//
// Limit Switches
//
-#define X_MIN_PIN 7
-#define Y_MIN_PIN 5
-#define Z_MIN_PIN 1
-#define Z_MAX_PIN 0
-#define Y_MAX_PIN 2
-#define X_MAX_PIN 6
-
+#define X_MIN_PIN 7
+#define Y_MIN_PIN 5
+#define Z_MIN_PIN 1
+#define Z_MAX_PIN 0
+#define Y_MAX_PIN 2
+#define X_MAX_PIN 6
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 0
+ #define Z_MIN_PROBE_PIN 0
#endif
//
// Steppers
//
-#define X_STEP_PIN 19
-#define X_DIR_PIN 18
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 19
+#define X_DIR_PIN 18
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 26
-#define Z_DIR_PIN 25
-#define Z_ENABLE_PIN 24
+#define Z_STEP_PIN 26
+#define Z_DIR_PIN 25
+#define Z_ENABLE_PIN 24
-#define E0_STEP_PIN 28
-#define E0_DIR_PIN 27
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 28
+#define E0_DIR_PIN 27
+#define E0_ENABLE_PIN 24
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 3
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 3
-#if !defined(FAN_PIN) && GEN7_VERSION < 13 // Gen7 v1.3 removed the fan pin
- #define FAN_PIN 31
+#if !defined(FAN_PIN) && GEN7_VERSION < 13 // Gen7 v1.3 removed the fan pin
+ #define FAN_PIN 31
#endif
//
// Misc. Functions
//
-#define PS_ON_PIN 15
+#define PS_ON_PIN 15
#if GEN7_VERSION < 13
- #define CASE_LIGHT_PIN 16 // Hardware PWM
-#else // Gen7 v1.3 removed the I2C connector & signals so need to get PWM off the PC power supply header
- #define CASE_LIGHT_PIN 15 // Hardware PWM
+ #define CASE_LIGHT_PIN 16 // Hardware PWM
+#else // Gen7 v1.3 removed the I2C connector & signals so need to get PWM off the PC power supply header
+ #define CASE_LIGHT_PIN 15 // Hardware PWM
#endif
// All these generations of Gen7 supply thermistor power
// via PS_ON, so ignore bad thermistor readings
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-#define DEBUG_PIN 0
+#define DEBUG_PIN 0
// RS485 pins
-#define TX_ENABLE_PIN 12
-#define RX_ENABLE_PIN 13
+#define TX_ENABLE_PIN 12
+#define RX_ENABLE_PIN 13
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
-#define SPINDLE_DIR_PIN 11
+#define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
+#define SPINDLE_DIR_PIN 11
#if GEN7_VERSION < 13
- #define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
-#else // Gen7 v1.3 removed the I2C connector & signals so need to get PWM off the PC power supply header
- #define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
+ #define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
+#else // Gen7 v1.3 removed the I2C connector & signals so need to get PWM off the PC power supply header
+ #define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
#endif
diff --git a/Marlin/src/pins/sanguino/pins_GEN7_14.h b/Marlin/src/pins/sanguino/pins_GEN7_14.h
index 5121b7d2e9..9dc9f2808b 100644
--- a/Marlin/src/pins/sanguino/pins_GEN7_14.h
+++ b/Marlin/src/pins/sanguino/pins_GEN7_14.h
@@ -58,62 +58,62 @@
#define BOARD_INFO_NAME "Gen7 v1.4"
-#define GEN7_VERSION 14 // v1.4
+#define GEN7_VERSION 14 // v1.4
//
// Limit switches
//
-#define X_STOP_PIN 0
-#define Y_STOP_PIN 1
-#define Z_STOP_PIN 2
+#define X_STOP_PIN 0
+#define Y_STOP_PIN 1
+#define Z_STOP_PIN 2
//
// Steppers
//
-#define X_STEP_PIN 29
-#define X_DIR_PIN 28
-#define X_ENABLE_PIN 25
+#define X_STEP_PIN 29
+#define X_DIR_PIN 28
+#define X_ENABLE_PIN 25
-#define Y_STEP_PIN 27
-#define Y_DIR_PIN 26
-#define Y_ENABLE_PIN 25
+#define Y_STEP_PIN 27
+#define Y_DIR_PIN 26
+#define Y_ENABLE_PIN 25
-#define Z_STEP_PIN 23
-#define Z_DIR_PIN 22
-#define Z_ENABLE_PIN 25
+#define Z_STEP_PIN 23
+#define Z_DIR_PIN 22
+#define Z_ENABLE_PIN 25
-#define E0_STEP_PIN 19
-#define E0_DIR_PIN 18
-#define E0_ENABLE_PIN 25
+#define E0_STEP_PIN 19
+#define E0_DIR_PIN 18
+#define E0_ENABLE_PIN 25
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input
-#define TEMP_BED_PIN 0 // Analog Input
+#define TEMP_0_PIN 1 // Analog Input
+#define TEMP_BED_PIN 0 // Analog Input
//
// Heaters
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 3
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 3
//
// Misc. Functions
//
-#define PS_ON_PIN 15
-#define CASE_LIGHT_PIN 15 // Hardware PWM
+#define PS_ON_PIN 15
+#define CASE_LIGHT_PIN 15 // Hardware PWM
// A pin for debugging
-#define DEBUG_PIN 0
+#define DEBUG_PIN 0
// RS485 pins
-#define TX_ENABLE_PIN 12
-#define RX_ENABLE_PIN 13
+#define TX_ENABLE_PIN 12
+#define RX_ENABLE_PIN 13
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 20 // Pullup or pulldown!
-#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
-#define SPINDLE_DIR_PIN 21
+#define SPINDLE_LASER_ENA_PIN 20 // Pullup or pulldown!
+#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
+#define SPINDLE_DIR_PIN 21
diff --git a/Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h b/Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h
index 0f8a92f08d..67a9762fa0 100644
--- a/Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h
+++ b/Marlin/src/pins/sanguino/pins_GEN7_CUSTOM.h
@@ -64,76 +64,76 @@
//
// Limit Switches
//
-#define X_STOP_PIN 0
-#define Y_STOP_PIN 1
-#define Z_STOP_PIN 2
+#define X_STOP_PIN 0
+#define Y_STOP_PIN 1
+#define Z_STOP_PIN 2
//
// Steppers
//
-#define X_STEP_PIN 21 // different from standard GEN7
-#define X_DIR_PIN 20 // different from standard GEN7
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 21 // different from standard GEN7
+#define X_DIR_PIN 20 // different from standard GEN7
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 26
-#define Z_DIR_PIN 25
-#define Z_ENABLE_PIN 24
+#define Z_STEP_PIN 26
+#define Z_DIR_PIN 25
+#define Z_ENABLE_PIN 24
-#define E0_STEP_PIN 28
-#define E0_DIR_PIN 27
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 28
+#define E0_DIR_PIN 27
+#define E0_ENABLE_PIN 24
//
// Temperature Sensors
//
-#define TEMP_0_PIN 2 // Analog Input
-#define TEMP_BED_PIN 1 // Analog Input (pin 34 bed)
+#define TEMP_0_PIN 2 // Analog Input
+#define TEMP_BED_PIN 1 // Analog Input (pin 34 bed)
//
// Heaters
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 3 // (bed)
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 3 // (bed)
//
// Misc. Functions
//
-#define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
-#define PS_ON_PIN 19
-#define CASE_LIGHT_PIN 15 // Hardware PWM
+#define SDSS 31 // SCL pin of I2C header || CS Pin for SD Card support
+#define PS_ON_PIN 19
+#define CASE_LIGHT_PIN 15 // Hardware PWM
// A pin for debugging
-#define DEBUG_PIN -1
+#define DEBUG_PIN -1
//
// LCD / Controller
//
-#define BEEPER_PIN -1
+#define BEEPER_PIN -1
// 4bit LCD Support
-#define LCD_PINS_RS 18
-#define LCD_PINS_ENABLE 17
-#define LCD_PINS_D4 16
-#define LCD_PINS_D5 15
-#define LCD_PINS_D6 13
-#define LCD_PINS_D7 14
+#define LCD_PINS_RS 18
+#define LCD_PINS_ENABLE 17
+#define LCD_PINS_D4 16
+#define LCD_PINS_D5 15
+#define LCD_PINS_D6 13
+#define LCD_PINS_D7 14
// Buttons are directly attached
-#define BTN_EN1 11
-#define BTN_EN2 10
-#define BTN_ENC 12
+#define BTN_EN1 11
+#define BTN_EN2 10
+#define BTN_ENC 12
// RS485 pins
-//#define TX_ENABLE_PIN 12
-//#define RX_ENABLE_PIN 13
+//#define TX_ENABLE_PIN 12
+//#define RX_ENABLE_PIN 13
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 5 // Pullup or pulldown!
-#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
-#define SPINDLE_DIR_PIN 6
+#define SPINDLE_LASER_ENA_PIN 5 // Pullup or pulldown!
+#define SPINDLE_LASER_PWM_PIN 16 // Hardware PWM
+#define SPINDLE_DIR_PIN 6
diff --git a/Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h b/Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h
index 958ea78da4..10a52705e7 100644
--- a/Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h
+++ b/Marlin/src/pins/sanguino/pins_MELZI_CREALITY.h
@@ -46,15 +46,15 @@
#undef LCD_PINS_D5
#undef LCD_PINS_D6
#undef LCD_PINS_D7
-#undef FIL_RUNOUT_PIN // Uses Beeper/LED Pin Pulled to GND
+#undef FIL_RUNOUT_PIN // Uses Beeper/LED Pin Pulled to GND
-#define LCD_SDSS 31 // Smart Controller SD card reader (rather than the Melzi)
-#define LCD_PINS_RS 28 // ST9720 CS
-#define LCD_PINS_ENABLE 17 // ST9720 DAT
-#define LCD_PINS_D4 30 // ST9720 CLK
+#define LCD_SDSS 31 // Smart Controller SD card reader (rather than the Melzi)
+#define LCD_PINS_RS 28 // ST9720 CS
+#define LCD_PINS_ENABLE 17 // ST9720 DAT
+#define LCD_PINS_D4 30 // ST9720 CLK
#if ENABLED(BLTOUCH)
- #define SERVO0_PIN 27
+ #define SERVO0_PIN 27
#undef BEEPER_PIN
#endif
@@ -67,7 +67,7 @@
#if ENABLED(MINIPANEL)
#undef DOGLCD_CS
- #define DOGLCD_CS LCD_PINS_RS
+ #define DOGLCD_CS LCD_PINS_RS
#endif
/**
diff --git a/Marlin/src/pins/sanguino/pins_MELZI_MALYAN.h b/Marlin/src/pins/sanguino/pins_MELZI_MALYAN.h
index bf0e34a9ec..8e682453b4 100644
--- a/Marlin/src/pins/sanguino/pins_MELZI_MALYAN.h
+++ b/Marlin/src/pins/sanguino/pins_MELZI_MALYAN.h
@@ -36,12 +36,12 @@
#undef BTN_EN2
#undef BTN_ENC
-#define LCD_PINS_RS 17 // ST9720 CS
-#define LCD_PINS_ENABLE 16 // ST9720 DAT
-#define LCD_PINS_D4 11 // ST9720 CLK
-#define BTN_EN1 30
-#define BTN_EN2 29
-#define BTN_ENC 28
+#define LCD_PINS_RS 17 // ST9720 CS
+#define LCD_PINS_ENABLE 16 // ST9720 DAT
+#define LCD_PINS_D4 11 // ST9720 CLK
+#define BTN_EN1 30
+#define BTN_EN2 29
+#define BTN_ENC 28
// Alter timing for graphical display
#if HAS_GRAPHICAL_LCD
diff --git a/Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h b/Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h
index 50433f6244..88b80dfb89 100644
--- a/Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h
+++ b/Marlin/src/pins/sanguino/pins_MELZI_TRONXY.h
@@ -40,16 +40,16 @@
#undef BTN_ENC
#undef LCD_SDSS
-#define Z_ENABLE_PIN 14
-#define LCD_PINS_RS 30
-#define LCD_PINS_ENABLE 28
-#define LCD_PINS_D4 16
-#define LCD_PINS_D5 17
-#define LCD_PINS_D6 27
-#define LCD_PINS_D7 29
-#define BTN_EN1 10
-#define BTN_EN2 11
-#define BTN_ENC 26
+#define Z_ENABLE_PIN 14
+#define LCD_PINS_RS 30
+#define LCD_PINS_ENABLE 28
+#define LCD_PINS_D4 16
+#define LCD_PINS_D5 17
+#define LCD_PINS_D6 27
+#define LCD_PINS_D7 29
+#define BTN_EN1 10
+#define BTN_EN2 11
+#define BTN_ENC 26
#if HAS_GRAPHICAL_LCD
#define BOARD_ST7920_DELAY_1 DELAY_NS(0)
diff --git a/Marlin/src/pins/sanguino/pins_OMCA.h b/Marlin/src/pins/sanguino/pins_OMCA.h
index c2ba1ed707..774910bd7d 100644
--- a/Marlin/src/pins/sanguino/pins_OMCA.h
+++ b/Marlin/src/pins/sanguino/pins_OMCA.h
@@ -86,66 +86,66 @@
//
// Limit Switches
//
-#define X_STOP_PIN 0
-#define Y_STOP_PIN 1
-#define Z_STOP_PIN 2
+#define X_STOP_PIN 0
+#define Y_STOP_PIN 1
+#define Z_STOP_PIN 2
//
// Steppers
//
-#define X_STEP_PIN 26
-#define X_DIR_PIN 25
-#define X_ENABLE_PIN 10
+#define X_STEP_PIN 26
+#define X_DIR_PIN 25
+#define X_ENABLE_PIN 10
-#define Y_STEP_PIN 28
-#define Y_DIR_PIN 27
-#define Y_ENABLE_PIN 10
+#define Y_STEP_PIN 28
+#define Y_DIR_PIN 27
+#define Y_ENABLE_PIN 10
-#define Z_STEP_PIN 23
-#define Z_DIR_PIN 22
-#define Z_ENABLE_PIN 10
+#define Z_STEP_PIN 23
+#define Z_DIR_PIN 22
+#define Z_ENABLE_PIN 10
-#define E0_STEP_PIN 24
-#define E0_DIR_PIN 21
-#define E0_ENABLE_PIN 10
+#define E0_STEP_PIN 24
+#define E0_DIR_PIN 21
+#define E0_ENABLE_PIN 10
-#define E1_STEP_PIN -1 // 21
-#define E1_DIR_PIN -1 // 20
-#define E1_ENABLE_PIN -1 // 19
+#define E1_STEP_PIN -1 // 21
+#define E1_DIR_PIN -1 // 20
+#define E1_ENABLE_PIN -1 // 19
-#define E2_STEP_PIN -1 // 21
-#define E2_DIR_PIN -1 // 20
-#define E2_ENABLE_PIN -1 // 18
+#define E2_STEP_PIN -1 // 21
+#define E2_DIR_PIN -1 // 20
+#define E2_ENABLE_PIN -1 // 18
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input
-#define TEMP_1_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input (1,2 or I2C)
+#define TEMP_0_PIN 0 // Analog Input
+#define TEMP_1_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input (1,2 or I2C)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 3 // DONE PWM on RIGHT connector
-#define HEATER_BED_PIN 4
+#define HEATER_0_PIN 3 // DONE PWM on RIGHT connector
+#define HEATER_BED_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 14 // PWM on MIDDLE connector
+ #define FAN_PIN 14 // PWM on MIDDLE connector
#endif
//
// Misc. Functions
//
-#define SDSS 11
+#define SDSS 11
-#define I2C_SCL_PIN 16
-#define I2C_SDA_PIN 17
+#define I2C_SCL_PIN 16
+#define I2C_SDA_PIN 17
// future proofing
-#define __FS 20
-#define __FD 19
-#define __GS 18
-#define __GD 13
+#define __FS 20
+#define __FD 19
+#define __GS 18
+#define __GD 13
-#define UNUSED_PWM 14 // PWM on LEFT connector
+#define UNUSED_PWM 14 // PWM on LEFT connector
diff --git a/Marlin/src/pins/sanguino/pins_OMCA_A.h b/Marlin/src/pins/sanguino/pins_OMCA_A.h
index b8340a3deb..73237743b8 100644
--- a/Marlin/src/pins/sanguino/pins_OMCA_A.h
+++ b/Marlin/src/pins/sanguino/pins_OMCA_A.h
@@ -85,54 +85,54 @@
//
// Limit Switches
//
-#define X_STOP_PIN 0
-#define Y_STOP_PIN 1
-#define Z_STOP_PIN 2
+#define X_STOP_PIN 0
+#define Y_STOP_PIN 1
+#define Z_STOP_PIN 2
//
// Steppers
//
-#define X_STEP_PIN 21
-#define X_DIR_PIN 20
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 21
+#define X_DIR_PIN 20
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 26
-#define Z_DIR_PIN 25
-#define Z_ENABLE_PIN 24
+#define Z_STEP_PIN 26
+#define Z_DIR_PIN 25
+#define Z_ENABLE_PIN 24
-#define E0_STEP_PIN 28
-#define E0_DIR_PIN 27
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 28
+#define E0_DIR_PIN 27
+#define E0_ENABLE_PIN 24
-#define E1_STEP_PIN -1 // 19
-#define E1_DIR_PIN -1 // 18
-#define E1_ENABLE_PIN 24
+#define E1_STEP_PIN -1 // 19
+#define E1_DIR_PIN -1 // 18
+#define E1_ENABLE_PIN 24
-#define E2_STEP_PIN -1 // 17
-#define E2_DIR_PIN -1 // 16
-#define E2_ENABLE_PIN 24
+#define E2_STEP_PIN -1 // 17
+#define E2_DIR_PIN -1 // 16
+#define E2_ENABLE_PIN 24
//
// Temperature Sensors
//
-#define TEMP_0_PIN 0 // Analog Input (D27)
+#define TEMP_0_PIN 0 // Analog Input (D27)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 4
+#define HEATER_0_PIN 4
#ifndef FAN_PIN
- #define FAN_PIN 3
+ #define FAN_PIN 3
#endif
//
// Misc. Functions
//
-#define SDSS 11
+#define SDSS 11
/* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */
diff --git a/Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h b/Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h
index 977ba16daf..50d3a53779 100644
--- a/Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h
+++ b/Marlin/src/pins/sanguino/pins_SANGUINOLOLU_11.h
@@ -63,60 +63,60 @@
//
// Limit Switches
//
-#define X_STOP_PIN 18
-#define Y_STOP_PIN 19
-#define Z_STOP_PIN 20
+#define X_STOP_PIN 18
+#define Y_STOP_PIN 19
+#define Z_STOP_PIN 20
//
// Steppers
//
-#define X_STEP_PIN 15
-#define X_DIR_PIN 21
+#define X_STEP_PIN 15
+#define X_DIR_PIN 21
-#define Y_STEP_PIN 22
-#define Y_DIR_PIN 23
+#define Y_STEP_PIN 22
+#define Y_DIR_PIN 23
-#define Z_STEP_PIN 3
-#define Z_DIR_PIN 2
+#define Z_STEP_PIN 3
+#define Z_DIR_PIN 2
-#define E0_STEP_PIN 1
-#define E0_DIR_PIN 0
+#define E0_STEP_PIN 1
+#define E0_DIR_PIN 0
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
-#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
+#define TEMP_0_PIN 7 // Analog Input (pin 33 extruder)
+#define TEMP_BED_PIN 6 // Analog Input (pin 34 bed)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 13 // (extruder)
+#define HEATER_0_PIN 13 // (extruder)
#if ENABLED(SANGUINOLOLU_V_1_2)
- #define HEATER_BED_PIN 12 // (bed)
- #define X_ENABLE_PIN 14
- #define Y_ENABLE_PIN 14
- #define Z_ENABLE_PIN 26
- #define E0_ENABLE_PIN 14
+ #define HEATER_BED_PIN 12 // (bed)
+ #define X_ENABLE_PIN 14
+ #define Y_ENABLE_PIN 14
+ #define Z_ENABLE_PIN 26
+ #define E0_ENABLE_PIN 14
#if !defined(FAN_PIN) && ENABLED(LCD_I2C_PANELOLU2)
- #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
+ #define FAN_PIN 4 // Uses Transistor1 (PWM) on Panelolu2's Sanguino Adapter Board to drive the fan
#endif
#else
- #define HEATER_BED_PIN 14 // (bed)
- #define X_ENABLE_PIN -1
- #define Y_ENABLE_PIN -1
- #define Z_ENABLE_PIN -1
- #define E0_ENABLE_PIN -1
+ #define HEATER_BED_PIN 14 // (bed)
+ #define X_ENABLE_PIN -1
+ #define Y_ENABLE_PIN -1
+ #define Z_ENABLE_PIN -1
+ #define E0_ENABLE_PIN -1
#endif
#if !defined(FAN_PIN) && (MB(AZTEEG_X1, STB_11) || IS_MELZI)
- #define FAN_PIN 4 // Works for Panelolu2 too
+ #define FAN_PIN 4 // Works for Panelolu2 too
#endif
//
@@ -129,17 +129,17 @@
* If you encounter issues with these pins, upgrade your
* Sanguino libraries! See #368.
*/
-//#define SDSS 24
-#define SDSS 31
+//#define SDSS 24
+#define SDSS 31
#if IS_MELZI
- #define LED_PIN 27
+ #define LED_PIN 27
#elif MB(STB_11)
- #define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
+ #define LCD_BACKLIGHT_PIN 17 // LCD backlight LED
#endif
-#if NONE(SPINDLE_FEATURE, LASER_FEATURE) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL) // try to use IO Header
- #define CASE_LIGHT_PIN 4 // Hardware PWM - see if IO Header is available
+#if NONE(SPINDLE_FEATURE, LASER_FEATURE) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL)// try to use IO Header
+ #define CASE_LIGHT_PIN 4 // Hardware PWM - see if IO Header is available
#endif
/**
@@ -156,57 +156,57 @@
//
#if HAS_SPI_LCD
- #define SD_DETECT_PIN -1
+ #define SD_DETECT_PIN -1
#if HAS_GRAPHICAL_LCD
#if ENABLED(LCD_FOR_MELZI)
- #define LCD_PINS_RS 17
- #define LCD_PINS_ENABLE 16
- #define LCD_PINS_D4 11
+ #define LCD_PINS_RS 17
+ #define LCD_PINS_ENABLE 16
+ #define LCD_PINS_D4 11
#define BOARD_ST7920_DELAY_1 DELAY_NS(0)
#define BOARD_ST7920_DELAY_2 DELAY_NS(188)
#define BOARD_ST7920_DELAY_3 DELAY_NS(0)
- #elif ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
+ #elif ENABLED(U8GLIB_ST7920) // SPI GLCD 12864 ST7920 ( like [www.digole.com] ) For Melzi V2.0
#if IS_MELZI
- #define LCD_PINS_RS 30 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE 29 // SID (MOSI)
- #define LCD_PINS_D4 17 // SCK (CLK) clock
+ #define LCD_PINS_RS 30 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE 29 // SID (MOSI)
+ #define LCD_PINS_D4 17 // SCK (CLK) clock
// Pin 27 is taken by LED_PIN, but Melzi LED does nothing with
// Marlin so this can be used for BEEPER_PIN. You can use this pin
// with M42 instead of BEEPER_PIN.
- #define BEEPER_PIN 27
- #else // Sanguinololu >=1.3
- #define LCD_PINS_RS 4
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 30
- #define LCD_PINS_D5 29
- #define LCD_PINS_D6 28
- #define LCD_PINS_D7 27
+ #define BEEPER_PIN 27
+ #else // Sanguinololu >=1.3
+ #define LCD_PINS_RS 4
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 30
+ #define LCD_PINS_D5 29
+ #define LCD_PINS_D6 28
+ #define LCD_PINS_D7 27
#endif
#else
- #define DOGLCD_A0 30
+ #define DOGLCD_A0 30
#if ENABLED(MAKRPANEL)
- #define BEEPER_PIN 29
- #define DOGLCD_CS 17
- #define LCD_BACKLIGHT_PIN 28 // PA3
+ #define BEEPER_PIN 29
+ #define DOGLCD_CS 17
+ #define LCD_BACKLIGHT_PIN 28 // PA3
#elif IS_MELZI
- #define BEEPER_PIN 27
- #define DOGLCD_CS 28
+ #define BEEPER_PIN 27
+ #define DOGLCD_CS 28
- #else // !MAKRPANEL
+ #else // !MAKRPANEL
- #define DOGLCD_CS 29
+ #define DOGLCD_CS 29
#endif
@@ -218,57 +218,57 @@
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
- #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
+ #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
- #define LCD_PINS_RS 28
- #define LCD_PINS_ENABLE 29
- #define LCD_PINS_D4 10
- #define LCD_PINS_D5 11
- #define LCD_PINS_D6 16
- #define LCD_PINS_D7 17
+ #define LCD_PINS_RS 28
+ #define LCD_PINS_ENABLE 29
+ #define LCD_PINS_D4 10
+ #define LCD_PINS_D5 11
+ #define LCD_PINS_D6 16
+ #define LCD_PINS_D7 17
#else
- #define LCD_PINS_RS 4
- #define LCD_PINS_ENABLE 17
- #define LCD_PINS_D4 30
- #define LCD_PINS_D5 29
- #define LCD_PINS_D6 28
- #define LCD_PINS_D7 27
+ #define LCD_PINS_RS 4
+ #define LCD_PINS_ENABLE 17
+ #define LCD_PINS_D4 30
+ #define LCD_PINS_D5 29
+ #define LCD_PINS_D6 28
+ #define LCD_PINS_D7 27
#endif
#if ENABLED(LCD_FOR_MELZI)
- #define BTN_ENC 28
- #define BTN_EN1 29
- #define BTN_EN2 30
+ #define BTN_ENC 28
+ #define BTN_EN1 29
+ #define BTN_EN2 30
- #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
+ #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
- #define ADC_KEYPAD_PIN 1
- #define BTN_EN1 -1
- #define BTN_EN2 -1
+ #define ADC_KEYPAD_PIN 1
+ #define BTN_EN1 -1
+ #define BTN_EN2 -1
#elif ENABLED(LCD_I2C_PANELOLU2)
#if IS_MELZI
- #define BTN_ENC 29
- #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
+ #define BTN_ENC 29
+ #define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
#else
- #define BTN_ENC 30
+ #define BTN_ENC 30
#endif
- #else // !LCD_FOR_MELZI && !ZONESTAR_LCD && !LCD_I2C_PANELOLU2
+ #else // !LCD_FOR_MELZI && !ZONESTAR_LCD && !LCD_I2C_PANELOLU2
- #define BTN_ENC 16
- #define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
+ #define BTN_ENC 16
+ #define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
#endif
#if ENABLED(NEWPANEL) && !defined(BTN_EN1)
- #define BTN_EN1 11
- #define BTN_EN2 10
+ #define BTN_EN1 11
+ #define BTN_EN2 10
#endif
#endif // HAS_SPI_LCD
@@ -277,13 +277,13 @@
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER
- #if !MB(AZTEEG_X1) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL) // try to use IO Header
+ #if !MB(AZTEEG_X1) && ENABLED(SANGUINOLOLU_V_1_2) && !BOTH(ULTRA_LCD, NEWPANEL)// try to use IO Header
- #define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
- #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
- #define SPINDLE_DIR_PIN 11
+ #define SPINDLE_LASER_ENA_PIN 10 // Pullup or pulldown!
+ #define SPINDLE_LASER_PWM_PIN 4 // Hardware PWM
+ #define SPINDLE_DIR_PIN 11
- #elif !MB(MELZI) // use X stepper motor socket
+ #elif !MB(MELZI) // use X stepper motor socket
/**
* To control the spindle speed and have an LCD you must sacrifice
@@ -315,11 +315,11 @@
#undef X_DIR_PIN
#undef X_ENABLE_PIN
#undef X_STEP_PIN
- #define X_DIR_PIN 0
- #define X_ENABLE_PIN 14
- #define X_STEP_PIN 1
- #define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
- #define SPINDLE_LASER_ENA_PIN 21 // Pullup!
- #define SPINDLE_DIR_PIN -1 // No pin available on the socket for the direction pin
+ #define X_DIR_PIN 0
+ #define X_ENABLE_PIN 14
+ #define X_STEP_PIN 1
+ #define SPINDLE_LASER_PWM_PIN 15 // Hardware PWM
+ #define SPINDLE_LASER_ENA_PIN 21 // Pullup!
+ #define SPINDLE_DIR_PIN -1 // No pin available on the socket for the direction pin
#endif
#endif
diff --git a/Marlin/src/pins/sanguino/pins_SETHI.h b/Marlin/src/pins/sanguino/pins_SETHI.h
index 528ec4455f..b945869cbc 100644
--- a/Marlin/src/pins/sanguino/pins_SETHI.h
+++ b/Marlin/src/pins/sanguino/pins_SETHI.h
@@ -57,69 +57,69 @@
#define BOARD_INFO_NAME "Sethi 3D_1"
#ifndef GEN7_VERSION
- #define GEN7_VERSION 12 // v1.x
+ #define GEN7_VERSION 12 // v1.x
#endif
//
// Limit Switches
//
-#define X_STOP_PIN 2
-#define Y_STOP_PIN 0
-#define Z_MIN_PIN 1
-#define Z_MAX_PIN 0
+#define X_STOP_PIN 2
+#define Y_STOP_PIN 0
+#define Z_MIN_PIN 1
+#define Z_MAX_PIN 0
//
// Steppers
//
-#define X_STEP_PIN 19
-#define X_DIR_PIN 18
-#define X_ENABLE_PIN 24
+#define X_STEP_PIN 19
+#define X_DIR_PIN 18
+#define X_ENABLE_PIN 24
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 22
-#define Y_ENABLE_PIN 24
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 22
+#define Y_ENABLE_PIN 24
-#define Z_STEP_PIN 26
-#define Z_DIR_PIN 25
-#define Z_ENABLE_PIN 24
+#define Z_STEP_PIN 26
+#define Z_DIR_PIN 25
+#define Z_ENABLE_PIN 24
-#define E0_STEP_PIN 28
-#define E0_DIR_PIN 27
-#define E0_ENABLE_PIN 24
+#define E0_STEP_PIN 28
+#define E0_DIR_PIN 27
+#define E0_ENABLE_PIN 24
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input
-#define TEMP_BED_PIN 2 // Analog Input
+#define TEMP_0_PIN 1 // Analog Input
+#define TEMP_BED_PIN 2 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 4
-#define HEATER_BED_PIN 3
+#define HEATER_0_PIN 4
+#define HEATER_BED_PIN 3
#ifndef FAN_PIN
#if GEN7_VERSION >= 13
// Gen7 v1.3 removed the fan pin
- #define FAN_PIN -1
+ #define FAN_PIN -1
#else
- #define FAN_PIN 31
+ #define FAN_PIN 31
#endif
#endif
//
// Misc. Functions
//
-#define PS_ON_PIN 15
+#define PS_ON_PIN 15
// All these generations of Gen7 supply thermistor power
// via PS_ON, so ignore bad thermistor readings
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
// our pin for debugging.
-#define DEBUG_PIN 0
+#define DEBUG_PIN 0
// our RS485 pins
-#define TX_ENABLE_PIN 12
-#define RX_ENABLE_PIN 13
+#define TX_ENABLE_PIN 12
+#define RX_ENABLE_PIN 13
diff --git a/Marlin/src/pins/stm32/pins_ARMED.h b/Marlin/src/pins/stm32/pins_ARMED.h
deleted file mode 100644
index 03f267a3a4..0000000000
--- a/Marlin/src/pins/stm32/pins_ARMED.h
+++ /dev/null
@@ -1,201 +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 .
- *
- */
-
-// https://github.com/ktand/Armed
-
-#pragma once
-
-#ifndef STM32F4
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif HOTENDS > 2 || E_STEPPERS > 2
- #error "Arm'ed supports up to 2 hotends / E-steppers."
-#endif
-
-#ifndef ARMED_V1_0
- #define ARMED_V1_1
-#endif
-
-#undef BOARD_INFO_NAME // Defined on the command line by Arduino Core STM32
-#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
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PE0
-#define Y_STOP_PIN PE1
-#define Z_STOP_PIN PE14
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-//#ifndef Z_MIN_PROBE_PIN
-// #define Z_MIN_PROBE_PIN PA4
-//#endif
-
-//
-// Filament Runout Sensor
-//
-#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PA3
-#endif
-
-//
-// Steppers
-//
-
-#ifdef ARMED_SWAP_X_E1
- #define X_STEP_PIN PE4
- #define X_DIR_PIN PE2
- #define X_ENABLE_PIN PE3
- #define X_CS_PIN PE5
-#else
- #define X_STEP_PIN PD3
- #define X_DIR_PIN PD2
- #define X_ENABLE_PIN PD0
- #define X_CS_PIN PD1
-#endif
-
-#define Y_STEP_PIN PE11
-#define Y_DIR_PIN PE10
-#define Y_ENABLE_PIN PE13
-#define Y_CS_PIN PE12
-
-#define Z_STEP_PIN PD6
-#define Z_DIR_PIN PD7
-#define Z_ENABLE_PIN PD4
-#define Z_CS_PIN PD5
-
-#define E0_STEP_PIN PB5
-#define E0_DIR_PIN PB6
-#ifdef ARMED_V1_1
- #define E0_ENABLE_PIN PC12
-#else
- #define E0_ENABLE_PIN PB3
-#endif
-#define E0_CS_PIN PB4
-
-#ifdef ARMED_SWAP_X_E1
- #define E1_STEP_PIN PD3
- #define E1_DIR_PIN PD2
- #define E1_ENABLE_PIN PD0
- #define E1_CS_PIN PD1
-#else
- #define E1_STEP_PIN PE4
- #define E1_DIR_PIN PE2
- #define E1_ENABLE_PIN PE3
- #define E1_CS_PIN PE5
-#endif
-
-//
-// 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 // Hardware PWM
-#define HEATER_1_PIN PA2 // Hardware PWM
-#define HEATER_BED_PIN PA0 // Hardware PWM
-
-#define FAN_PIN PC6 // Hardware PWM, Part cooling fan
-#define FAN1_PIN PC7 // Hardware PWM, Extruder fan
-#define FAN2_PIN PC8 // Hardware PWM, Controller fan
-
-//
-// Misc functions
-//
-#define SDSS PE7
-#define LED_PIN PB7 // Heart beat
-#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
-
-#if ENABLED(FYSETC_MINI_12864)
- //
- // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
- //
- #define DOGLCD_A0 PE9
- #define DOGLCD_CS PE8
-
- #define LCD_BACKLIGHT_PIN -1
-
- #define LCD_RESET_PIN PB12 // 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 PB13
- #endif
- #ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB14
- #endif
- #ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB15
- #endif
- #elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN PB13
- #endif
-#else
- #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
-
- #if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS PB13
- #define DOGLCD_A0 PB14
- #endif
-#endif
-
-#define BTN_EN1 PC4
-#define BTN_EN2 PC5
-#define BTN_ENC PC3
-
-//
-// Extension pins
-//
-#define EXT0_PIN PB0
-#define EXT1_PIN PB1
-#define EXT2_PIN PB2
-#define EXT3_PIN PD8
-#define EXT4_PIN PD9
-#define EXT5_PIN PD10
-#define EXT6_PIN PD11
-#define EXT7_PIN PD12
-#define EXT8_PIN PB10
-#define EXT9_PIN PB11
diff --git a/Marlin/src/pins/stm32/pins_BEAST.h b/Marlin/src/pins/stm32/pins_BEAST.h
deleted file mode 100644
index d779994d19..0000000000
--- a/Marlin/src/pins/stm32/pins_BEAST.h
+++ /dev/null
@@ -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 .
- *
- */
-#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
diff --git a/Marlin/src/pins/stm32/pins_BLACK_STM32F407VE.h b/Marlin/src/pins/stm32/pins_BLACK_STM32F407VE.h
deleted file mode 100644
index d0edf897f4..0000000000
--- a/Marlin/src/pins/stm32/pins_BLACK_STM32F407VE.h
+++ /dev/null
@@ -1,155 +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 .
- *
- */
-#pragma once
-
-/**
- * STM32F407VET6 with RAMPS-like shield
- * 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
- * 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
- #error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
-#endif
-
-#ifndef BOARD_INFO_NAME
- #define BOARD_INFO_NAME "Black STM32F4VET6"
-#endif
-
-#define DEFAULT_MACHINE_NAME "STM32F407VET6"
-
-//#define I2C_EEPROM
-//#define E2END 0x1FFF // 8KB
-#define SRAM_EEPROM_EMULATION
-
-//
-// Servos
-//
-#define SERVO0_PIN PC6
-#define SERVO1_PIN PC7
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PC13
-#define X_MAX_PIN PA15
-#define Y_MIN_PIN PA5
-#define Y_MAX_PIN PD12
-#define Z_MIN_PIN PD14
-#define Z_MAX_PIN PD15
-
-//
-// Steppers
-//
-#define X_STEP_PIN PC4
-#define X_DIR_PIN PA4
-#define X_ENABLE_PIN PE7
-
-#define Y_STEP_PIN PE5
-#define Y_DIR_PIN PE2
-#define Y_ENABLE_PIN PE6
-
-#define Z_STEP_PIN PD5
-#define Z_DIR_PIN PD3
-#define Z_ENABLE_PIN PD6
-
-#define E0_STEP_PIN PD7
-#define E0_DIR_PIN PD0
-#define E0_ENABLE_PIN PB9
-
-#define E1_STEP_PIN PE0
-#define E1_DIR_PIN PE1
-#define E1_ENABLE_PIN PB8
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC0 // T0
-#define TEMP_1_PIN PC1 // T1
-#define TEMP_BED_PIN PC2 // TB
-
-#ifndef TEMP_CHAMBER_PIN
- #define TEMP_CHAMBER_PIN PC3 // TC
-#endif
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PA2 // Heater0
-#define HEATER_1_PIN PA3 // Heater1
-#define HEATER_BED_PIN PA1 // Hotbed
-
-#define FAN_PIN PE9 // Fan0
-#define FAN1_PIN PE11 // Fan1
-#define FAN2_PIN PE13 // Fan2
-#define FAN3_PIN PE14 // Fan3
-
-//
-// Misc. Functions
-//
-#define LED_PIN PA6
-//#define LED_PIN PA7
-#define KILL_PIN PB1
-
-//
-// LCD / Controller
-//
-//#define SD_DETECT_PIN PC5
-//#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
-
-#define BEEPER_PIN PD10
-#define LCD_PINS_RS PE15
-#define LCD_PINS_ENABLE PD8
-#define LCD_PINS_D4 PE10
-#define LCD_PINS_D5 PE12
-#define LCD_PINS_D6 PD1
-#define LCD_PINS_D7 PE8
-#define BTN_ENC PD9
-#define BTN_EN1 PD4
-#define BTN_EN2 PD13
-
-#define DOGLCD_CS LCD_PINS_D5
-#define DOGLCD_A0 LCD_PINS_D6
-
-//
-// Onboard SD support
-//
-#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 !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == 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
- #endif
-#endif
diff --git a/Marlin/src/pins/stm32/pins_BTT_GTR_V1_0.h b/Marlin/src/pins/stm32/pins_BTT_GTR_V1_0.h
deleted file mode 100644
index 0500c5d953..0000000000
--- a/Marlin/src/pins/stm32/pins_BTT_GTR_V1_0.h
+++ /dev/null
@@ -1,391 +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 .
- *
- */
-#pragma once
-
-#ifndef TARGET_STM32F4
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#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"
-
-// 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
-
-#define TP // Enable to define servo and probe pins
-
-//
-// Servos
-//
-#if ENABLED(TP)
- #define SERVO0_PIN PB11
-#endif
-
-#define PS_ON_PIN PH6
-
-//
-// 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
-
-//
-// 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(TP) && !defined(Z_MIN_PROBE_PIN)
- #define Z_MIN_PROBE_PIN PH11 // Z Probe must be PH11
-#endif
-
-//
-// Steppers
-//
-#define X_STEP_PIN PC15
-#define X_DIR_PIN PF0
-#define X_ENABLE_PIN PF1
-#ifndef X_CS_PIN
- #define X_CS_PIN PC14
-#endif
-
-#define Y_STEP_PIN PE3
-#define Y_DIR_PIN PE2
-#define Y_ENABLE_PIN PE4
-#ifndef Y_CS_PIN
- #define Y_CS_PIN PE1
-#endif
-
-#define Z_STEP_PIN PB8
-#define Z_DIR_PIN PB7 // PB7
-#define Z_ENABLE_PIN PB9
-#ifndef Z_CS_PIN
- #define Z_CS_PIN PB5
-#endif
-
-#define E0_STEP_PIN PG12
-#define E0_DIR_PIN PG11
-#define E0_ENABLE_PIN PG13
-#ifndef E0_CS_PIN
- #define E0_CS_PIN PG10
-#endif
-
-#define E1_STEP_PIN PD6
-#define E1_DIR_PIN PD5
-#define E1_ENABLE_PIN PD7
-#ifndef E1_CS_PIN
- #define E1_CS_PIN PD4
-#endif
-
-#define E2_STEP_PIN PD1
-#define E2_DIR_PIN PD0
-#define E2_ENABLE_PIN PD2
-#ifndef E2_CS_PIN
- #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
-
-#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 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
-
-//
-// Software SPI pins for TMC2130 stepper drivers
-//
-#if ENABLED(TMC_USE_SW_SPI)
- #ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PG15
- #endif
- #ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB6
- #endif
- #ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB3
- #endif
-#endif
-
-#if HAS_TMC220x
- /**
- * 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
- //#define E5_HARDWARE_SERIAL Serial1
- //#define E6_HARDWARE_SERIAL Serial1
- //#define E7_HARDWARE_SERIAL Serial1
-
- //
- // Software serial
- //
- #define X_SERIAL_TX_PIN PC14
- #define X_SERIAL_RX_PIN PC14
-
- #define Y_SERIAL_TX_PIN PE1
- #define Y_SERIAL_RX_PIN PE1
-
- #define Z_SERIAL_TX_PIN PB5
- #define Z_SERIAL_RX_PIN PB5
-
- #define E0_SERIAL_TX_PIN PG10
- #define E0_SERIAL_RX_PIN PG10
-
- #define E1_SERIAL_TX_PIN PD4
- #define E1_SERIAL_RX_PIN PD4
-
- #define E2_SERIAL_TX_PIN PC12
- #define E2_SERIAL_RX_PIN PC12
-
- #define E3_SERIAL_TX_PIN PG4
- #define E3_SERIAL_RX_PIN PG4
-
- #define E4_SERIAL_TX_PIN PE15
- #define E4_SERIAL_RX_PIN PE15
-
- #define E5_SERIAL_TX_PIN PE7
- #define E5_SERIAL_RX_PIN PE7
-
- #define E6_SERIAL_TX_PIN PF15
- #define E6_SERIAL_RX_PIN PF15
-
- #define E7_SERIAL_TX_PIN PH14
- #define E7_SERIAL_RX_PIN PH14
-
- // Reduce baud rate to improve software serial reliability
- #define TMC_BAUD_RATE 19200
-#endif
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC1 // T1 <-> E0
-#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
-
-#define TEMP_BED_PIN PC0 // T0 <-> Bed
-
-// SPI for Max6675 or Max31855 Thermocouple
-// Uses a separate SPI bus
-// If you have a two-way thermocouple, you can customize two THERMO_CSx_PIN pins (x:1~2)
-
-#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 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
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PB1 // Heater0
-#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
-
-#define HEATER_BED_PIN PA2 // Hotbed
-
-#define FAN_PIN PE5 // Fan0
-#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
-#endif
-
-// HAL SPI1 pins group
-#if ENABLED(CUSTOM_SPI_PINS)
- #define SDSS PA4
- #define SD_DETECT_PIN PC4
- #define LCD_SDSS PA4
-
- #define SCK_PIN PA5
- #define MISO_PIN PA6
- #define MOSI_PIN PA7
- #define SS_PIN PA4 // Chip select for SD card used by Marlin
-#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
- */
-
-//
-// LCDs and Controllers
-//
-#if HAS_SPI_LCD
- #define BEEPER_PIN PC11
- #define BTN_ENC PA15
-
- #if ENABLED(CR10_STOCKDISPLAY)
-
- #define LCD_PINS_RS PA8
-
- #define BTN_EN1 PD10
- #define BTN_EN2 PH10
-
- #define LCD_PINS_ENABLE PG7
- #define LCD_PINS_D4 PG8
-
- //#undef ST7920_DELAY_1
- //#undef ST7920_DELAY_2
- //#undef ST7920_DELAY_3
-
- #else
-
- #define LCD_PINS_RS PA8
-
- #define BTN_EN1 PD10
- #define BTN_EN2 PH10
-
- #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
-
- #if ENABLED(FYSETC_MINI_12864)
- #define DOGLCD_CS PC10
- #define DOGLCD_A0 PA8
- //#define LCD_BACKLIGHT_PIN -1
- #define LCD_RESET_PIN PG8 // 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
- #endif
- #ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PG6
- #endif
- #ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PG5
- #endif
- #elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN PF13
- #endif
- #endif // !FYSETC_MINI_12864
-
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PG7
- #define LCD_PINS_D6 PG6
- #define LCD_PINS_D7 PG5
- #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
-
- //#define DOGLCD_CS PB12
- //#define DOGLCD_A0 PA8
- //#define LCD_PINS_DC PB14
- //#define DOGLCD_MOSI PB15
-
-#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3.h b/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3.h
deleted file mode 100644
index 77a412ad61..0000000000
--- a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3.h
+++ /dev/null
@@ -1,191 +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 .
- *
- */
-#pragma once
-
-#ifndef TARGET_STM32F1
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#endif
-
-// Release PB3/PB4 (E0 STP/DIR) from JTAG pins
-#define DISABLE_JTAG
-
-// Ignore temp readings during development.
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-
-#define FLASH_EEPROM_EMULATION
-#define EEPROM_PAGE_SIZE uint16(0x800) // 2KB
-#define EEPROM_START_ADDRESS uint32(0x8000000 + (STM32_FLASH_SIZE) * 1024 - 2 * EEPROM_PAGE_SIZE)
-#undef E2END
-#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
-
-//
-// Servos
-//
-#define SERVO0_PIN PA1
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PC0
-#define Y_STOP_PIN PC1
-#define Z_STOP_PIN PC2
-
-//
-// Z Probe must be this pins
-//
-#define Z_MIN_PROBE_PIN PC14
-
-//
-// Filament Runout Sensor
-//
-#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PC15 // "E0-STOP"
-#endif
-
-//
-// Steppers
-//
-#define X_ENABLE_PIN PB14
-#define X_STEP_PIN PB13
-#define X_DIR_PIN PB12
-
-#define Y_ENABLE_PIN PB11
-#define Y_STEP_PIN PB10
-#define Y_DIR_PIN PB2
-
-#define Z_ENABLE_PIN PB1
-#define Z_STEP_PIN PB0
-#define Z_DIR_PIN PC5
-
-#define E0_ENABLE_PIN PD2
-#define E0_STEP_PIN PB3
-#define E0_DIR_PIN PB4
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PA0 // Analog Input
-#define TEMP_BED_PIN PC3 // Analog Input
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PC8 // EXTRUDER
-#define HEATER_BED_PIN PC9 // BED
-#define FAN_PIN PA8
-
-//
-// USB connect control
-//
-#define USB_CONNECT_PIN PC13
-#define USB_CONNECT_INVERTING false
-
-#define SD_DETECT_PIN PC4
-
-/**
- * _____
- * 5V | 1 2 | GND
- * (LCD_EN) PB7 | 3 4 | PB8 (LCD_RS)
- * (LCD_D4) PB9 | 5 6 PA10 (BTN_EN2)
- * RESET | 7 8 | PA9 (BTN_EN1)
- * (BTN_ENC) PB6 | 9 10| PB5 (BEEPER)
- * -----
- * EXP1
- */
-
-#define EXPA1_03_PIN PB7
-#define EXPA1_04_PIN PB8
-#define EXPA1_05_PIN PB9
-#define EXPA1_06_PIN PA10
-#define EXPA1_07_PIN -1
-#define EXPA1_08_PIN PA9
-#define EXPA1_09_PIN PB6
-#define EXPA1_10_PIN PB5
-
-#if HAS_SPI_LCD
-
- #if ENABLED(CR10_STOCKDISPLAY)
-
- #define BEEPER_PIN EXPA1_10_PIN
-
- #define BTN_EN1 EXPA1_08_PIN
- #define BTN_EN2 EXPA1_06_PIN
- #define BTN_ENC EXPA1_09_PIN
-
- #define LCD_PINS_RS EXPA1_04_PIN
- #define LCD_PINS_ENABLE EXPA1_03_PIN
- #define LCD_PINS_D4 EXPA1_05_PIN
-
- #elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
-
- #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
-
- #define LCD_PINS_RS EXPA1_05_PIN
- #define LCD_PINS_ENABLE EXPA1_09_PIN
- #define LCD_PINS_D4 EXPA1_04_PIN
- #define LCD_PINS_D5 EXPA1_06_PIN
- #define LCD_PINS_D6 EXPA1_08_PIN
- #define LCD_PINS_D7 EXPA1_10_PIN
- #define ADC_KEYPAD_PIN PA1 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
-
- #elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
-
- /** Creality Ender-2 display pinout
- * _____
- * 5V | 1 2 | GND
- * (MOSI) PB7 | 3 4 | PB8 (LCD_RS)
- * (LCD_A0) PB9 | 5 6 PA10 (BTN_EN2)
- * RESET | 7 8 | PA9 (BTN_EN1)
- * (BTN_ENC) PB6 | 9 10| PB5 (SCK)
- * -----
- * EXP1
- */
- #define BTN_EN1 EXPA1_08_PIN
- #define BTN_EN2 EXPA1_06_PIN
- #define BTN_ENC EXPA1_09_PIN
-
- #define DOGLCD_CS EXPA1_04_PIN
- #define DOGLCD_A0 EXPA1_05_PIN
- #define DOGLCD_SCK EXPA1_10_PIN
- #define DOGLCD_MOSI EXPA1_03_PIN
- #define FORCE_SOFT_SPI
- #define LCD_BACKLIGHT_PIN -1
-
- #else
-
- #error "Only ZONESTAR_LCD, MKS_MINI_12864, ENDER2_STOCKDISPLAY, and CR10_STOCKDISPLAY are currently supported on the BIGTREE_SKR_MINI_E3."
-
- #endif
-
-#endif // HAS_SPI_LCD
-
-//
-// SD Support
-//
-#define HAS_ONBOARD_SD
-
-#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
-#endif
-
-#define ON_BOARD_SPI_DEVICE 1 // SPI1
-#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_PRO_V1_1.h b/Marlin/src/pins/stm32/pins_BTT_SKR_PRO_V1_1.h
deleted file mode 100644
index bdee26a51a..0000000000
--- a/Marlin/src/pins/stm32/pins_BTT_SKR_PRO_V1_1.h
+++ /dev/null
@@ -1,286 +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 .
- *
- */
-#pragma once
-
-#ifndef TARGET_STM32F4
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif 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?
-
-// 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_TMC220x
- /**
- * 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
diff --git a/Marlin/src/pins/stm32/pins_CHITU3D.h b/Marlin/src/pins/stm32/pins_CHITU3D.h
deleted file mode 100644
index 2411500fb2..0000000000
--- a/Marlin/src/pins/stm32/pins_CHITU3D.h
+++ /dev/null
@@ -1,283 +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 .
- *
- */
-#pragma once
-
-#if !defined(__STM32F1__) && !defined(__STM32F4__)
- #error "Oops! Select an STM32F1/4 board in 'Tools > Board.'"
-#endif
-
-/**
- * 2017 Victor Perez Marlin for stm32f1 test
- */
-
-#define BOARD_INFO_NAME "Chitu3D"
-#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 PE5
-#define X_DIR_PIN PE6
-#define X_ENABLE_PIN PC13
-#define X_MIN_PIN PG10
-#define X_MAX_PIN -1
-
-#define Y_STEP_PIN PE2
-#define Y_DIR_PIN PE3
-#define Y_ENABLE_PIN PE4
-#define Y_MIN_PIN PA12
-#define Y_MAX_PIN
-
-#define Z_STEP_PIN PB9
-#define Z_DIR_PIN PE0
-#define Z_ENABLE_PIN PE1
-#define Z_MIN_PIN PA14
-#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 PB4
-#define E0_DIR_PIN PB5
-#define E0_ENABLE_PIN PB8
-
-
-
-#define E1_STEP_PIN -1
-#define E1_DIR_PIN -1
-#define E1_ENABLE_PIN -1
-
-#define E2_STEP_PIN -1
-#define E2_DIR_PIN -1
-#define E2_ENABLE_PIN -1
-
-//
-// Misc. Functions
-//
-#define SDSS -1
-#define LED_PIN -1
-#define CASE_LIGHT_PIN 8
-
-#define PS_ON_PIN -1
-#define KILL_PIN PD6 // LED strip 24v
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PD12 // HOT-END
-#define HEATER_1_PIN -1
-#define HEATER_2_PIN -1
-
-#define HEATER_BED_PIN PG11 // HOT-BED
-#define HEATER_BED2_PIN -1 // BED2
-#define HEATER_BED3_PIN -1 // BED3
-
-#ifndef FAN_PIN
- #define FAN_PIN PG14 // MAIN BOARD FAN
-#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 -1 // Analog Input
-#define TEMP_2_PIN -1 // 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
diff --git a/Marlin/src/pins/stm32/pins_FLYF407ZG.h b/Marlin/src/pins/stm32/pins_FLYF407ZG.h
deleted file mode 100644
index 97aaf3fdfc..0000000000
--- a/Marlin/src/pins/stm32/pins_FLYF407ZG.h
+++ /dev/null
@@ -1,266 +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 .
- *
- */
-#pragma once
-
-#if !defined(STM32F4) && !defined(STM32F4xx)
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif HOTENDS > 6 || E_STEPPERS > 6
- #error "FLYF407ZG supports up to 6 hotends / E-steppers."
-#endif
-
-#define BOARD_INFO_NAME "FLYF407ZG"
-#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLYF407ZG"
-#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
-
-#undef E2END
-#define E2END 0xFFF // 4KB
-
-//
-// Servos
-//
-#define SERVO0_PIN PE11
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PC3
-#define X_MAX_PIN PC2
-#define Y_MIN_PIN PF2
-#define Y_MAX_PIN PF1
-#define Z_MIN_PIN PF0
-#define Z_MAX_PIN PC15
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-#define Z_MIN_PROBE_PIN PC14 // Z3_PIN
-
-//
-// Steppers
-//
-
-#define X_STEP_PIN PB9
-#define X_DIR_PIN PE0
-#define X_ENABLE_PIN PE1
-#ifndef X_CS_PIN
- #define X_CS_PIN PG13
-#endif
-
-#define Y_STEP_PIN PB8
-#define Y_DIR_PIN PG11
-#define Y_ENABLE_PIN PG12
-#ifndef Y_CS_PIN
- #define Y_CS_PIN PG10
-#endif
-
-#define Z_STEP_PIN PA8
-#define Z_DIR_PIN PD6
-#define Z_ENABLE_PIN PD7
-#ifndef Z_CS_PIN
- #define Z_CS_PIN PD5
-#endif
-
-#define E0_STEP_PIN PC7
-#define E0_DIR_PIN PD3
-#define E0_ENABLE_PIN PD4
-#ifndef E0_CS_PIN
- #define E0_CS_PIN PD1
-#endif
-
-#define E1_STEP_PIN PC6
-#define E1_DIR_PIN PA15
-#define E1_ENABLE_PIN PD0
-#ifndef E1_CS_PIN
- #define E1_CS_PIN PA14
-#endif
-
-#define E2_STEP_PIN PD15
-#define E2_DIR_PIN PG7
-#define E2_ENABLE_PIN PG8
-#ifndef E2_CS_PIN
- #define E2_CS_PIN PG6
-#endif
-
-#define E3_STEP_PIN PD14
-#define E3_DIR_PIN PG4
-#define E3_ENABLE_PIN PG5
-#ifndef E3_CS_PIN
- #define E3_CS_PIN PG3
-#endif
-
-#define E4_STEP_PIN PD13
-#define E4_DIR_PIN PD11
-#define E4_ENABLE_PIN PG2
-#ifndef E4_CS_PIN
- #define E4_CS_PIN PD10
-#endif
-
-#define E5_STEP_PIN PD12
-#define E5_DIR_PIN PD8
-#define E5_ENABLE_PIN PD9
-#ifndef E5_CS_PIN
- #define E5_CS_PIN PB12
-#endif
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PA0 // Analog Input
-#define TEMP_1_PIN PC1 // Analog Input
-#define TEMP_2_PIN PC0 // Analog Input
-#define TEMP_3_PIN PF10 // Analog Input
-#define TEMP_4_PIN PF5 // Analog Input
-#define TEMP_5_PIN PF4 // Analog Input
-#define TEMP_BED_PIN PF3 // Analog Input
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PF7
-#define HEATER_1_PIN PF6
-#define HEATER_2_PIN PE6
-#define HEATER_3_PIN PE5
-#define HEATER_4_PIN PE4
-#define HEATER_5_PIN PA2
-#define HEATER_BED_PIN PE2
-
-#ifndef FAN_PIN
- #define FAN_PIN PF8
-#endif
-#define FAN1_PIN PF9
-#define FAN2_PIN PE3
-#define FAN3_PIN PA1
-#define FAN4_PIN PE13
-#define FAN5_PIN PB11
-
-//
-// 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
- #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
- #endif
-#endif
-
-//
-// Trinamic Software SPI
-//
-
-#if ENABLED(TMC_USE_SW_SPI)
- #ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PB15
- #endif
- #ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB14
- #endif
- #ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB13
- #endif
-#endif
-
-//
-// Trinamic Software Serial
-//
-
-#if HAS_TMC220x
- #define X_SERIAL_TX_PIN PG13
- #define X_SERIAL_RX_PIN PG13
-
- #define Y_SERIAL_TX_PIN PG10
- #define Y_SERIAL_RX_PIN PG10
-
- #define Z_SERIAL_TX_PIN PD5
- #define Z_SERIAL_RX_PIN PD5
-
- #define E0_SERIAL_TX_PIN PD1
- #define E0_SERIAL_RX_PIN PD1
-
- #define E1_SERIAL_TX_PIN PA14
- #define E1_SERIAL_RX_PIN PA14
-
- #define E2_SERIAL_TX_PIN PG6
- #define E2_SERIAL_RX_PIN PG6
-
- #define E3_SERIAL_TX_PIN PG3
- #define E3_SERIAL_RX_PIN PG3
-
- #define E4_SERIAL_TX_PIN PD10
- #define E4_SERIAL_RX_PIN PD10
-
- #define E5_SERIAL_TX_PIN PB12
- #define E5_SERIAL_RX_PIN PB12
-
-#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
-
-//
-// Filament runout
-//
-
-#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)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_FYSETC_S6.h b/Marlin/src/pins/stm32/pins_FYSETC_S6.h
deleted file mode 100644
index 5bda7b1c97..0000000000
--- a/Marlin/src/pins/stm32/pins_FYSETC_S6.h
+++ /dev/null
@@ -1,266 +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 .
- *
- */
-#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."
-#endif
-
-#ifndef BOARD_INFO_NAME
- #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
-
-//
-// EEPROM Emulation
-//
-#define FLASH_EEPROM_EMULATION
-#if ENABLED(FLASH_EEPROM_EMULATION)
- #define FLASH_EEPROM_LEVELING
-#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
-#endif
-
-//
-// Servos
-//
-#define SERVO0_PIN PA3
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PB14
-#define X_MAX_PIN PA1
-#define Y_MIN_PIN PB13
-#define Y_MAX_PIN PA2
-#define Z_MIN_PIN PA0
-#define Z_MAX_PIN PA3
-
-//
-// Filament Sensor
-// share with X_MAX_PIN
-//
-#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PA1
-#endif
-
-//
-// Steppers
-//
-#define X_STEP_PIN PE11
-#define X_DIR_PIN PE10
-#define X_ENABLE_PIN PE12
-#define X_CS_PIN PE7
-
-#define Y_STEP_PIN PD8
-#define Y_DIR_PIN PB12
-#define Y_ENABLE_PIN PD9
-#define Y_CS_PIN PE15
-
-#define Z_STEP_PIN PD14
-#define Z_DIR_PIN PD13
-#define Z_ENABLE_PIN PD15
-#define Z_CS_PIN PD10
-
-#define E0_STEP_PIN PD5
-#define E0_DIR_PIN PD6
-#define E0_ENABLE_PIN PD4
-#define E0_CS_PIN PD7
-
-#define E1_STEP_PIN PE6
-#define E1_DIR_PIN PC13
-#define E1_ENABLE_PIN PE5
-#define E1_CS_PIN PC14
-
-#define E2_STEP_PIN PE2
-#define E2_DIR_PIN PE4
-#define E2_ENABLE_PIN PE3
-#define E2_CS_PIN PC15
-
-#if HAS_TMC220x
- //
- // 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
-#endif
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC0
-#define TEMP_1_PIN PC1
-#define TEMP_2_PIN PC2
-#define TEMP_BED_PIN PC3
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PB3
-#define HEATER_1_PIN PB4
-#define HEATER_2_PIN PB15
-#define HEATER_BED_PIN PC8
-
-#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
-
-//
-// LCD / Controller
-//
-#if HAS_SPI_LCD
- #define BEEPER_PIN PC9
- #define BTN_ENC PA8
-
- #if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS PD0
-
- #define BTN_EN1 PC11
- #define BTN_EN2 PC10
-
- #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
-
- #else
-
- #define LCD_PINS_RS PD2
-
- #define BTN_EN1 PC6
- #define BTN_EN2 PC7
-
- #define LCD_SDSS PA4
-
- #define LCD_PINS_ENABLE PC11
- #define LCD_PINS_D4 PC10
-
- #if ENABLED(FYSETC_MINI_12864)
- // See https://wiki.fysetc.com/Mini12864_Panel
- #define DOGLCD_CS PC11
- #define DOGLCD_A0 PD2
- #if ENABLED(FYSETC_GENERIC_12864_1_1)
- #define LCD_BACKLIGHT_PIN PD0
- #endif
- #define LCD_RESET_PIN PC10 // 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
- #endif
- #ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PD0
- #endif
- #ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PD1
- #endif
- #elif ENABLED(FYSETC_MINI_12864_2_1)
- #define NEOPIXEL_PIN PC12
- #endif
- #endif // !FYSETC_MINI_12864
-
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PC12
- #define LCD_PINS_D6 PD0
- #define LCD_PINS_D7 PD1
- #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_SPI_LCD
-
-#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN PB6
-#endif
-#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB5
-#endif
-#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB7
-#endif
-#ifndef RGB_LED_W_PIN
- #define RGB_LED_W_PIN -1
-#endif
diff --git a/Marlin/src/pins/stm32/pins_GENERIC_STM32F4.h b/Marlin/src/pins/stm32/pins_GENERIC_STM32F4.h
deleted file mode 100644
index 2909b7c538..0000000000
--- a/Marlin/src/pins/stm32/pins_GENERIC_STM32F4.h
+++ /dev/null
@@ -1,190 +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 .
- *
- */
-#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
diff --git a/Marlin/src/pins/stm32/pins_LERDGE_K.h b/Marlin/src/pins/stm32/pins_LERDGE_K.h
deleted file mode 100644
index 2b3ad60199..0000000000
--- a/Marlin/src/pins/stm32/pins_LERDGE_K.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * Marlin 3D Printer Firmware
- * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
- *
- * 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 .
- *
- */
-#pragma once
-
-#if !defined(STM32F4) && !defined(STM32F4xx)
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif 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
-
-// Ignore temp readings during develpment.
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-
-//
-// Servos
-//
-//#define SERVO0_PIN PD12
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PG3
-#define Y_STOP_PIN PG4
-#define Z_STOP_PIN PG5
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-//#ifndef Z_MIN_PROBE_PIN
-// #define Z_MIN_PROBE_PIN PB15
-//#endif
-
-//
-// Filament runout
-//
-#define FIL_RUNOUT_PIN PE6
-#define FIL_RUNOUT2_PIN PE7
-
-//
-// Steppers
-//
-#define X_STEP_PIN PG1
-#define X_DIR_PIN PB10
-#define X_ENABLE_PIN PG0
-//#ifndef X_CS_PIN
-// #define X_CS_PIN PE0
-//#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
-//#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
-//#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
-//#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
-//#endif
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC1 // Analog Input
-#define TEMP_1_PIN PC2 // Analog Input
-#define TEMP_BED_PIN PC0 // Analog Input
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PA1
-#define HEATER_1_PIN PA0
-#define HEATER_BED_PIN PA2
-
-#ifndef FAN_PIN
- #define FAN_PIN PC15
-#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
-
-//
-// LED / Lighting
-//
-//#define CASE_LIGHT_PIN_CI -1
-//#define CASE_LIGHT_PIN_DO -1
-//#define NEOPIXEL_PIN -1
-
-//
-// Prusa i3 MK2 Multi-Material Multiplexer Support
-//
-//#define E_MUX0_PIN -1
-//#define E_MUX1_PIN -1
-
-//
-// SD support
-//
-#define SDIO_SUPPORT
-
-//
-// 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
-
-//
-// LCD / Controller
-//
-
-// 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 BTN_EN1 PE3
-#define BTN_EN2 PE4
-#define BTN_ENC PE2
-
-//
-// 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
diff --git a/Marlin/src/pins/stm32/pins_LERDGE_X.h b/Marlin/src/pins/stm32/pins_LERDGE_X.h
deleted file mode 100644
index f498b7d0b9..0000000000
--- a/Marlin/src/pins/stm32/pins_LERDGE_X.h
+++ /dev/null
@@ -1,174 +0,0 @@
-/**
- * Marlin 3D Printer Firmware
- * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
- *
- * 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 .
- *
- */
-#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."
-#endif
-
-#define BOARD_INFO_NAME "Lerdge X"
-#define DEFAULT_MACHINE_NAME "LERDGE"
-
-//#define I2C_EEPROM
-
-//
-// Servos
-//
-//#define SERVO0_PIN PD12
-//#define SERVO1_PIN -1
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PB12
-#define Y_STOP_PIN PB13
-#define Z_STOP_PIN PB14
-
-//
-// Filament runout
-//
-#define FIL_RUNOUT_PIN PE1
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-//#ifndef Z_MIN_PROBE_PIN
-// #define Z_MIN_PROBE_PIN PB15
-//#endif
-
-//
-// Steppers
-//
-#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
-//
-#define TEMP_0_PIN PC0 // Analog Input
-#define TEMP_1_PIN -1 // Analog Input
-#define TEMP_BED_PIN PC1 // Analog Input
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PA1
-#define HEATER_1_PIN -1
-#define HEATER_BED_PIN PA2
-
-#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
-
-//
-// LED / Lighting
-//
-//#define CASE_LIGHT_PIN_CI -1
-//#define CASE_LIGHT_PIN_DO -1
-//#define NEOPIXEL_PIN -1
-
-//
-// 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
-
-//
-// SD support
-//
-#define SDIO_SUPPORT
-
-//
-// LCD / Controller
-//
-
-// The LCD is initialized in FSMC mode
-#define SD_DETECT_PIN -1
-#define BEEPER_PIN PD12
-
-#define BTN_EN1 PE3
-#define BTN_EN2 PE4
-#define BTN_ENC PE2
-
-#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)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_LONGER3D_LK.h b/Marlin/src/pins/stm32/pins_LONGER3D_LK.h
deleted file mode 100644
index 66c5b55ecb..0000000000
--- a/Marlin/src/pins/stm32/pins_LONGER3D_LK.h
+++ /dev/null
@@ -1,170 +0,0 @@
-/**
- * Marlin 3D Printer Firmware
- * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
- *
- * 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 .
- *
- */
-#pragma once
-
-/**
- * Longer3D LK1/LK2 & Alfawise U20/U30 (STM32F103VET6) board pin assignments
- */
-
-#if !defined(__STM32F1__) && !defined(STM32F1xx)
- #error "Oops! Select a STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 1 || E_STEPPERS > 1
- #error "Longer3D board only supports 1 hotend / E-stepper. Comment out this line to continue."
-#endif
-
-#define BOARD_INFO_NAME "Longer3D"
-#define ALFAWISE_UX0 // Common to all Longer3D STM32F1 boards (used for Open drain mosfets)
-
-//#define DISABLE_DEBUG // We still want to debug with STLINK...
-#define DISABLE_JTAG // We free the jtag pins (PA15) but keep STLINK
- // Release PB4 (STEP_X_PIN) from JTAG NRST role.
-//
-// Limit Switches
-//
-#define X_MIN_PIN PC1 // pin 16
-#define X_MAX_PIN PC0 // pin 15 (Filament sensor on Alfawise setup)
-#define Y_MIN_PIN PC15 // pin 9
-#define Y_MAX_PIN PC14 // pin 8 (Unused in stock Alfawise setup)
-#define Z_MIN_PIN PE6 // pin 5 Standard Endstop or Z_Probe endstop function
-#define Z_MAX_PIN PE5 // pin 4 (Unused in stock Alfawise setup)
- // May be used for BLTouch Servo function on older variants (<= V08)
-#define ONBOARD_ENDSTOPPULLUPS
-
-//
-// Filament Sensor
-//
-#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PC0 // XMAX plug on PCB used as filament runout sensor on Alfawise boards (inverting true)
-#endif
-
-//
-// Steppers
-//
-#define X_ENABLE_PIN PB5 // pin 91
-#define X_STEP_PIN PB4 // pin 90
-#define X_DIR_PIN PB3 // pin 89
-
-#define Y_ENABLE_PIN PB8 // pin 95
-#define Y_STEP_PIN PB7 // pin 93
-#define Y_DIR_PIN PB6 // pin 92
-
-#define Z_ENABLE_PIN PE1 // pin 98
-#define Z_STEP_PIN PE0 // pin 97
-#define Z_DIR_PIN PB9 // pin 96
-
-#define E0_ENABLE_PIN PE4 // pin 3
-#define E0_STEP_PIN PE3 // pin 2
-#define E0_DIR_PIN PE2 // pin 1
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PA0 // pin 23 (Nozzle 100K/3950 thermistor)
-#define TEMP_BED_PIN PA1 // pin 24 (Hot Bed 100K/3950 thermistor)
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PD3 // pin 84 (Nozzle Heat Mosfet)
-#define HEATER_BED_PIN PA8 // pin 67 (Hot Bed Mosfet)
-
-#define FAN_PIN PA15 // pin 77 (4cm Fan)
-#define FAN_SOFT_PWM // Required to avoid issues with heating or STLink
-#define FAN_MIN_PWM 35 // Fan will not start in 1-30 range
-#define FAN_MAX_PWM 255
-
-//#define BEEPER_PIN PD13 // pin 60 (Servo PWM output 5V/GND on Board V0G+) made for BL-Touch sensor
- // Can drive a PC Buzzer, if connected between PWM and 5V pins
-
-#define LED_PIN PC2 // pin 17
-
-//
-// PWM for a servo probe
-// Other servo devices are not supported on this board!
-//
-#if HAS_Z_SERVO_PROBE
- #define SERVO0_PIN PD13 // Open drain PWM pin on the V0G (GND or floating 5V)
- #define SERVO0_PWM_OD // Comment this if using PE5
-
- //#define SERVO0_PIN PE5 // Pulled up PWM pin on the V08 (3.3V or 0)
- //#undef Z_MAX_PIN // Uncomment if using ZMAX connector (PE5)
-#endif
-
-/**
- * Note: Alfawise screens use various TFT controllers. Supported screens
- * are based on the ILI9341, ILI9328 and ST7798V. Define init sequences for
- * other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
- *
- * If the screen stays white, disable 'LCD_RESET_PIN' to let the bootloader
- * init the screen.
- *
- * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
- * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
- */
-
-#define LCD_RESET_PIN PC4 // pin 33
-#define LCD_BACKLIGHT_PIN PD12 // pin 59
-#define FSMC_CS_PIN PD7 // pin 88 = FSMC_NE1
-#define FSMC_RS_PIN PD11 // pin 58 A16 Register. Only one address needed
-
-#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
-#define FSMC_DMA_DEV DMA2
-#define FSMC_DMA_CHANNEL DMA_CH5
-
-#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
-#define DOGLCD_SCK -1
-
-/**
- * Note: Alfawise U20/U30 boards DON'T use SPI2, as the hardware designer
- * mixed up MOSI and MISO pins. SPI is managed in SW, and needs pins
- * declared below.
- */
-#if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PB12 // pin 51 SPI2_NSS
- #define TOUCH_SCK_PIN PB13 // pin 52
- #define TOUCH_MOSI_PIN PB14 // pin 53
- #define TOUCH_MISO_PIN PB15 // pin 54
- #define TOUCH_INT_PIN PC6 // pin 63 (PenIRQ coming from ADS7843)
-#endif
-
-//
-// Persistent Storage
-// If no option is selected below the SD Card will be used
-//
-//#define SPI_EEPROM
-#define FLASH_EEPROM_EMULATION
-
-#undef E2END
-#if ENABLED(SPI_EEPROM)
- // SPI1 EEPROM Winbond W25Q64 (8MB/64Mbits)
- #define SPI_CHAN_EEPROM1 1
- #define SPI_EEPROM1_CS PC5 // pin 34
- #define EEPROM_SCK BOARD_SPI1_SCK_PIN // PA5 pin 30
- #define EEPROM_MISO BOARD_SPI1_MISO_PIN // PA6 pin 31
- #define EEPROM_MOSI BOARD_SPI1_MOSI_PIN // PA7 pin 32
- #define EEPROM_PAGE_SIZE 0x1000U // 4KB (from datasheet)
- #define E2END ((16 * EEPROM_PAGE_SIZE)-1) // Limit to 64KB for now...
-#elif ENABLED(FLASH_EEPROM_EMULATION)
- // SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
- #define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
- #define EEPROM_PAGE_SIZE (0x800U) // 2KB, but will use 2x more (4KB)
- #define E2END (EEPROM_PAGE_SIZE - 1)
-#else
- #define E2END (0x7FFU) // On SD, Limit to 2KB, require this amount of RAM
-#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN.h
deleted file mode 100644
index 3b10bae139..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN.h
+++ /dev/null
@@ -1,159 +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 .
- *
- */
-#pragma once
-
-/**
- * MKS Robin (STM32F130ZET6) board pin assignments
- *
- * https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/Hardware
- */
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 2 || E_STEPPERS > 2
- #error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
-#endif
-
-#define BOARD_INFO_NAME "MKS Robin"
-
-//
-// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
-//
-#define DISABLE_JTAG
-
-//
-// Servos
-//
-#define SERVO0_PIN PC3 // XS1 - 5
-#define SERVO1_PIN PA1 // XS1 - 6
-#define SERVO2_PIN PF9 // XS2 - 5
-#define SERVO3_PIN PF8 // XS2 - 6
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PB12
-#define X_MAX_PIN PB0
-#define Y_MIN_PIN PC5
-#define Y_MAX_PIN PC4
-#define Z_MIN_PIN PA4
-#define Z_MAX_PIN PF7
-
-//
-// Steppers
-//
-#define X_ENABLE_PIN PB9
-#define X_STEP_PIN PB8
-#define X_DIR_PIN PB5
-
-#define Y_ENABLE_PIN PB4
-#define Y_STEP_PIN PG15
-#define Y_DIR_PIN PG10
-
-#define Z_ENABLE_PIN PD7
-#define Z_STEP_PIN PD3
-#define Z_DIR_PIN PG14
-
-#define E0_ENABLE_PIN PG13
-#define E0_STEP_PIN PG8
-#define E0_DIR_PIN PA15
-
-#define E1_ENABLE_PIN PA12
-#define E1_STEP_PIN PA11
-#define E1_DIR_PIN PA8
-
-//
-// 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 PC7 // HEATER1
-#define HEATER_1_PIN PA6 // HEATER2
-#define HEATER_BED_PIN PC6 // HOT BED
-
-#define FAN_PIN PA7 // FAN
-
-/**
- * Note: MKS Robin board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
- */
-//#define MAX6675_SS_PIN PE5 // TC1 - CS1
-//#define MAX6675_SS_PIN PE6 // TC2 - CS2
-
-#define POWER_LOSS_PIN PA2 // PW_DET
-#define PS_ON_PIN PA3 // PW_OFF
-#define FIL_RUNOUT_PIN PF11 // MT_DET
-
-#define BEEPER_PIN PC13
-#define LED_PIN PB2
-
-/**
- * Note: MKS Robin TFT screens use various TFT controllers
- * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
- * ILI9488 is not supported
- * Define init sequences for other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
- *
- * If the screen stays white, disable 'LCD_RESET_PIN'
- * to let the bootloader init the screen.
- *
- * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
- * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
- */
-//#define LCD_RESET_PIN PF6
-#define LCD_BACKLIGHT_PIN PG11
-#define FSMC_CS_PIN PG12 // NE4
-#define FSMC_RS_PIN PF0 // A0
-
-#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
-#define FSMC_DMA_DEV DMA2
-#define FSMC_DMA_CHANNEL DMA_CH5
-
-#if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PB1 // SPI2_NSS
- #define TOUCH_SCK_PIN PB13 // SPI2_SCK
- #define TOUCH_MISO_PIN PB14 // SPI2_MISO
- #define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
-#endif
-
-// SPI1(PA7) & SPI3(PB5) not available
-#define ENABLE_SPI2
-
-#if ENABLED(SDIO_SUPPORT)
- #define SCK_PIN PB13 // SPI2
- #define MISO_PIN PB14 // SPI2
- #define MOSI_PIN PB15 // SPI2
- #define SS_PIN -1 // PB12 is X-
- #define SD_DETECT_PIN PF12 // SD_CD
-#else
- // SD as custom software SPI (SDIO pins)
- #define SCK_PIN PC12
- #define MISO_PIN PC8
- #define MOSI_PIN PD2
- #define SS_PIN -1
- #define ONBOARD_SD_CS_PIN PC11
- #define SDSS PD2
- #define SD_DETECT_PIN -1
-#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN2.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN2.h
deleted file mode 100644
index 5d97de12eb..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN2.h
+++ /dev/null
@@ -1,102 +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 .
- *
- */
-#pragma once
-
-#ifndef STM32F4
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif 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"
-#endif
-
-#ifndef DEFAULT_MACHINE_NAME
- #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
-#endif
-
-#define SRAM_EEPROM_EMULATION
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PG8
-#define X_MAX_PIN PG7
-#define Y_MIN_PIN PG6
-#define Y_MAX_PIN PG5
-#define Z_MIN_PIN PG4
-#define Z_MAX_PIN PG3
-
-//
-// Servos
-//
-#define SERVO0_PIN PB0 // XS2-5
-#define SERVO1_PIN PF7 // XS1-5
-#define SERVO2_PIN PF8 // XS1-6
-
-//
-// Steppers
-//
-#define X_STEP_PIN PE6
-#define X_DIR_PIN PE5
-#define X_ENABLE_PIN PC13
-
-#define Y_STEP_PIN PE3
-#define Y_DIR_PIN PE2
-#define Y_ENABLE_PIN PE4
-
-#define Z_STEP_PIN PE0
-#define Z_DIR_PIN PB9
-#define Z_ENABLE_PIN PE1
-
-#define E0_STEP_PIN PG10
-#define E0_DIR_PIN PG9
-#define E0_ENABLE_PIN PB8
-
-#define E1_STEP_PIN PD3
-#define E1_DIR_PIN PA15
-#define E1_ENABLE_PIN PD6
-
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC1 // T1 <-> E0
-#define TEMP_1_PIN PC2 // T2 <-> E1
-#define TEMP_BED_PIN PC0 // T0 <-> Bed
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PF3 // Heater0
-#define HEATER_1_PIN PF2 // Heater1
-#define HEATER_BED_PIN PF4 // Hotbed
-#define FAN_PIN PA7 // Fan0
-
-//
-// Misc. Functions
-//
-#define SDSS -1 // PB12
-
-#define SD_DETECT_PIN PF9
-#define BEEPER_PIN PG2
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE.h
deleted file mode 100644
index 1a7d664899..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE.h
+++ /dev/null
@@ -1,137 +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 .
- *
- */
-#pragma once
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 1 || E_STEPPERS > 1
- #error "MKS Robin Lite supports only 1 hotend / E-stepper. Comment out this line to continue."
-#endif
-
-#ifndef BOARD_INFO_NAME
- #define BOARD_INFO_NAME "MKS Robin Lite"
-#endif
-#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
-
-//#define DISABLE_DEBUG
-#define DISABLE_JTAG
-#define ENABLE_SPI2
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PC13
-#define Y_STOP_PIN PC0
-#define Z_MIN_PIN PC12
-#define Z_MAX_PIN PB9
-
-//
-// Steppers
-//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PB12
-#define X_ENABLE_PIN PB10
-
-#define Y_STEP_PIN PB11
-#define Y_DIR_PIN PB2
-#define Y_ENABLE_PIN PB10
-
-#define Z_STEP_PIN PB1
-#define Z_DIR_PIN PC5
-#define Z_ENABLE_PIN PB10
-
-#define E0_STEP_PIN PC4
-#define E0_DIR_PIN PA5
-#define E0_ENABLE_PIN PA4
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PC9
-#define FAN_PIN PA8
-#define HEATER_BED_PIN PC8
-
-//
-// Temperature Sensors
-//
-#define TEMP_BED_PIN PA1
-#define TEMP_0_PIN PA0
-
-#define FIL_RUNOUT_PIN PB8 // MT_DET
-
-//
-// LCD Pins
-//
-#if HAS_SPI_LCD
- #define BEEPER_PIN PD2
- #define BTN_ENC PB3
- #define LCD_PINS_RS PC3
-
- #define BTN_EN1 PB5
- #define BTN_EN2 PB4
-
- #define LCD_PINS_ENABLE PC2
-
- #if ENABLED(MKS_MINI_12864)
-
- #define LCD_BACKLIGHT_PIN -1
- #define LCD_RESET_PIN -1
- #define DOGLCD_A0 PC1
- #define DOGLCD_CS PC2
- #define DOGLCD_SCK PB13
- #define DOGLCD_MOSI PB15
-
- #else // !MKS_MINI_12864
-
- #define LCD_PINS_D4 PC1
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 -1
- #define LCD_PINS_D6 -1
- #define LCD_PINS_D7 -1
- #endif
-
- #endif // !MKS_MINI_12864
-
-#endif // HAS_SPI_LCD
-
-// Motor current PWM pins
-#define MOTOR_CURRENT_PWM_XY_PIN PB0
-#define MOTOR_CURRENT_PWM_Z_PIN PA7
-#define MOTOR_CURRENT_PWM_E_PIN PA6
-#define MOTOR_CURRENT_PWM_RANGE (65535/10/3.3) // (255 * (1000mA / 65535)) * 257 = 1000 is equal 1.6v Vref in turn equal 1Amp
-#define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } // 1.05Amp per driver, here is XY, Z and E. This values determined empirically.
-
-//
-// SD Card
-//
-#define ENABLE_SPI2
-#define SD_DETECT_PIN PC10
-#define SCK_PIN PB13
-#define MISO_PIN P1B4
-#define MOSI_PIN P1B5
-#define SS_PIN PA15
-
-#if HAS_GRAPHICAL_LCD
- #define BOARD_ST7920_DELAY_1 DELAY_NS(125)
- #define BOARD_ST7920_DELAY_2 DELAY_NS(125)
- #define BOARD_ST7920_DELAY_3 DELAY_NS(125)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE3.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE3.h
deleted file mode 100644
index 9a404ec64d..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN_LITE3.h
+++ /dev/null
@@ -1,153 +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 .
- *
- */
-#pragma once
-
-/**
- * MKS Robin Lite 3 (STM32F103RCT6) board pin assignments
- */
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 2 || E_STEPPERS > 2
- #error "MKS Robin Lite3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
-#endif
-
-#ifndef BOARD_INFO_NAME
- #define BOARD_INFO_NAME "MKS Robin Lite3"
-#endif
-#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
-
-//#define DISABLE_DEBUG
-#define DISABLE_JTAG
-#define ENABLE_SPI2
-
-//
-// Servos
-//
-#define SERVO0_PIN PA3
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PA12
-#define Y_STOP_PIN PA11
-#define Z_MIN_PIN PC6
-#define Z_MAX_PIN PB1
-
-//
-// Steppers
-//
-#define X_STEP_PIN PC0
-#define X_DIR_PIN PB2
-#define X_ENABLE_PIN PC13
-
-#define Y_STEP_PIN PC2
-#define Y_DIR_PIN PB9
-#define Y_ENABLE_PIN PB12
-
-#define Z_STEP_PIN PB7
-#define Z_DIR_PIN PB6
-#define Z_ENABLE_PIN PB8
-
-#define E0_STEP_PIN PB4
-#define E0_DIR_PIN PB3
-#define E0_ENABLE_PIN PB5
-
-#define E1_STEP_PIN PC12
-#define E1_DIR_PIN PC11
-#define E1_ENABLE_PIN PD2
-
-//
-// Heaters 0,1 / Fans / Bed
-//
-#define HEATER_0_PIN PC9
-#define HEATER_1_PIN PC7
-#define FAN_PIN PA8
-#define HEATER_BED_PIN PC8
-
-//
-// Temperature Sensors
-//
-#define TEMP_BED_PIN PA1 //TB
-#define TEMP_0_PIN PA0 //TH1
-#define TEMP_1_PIN PA2 //TH2
-
-#define FIL_RUNOUT_PIN PB10 // MT_DET
-
-//
-// LCD Pins
-//
-#if HAS_SPI_LCD
-
- #define BEEPER_PIN PC1
- #define BTN_ENC PC3
- #define LCD_PINS_ENABLE PA4
- #define LCD_PINS_RS PA5
- #define BTN_EN1 PB11
- #define BTN_EN2 PB0
-
- // 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 PC4
- #define DOGLCD_CS PA7
- #define DOGLCD_SCK PB13
- #define DOGLCD_MOSI PB15
-
- // Required for MKS_MINI_12864 with this board
- #define MKS_LCD12864B
- #undef SHOW_BOOTSCREEN
-
- #else // !MKS_MINI_12864
-
- #define LCD_PINS_D4 PA6
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PA7
- #define LCD_PINS_D6 PC4
- #define LCD_PINS_D7 PC5
- #endif
-
- #endif // !MKS_MINI_12864
-
-#endif // HAS_SPI_LCD
-
-//
-// SD Card
-//
-#define ENABLE_SPI2
-#define SD_DETECT_PIN PC10
-#define SCK_PIN PB13
-#define MISO_PIN PB14
-#define MOSI_PIN PB15
-#define SS_PIN PA15
-
-#ifndef ST7920_DELAY_1
- #define ST7920_DELAY_1 DELAY_NS(125)
-#endif
-#ifndef ST7920_DELAY_2
- #define ST7920_DELAY_2 DELAY_NS(125)
-#endif
-#ifndef ST7920_DELAY_3
- #define ST7920_DELAY_3 DELAY_NS(125)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h
deleted file mode 100755
index 223f520ebe..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN_NANO.h
+++ /dev/null
@@ -1,137 +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 .
- *
- */
-#pragma once
-
-/**
- * MKS Robin nano (STM32F130VET6) board pin assignments
- */
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 2 || E_STEPPERS > 2
- #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
-#endif
-
-#define BOARD_INFO_NAME "MKS Robin nano"
-
-//
-// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
-//
-#define DISABLE_DEBUG
-
-//
-// Limit Switches
-//
-#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
-
-#define Y_ENABLE_PIN PE1
-#define Y_STEP_PIN PE0
-#define Y_DIR_PIN PB9
-
-#define Z_ENABLE_PIN PB8
-#define Z_STEP_PIN PB5
-#define Z_DIR_PIN PB4
-
-#define E0_ENABLE_PIN PB3
-#define E0_STEP_PIN PD6
-#define E0_DIR_PIN PD3
-
-#define E1_ENABLE_PIN PA3
-#define E1_STEP_PIN PA6
-#define E1_DIR_PIN PA1
-
-//
-// 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 MAX6675_SS_PIN PE5 // TC1 - CS1
-//#define MAX6675_SS_PIN PE6 // TC2 - CS2
-
-//
-// Misc. Functions
-//
-#define POWER_LOSS_PIN PA2 // PW_DET
-#define PS_ON_PIN PA3 // PW_OFF
-
-#define LED_PIN PB2
-
-//
-// SD Card
-//
-#define SDIO_SUPPORT
-#define SD_DETECT_PIN PD12
-
-//
-// LCD / Controller
-//
-#define BEEPER_PIN PC5
-
-/**
- * Note: MKS Robin TFT screens use various TFT controllers.
- * If the screen stays white, disable 'LCD_RESET_PIN'
- * to let the bootloader init the screen.
- */
-#if ENABLED(FSMC_GRAPHICAL_TFT)
- #define FSMC_CS_PIN PD7 // NE4
- #define FSMC_RS_PIN PD11 // A0
-
- #define LCD_RESET_PIN PC6 // FSMC_RST
- #define NO_LCD_REINIT // Suppress LCD re-initialization
-
- #define LCD_BACKLIGHT_PIN PD13
-
- #if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PA7 // SPI2_NSS
- #define TOUCH_SCK_PIN PB13 // SPI2_SCK
- #define TOUCH_MISO_PIN PB14 // SPI2_MISO
- #define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
- #endif
-#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN_PRO.h b/Marlin/src/pins/stm32/pins_MKS_ROBIN_PRO.h
deleted file mode 100644
index ec43ab8fc3..0000000000
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN_PRO.h
+++ /dev/null
@@ -1,274 +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 .
- *
- */
-#pragma once
-
-/**
- * MKS Robin pro (STM32F103ZET6) board pin assignments
- */
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#elif HOTENDS > 3 || E_STEPPERS > 3
- #error "MKS Robin pro supports up to 3 hotends / E-steppers. Comment out this line to continue."
-#endif
-
-#define BOARD_INFO_NAME "MKS Robin pro"
-
-//
-// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
-//
-#define DISABLE_DEBUG
-
-//
-// Note: MKS Robin board is using SPI2 interface.
-//
-//#define SPI_MODULE 2
-#define ENABLE_SPI2
-
-//
-// Servos
-//
-#define SERVO0_PIN PA8 // BLTOUCH
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PA15
-#define X_MAX_PIN PG7
-#define Y_MIN_PIN PA12
-#define Y_MAX_PIN PG8
-#define Z_MIN_PIN PA11
-#define Z_MAX_PIN PC4
-
-//
-// Steppers
-//
-#define X_ENABLE_PIN PE4
-#define X_STEP_PIN PE3
-#define X_DIR_PIN PE2
-#ifndef X_CS_PIN
- #define X_CS_PIN PF8
-#endif
-
-#define Y_ENABLE_PIN PE1
-#define Y_STEP_PIN PE0
-#define Y_DIR_PIN PB9
-#ifndef Y_CS_PIN
- #define Y_CS_PIN PF3
-#endif
-
-#define Z_ENABLE_PIN PB8
-#define Z_STEP_PIN PB5
-#define Z_DIR_PIN PB4
-#ifndef Z_CS_PIN
- #define Z_CS_PIN PF6
-#endif
-
-#define E0_ENABLE_PIN PB3
-#define E0_STEP_PIN PD6
-#define E0_DIR_PIN PD3
-#ifndef E0_CS_PIN
- #define E0_CS_PIN PG15
-#endif
-
-#define E1_ENABLE_PIN PA3
-#define E1_STEP_PIN PA6
-#define E1_DIR_PIN PA1
-#ifndef E1_CS_PIN
- #define E1_CS_PIN PG10
-#endif
-
-#define E2_ENABLE_PIN PF0
-#define E2_STEP_PIN PF2
-#define E2_DIR_PIN PF1
-#ifndef E2_CS_PIN
- #define E2_CS_PIN PG9
-#endif
-//
-// Software SPI pins for TMC2130 stepper drivers
-//
-#if ENABLED(TMC_USE_SW_SPI)
- #ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PB15
- #endif
- #ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB14
- #endif
- #ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB13
- #endif
-#endif
-
-#if HAS_TMC220x
- /**
- * 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 PF7
- #define X_SERIAL_RX_PIN PF8
-
- #define Y_SERIAL_TX_PIN PF4
- #define Y_SERIAL_RX_PIN PF3
-
- #define Z_SERIAL_TX_PIN PF5
- #define Z_SERIAL_RX_PIN PF6
-
- #define E0_SERIAL_TX_PIN PG13
- #define E0_SERIAL_RX_PIN PG15
-
- #define E1_SERIAL_TX_PIN PG12
- #define E1_SERIAL_RX_PIN PG10
-
- #define E2_SERIAL_TX_PIN PC13
- #define E2_SERIAL_RX_PIN PG9
-#endif
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC1 // TH1
-#define TEMP_1_PIN PC2 // TH2
-#define TEMP_2_PIN PC3 // TH3
-#define TEMP_BED_PIN PC0 // TB1
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PF10 // +HE0-
-#define HEATER_1_PIN PB0 // +HE1-
-#define HEATER_2_PIN PF9 // +HE2-
-#define HEATER_BED_PIN PA0 // +HOT-BED-
-#define FAN_PIN PB1 // +FAN-
-
-/**
- * Note: MKS Robin Pro board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
- */
-//#define MAX6675_SS_PIN PE5 // TC1 - CS1
-//#define MAX6675_SS_PIN PF11 // TC2 - CS2
-
-#define POWER_LOSS_PIN PA2 // PW_DET
-#define PS_ON_PIN PG11 // PW_OFF
-#define FIL_RUNOUT_PIN PA4 // MT_DET1
-//#define FIL_RUNOUT_PIN PE6 // MT_DET2
-//#define FIL_RUNOUT_PIN PG14 // MT_DET3
-
-//
-// SD Card
-//
-#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
-#endif
-
-#if SD_CONNECTION_IS(LCD)
- #define ENABLE_SPI2
- #define SD_DETECT_PIN PG3
- #define SCK_PIN PB13
- #define MISO_PIN PB14
- #define MOSI_PIN PB15
- #define SS_PIN PG6
-#elif SD_CONNECTION_IS(ONBOARD)
- #define SDIO_SUPPORT
- #define SD_DETECT_PIN PD12
-#elif SD_CONNECTION_IS(CUSTOM_CABLE)
- #error "No custom SD drive cable defined for this board."
-#endif
-
-/**
- * Note: MKS Robin TFT screens use various TFT controllers.
- * If the screen stays white, disable 'LCD_RESET_PIN'
- * to let the bootloader init the screen.
- */
-#if ENABLED(FSMC_GRAPHICAL_TFT)
- #define FSMC_CS_PIN PD7 // NE4
- #define FSMC_RS_PIN PD11 // A0
-
- #define LCD_RESET_PIN PF6
- #define NO_LCD_REINIT // Suppress LCD re-initialization
-
- #define LCD_BACKLIGHT_PIN PD13
-
- #if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PA7
- #else
- #define BEEPER_PIN PC5
- #define BTN_ENC PG2
- #define BTN_EN1 PG5
- #define BTN_EN2 PG4
- #endif
-
-#elif HAS_SPI_LCD
-
- #define BEEPER_PIN PC5
- #define BTN_ENC PG2
- #define LCD_PINS_ENABLE PG0
- #define LCD_PINS_RS PG1
- #define BTN_EN1 PG5
- #define BTN_EN2 PG4
-
- // 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 PF12
- #define DOGLCD_CS PF15
- #define DOGLCD_SCK PB13
- #define DOGLCD_MOSI PB15
-
- #else // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
-
- #define LCD_PINS_D4 PF14
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PF15
- #define LCD_PINS_D6 PF12
- #define LCD_PINS_D7 PF13
- #endif
-
- #endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
-#endif
-
-#ifndef ST7920_DELAY_1
- #define ST7920_DELAY_1 DELAY_NS(125)
-#endif
-#ifndef ST7920_DELAY_2
- #define ST7920_DELAY_2 DELAY_NS(125)
-#endif
-#ifndef ST7920_DELAY_3
- #define ST7920_DELAY_3 DELAY_NS(125)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_REMRAM_V1.h b/Marlin/src/pins/stm32/pins_REMRAM_V1.h
deleted file mode 100644
index 45a1f68e5a..0000000000
--- a/Marlin/src/pins/stm32/pins_REMRAM_V1.h
+++ /dev/null
@@ -1,133 +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 .
- *
- */
-#pragma once
-
-#ifndef STM32F7xx
- #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
-#endif
-
-#define BOARD_INFO_NAME "RemRam v1"
-#define DEFAULT_MACHINE_NAME "RemRam"
-
-#define SRAM_EEPROM_EMULATION // Emulate the EEPROM using Backup SRAM
-
-#if HOTENDS > 1 || E_STEPPERS > 1
- #error "RemRam supports only one hotend / E-stepper."
-#endif
-
-//
-// Limit Switches
-//
-#if DISABLED(SENSORLESS_HOMING)
- #define X_MIN_PIN 58
- #define X_MAX_PIN 59
- #define Y_MIN_PIN 60
- #define Y_MAX_PIN 61
- #define Z_MIN_PIN 62
- #define Z_MAX_PIN 63
-#else
- #define X_STOP_PIN 36
- #define Y_STOP_PIN 39
- #define Z_MIN_PIN 62
- #define Z_MAX_PIN 42
-#endif
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 26 // EXT_D1
-#endif
-
-//
-// Steppers
-//
-#define X_STEP_PIN 22
-#define X_DIR_PIN 35
-#define X_ENABLE_PIN 34
-#define X_CS_PIN 14
-
-#define Y_STEP_PIN 23
-#define Y_DIR_PIN 38
-#define Y_ENABLE_PIN 37
-#define Y_CS_PIN 15
-
-#define Z_STEP_PIN 24
-#define Z_DIR_PIN 41
-#define Z_ENABLE_PIN 40
-#define Z_CS_PIN 16
-
-#define E0_STEP_PIN 25
-#define E0_DIR_PIN 44
-#define E0_ENABLE_PIN 43
-#define E0_CS_PIN 10
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN 64 // THERM_1
-#define TEMP_1_PIN 65 // THERM_2
-#define TEMP_BED_PIN 66 // THERM_3
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN 33
-#define HEATER_BED_PIN 31
-
-#ifndef FAN_PIN
- #define FAN_PIN 30 // "FAN1"
-#endif
-#define FAN1_PIN 32 // "FAN2"
-
-#define ORIG_E0_AUTO_FAN_PIN 32 // Use this by NOT overriding E0_AUTO_FAN_PIN
-
-//
-// Servos
-//
-#define SERVO0_PIN 26 // PWM_EXT1
-#define SERVO1_PIN 27 // PWM_EXT2
-
-#define SDSS 57 // Onboard SD card reader
-//#define SDSS 9 // LCD SD card reader
-#define LED_PIN 21 // STATUS_LED
-
-//
-// LCD / Controller
-//
-#define SD_DETECT_PIN 56 // SD_CARD_DET
-#define BEEPER_PIN 46 // LCD_BEEPER
-#define LCD_PINS_RS 49 // LCD_RS
-#define LCD_PINS_ENABLE 48 // LCD_EN
-#define LCD_PINS_D4 50 // LCD_D4
-#define LCD_PINS_D5 51 // LCD_D5
-#define LCD_PINS_D6 52 // LCD_D6
-#define LCD_PINS_D7 53 // LCD_D7
-#define BTN_EN1 54 // BTN_EN1
-#define BTN_EN2 55 // BTN_EN2
-#define BTN_ENC 47 // BTN_ENC
-
-//
-// Timers
-//
-
-#define STEP_TIMER 2
diff --git a/Marlin/src/pins/stm32/pins_RUMBA32_common.h b/Marlin/src/pins/stm32/pins_RUMBA32_common.h
deleted file mode 100644
index 0fb469112d..0000000000
--- a/Marlin/src/pins/stm32/pins_RUMBA32_common.h
+++ /dev/null
@@ -1,149 +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 .
- *
- */
-#pragma once
-
-/**
- * Common pin assignments for all RUMBA32 boards
- */
-
-#ifndef STM32F4
- #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
-#elif 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
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PB12
-#define X_MAX_PIN PB13
-#define Y_MIN_PIN PB15
-#define Y_MAX_PIN PD8
-#define Z_MIN_PIN PD9
-#define Z_MAX_PIN PD10
-
-//
-// Steppers
-//
-#define X_STEP_PIN PA0
-#define X_DIR_PIN PC15
-#define X_ENABLE_PIN PC11
-#define X_CS_PIN PC14
-
-#define Y_STEP_PIN PE5
-#define Y_DIR_PIN PE6
-#define Y_ENABLE_PIN PE3
-#define Y_CS_PIN PE4
-
-#define Z_STEP_PIN PE1
-#define Z_DIR_PIN PE2
-#define Z_ENABLE_PIN PB7
-#define Z_CS_PIN PE0
-
-#define E0_STEP_PIN PB5
-#define E0_DIR_PIN PB6
-#define E0_ENABLE_PIN PC12
-#define E0_CS_PIN PC13
-
-#define E1_STEP_PIN PD6
-#define E1_DIR_PIN PD7
-#define E1_ENABLE_PIN PD4
-#define E1_CS_PIN PD5
-
-#define E2_STEP_PIN PD2
-#define E2_DIR_PIN PD3
-#define E2_ENABLE_PIN PD0
-#define E2_CS_PIN PD1
-
-//
-// Temperature Sensors
-//
-#define TEMP_0_PIN PC4
-#define TEMP_1_PIN PC3
-#define TEMP_2_PIN PC2
-#define TEMP_3_PIN PC1
-#define TEMP_BED_PIN PC0
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PC6
-#define HEATER_1_PIN PC7
-#define HEATER_2_PIN PC8
-#define HEATER_BED_PIN PA1
-
-#define FAN_PIN PC9
-#define FAN1_PIN PA8
-
-//
-// I2C
-//
-#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 PA2
-#define SD_DETECT_PIN PB0
-#define BEEPER_PIN PE8
-
-//
-// LCD / Controller
-//
-#if HAS_SPI_LCD
-
- #define BTN_EN1 PB2
- #define BTN_EN2 PB1
- #define BTN_ENC PE7
-
- #define LCD_PINS_RS PE10
- #define LCD_PINS_ENABLE PE9
- #define LCD_PINS_D4 PE12
-
- #if ENABLED(MKS_MINI_12864)
- #define DOGLCD_CS PE13
- #define DOGLCD_A0 PE14
- #endif
-
- #if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PE13
- #define LCD_PINS_D6 PE14
- #define LCD_PINS_D7 PE15
- #endif
-
-#endif
diff --git a/Marlin/src/pins/stm32/pins_STM32F1R.h b/Marlin/src/pins/stm32/pins_STM32F1R.h
deleted file mode 100644
index b43492af21..0000000000
--- a/Marlin/src/pins/stm32/pins_STM32F1R.h
+++ /dev/null
@@ -1,261 +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 .
- *
- */
-#pragma once
-
-#ifndef __STM32F1__
- #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
-#endif
-
-/**
- * 21017 Victor Perez Marlin for stm32f1 test
- */
-
-#define BOARD_INFO_NAME "Misc. STM32F1R"
-#define DEFAULT_MACHINE_NAME "STM32F103RET6"
-
-// Ignore temp readings during development.
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PB3
-#define Y_STOP_PIN PB4
-#define Z_STOP_PIN PB5
-
-//
-// Steppers
-//
-#define X_STEP_PIN PC0
-#define X_DIR_PIN PC1
-#define X_ENABLE_PIN PA8
-
-#define Y_STEP_PIN PC2
-#define Y_DIR_PIN PC3
-#define Y_ENABLE_PIN PA8
-
-#define Z_STEP_PIN PC4
-#define Z_DIR_PIN PC5
-#define Z_ENABLE_PIN PA8
-
-#define E0_STEP_PIN PC6
-#define E0_DIR_PIN PC7
-#define E0_ENABLE_PIN PA8
-
-/**
- * TODO: Currently using same Enable pin to all steppers.
- */
-
-#define E1_STEP_PIN PC8
-#define E1_DIR_PIN PC9
-#define E1_ENABLE_PIN PA8
-
-#define E2_STEP_PIN PC10
-#define E2_DIR_PIN PC11
-#define E2_ENABLE_PIN PA8
-
-//
-// Misc. Functions
-//
-#define SDSS PA4
-#define LED_PIN PD2
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PB0 // EXTRUDER 1
-#define HEATER_1_PIN PB1
-
-#define HEATER_BED_PIN PA3 // BED
-
-//
-// Temperature Sensors
-//
-#define TEMP_BED_PIN PA0 // Analog Input
-#define TEMP_0_PIN PA1 // Analog Input
-#define TEMP_1_PIN PA2 // 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
diff --git a/Marlin/src/pins/stm32/pins_STM3R_MINI.h b/Marlin/src/pins/stm32/pins_STM3R_MINI.h
deleted file mode 100644
index 99f1cea35c..0000000000
--- a/Marlin/src/pins/stm32/pins_STM3R_MINI.h
+++ /dev/null
@@ -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 .
- *
- */
-#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 "STM3R Mini"
-#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
-
-// Enable I2C_EEPROM for testing
-#define I2C_EEPROM
-
-// Ignore temp readings during development.
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PD0
-#define Y_STOP_PIN PD1
-#define Z_STOP_PIN PD4
-
-//
-// Steppers
-//
-#define X_STEP_PIN PE1
-#define X_DIR_PIN PE0
-#define X_ENABLE_PIN PC0
-
-#define Y_STEP_PIN PE3
-#define Y_DIR_PIN PE2
-#define Y_ENABLE_PIN PC1
-
-#define Z_STEP_PIN PE5
-#define Z_DIR_PIN PE4
-#define Z_ENABLE_PIN PC2
-
-#define E0_STEP_PIN PE7
-#define E0_DIR_PIN PE6
-#define E0_ENABLE_PIN PC3
-
-#define E1_STEP_PIN PE9
-#define E1_DIR_PIN PE8
-#define E1_ENABLE_PIN PC4
-
-#define E2_STEP_PIN PE11
-#define E2_DIR_PIN PE10
-#define E2_ENABLE_PIN PC5
-
-//
-// Misc. Functions
-//
-#define SDSS PA15
-#define LED_PIN PB2
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PD12 // EXTRUDER 1
-//#define HEATER_1_PIN PD13
-
-#define HEATER_BED_PIN PB9 // BED
-//#define HEATER_BED2_PIN -1 // BED2
-//#define HEATER_BED3_PIN -1 // BED3
-
-#ifndef FAN_PIN
- #define FAN_PIN PD14
-#endif
-#define FAN1_PIN PD13
-
-#define FAN_SOFT_PWM
-
-//
-// Temperature Sensors
-//
-#define TEMP_BED_PIN PA0
-#define TEMP_0_PIN PA1
-#define TEMP_1_PIN PA2
-#define TEMP_2_PIN PA3
-
-// Laser control
-#if HAS_CUTTER
- #define SPINDLE_LASER_PWM_PIN PB8
- #define SPINDLE_LASER_ENA_PIN PD5
-#endif
-
-//
-// 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(TOUCH_BUTTONS)
-
- #define TOUCH_CS_PIN PB12 // SPI2_NSS
- #define TOUCH_SCK_PIN PB13
- #define TOUCH_MOSI_PIN PB14
- #define TOUCH_MISO_PIN PB15
- #define TOUCH_INT_PIN PC6 // (PenIRQ coming from ADS7843)
-
- #elif 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
diff --git a/Marlin/src/pins/stm32/pins_THE_BORG.h b/Marlin/src/pins/stm32/pins_THE_BORG.h
deleted file mode 100644
index bfc9507c45..0000000000
--- a/Marlin/src/pins/stm32/pins_THE_BORG.h
+++ /dev/null
@@ -1,187 +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 .
- *
- */
-#pragma once
-
-#ifndef STM32F7
- #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
-#elif HOTENDS > 3 || E_STEPPERS > 3
- #error "The-Borg supports up to 3 hotends / E-steppers."
-#endif
-
-#define BOARD_INFO_NAME "The-Borge"
-#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
-
-#ifndef E2END
- #define E2END 0xFFF // EEPROM end address
-#endif
-
-// Ignore temp readings during development.
-//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
-
-//
-// Limit Switches
-//
-#define X_MIN_PIN PE9
-#define X_MAX_PIN PE10
-#define Y_MIN_PIN PE7
-#define Y_MAX_PIN PE8
-#define Z_MIN_PIN PF15
-#define Z_MAX_PIN PG0
-#define E_MIN_PIN PE2
-#define E_MAX_PIN PE3
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN PA4
-#endif
-
-//
-// Steppers
-//
-#define STEPPER_ENABLE_PIN PE0
-
-#define X_STEP_PIN PC6 // 96, 39 in Arduino
-#define X_DIR_PIN PC7
-#define X_ENABLE_PIN PC8
-
-
-#define Y_STEP_PIN PD9
-#define Y_DIR_PIN PD10
-#define Y_ENABLE_PIN PD11
-
-#define Z_STEP_PIN PE15
-#define Z_DIR_PIN PG1
-#define Z_ENABLE_PIN PD8
-
-
-#define E0_STEP_PIN PB1
-#define E0_DIR_PIN PB2
-#define E0_ENABLE_PIN PE11
-
-
-#define E1_STEP_PIN PC4
-#define E1_DIR_PIN PC5
-#define E1_ENABLE_PIN PB0
-
-
-#define E2_STEP_PIN PC13
-#define E2_DIR_PIN PC14
-#define E2_ENABLE_PIN PC15
-
-#define Z2_STEP_PIN PC13
-#define Z2_DIR_PIN PC14
-#define Z2_ENABLE_PIN PC15
-
-
-#define SCK_PIN PA5
-#define MISO_PIN PA6
-#define MOSI_PIN PA7
-
-#define SPI1_SCK_PIN PA5
-#define SPI1_MISO_PIN PA6
-#define SPI1_MOSI_PIN PA7
-
-#define SPI6_SCK_PIN PG13
-#define SPI6_MISO_PIN PG12
-#define SPI6_MOSI_PIN PG14
-
-//
-// Temperature Sensors
-//
-
-#define TEMP_0_PIN PC3 // Analog Input
-#define TEMP_1_PIN PC2 // Analog Input
-#define TEMP_2_PIN PC1 // Analog Input
-#define TEMP_3_PIN PC0 // Analog Input
-
-#define TEMP_BED_PIN PF10 // Analog Input
-
-#define TEMP_5_PIN PE12 // Analog Input, Probe temp
-
-//
-// Heaters / Fans
-//
-#define HEATER_0_PIN PD15
-#define HEATER_1_PIN PD14
-#define HEATER_BED_PIN PF6
-
-#ifndef FAN_PIN
- #define FAN_PIN PD13
-#endif
-#define FAN1_PIN PA0
-#define FAN2_PIN PA1
-
-#define ORIG_E0_AUTO_FAN_PIN PA1 // 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 PA8
-#define SS_PIN PA8
-#define LED_PIN PA2 // Alive
-#define PS_ON_PIN PA3
-#define KILL_PIN -1 //PD5 // EXP2-10
-#define PWR_LOSS PG5 // Power loss / nAC_FAULT
-
-//
-// MAX7219_DEBUG
-//
-#define MAX7219_CLK_PIN PG10 // EXP1-1
-#define MAX7219_DIN_PIN PD7 // EXP1-3
-#define MAX7219_LOAD_PIN PD1 // EXP1-5
-
-//
-// LCD / Controller
-//
-//#define SD_DETECT_PIN -1 //PB6) // EXP2-4
-#define BEEPER_PIN PG10 // EXP1-1
-#define LCD_PINS_RS PG9 // EXP1-4
-#define LCD_PINS_ENABLE PD7 // EXP1-3
-#define LCD_PINS_D4 PD1 // EXP1-5
-#define LCD_PINS_D5 PF0 // EXP1-6
-#define LCD_PINS_D6 PD3 // EXP1-7
-#define LCD_PINS_D7 PD4 // EXP1-8
-#define BTN_EN1 PD6 // EXP2-5
-#define BTN_EN2 PD0 // EXP2-3
-#define BTN_ENC PG11 // EXP1-2
diff --git a/Marlin/src/pins/stm32/pins_VAKE403D.h b/Marlin/src/pins/stm32/pins_VAKE403D.h
deleted file mode 100644
index 35faf076ab..0000000000
--- a/Marlin/src/pins/stm32/pins_VAKE403D.h
+++ /dev/null
@@ -1,194 +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 .
- *
- */
-#pragma once
-
-#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 DEFAULT_MACHINE_NAME "STM32F446VET6"
-#define BOARD_NAME "STM32F4 VAkE"
-
-//#define I2C_EEPROM
-
-#define E2END 0xFFF // EEPROM end address (4kB)
-
-//
-// Servos
-//
-//#define SERVO0_PIN PE13
-//#define SERVO1_PIN PE14
-
-//
-// Limit Switches
-//
-#define X_STOP_PIN PE10
-#define Y_STOP_PIN PE9
-#define Z_STOP_PIN PE8
-
-//
-// Z Probe (when not Z_MIN_PIN)
-//
-#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN PA4
-#endif
-
-//
-// Filament runout
-//
-#define FIL_RUNOUT_PIN PA3
-
-//
-// Steppers
-//
-
-#define STEPPER_ENABLE_PIN PB2
-
-#define X_STEP_PIN PC6 // X_STEP
-#define X_DIR_PIN PC7 // X_DIR
-#define X_ENABLE_PIN PB2 //
-#ifndef X_CS_PIN
- #define X_CS_PIN PC8 // X_CS
-#endif
-
-#define Y_STEP_PIN PD9 // Y_STEP
-#define Y_DIR_PIN PD10 // Y_DIR
-#define Y_ENABLE_PIN PB2 //
-#ifndef Y_CS_PIN
- #define Y_CS_PIN PD11 // Y_CS
-#endif
-
-#define Z_STEP_PIN PE15 // Z_STEP
-#define Z_DIR_PIN PB10 // Z_DIR
-#define Z_ENABLE_PIN PB2
-#ifndef Z_CS_PIN
- #define Z_CS_PIN PD8
-#endif
-
-#define E0_STEP_PIN PB1
-#define E0_DIR_PIN PB13
-#define E0_ENABLE_PIN PB2
-#ifndef E0_CS_PIN
- #define E0_CS_PIN PE11
-#endif
-
-#define E1_STEP_PIN PC4
-#define E1_DIR_PIN PC5
-#define E1_ENABLE_PIN PB2
-#ifndef E1_CS_PIN
- #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
-
-// 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
-
-//
-// Temperature Sensors (Analog inputs)
-//
-
-#define TEMP_0_PIN PC0 // Analog Input
-#define TEMP_1_PIN PC1 // Analog Input
-#define TEMP_2_PIN PC2 // Analog Input
-#define TEMP_3_PIN PC3 // Analog Input
-#define TEMP_BED_PIN PC3 // Analog Input
-
-//
-// Heaters / Fans
-//
-
-#define HEATER_0_PIN PD15
-#define HEATER_1_PIN PD14
-#define HEATER_BED_PIN PD12
-
-#ifndef FAN_PIN
- #define FAN_PIN PD13
-#endif
-#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
-
-//
-// Misc. Functions
-//
-
-//#define CASE_LIGHT_PIN_CI PF13
-//#define CASE_LIGHT_PIN_DO PF14
-//#define NEOPIXEL_PIN PF13
-
-//
-// Prusa i3 MK2 Multi Material Multiplexer Support
-//
-//#define E_MUX0_PIN PG3
-//#define E_MUX1_PIN PG4
-
-#define LED_PIN PB14 // Alive
-#define PS_ON_PIN PE0
-#define KILL_PIN PD5
-#define POWER_LOSS_PIN PA4 // ?? Power loss / nAC_FAULT
-
-#if ENABLED(SDSUPPORT)
- #define SD_DETECT_PIN PB7
- #define SS_PIN PB_15 // USD_CS -> CS for onboard SD
-#endif
-
-//
-// LCD / Controller
-//
-#if HAS_SPI_LCD
- #if ENABLED(SDSUPPORT)
- #define SDSS PB6 // CS for SD card in LCD
- #endif
- #define BEEPER_PIN PC9
- #define LCD_PINS_RS PC12
- #define LCD_PINS_ENABLE PD7
- #define LCD_PINS_D4 PD1
- #define LCD_PINS_D5 PD2
- #define LCD_PINS_D6 PD3
- #define LCD_PINS_D7 PD4
- #define BTN_EN1 PD6
- #define BTN_EN2 PD0
- #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)
-#endif
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_E3_DIP.h b/Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h
similarity index 51%
rename from Marlin/src/pins/stm32/pins_BTT_SKR_E3_DIP.h
rename to Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h
index f5c35bbdcd..fef8eeb617 100644
--- a/Marlin/src/pins/stm32/pins_BTT_SKR_E3_DIP.h
+++ b/Marlin/src/pins/stm32f1/pins_BTT_SKR_E3_DIP.h
@@ -42,56 +42,56 @@
//
// Servos
//
-#define SERVO0_PIN PA1 // SERVOS
+#define SERVO0_PIN PA1 // SERVOS
//
// Limit Switches
//
-#define X_STOP_PIN PC1 // X-STOP
-#define Y_STOP_PIN PC0 // Y-STOP
-#define Z_STOP_PIN PC15 // Z-STOP
+#define X_STOP_PIN PC1 // X-STOP
+#define Y_STOP_PIN PC0 // Y-STOP
+#define Z_STOP_PIN PC15 // Z-STOP
//
// Z Probe must be this pin
//
-#define Z_MIN_PROBE_PIN PC14 // PROBE
+#define Z_MIN_PROBE_PIN PC14 // PROBE
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PC2 // E0-STOP
+ #define FIL_RUNOUT_PIN PC2 // E0-STOP
#endif
//
// Steppers
//
-#define X_ENABLE_PIN PC7
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PB15
+#define X_ENABLE_PIN PC7
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PB15
#ifndef X_CS_PIN
- #define X_CS_PIN PC10
+ #define X_CS_PIN PC10
#endif
-#define Y_ENABLE_PIN PB14
-#define Y_STEP_PIN PB13
-#define Y_DIR_PIN PB12
+#define Y_ENABLE_PIN PB14
+#define Y_STEP_PIN PB13
+#define Y_DIR_PIN PB12
#ifndef Y_CS_PIN
- #define Y_CS_PIN PC11
+ #define Y_CS_PIN PC11
#endif
-#define Z_ENABLE_PIN PB11
-#define Z_STEP_PIN PB10
-#define Z_DIR_PIN PB2
+#define Z_ENABLE_PIN PB11
+#define Z_STEP_PIN PB10
+#define Z_DIR_PIN PB2
#ifndef Z_CS_PIN
- #define Z_CS_PIN PC12
+ #define Z_CS_PIN PC12
#endif
-#define E0_ENABLE_PIN PB1
-#define E0_STEP_PIN PB0
-#define E0_DIR_PIN PC5
+#define E0_ENABLE_PIN PB1
+#define E0_STEP_PIN PB0
+#define E0_DIR_PIN PC5
#ifndef E0_CS_PIN
- #define E0_CS_PIN PD2
+ #define E0_CS_PIN PD2
#endif
//
@@ -99,17 +99,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PB5
+ #define TMC_SW_MOSI PB5
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB4
+ #define TMC_SW_MISO PB4
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB3
+ #define TMC_SW_SCK PB3
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -124,17 +124,17 @@
//
// Software serial
//
- #define X_SERIAL_TX_PIN PC10
- #define X_SERIAL_RX_PIN PC10
+ #define X_SERIAL_TX_PIN PC10
+ #define X_SERIAL_RX_PIN PC10
- #define Y_SERIAL_TX_PIN PC11
- #define Y_SERIAL_RX_PIN PC11
+ #define Y_SERIAL_TX_PIN PC11
+ #define Y_SERIAL_RX_PIN PC11
- #define Z_SERIAL_TX_PIN PC12
- #define Z_SERIAL_RX_PIN PC12
+ #define Z_SERIAL_TX_PIN PC12
+ #define Z_SERIAL_RX_PIN PC12
- #define E0_SERIAL_TX_PIN PD2
- #define E0_SERIAL_RX_PIN PD2
+ #define E0_SERIAL_TX_PIN PD2
+ #define E0_SERIAL_RX_PIN PD2
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -143,23 +143,23 @@
//
// Temperature Sensors
//
-#define TEMP_0_PIN PA0 // Analog Input "TH0"
-#define TEMP_BED_PIN PC3 // Analog Input "TB0"
+#define TEMP_0_PIN PA0 // Analog Input "TH0"
+#define TEMP_BED_PIN PC3 // Analog Input "TB0"
//
// Heaters / Fans
//
-#define HEATER_0_PIN PC8 // HE
-#define HEATER_BED_PIN PC9 // HB
-#define FAN_PIN PA8 // FAN0
+#define HEATER_0_PIN PC8 // HE
+#define HEATER_BED_PIN PC9 // HB
+#define FAN_PIN PA8 // FAN0
//
// USB connect control
//
-#define USB_CONNECT_PIN PC13
+#define USB_CONNECT_PIN PC13
#define USB_CONNECT_INVERTING false
-#define SD_DETECT_PIN PC4
+#define SD_DETECT_PIN PC4
/**
* _____
@@ -172,27 +172,27 @@
* EXP1
*/
-#define EXPA1_03_PIN PB7
-#define EXPA1_04_PIN PB8
-#define EXPA1_05_PIN PB9
-#define EXPA1_06_PIN PA10
-#define EXPA1_07_PIN -1
-#define EXPA1_08_PIN PA9
-#define EXPA1_09_PIN PB6
-#define EXPA1_10_PIN PA15
+#define EXPA1_03_PIN PB7
+#define EXPA1_04_PIN PB8
+#define EXPA1_05_PIN PB9
+#define EXPA1_06_PIN PA10
+#define EXPA1_07_PIN -1
+#define EXPA1_08_PIN PA9
+#define EXPA1_09_PIN PB6
+#define EXPA1_10_PIN PA15
#if HAS_SPI_LCD
- #define BTN_ENC EXPA1_09_PIN
- #define BTN_EN1 EXPA1_08_PIN
- #define BTN_EN2 EXPA1_06_PIN
+ #define BTN_ENC EXPA1_09_PIN
+ #define BTN_EN1 EXPA1_08_PIN
+ #define BTN_EN2 EXPA1_06_PIN
#if ENABLED(CR10_STOCKDISPLAY)
- #define BEEPER_PIN EXPA1_10_PIN
+ #define BEEPER_PIN EXPA1_10_PIN
- #define LCD_PINS_RS EXPA1_04_PIN
- #define LCD_PINS_ENABLE EXPA1_03_PIN
- #define LCD_PINS_D4 EXPA1_05_PIN
+ #define LCD_PINS_RS EXPA1_04_PIN
+ #define LCD_PINS_ENABLE EXPA1_03_PIN
+ #define LCD_PINS_D4 EXPA1_05_PIN
#elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
@@ -207,12 +207,12 @@
* EXP1
*/
- #define DOGLCD_CS EXPA1_04_PIN
- #define DOGLCD_A0 EXPA1_05_PIN
- #define DOGLCD_SCK EXPA1_10_PIN
- #define DOGLCD_MOSI EXPA1_03_PIN
+ #define DOGLCD_CS EXPA1_04_PIN
+ #define DOGLCD_A0 EXPA1_05_PIN
+ #define DOGLCD_SCK EXPA1_10_PIN
+ #define DOGLCD_MOSI EXPA1_03_PIN
#define FORCE_SOFT_SPI
- #define LCD_BACKLIGHT_PIN -1
+ #define LCD_BACKLIGHT_PIN -1
#else
#error "Only CR10_STOCKDISPLAY, ENDER2_STOCKDISPLAY, and MKS_MINI_12864 are currently supported on the BIGTREE_SKR_E3_DIP."
@@ -226,8 +226,8 @@
#define HAS_ONBOARD_SD
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
-#define ON_BOARD_SPI_DEVICE 1 //SPI1
-#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
+#define ON_BOARD_SPI_DEVICE 1 //SPI1
+#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
diff --git a/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3.h b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3.h
new file mode 100644
index 0000000000..15bc01263a
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3.h
@@ -0,0 +1,191 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef TARGET_STM32F1
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#endif
+
+// Release PB3/PB4 (E0 STP/DIR) from JTAG pins
+#define DISABLE_JTAG
+
+// Ignore temp readings during development.
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+
+#define FLASH_EEPROM_EMULATION
+#define EEPROM_PAGE_SIZE uint16(0x800) // 2KB
+#define EEPROM_START_ADDRESS uint32(0x8000000 + (STM32_FLASH_SIZE) * 1024 - 2 * EEPROM_PAGE_SIZE)
+#undef E2END
+#define E2END (EEPROM_PAGE_SIZE - 1) // 2KB
+
+//
+// Servos
+//
+#define SERVO0_PIN PA1
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PC0
+#define Y_STOP_PIN PC1
+#define Z_STOP_PIN PC2
+
+//
+// Z Probe must be this pins
+//
+#define Z_MIN_PROBE_PIN PC14
+
+//
+// Filament Runout Sensor
+//
+#ifndef FIL_RUNOUT_PIN
+ #define FIL_RUNOUT_PIN PC15 // "E0-STOP"
+#endif
+
+//
+// Steppers
+//
+#define X_ENABLE_PIN PB14
+#define X_STEP_PIN PB13
+#define X_DIR_PIN PB12
+
+#define Y_ENABLE_PIN PB11
+#define Y_STEP_PIN PB10
+#define Y_DIR_PIN PB2
+
+#define Z_ENABLE_PIN PB1
+#define Z_STEP_PIN PB0
+#define Z_DIR_PIN PC5
+
+#define E0_ENABLE_PIN PD2
+#define E0_STEP_PIN PB3
+#define E0_DIR_PIN PB4
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PA0 // Analog Input
+#define TEMP_BED_PIN PC3 // Analog Input
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PC8 // EXTRUDER
+#define HEATER_BED_PIN PC9 // BED
+#define FAN_PIN PA8
+
+//
+// USB connect control
+//
+#define USB_CONNECT_PIN PC13
+#define USB_CONNECT_INVERTING false
+
+#define SD_DETECT_PIN PC4
+
+/**
+ * _____
+ * 5V | 1 2 | GND
+ * (LCD_EN) PB7 | 3 4 | PB8 (LCD_RS)
+ * (LCD_D4) PB9 | 5 6 PA10 (BTN_EN2)
+ * RESET | 7 8 | PA9 (BTN_EN1)
+ * (BTN_ENC) PB6 | 9 10| PB5 (BEEPER)
+ * -----
+ * EXP1
+ */
+
+#define EXPA1_03_PIN PB7
+#define EXPA1_04_PIN PB8
+#define EXPA1_05_PIN PB9
+#define EXPA1_06_PIN PA10
+#define EXPA1_07_PIN -1
+#define EXPA1_08_PIN PA9
+#define EXPA1_09_PIN PB6
+#define EXPA1_10_PIN PB5
+
+#if HAS_SPI_LCD
+
+ #if ENABLED(CR10_STOCKDISPLAY)
+
+ #define BEEPER_PIN EXPA1_10_PIN
+
+ #define BTN_EN1 EXPA1_08_PIN
+ #define BTN_EN2 EXPA1_06_PIN
+ #define BTN_ENC EXPA1_09_PIN
+
+ #define LCD_PINS_RS EXPA1_04_PIN
+ #define LCD_PINS_ENABLE EXPA1_03_PIN
+ #define LCD_PINS_D4 EXPA1_05_PIN
+
+ #elif ENABLED(ZONESTAR_LCD) // ANET A8 LCD Controller - Must convert to 3.3V - CONNECTING TO 5V WILL DAMAGE THE BOARD!
+
+ #error "CAUTION! ZONESTAR_LCD requires wiring modifications. See 'pins_BTT_SKR_MINI_E3.h' for details. Comment out this line to continue."
+
+ #define LCD_PINS_RS EXPA1_05_PIN
+ #define LCD_PINS_ENABLE EXPA1_09_PIN
+ #define LCD_PINS_D4 EXPA1_04_PIN
+ #define LCD_PINS_D5 EXPA1_06_PIN
+ #define LCD_PINS_D6 EXPA1_08_PIN
+ #define LCD_PINS_D7 EXPA1_10_PIN
+ #define ADC_KEYPAD_PIN PA1 // Repurpose servo pin for ADC - CONNECTING TO 5V WILL DAMAGE THE BOARD!
+
+ #elif EITHER(MKS_MINI_12864, ENDER2_STOCKDISPLAY)
+
+ /** Creality Ender-2 display pinout
+ * _____
+ * 5V | 1 2 | GND
+ * (MOSI) PB7 | 3 4 | PB8 (LCD_RS)
+ * (LCD_A0) PB9 | 5 6 PA10 (BTN_EN2)
+ * RESET | 7 8 | PA9 (BTN_EN1)
+ * (BTN_ENC) PB6 | 9 10| PB5 (SCK)
+ * -----
+ * EXP1
+ */
+ #define BTN_EN1 EXPA1_08_PIN
+ #define BTN_EN2 EXPA1_06_PIN
+ #define BTN_ENC EXPA1_09_PIN
+
+ #define DOGLCD_CS EXPA1_04_PIN
+ #define DOGLCD_A0 EXPA1_05_PIN
+ #define DOGLCD_SCK EXPA1_10_PIN
+ #define DOGLCD_MOSI EXPA1_03_PIN
+ #define FORCE_SOFT_SPI
+ #define LCD_BACKLIGHT_PIN -1
+
+ #else
+
+ #error "Only ZONESTAR_LCD, MKS_MINI_12864, ENDER2_STOCKDISPLAY, and CR10_STOCKDISPLAY are currently supported on the BIGTREE_SKR_MINI_E3."
+
+ #endif
+
+#endif // HAS_SPI_LCD
+
+//
+// SD Support
+//
+#define HAS_ONBOARD_SD
+
+#ifndef SDCARD_CONNECTION
+ #define SDCARD_CONNECTION ONBOARD
+#endif
+
+#define ON_BOARD_SPI_DEVICE 1 // SPI1
+#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3_V1_0.h b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h
similarity index 100%
rename from Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3_V1_0.h
rename to Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_0.h
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3_V1_2.h b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h
similarity index 70%
rename from Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3_V1_2.h
rename to Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h
index 5701dd5c56..961620ee8b 100644
--- a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_E3_V1_2.h
+++ b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_V1_2.h
@@ -25,26 +25,26 @@
#define BOARD_INFO_NAME "BIGTREE SKR Mini E3 V1.2"
-#define NEOPIXEL_PIN PC7 // LED driving pin
+#define NEOPIXEL_PIN PC7 // LED driving pin
/**
* TMC2208/TMC2209 stepper drivers
*/
-#if HAS_TMC220x
+#if HAS_TMC_UART
//
// Software serial
//
- #define X_SERIAL_TX_PIN PB15
- #define X_SERIAL_RX_PIN PB15
+ #define X_SERIAL_TX_PIN PB15
+ #define X_SERIAL_RX_PIN PB15
- #define Y_SERIAL_TX_PIN PC6
- #define Y_SERIAL_RX_PIN PC6
+ #define Y_SERIAL_TX_PIN PC6
+ #define Y_SERIAL_RX_PIN PC6
- #define Z_SERIAL_TX_PIN PC10
- #define Z_SERIAL_RX_PIN PC10
+ #define Z_SERIAL_TX_PIN PC10
+ #define Z_SERIAL_RX_PIN PC10
- #define E0_SERIAL_TX_PIN PC11
- #define E0_SERIAL_RX_PIN PC11
+ #define E0_SERIAL_TX_PIN PC11
+ #define E0_SERIAL_RX_PIN PC11
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
diff --git a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_V1_1.h b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
similarity index 51%
rename from Marlin/src/pins/stm32/pins_BTT_SKR_MINI_V1_1.h
rename to Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
index 08f666882e..fff3af5b6b 100644
--- a/Marlin/src/pins/stm32/pins_BTT_SKR_MINI_V1_1.h
+++ b/Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
@@ -41,57 +41,57 @@
//
// Limit Switches
//
-#define X_MIN_PIN PC2
-#define X_MAX_PIN PA2
-#define Y_MIN_PIN PC1
-#define Y_MAX_PIN PA1
-#define Z_MIN_PIN PC0
-#define Z_MAX_PIN PC3
+#define X_MIN_PIN PC2
+#define X_MAX_PIN PA2
+#define Y_MIN_PIN PC1
+#define Y_MAX_PIN PA1
+#define Z_MIN_PIN PC0
+#define Z_MAX_PIN PC3
//
// Steppers
//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PC7
-#define X_ENABLE_PIN PB15
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PC7
+#define X_ENABLE_PIN PB15
-#define Y_STEP_PIN PB13
-#define Y_DIR_PIN PB14
-#define Y_ENABLE_PIN PB12
+#define Y_STEP_PIN PB13
+#define Y_DIR_PIN PB14
+#define Y_ENABLE_PIN PB12
-#define Z_STEP_PIN PB10
-#define Z_DIR_PIN PB11
-#define Z_ENABLE_PIN PB2
+#define Z_STEP_PIN PB10
+#define Z_DIR_PIN PB11
+#define Z_ENABLE_PIN PB2
-#define E0_STEP_PIN PC5
-#define E0_DIR_PIN PB0
-#define E0_ENABLE_PIN PC4
+#define E0_STEP_PIN PC5
+#define E0_DIR_PIN PB0
+#define E0_ENABLE_PIN PC4
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB3
+ #define TMC_SW_SCK PB3
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB4
+ #define TMC_SW_MISO PB4
#endif
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PB5
+ #define TMC_SW_MOSI PB5
#endif
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN PA8
-#define FAN_PIN PC8
-#define HEATER_BED_PIN PC9
+#define HEATER_0_PIN PA8
+#define FAN_PIN PC8
+#define HEATER_BED_PIN PC9
//
// Temperature Sensors
//
-#define TEMP_BED_PIN PB1 // Analog Input
-#define TEMP_0_PIN PA0 // Analog Input
+#define TEMP_BED_PIN PB1 // Analog Input
+#define TEMP_0_PIN PA0 // Analog Input
//
// LCD Pins
@@ -109,41 +109,41 @@
*/
#if HAS_SPI_LCD
- #define BEEPER_PIN PC10
- #define BTN_ENC PC11
+ #define BEEPER_PIN PC10
+ #define BTN_ENC PC11
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS PC15
+ #define LCD_PINS_RS PC15
- #define BTN_EN1 PB6
- #define BTN_EN2 PC13
+ #define BTN_EN1 PB6
+ #define BTN_EN2 PC13
- #define LCD_PINS_ENABLE PC14
- #define LCD_PINS_D4 PB7
+ #define LCD_PINS_ENABLE PC14
+ #define LCD_PINS_D4 PB7
#else
- #define LCD_PINS_RS PC12
+ #define LCD_PINS_RS PC12
- #define BTN_EN1 PD2
- #define BTN_EN2 PB8
+ #define BTN_EN1 PD2
+ #define BTN_EN2 PB8
- #define LCD_PINS_ENABLE PB6
+ #define LCD_PINS_ENABLE PB6
#if ENABLED(FYSETC_MINI_12864)
- #define LCD_BACKLIGHT_PIN -1
- #define LCD_RESET_PIN PC13
- #define DOGLCD_A0 PC12
- #define DOGLCD_CS PB6
- #define DOGLCD_SCK PB3
- #define DOGLCD_MOSI PB5
+ #define LCD_BACKLIGHT_PIN -1
+ #define LCD_RESET_PIN PC13
+ #define DOGLCD_A0 PC12
+ #define DOGLCD_CS PB6
+ #define DOGLCD_SCK PB3
+ #define DOGLCD_MOSI PB5
- #define FORCE_SOFT_SPI // SPI MODE3
+ #define FORCE_SOFT_SPI // SPI MODE3
- #define LED_PIN PB7 // red pwm
- //#define LED_PIN PC15 // green
- //#define LED_PIN PC14 // blue
+ #define LED_PIN PB7 // red pwm
+ //#define LED_PIN PC15 // green
+ //#define LED_PIN PC14 // blue
//#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
// #ifndef RGB_LED_R_PIN
@@ -159,13 +159,13 @@
// #define NEOPIXEL_PIN PB7
//#endif
- #else // !FYSETC_MINI_12864
+ #else // !FYSETC_MINI_12864
- #define LCD_PINS_D4 PC13
+ #define LCD_PINS_D4 PC13
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PB7
- #define LCD_PINS_D6 PC15
- #define LCD_PINS_D7 PC14
+ #define LCD_PINS_D5 PB7
+ #define LCD_PINS_D6 PC15
+ #define LCD_PINS_D7 PC14
#endif
#endif // !FYSETC_MINI_12864
@@ -182,26 +182,26 @@
// set SDCARD_CONNECTION form 'ONBOARD' to 'LCD' and use an external SD (connected to LCD)
#define HAS_ONBOARD_SD
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
#if SD_CONNECTION_IS(LCD)
#define ENABLE_SPI3
- #define SD_DETECT_PIN PB9
- #define SCK_PIN PB3
- #define MISO_PIN PB4
- #define MOSI_PIN PB5
- #define SS_PIN PA15
+ #define SD_DETECT_PIN PB9
+ #define SCK_PIN PB3
+ #define MISO_PIN PB4
+ #define MOSI_PIN PB5
+ #define SS_PIN PA15
#elif SD_CONNECTION_IS(ONBOARD)
#define ENABLE_SPI1
- #define SD_DETECT_PIN PA3
- #define SCK_PIN PA5
- #define MISO_PIN PA6
- #define MOSI_PIN PA7
- #define SS_PIN PA4
+ #define SD_DETECT_PIN PA3
+ #define SCK_PIN PA5
+ #define MISO_PIN PA6
+ #define MOSI_PIN PA7
+ #define SS_PIN PA4
#endif
-#define ON_BOARD_SPI_DEVICE 1 //SPI1
-#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
+#define ON_BOARD_SPI_DEVICE 1 //SPI1
+#define ONBOARD_SD_CS_PIN PA4 // Chip select for "System" SD card
#if HAS_GRAPHICAL_LCD
#define BOARD_ST7920_DELAY_1 DELAY_NS(125)
diff --git a/Marlin/src/pins/stm32f1/pins_CHITU3D.h b/Marlin/src/pins/stm32f1/pins_CHITU3D.h
new file mode 100644
index 0000000000..b9272c7211
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_CHITU3D.h
@@ -0,0 +1,281 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#if !defined(__STM32F1__) && !defined(__STM32F4__)
+ #error "Oops! Select an STM32F1/4 board in 'Tools > Board.'"
+#endif
+
+/**
+ * 2017 Victor Perez Marlin for stm32f1 test
+ */
+
+#define BOARD_INFO_NAME "Chitu3D"
+#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 PE5
+#define X_DIR_PIN PE6
+#define X_ENABLE_PIN PC13
+#define X_MIN_PIN PG10
+#define X_MAX_PIN -1
+
+#define Y_STEP_PIN PE2
+#define Y_DIR_PIN PE3
+#define Y_ENABLE_PIN PE4
+#define Y_MIN_PIN PA12
+#define Y_MAX_PIN
+
+#define Z_STEP_PIN PB9
+#define Z_DIR_PIN PE0
+#define Z_ENABLE_PIN PE1
+#define Z_MIN_PIN PA14
+#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 PB4
+#define E0_DIR_PIN PB5
+#define E0_ENABLE_PIN PB8
+
+#define E1_STEP_PIN -1
+#define E1_DIR_PIN -1
+#define E1_ENABLE_PIN -1
+
+#define E2_STEP_PIN -1
+#define E2_DIR_PIN -1
+#define E2_ENABLE_PIN -1
+
+//
+// Misc. Functions
+//
+#define SDSS -1
+#define LED_PIN -1
+#define CASE_LIGHT_PIN PA8 // 8
+
+#define PS_ON_PIN -1
+#define KILL_PIN PD6 // LED strip 24v
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PD12 // HOT-END
+#define HEATER_1_PIN -1
+#define HEATER_2_PIN -1
+
+#define HEATER_BED_PIN PG11 // HOT-BED
+#define HEATER_BED2_PIN -1 // BED2
+#define HEATER_BED3_PIN -1 // BED3
+
+#ifndef FAN_PIN
+ #define FAN_PIN PG14 // MAIN BOARD FAN
+#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 -1 // Analog Input
+#define TEMP_2_PIN -1 // Analog Input
+
+//
+// LCD Pins
+//
+#if HAS_SPI_LCD
+
+ #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
+ #define LCD_PINS_RS PD1 // 49 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE PD3 // 51 // SID (MOSI)
+ #define LCD_PINS_D4 PD4 // 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 PC1 // 33
+ // Buttons attached to a shift register
+ // Not wired yet
+ //#define SHIFT_CLK PC6 // 38
+ //#define SHIFT_LD PC10 // 42
+ //#define SHIFT_OUT PC8 // 40
+ //#define SHIFT_EN PA1 // 17
+ #endif
+ #endif
+
+ #if ENABLED(NEWPANEL)
+
+ #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
+
+ #define BEEPER_PIN PC5
+
+ #define BTN_EN1 PB15 // 31
+ #define BTN_EN2 PC1 // 33
+ #define BTN_ENC PC3 // 35
+
+ #define SD_DETECT_PIN PD1 // 49
+ #define KILL_PIN PC9 // 41
+
+ #if ENABLED(BQ_LCD_SMART_CONTROLLER)
+ #define LCD_BACKLIGHT_PIN PC7 // 39
+ #endif
+
+ #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
+
+ #define BTN_EN1 PE0 // 64
+ #define BTN_EN2 PD11 // 59
+ #define BTN_ENC PD15 // 63
+ #define SD_DETECT_PIN PC10 // 42
+
+ #elif ENABLED(LCD_I2C_PANELOLU2)
+
+ #define BTN_EN1 PC15 // 47
+ #define BTN_EN2 PC11 // 43
+ #define BTN_ENC PC0 // 32
+ #define LCD_SDSS PD5 // 53
+ #define SD_DETECT_PIN -1
+ #define KILL_PIN PC9 // 41
+
+ #elif ENABLED(LCD_I2C_VIKI)
+
+ #define BTN_EN1 PB6 // 22 // http://files.panucatt.com/datasheets/viki_wiring_diagram.pdf explains 40/42.
+ #define BTN_EN2 PA7 // 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 PD5 // 53
+ #define SD_DETECT_PIN PD1 // 49
+
+ #elif ANY(VIKI2, miniVIKI)
+
+ #define BEEPER_PIN PC1 // 33
+
+ // Pins for DOGM SPI LCD Support
+ #define DOGLCD_A0 PC12 // 44
+ #define DOGLCD_CS PC13 // 45
+ #define LCD_SCREEN_ROT_180
+
+ #define BTN_EN1 PB6 // 22
+ #define BTN_EN2 PA7 // 7
+ #define BTN_ENC PC7 // 39
+
+ #define SDSS PD5 // 53
+ #define SD_DETECT_PIN -1 // Pin 49 for display sd interface, 72 for easy adapter board
+
+ #define KILL_PIN PB15 // 31
+
+ #define STAT_LED_RED_PIN PC0 // 32
+ #define STAT_LED_BLUE_PIN PC3 // 35
+
+ #elif ENABLED(ELB_FULL_GRAPHIC_CONTROLLER)
+ #define BTN_EN1 PC3 // 35
+ #define BTN_EN2 PC5 // 37
+ #define BTN_ENC PB15 // 31
+ #define SD_DETECT_PIN PD1 // 49
+ #define LCD_SDSS PD5 // 53
+ #define KILL_PIN PC9 // 41
+ #define BEEPER_PIN PB7 // 23
+ #define DOGLCD_CS PB13 // 29
+ #define DOGLCD_A0 PB11 // 27
+ #define LCD_BACKLIGHT_PIN PC1 // 33
+
+ #elif ENABLED(MINIPANEL)
+
+ #define BEEPER_PIN PC10 // 42
+ // Pins for DOGM SPI LCD Support
+ #define DOGLCD_A0 PC12 // 44
+ #define DOGLCD_CS PE2 // 66
+ #define LCD_BACKLIGHT_PIN PE1 // 65 // backlight LED on A11/D65
+ #define SDSS PD5 // 53
+
+ #define KILL_PIN PE0 // 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 PC8 // 40
+ #define BTN_EN2 PD15 // 63
+ #define BTN_ENC PD11 // 59
+ // not connected to a pin
+ #define SD_DETECT_PIN PD1 // 49
+
+ #else
+
+ // Beeper on AUX-4
+ #define BEEPER_PIN PC1 // 33
+
+ // Buttons directly attached to AUX-2
+ #if ENABLED(REPRAPWORLD_KEYPAD)
+ #define BTN_EN1 PE0 // 64
+ #define BTN_EN2 PD11 // 59
+ #define BTN_ENC PD15 // 63
+ #define SHIFT_OUT PC8 // 40
+ #define SHIFT_CLK PC12 // 44
+ #define SHIFT_LD PC10 // 42
+ #elif ENABLED(PANEL_ONE)
+ #define BTN_EN1 PD11 // 59 // AUX2 PIN 3
+ #define BTN_EN2 PD15 // 63 // AUX2 PIN 4
+ #define BTN_ENC PD1 // 49 // AUX3 PIN 7
+ #else
+ #define BTN_EN1 PC5 // 37
+ #define BTN_EN2 PC3 // 35
+ #define BTN_ENC PB15 // 31
+ #endif
+
+ #if ENABLED(G3D_PANEL)
+ #define SD_DETECT_PIN PD1 // 49
+ #define KILL_PIN PC9 // 41
+ #else
+ //#define SD_DETECT_PIN -1 // Ramps doesn't use this
+ #endif
+
+ #endif
+ #endif // NEWPANEL
+
+#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/stm32/pins_FYSETC_AIO_II.h b/Marlin/src/pins/stm32f1/pins_FYSETC_AIO_II.h
similarity index 55%
rename from Marlin/src/pins/stm32/pins_FYSETC_AIO_II.h
rename to Marlin/src/pins/stm32f1/pins_FYSETC_AIO_II.h
index db76042ab7..dcd1119c86 100644
--- a/Marlin/src/pins/stm32/pins_FYSETC_AIO_II.h
+++ b/Marlin/src/pins/stm32f1/pins_FYSETC_AIO_II.h
@@ -46,55 +46,55 @@
//
// Limit Switches
//
-#define X_STOP_PIN PA1
-#define Y_STOP_PIN PA0
-#define Z_STOP_PIN PB14
+#define X_STOP_PIN PA1
+#define Y_STOP_PIN PA0
+#define Z_STOP_PIN PB14
//
// Filament runout
//
#ifdef pins_v2_20190128
- #define FIL_RUNOUT_PIN PB15
+ #define FIL_RUNOUT_PIN PB15
#else
- #define FIL_RUNOUT_PIN PB5
+ #define FIL_RUNOUT_PIN PB5
#endif
//
// Steppers
//
-#define X_STEP_PIN PB8
-#define X_DIR_PIN PB9
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PB8
+#define X_DIR_PIN PB9
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PB2
+#define Y_STEP_PIN PB2
#ifdef pins_v2_20190128
- #define Y_DIR_PIN PB3
+ #define Y_DIR_PIN PB3
#else
- #define Y_DIR_PIN PB0
+ #define Y_DIR_PIN PB0
#endif
-#define Y_ENABLE_PIN PB1
+#define Y_ENABLE_PIN PB1
-#define Z_STEP_PIN PC0
-#define Z_DIR_PIN PC1
-#define Z_ENABLE_PIN PC2
+#define Z_STEP_PIN PC0
+#define Z_DIR_PIN PC1
+#define Z_ENABLE_PIN PC2
-#define E0_STEP_PIN PC15
-#define E0_DIR_PIN PC14
-#define E0_ENABLE_PIN PC13
+#define E0_STEP_PIN PC15
+#define E0_DIR_PIN PC14
+#define E0_ENABLE_PIN PC13
//
// Stepper current PWM
//
// X:PA2 Y:PA3 Z:PB12 E:PB13 // changed for test
-//#define MOTOR_CURRENT_PWM_XY_PIN PA3
-//#define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
-//#define MOTOR_CURRENT_PWM_XY_PIN PB6
-//#define MOTOR_CURRENT_PWM_Z_PIN PB7 // PB12
-//#define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
+//#define MOTOR_CURRENT_PWM_XY_PIN PA3
+//#define MOTOR_CURRENT_PWM_Z_PIN PA2 // PB12
+//#define MOTOR_CURRENT_PWM_XY_PIN PB6
+//#define MOTOR_CURRENT_PWM_Z_PIN PB7 // PB12
+//#define MOTOR_CURRENT_PWM_E_PIN -1 // PB13
// Motor current PWM conversion, PWM value = MotorCurrentSetting * 255 / range
#ifndef MOTOR_CURRENT_PWM_RANGE
- #define MOTOR_CURRENT_PWM_RANGE 1500 // geo-f:old 2000
+ #define MOTOR_CURRENT_PWM_RANGE 1500 // geo-f:old 2000
#endif
#define DEFAULT_PWM_MOTOR_CURRENT {500, 500, 400} // geo-f:old 1300 1300 1250
@@ -112,37 +112,37 @@
//
// Heaters / Fans
//
-#define HEATER_0_PIN PC7
-#define HEATER_BED_PIN PC6
+#define HEATER_0_PIN PC7
+#define HEATER_BED_PIN PC6
#ifndef FAN_PIN
- #define FAN_PIN PC8
+ #define FAN_PIN PC8
#endif
//
// Temperature Sensors
//
-#define TEMP_BED_PIN PC5 // Analog Input
-#define TEMP_0_PIN PC4 // Analog Input
+#define TEMP_BED_PIN PC5 // Analog Input
+#define TEMP_0_PIN PC4 // Analog Input
//
// Misc. Functions
//
-#define SDSS PA4
+#define SDSS PA4
//
// LCD Pins
//
#if HAS_SPI_LCD
- #define BEEPER_PIN PC9
+ #define BEEPER_PIN PC9
#if HAS_GRAPHICAL_LCD
- #define DOGLCD_A0 PA15
+ #define DOGLCD_A0 PA15
#ifdef pins_v2_20190128
- #define DOGLCD_CS PB5
+ #define DOGLCD_CS PB5
#else
- #define DOGLCD_CS PB7
+ #define DOGLCD_CS PB7
#endif
//#define LCD_CONTRAST_INIT 190
@@ -153,36 +153,36 @@
#endif
// not connected to a pin
- #define SD_DETECT_PIN PC3
+ #define SD_DETECT_PIN PC3
#if ENABLED(NEWPANEL)
// The encoder and click button
- #define BTN_EN1 PC10
- #define BTN_EN2 PC11
- #define BTN_ENC PC12
+ #define BTN_EN1 PC10
+ #define BTN_EN2 PC11
+ #define BTN_ENC PC12
#endif
#ifdef pins_v2_20190128
- #define LCD_RESET_PIN PB4
+ #define LCD_RESET_PIN PB4
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN PB0
+ #define RGB_LED_R_PIN PB0
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB6
+ #define RGB_LED_G_PIN PB6
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB7
+ #define RGB_LED_B_PIN PB7
#endif
#else
- #define LCD_RESET_PIN PB6
+ #define LCD_RESET_PIN PB6
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN PB3
+ #define RGB_LED_R_PIN PB3
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB4
+ #define RGB_LED_G_PIN PB4
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB5
+ #define RGB_LED_B_PIN PB5
#endif
#endif
diff --git a/Marlin/src/pins/stm32/pins_FYSETC_CHEETAH.h b/Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH.h
similarity index 53%
rename from Marlin/src/pins/stm32/pins_FYSETC_CHEETAH.h
rename to Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH.h
index a845ed161b..e726ca1831 100644
--- a/Marlin/src/pins/stm32/pins_FYSETC_CHEETAH.h
+++ b/Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH.h
@@ -44,38 +44,38 @@
//
// Servos
//
-#define SERVO0_PIN PA0
+#define SERVO0_PIN PA0
//
// Limit Switches
//
-#define X_STOP_PIN PA1
-#define Y_STOP_PIN PB4
-#define Z_STOP_PIN PA15
+#define X_STOP_PIN PA1
+#define Y_STOP_PIN PB4
+#define Z_STOP_PIN PA15
//
// Filament runout
//
-#define FIL_RUNOUT_PIN PB5
+#define FIL_RUNOUT_PIN PB5
//
// Steppers
//
-#define X_STEP_PIN PB8
-#define X_DIR_PIN PB9
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PB8
+#define X_DIR_PIN PB9
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PB2
-#define Y_DIR_PIN PB3
-#define Y_ENABLE_PIN PB1
+#define Y_STEP_PIN PB2
+#define Y_DIR_PIN PB3
+#define Y_ENABLE_PIN PB1
-#define Z_STEP_PIN PC0
-#define Z_DIR_PIN PC1
-#define Z_ENABLE_PIN PC2
+#define Z_STEP_PIN PC0
+#define Z_DIR_PIN PC1
+#define Z_ENABLE_PIN PC2
-#define E0_STEP_PIN PC15
-#define E0_DIR_PIN PC14
-#define E0_ENABLE_PIN PC13
+#define E0_STEP_PIN PC15
+#define E0_DIR_PIN PC14
+#define E0_ENABLE_PIN PC13
#define X_HARDWARE_SERIAL MSerial2
#define Y_HARDWARE_SERIAL MSerial2
@@ -85,35 +85,35 @@
//
// Heaters / Fans
//
-#define HEATER_0_PIN PC6
-#define HEATER_BED_PIN PC7
+#define HEATER_0_PIN PC6
+#define HEATER_BED_PIN PC7
#ifndef FAN_PIN
- #define FAN_PIN PC8
+ #define FAN_PIN PC8
#endif
//
// Temperature Sensors
//
-#define TEMP_BED_PIN PC5 // Analog Input
-#define TEMP_0_PIN PC4 // Analog Input
+#define TEMP_BED_PIN PC5 // Analog Input
+#define TEMP_0_PIN PC4 // Analog Input
//
// Misc. Functions
//
-#define SDSS PA4
+#define SDSS PA4
//
// LCD Pins
//
#if HAS_SPI_LCD
- #define BEEPER_PIN PC9
+ #define BEEPER_PIN PC9
#if HAS_GRAPHICAL_LCD
- #define DOGLCD_A0 PB14
- #define DOGLCD_CS PB12
- #define DOGLCD_SCK PB13
- #define DOGLCD_MOSI PB15
+ #define DOGLCD_A0 PB14
+ #define DOGLCD_CS PB12
+ #define DOGLCD_SCK PB13
+ #define DOGLCD_MOSI PB15
//#define LCD_SCREEN_ROT_90
//#define LCD_SCREEN_ROT_180
//#define LCD_SCREEN_ROT_270
@@ -123,29 +123,29 @@
#endif
#endif
- #define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
- #define LCD_PINS_D4 PB13 // SCLK
- #define LCD_PINS_ENABLE PB15 // DATA MOSI
+ #define LCD_PINS_RS PB12 // CS -- SOFT SPI for ENDER3 LCD
+ #define LCD_PINS_D4 PB13 // SCLK
+ #define LCD_PINS_ENABLE PB15 // DATA MOSI
// not connected to a pin
- #define SD_DETECT_PIN PC3
+ #define SD_DETECT_PIN PC3
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN PB0
+ #define RGB_LED_R_PIN PB0
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB7
+ #define RGB_LED_G_PIN PB7
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB6
+ #define RGB_LED_B_PIN PB6
#endif
//#define LCD_CONTRAST_INIT 190
#if ENABLED(NEWPANEL)
- #define BTN_EN1 PC11
- #define BTN_EN2 PC10
- #define BTN_ENC PC12
+ #define BTN_EN1 PC11
+ #define BTN_EN2 PC10
+ #define BTN_ENC PC12
#endif
#endif
diff --git a/Marlin/src/pins/stm32/pins_FYSETC_CHEETAH_V12.h b/Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH_V12.h
similarity index 74%
rename from Marlin/src/pins/stm32/pins_FYSETC_CHEETAH_V12.h
rename to Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH_V12.h
index 5f7136c156..9c6412c0cb 100644
--- a/Marlin/src/pins/stm32/pins_FYSETC_CHEETAH_V12.h
+++ b/Marlin/src/pins/stm32f1/pins_FYSETC_CHEETAH_V12.h
@@ -36,9 +36,9 @@
#undef RGB_LED_G_PIN
#undef RGB_LED_B_PIN
-#define FAN1_PIN PB0 // Fan1
+#define FAN1_PIN PB0 // Fan1
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
@@ -47,17 +47,17 @@
//
// Software serial
//
- #define X_SERIAL_TX_PIN PA11
- #define X_SERIAL_RX_PIN PA12
+ #define X_SERIAL_TX_PIN PA11
+ #define X_SERIAL_RX_PIN PA12
- #define Y_SERIAL_TX_PIN PB6
- #define Y_SERIAL_RX_PIN PB7
+ #define Y_SERIAL_TX_PIN PB6
+ #define Y_SERIAL_RX_PIN PB7
- #define Z_SERIAL_TX_PIN PB10
- #define Z_SERIAL_RX_PIN PB11
+ #define Z_SERIAL_TX_PIN PB10
+ #define Z_SERIAL_RX_PIN PB11
- #define E0_SERIAL_TX_PIN PA2
- #define E0_SERIAL_RX_PIN PA3
+ #define E0_SERIAL_TX_PIN PA2
+ #define E0_SERIAL_RX_PIN PA3
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
diff --git a/Marlin/src/pins/stm32/pins_GTM32_MINI.h b/Marlin/src/pins/stm32f1/pins_GTM32_MINI.h
similarity index 54%
rename from Marlin/src/pins/stm32/pins_GTM32_MINI.h
rename to Marlin/src/pins/stm32f1/pins_GTM32_MINI.h
index a35bd29888..38cc615f64 100644
--- a/Marlin/src/pins/stm32/pins_GTM32_MINI.h
+++ b/Marlin/src/pins/stm32f1/pins_GTM32_MINI.h
@@ -53,32 +53,32 @@
// Enable EEPROM Emulation for this board as it doesn't have EEPROM
#define FLASH_EEPROM_EMULATION
-#define E2END 0xFFF // 4KB
+#define E2END 0xFFF // 4KB
//
// Limit Switches
//
-#define X_MIN_PIN PE5 // ENDSTOPS 15,17
-#define X_MAX_PIN PE4 // ENDSTOPS 16,18
-#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
-#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
-#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
-#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
+#define X_MIN_PIN PE5 // ENDSTOPS 15,17
+#define X_MAX_PIN PE4 // ENDSTOPS 16,18
+#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
+#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
+#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
+#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
//
// Steppers
//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PD13
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PD13
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PA12
-#define Y_DIR_PIN PA11
-#define Y_ENABLE_PIN PA15
+#define Y_STEP_PIN PA12
+#define Y_DIR_PIN PA11
+#define Y_ENABLE_PIN PA15
-#define Z_STEP_PIN PD6
-#define Z_DIR_PIN PD3
-#define Z_ENABLE_PIN PB3
+#define Z_STEP_PIN PD6
+#define Z_DIR_PIN PD3
+#define Z_ENABLE_PIN PB3
// Extruder stepper pins
// NOTE: Numbering here is made according to EXT connector numbers,
@@ -86,46 +86,46 @@
// That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
// stick that drives the EXT0 output on the board.
//
-#define E0_STEP_PIN PC14
-#define E0_DIR_PIN PC13
-#define E0_ENABLE_PIN PC15
+#define E0_STEP_PIN PC14
+#define E0_DIR_PIN PC13
+#define E0_ENABLE_PIN PC15
-#define E1_STEP_PIN PA0
-#define E1_DIR_PIN PB6
-#define E1_ENABLE_PIN PA1
+#define E1_STEP_PIN PA0
+#define E1_DIR_PIN PB6
+#define E1_ENABLE_PIN PA1
-#define E2_STEP_PIN PB2
-#define E2_DIR_PIN PB11
-#define E2_ENABLE_PIN PC4
+#define E2_STEP_PIN PB2
+#define E2_DIR_PIN PB11
+#define E2_ENABLE_PIN PC4
//
// Heaters / Fans
//
-#define HEATER_0_PIN PB0 // EXT0 port
-#define HEATER_1_PIN PB5 // EXT1 port
-#define HEATER_2_PIN PB4 // EXT2 port
-#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
+#define HEATER_0_PIN PB0 // EXT0 port
+#define HEATER_1_PIN PB5 // EXT1 port
+#define HEATER_2_PIN PB4 // EXT2 port
+#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
//
// These are FAN PWM pins on EXT0..EXT2 connectors.
//
-//#define FAN_PIN PB9 // EXT0 port
-#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
-#define FAN1_PIN PB8 // EXT1 port
-#define FAN2_PIN PB7 // EXT2 port
+//#define FAN_PIN PB9 // EXT0 port
+#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
+#define FAN1_PIN PB8 // EXT1 port
+#define FAN2_PIN PB7 // EXT2 port
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC2 // EXT0 port
-#define TEMP_1_PIN PC1 // EXT1 port
-#define TEMP_2_PIN PC0 // EXT2 port
-#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
+#define TEMP_0_PIN PC2 // EXT0 port
+#define TEMP_1_PIN PC1 // EXT1 port
+#define TEMP_2_PIN PC0 // EXT2 port
+#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
//
// Misc. Functions
//
-#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
+#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
//
// LCD / Controller
@@ -138,19 +138,19 @@
// Geeetech's LCD2004A Control Panel is very much like
// RepRapDiscount Smart Controller, but adds an FFC40 connector
//
- #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE PE14 // SID (MOSI)
- #define LCD_PINS_D4 PD8 // SCK (CLK) clock
- #define LCD_PINS_D5 PD9
- #define LCD_PINS_D6 PD10
- #define LCD_PINS_D7 PE15
+ #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE PE14 // SID (MOSI)
+ #define LCD_PINS_D4 PD8 // SCK (CLK) clock
+ #define LCD_PINS_D5 PD9
+ #define LCD_PINS_D6 PD10
+ #define LCD_PINS_D7 PE15
#else
//
// Serial LCDs can be implemented in ExtUI
//
- //#define LCD_UART_TX PD8
- //#define LCD_UART_RX PD9
+ //#define LCD_UART_TX PD8
+ //#define LCD_UART_RX PD9
#endif
#if HAS_GRAPHICAL_LCD
@@ -167,9 +167,9 @@
// RepRapDiscount Smart Controller, but adds an FFC40 connector
// connected with a flat wire to J2 connector on the board.
//
- #define BTN_EN1 PE8
- #define BTN_EN2 PE9
- #define BTN_ENC PE13
+ #define BTN_EN1 PE8
+ #define BTN_EN2 PE9
+ #define BTN_ENC PE13
#define GTM32_PRO_VB_USE_LCD_BEEPER
#define GTM32_PRO_VB_USE_EXT_SDCARD
@@ -182,10 +182,10 @@
// This is pin 32 on J2 FFC40 and pin, goes to the beeper
// on Geeetech's version of RepRapDiscount Smart Controller
// (e.g. on Rostock 301)
- #define BEEPER_PIN PE12
+ #define BEEPER_PIN PE12
#else
// This is the beeper on the board itself
- #define BEEPER_PIN PB10
+ #define BEEPER_PIN PB10
#endif
/**
@@ -203,28 +203,28 @@
//
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
//
- #define SS_PIN PC11
- #define SCK_PIN PC12
- #define MOSI_PIN PD2
- #define MISO_PIN PC8
- #define SD_DETECT_PIN PC7
+ #define SS_PIN PC11
+ #define SCK_PIN PC12
+ #define MOSI_PIN PD2
+ #define MISO_PIN PC8
+ #define SD_DETECT_PIN PC7
#else
//
// Use the on-board card socket labeled TF_CARD_SOCKET
//
- #define SS_PIN PA4
- #define SCK_PIN PA5
- #define MOSI_PIN PA7
- #define MISO_PIN PA6
- #define SD_DETECT_PIN -1 // Card detect is not connected
+ #define SS_PIN PA4
+ #define SCK_PIN PA5
+ #define MOSI_PIN PA7
+ #define MISO_PIN PA6
+ #define SD_DETECT_PIN -1 // Card detect is not connected
#endif
-#define SDSS SS_PIN
+#define SDSS SS_PIN
//
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
// Must define WIFISUPPORT in Configuration.h for the printer.
//
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115200
-#define ESP_WIFI_MODULE_RESET_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115200
+#define ESP_WIFI_MODULE_RESET_PIN -1
diff --git a/Marlin/src/pins/stm32/pins_GTM32_MINI_A30.h b/Marlin/src/pins/stm32f1/pins_GTM32_MINI_A30.h
similarity index 53%
rename from Marlin/src/pins/stm32/pins_GTM32_MINI_A30.h
rename to Marlin/src/pins/stm32f1/pins_GTM32_MINI_A30.h
index 4c14165f79..873d02b065 100644
--- a/Marlin/src/pins/stm32/pins_GTM32_MINI_A30.h
+++ b/Marlin/src/pins/stm32f1/pins_GTM32_MINI_A30.h
@@ -53,32 +53,32 @@
// Enable EEPROM Emulation for this board as it doesn't have EEPROM
#define FLASH_EEPROM_EMULATION
-#define E2END 0xFFF // 4KB
+#define E2END 0xFFF // 4KB
//
// Limit Switches
//
-#define X_MIN_PIN PE5 // ENDSTOPS 15,17
-#define X_MAX_PIN PE4 // ENDSTOPS 16,18
-#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
-#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
-#define Z_MIN_PIN PE0 // ENDSTOPS 3,5
-#define Z_MAX_PIN PE1 // ENDSTOPS 4,6
+#define X_MIN_PIN PE5 // ENDSTOPS 15,17
+#define X_MAX_PIN PE4 // ENDSTOPS 16,18
+#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
+#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
+#define Z_MIN_PIN PE0 // ENDSTOPS 3,5
+#define Z_MAX_PIN PE1 // ENDSTOPS 4,6
//
// Steppers
//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PD13
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PD13
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PA12
-#define Y_DIR_PIN PA11
-#define Y_ENABLE_PIN PA15
+#define Y_STEP_PIN PA12
+#define Y_DIR_PIN PA11
+#define Y_ENABLE_PIN PA15
-#define Z_STEP_PIN PD6
-#define Z_DIR_PIN PD3
-#define Z_ENABLE_PIN PB3
+#define Z_STEP_PIN PD6
+#define Z_DIR_PIN PD3
+#define Z_ENABLE_PIN PB3
// Extruder stepper pins
// NOTE: Numbering here is made according to EXT connector numbers,
@@ -86,46 +86,46 @@
// That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
// stick that drives the EXT0 output on the board.
//
-#define E0_STEP_PIN PC14
-#define E0_DIR_PIN PC13
-#define E0_ENABLE_PIN PC15
+#define E0_STEP_PIN PC14
+#define E0_DIR_PIN PC13
+#define E0_ENABLE_PIN PC15
-#define E1_STEP_PIN PA0
-#define E1_DIR_PIN PB6
-#define E1_ENABLE_PIN PA1
+#define E1_STEP_PIN PA0
+#define E1_DIR_PIN PB6
+#define E1_ENABLE_PIN PA1
-#define E2_STEP_PIN PB2
-#define E2_DIR_PIN PB11
-#define E2_ENABLE_PIN PC4
+#define E2_STEP_PIN PB2
+#define E2_DIR_PIN PB11
+#define E2_ENABLE_PIN PC4
//
// Heaters / Fans
//
-#define HEATER_0_PIN PB0 // EXT0 port
-#define HEATER_1_PIN PB5 // EXT1 port
-#define HEATER_2_PIN PB4 // EXT2 port
-#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
+#define HEATER_0_PIN PB0 // EXT0 port
+#define HEATER_1_PIN PB5 // EXT1 port
+#define HEATER_2_PIN PB4 // EXT2 port
+#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
//
// These are FAN PWM pins on EXT0..EXT2 connectors.
//
-//#define FAN_PIN PB9 // EXT0 port
-#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
-#define FAN1_PIN PB8 // EXT1 port
-#define FAN2_PIN PB7 // EXT2 port
+//#define FAN_PIN PB9 // EXT0 port
+#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
+#define FAN1_PIN PB8 // EXT1 port
+#define FAN2_PIN PB7 // EXT2 port
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC2 // EXT0 port
-#define TEMP_1_PIN PC1 // EXT1 port
-#define TEMP_2_PIN PC0 // EXT2 port
-#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
+#define TEMP_0_PIN PC2 // EXT0 port
+#define TEMP_1_PIN PC1 // EXT1 port
+#define TEMP_2_PIN PC0 // EXT2 port
+#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
//
// Misc. Functions
//
-#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
+#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
//
// LCD / Controller
@@ -139,16 +139,16 @@
// RepRapDiscount Smart Controller, but adds an FFC40 connector
// connected with a flat wire to J2 connector on the board.
//
- #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE PE14 // SID (MOSI)
- #define LCD_PINS_D4 PD8 // SCK (CLK) clock
- #define LCD_PINS_D5 PD9
- #define LCD_PINS_D6 PD10
- #define LCD_PINS_D7 PE15
+ #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE PE14 // SID (MOSI)
+ #define LCD_PINS_D4 PD8 // SCK (CLK) clock
+ #define LCD_PINS_D5 PD9
+ #define LCD_PINS_D6 PD10
+ #define LCD_PINS_D7 PE15
- #define BTN_EN1 PE8
- #define BTN_EN2 PE9
- #define BTN_ENC PE13
+ #define BTN_EN1 PE8
+ #define BTN_EN2 PE9
+ #define BTN_ENC PE13
#define GTM32_PRO_VB_USE_LCD_BEEPER
#define GTM32_PRO_VB_USE_EXT_SDCARD
@@ -157,8 +157,8 @@
//
// Serial LCDs can be implemented in ExtUI
//
- //#define LCD_UART_TX PD8
- //#define LCD_UART_RX PD9
+ //#define LCD_UART_TX PD8
+ //#define LCD_UART_RX PD9
#endif
#if HAS_GRAPHICAL_LCD
@@ -182,10 +182,10 @@
// This is pin 32 on J2 FFC40 and pin, goes to the beeper
// on Geeetech's version of RepRapDiscount Smart Controller
// (e.g. on Rostock 301)
- #define BEEPER_PIN PE12
+ #define BEEPER_PIN PE12
#else
// This is the beeper on the board itself
- #define BEEPER_PIN PB10
+ #define BEEPER_PIN PB10
#endif
/**
@@ -203,28 +203,28 @@
//
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
//
- #define SS_PIN PC11
- #define SCK_PIN PC12
- #define MOSI_PIN PD2
- #define MISO_PIN PC8
- #define SD_DETECT_PIN PC7
+ #define SS_PIN PC11
+ #define SCK_PIN PC12
+ #define MOSI_PIN PD2
+ #define MISO_PIN PC8
+ #define SD_DETECT_PIN PC7
#else
//
// Use the on-board card socket labeled TF_CARD_SOCKET
//
- #define SS_PIN PA4
- #define SCK_PIN PA5
- #define MOSI_PIN PA7
- #define MISO_PIN PA6
- #define SD_DETECT_PIN -1 // Card detect is not connected
+ #define SS_PIN PA4
+ #define SCK_PIN PA5
+ #define MOSI_PIN PA7
+ #define MISO_PIN PA6
+ #define SD_DETECT_PIN -1 // Card detect is not connected
#endif
-#define SDSS SS_PIN
+#define SDSS SS_PIN
//
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
// Must define WIFISUPPORT in Configuration.h for the printer.
//
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115200
-#define ESP_WIFI_MODULE_RESET_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115200
+#define ESP_WIFI_MODULE_RESET_PIN -1
diff --git a/Marlin/src/pins/stm32/pins_GTM32_PRO_VB.h b/Marlin/src/pins/stm32f1/pins_GTM32_PRO_VB.h
similarity index 54%
rename from Marlin/src/pins/stm32/pins_GTM32_PRO_VB.h
rename to Marlin/src/pins/stm32f1/pins_GTM32_PRO_VB.h
index a35bd29888..38cc615f64 100644
--- a/Marlin/src/pins/stm32/pins_GTM32_PRO_VB.h
+++ b/Marlin/src/pins/stm32f1/pins_GTM32_PRO_VB.h
@@ -53,32 +53,32 @@
// Enable EEPROM Emulation for this board as it doesn't have EEPROM
#define FLASH_EEPROM_EMULATION
-#define E2END 0xFFF // 4KB
+#define E2END 0xFFF // 4KB
//
// Limit Switches
//
-#define X_MIN_PIN PE5 // ENDSTOPS 15,17
-#define X_MAX_PIN PE4 // ENDSTOPS 16,18
-#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
-#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
-#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
-#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
+#define X_MIN_PIN PE5 // ENDSTOPS 15,17
+#define X_MAX_PIN PE4 // ENDSTOPS 16,18
+#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
+#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
+#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
+#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
//
// Steppers
//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PD13
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PD13
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PA12
-#define Y_DIR_PIN PA11
-#define Y_ENABLE_PIN PA15
+#define Y_STEP_PIN PA12
+#define Y_DIR_PIN PA11
+#define Y_ENABLE_PIN PA15
-#define Z_STEP_PIN PD6
-#define Z_DIR_PIN PD3
-#define Z_ENABLE_PIN PB3
+#define Z_STEP_PIN PD6
+#define Z_DIR_PIN PD3
+#define Z_ENABLE_PIN PB3
// Extruder stepper pins
// NOTE: Numbering here is made according to EXT connector numbers,
@@ -86,46 +86,46 @@
// That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
// stick that drives the EXT0 output on the board.
//
-#define E0_STEP_PIN PC14
-#define E0_DIR_PIN PC13
-#define E0_ENABLE_PIN PC15
+#define E0_STEP_PIN PC14
+#define E0_DIR_PIN PC13
+#define E0_ENABLE_PIN PC15
-#define E1_STEP_PIN PA0
-#define E1_DIR_PIN PB6
-#define E1_ENABLE_PIN PA1
+#define E1_STEP_PIN PA0
+#define E1_DIR_PIN PB6
+#define E1_ENABLE_PIN PA1
-#define E2_STEP_PIN PB2
-#define E2_DIR_PIN PB11
-#define E2_ENABLE_PIN PC4
+#define E2_STEP_PIN PB2
+#define E2_DIR_PIN PB11
+#define E2_ENABLE_PIN PC4
//
// Heaters / Fans
//
-#define HEATER_0_PIN PB0 // EXT0 port
-#define HEATER_1_PIN PB5 // EXT1 port
-#define HEATER_2_PIN PB4 // EXT2 port
-#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
+#define HEATER_0_PIN PB0 // EXT0 port
+#define HEATER_1_PIN PB5 // EXT1 port
+#define HEATER_2_PIN PB4 // EXT2 port
+#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
//
// These are FAN PWM pins on EXT0..EXT2 connectors.
//
-//#define FAN_PIN PB9 // EXT0 port
-#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
-#define FAN1_PIN PB8 // EXT1 port
-#define FAN2_PIN PB7 // EXT2 port
+//#define FAN_PIN PB9 // EXT0 port
+#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
+#define FAN1_PIN PB8 // EXT1 port
+#define FAN2_PIN PB7 // EXT2 port
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC2 // EXT0 port
-#define TEMP_1_PIN PC1 // EXT1 port
-#define TEMP_2_PIN PC0 // EXT2 port
-#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
+#define TEMP_0_PIN PC2 // EXT0 port
+#define TEMP_1_PIN PC1 // EXT1 port
+#define TEMP_2_PIN PC0 // EXT2 port
+#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
//
// Misc. Functions
//
-#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
+#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
//
// LCD / Controller
@@ -138,19 +138,19 @@
// Geeetech's LCD2004A Control Panel is very much like
// RepRapDiscount Smart Controller, but adds an FFC40 connector
//
- #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE PE14 // SID (MOSI)
- #define LCD_PINS_D4 PD8 // SCK (CLK) clock
- #define LCD_PINS_D5 PD9
- #define LCD_PINS_D6 PD10
- #define LCD_PINS_D7 PE15
+ #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE PE14 // SID (MOSI)
+ #define LCD_PINS_D4 PD8 // SCK (CLK) clock
+ #define LCD_PINS_D5 PD9
+ #define LCD_PINS_D6 PD10
+ #define LCD_PINS_D7 PE15
#else
//
// Serial LCDs can be implemented in ExtUI
//
- //#define LCD_UART_TX PD8
- //#define LCD_UART_RX PD9
+ //#define LCD_UART_TX PD8
+ //#define LCD_UART_RX PD9
#endif
#if HAS_GRAPHICAL_LCD
@@ -167,9 +167,9 @@
// RepRapDiscount Smart Controller, but adds an FFC40 connector
// connected with a flat wire to J2 connector on the board.
//
- #define BTN_EN1 PE8
- #define BTN_EN2 PE9
- #define BTN_ENC PE13
+ #define BTN_EN1 PE8
+ #define BTN_EN2 PE9
+ #define BTN_ENC PE13
#define GTM32_PRO_VB_USE_LCD_BEEPER
#define GTM32_PRO_VB_USE_EXT_SDCARD
@@ -182,10 +182,10 @@
// This is pin 32 on J2 FFC40 and pin, goes to the beeper
// on Geeetech's version of RepRapDiscount Smart Controller
// (e.g. on Rostock 301)
- #define BEEPER_PIN PE12
+ #define BEEPER_PIN PE12
#else
// This is the beeper on the board itself
- #define BEEPER_PIN PB10
+ #define BEEPER_PIN PB10
#endif
/**
@@ -203,28 +203,28 @@
//
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
//
- #define SS_PIN PC11
- #define SCK_PIN PC12
- #define MOSI_PIN PD2
- #define MISO_PIN PC8
- #define SD_DETECT_PIN PC7
+ #define SS_PIN PC11
+ #define SCK_PIN PC12
+ #define MOSI_PIN PD2
+ #define MISO_PIN PC8
+ #define SD_DETECT_PIN PC7
#else
//
// Use the on-board card socket labeled TF_CARD_SOCKET
//
- #define SS_PIN PA4
- #define SCK_PIN PA5
- #define MOSI_PIN PA7
- #define MISO_PIN PA6
- #define SD_DETECT_PIN -1 // Card detect is not connected
+ #define SS_PIN PA4
+ #define SCK_PIN PA5
+ #define MOSI_PIN PA7
+ #define MISO_PIN PA6
+ #define SD_DETECT_PIN -1 // Card detect is not connected
#endif
-#define SDSS SS_PIN
+#define SDSS SS_PIN
//
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
// Must define WIFISUPPORT in Configuration.h for the printer.
//
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115200
-#define ESP_WIFI_MODULE_RESET_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115200
+#define ESP_WIFI_MODULE_RESET_PIN -1
diff --git a/Marlin/src/pins/stm32/pins_GTM32_REV_B.h b/Marlin/src/pins/stm32f1/pins_GTM32_REV_B.h
similarity index 52%
rename from Marlin/src/pins/stm32/pins_GTM32_REV_B.h
rename to Marlin/src/pins/stm32f1/pins_GTM32_REV_B.h
index e02b8b9377..24196ad892 100644
--- a/Marlin/src/pins/stm32/pins_GTM32_REV_B.h
+++ b/Marlin/src/pins/stm32f1/pins_GTM32_REV_B.h
@@ -53,32 +53,32 @@
// Enable EEPROM Emulation for this board as it doesn't have EEPROM
#define FLASH_EEPROM_EMULATION
-#define E2END 0xFFF // 4KB
+#define E2END 0xFFF // 4KB
//
// Limit Switches
//
-#define X_MIN_PIN PE5 // ENDSTOPS 15,17
-#define X_MAX_PIN PE4 // ENDSTOPS 16,18
-#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
-#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
-#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
-#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
+#define X_MIN_PIN PE5 // ENDSTOPS 15,17
+#define X_MAX_PIN PE4 // ENDSTOPS 16,18
+#define Y_MIN_PIN PE3 // ENDSTOPS 9,11
+#define Y_MAX_PIN PE2 // ENDSTOPS 10,12
+#define Z_MIN_PIN PE1 // ENDSTOPS 3,5
+#define Z_MAX_PIN PE0 // ENDSTOPS 4,6
//
// Steppers
//
-#define X_STEP_PIN PC6
-#define X_DIR_PIN PD13
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PD13
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PA12
-#define Y_DIR_PIN PA11
-#define Y_ENABLE_PIN PA15
+#define Y_STEP_PIN PA12
+#define Y_DIR_PIN PA11
+#define Y_ENABLE_PIN PA15
-#define Z_STEP_PIN PD6
-#define Z_DIR_PIN PD3
-#define Z_ENABLE_PIN PB3
+#define Z_STEP_PIN PD6
+#define Z_DIR_PIN PD3
+#define Z_ENABLE_PIN PB3
// Extruder stepper pins
// NOTE: Numbering here is made according to EXT connector numbers,
@@ -86,46 +86,46 @@
// That is, E0_*_PIN are the E2_* lines connected to E2_A1 step
// stick that drives the EXT0 output on the board.
//
-#define E0_STEP_PIN PC14
-#define E0_DIR_PIN PC13
-#define E0_ENABLE_PIN PC15
+#define E0_STEP_PIN PC14
+#define E0_DIR_PIN PC13
+#define E0_ENABLE_PIN PC15
-#define E1_STEP_PIN PA0
-#define E1_DIR_PIN PB6
-#define E1_ENABLE_PIN PA1
+#define E1_STEP_PIN PA0
+#define E1_DIR_PIN PB6
+#define E1_ENABLE_PIN PA1
-#define E2_STEP_PIN PB2
-#define E2_DIR_PIN PB11
-#define E2_ENABLE_PIN PC4
+#define E2_STEP_PIN PB2
+#define E2_DIR_PIN PB11
+#define E2_ENABLE_PIN PC4
//
// Heaters / Fans - INFO: Extruders ports are in reverse order. Pin numbers here differ from schematic. Original firmware assumes heater, fan and temp sensor on port EXT0 PB0, PB9, PC2.
//
-#define HEATER_0_PIN PB0 // EXT0 port.
-#define HEATER_1_PIN PB5 // EXT1 port
-#define HEATER_2_PIN PB4 // EXT2 port
-#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
+#define HEATER_0_PIN PB0 // EXT0 port.
+#define HEATER_1_PIN PB5 // EXT1 port
+#define HEATER_2_PIN PB4 // EXT2 port
+#define HEATER_BED_PIN PB1 // CON2X3 hotbed port
//
// These are FAN PWM pins on EXT0..EXT2 connectors.
//
-//#define FAN_PIN PB9 // EXT0 port
-#define FAN1_PIN PB8 // EXT1 port
-#define FAN2_PIN PB7 // EXT2 port
-#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
+//#define FAN_PIN PB9 // EXT0 port
+#define FAN1_PIN PB8 // EXT1 port
+#define FAN2_PIN PB7 // EXT2 port
+#define ORIG_E0_AUTO_FAN_PIN PB9 // EXT0 port, used as main extruder fan
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC2 // EXT0 port
-#define TEMP_1_PIN PC1 // EXT1 port
-#define TEMP_2_PIN PC0 // EXT2 port
-#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
+#define TEMP_0_PIN PC2 // EXT0 port
+#define TEMP_1_PIN PC1 // EXT1 port
+#define TEMP_2_PIN PC0 // EXT2 port
+#define TEMP_BED_PIN PC3 // CON2X3 hotbed port
//
// Misc. Functions
//
-#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
+#define LED_PWM PD12 // External LED, pin 2 on LED labeled connector
//
// LCD / Controller
@@ -140,16 +140,16 @@
// RepRapDiscount Smart Controller, but adds an FFC40 connector
// connected with a flat wire to J2 connector on the board.
//
- #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
- #define LCD_PINS_ENABLE PE14 // SID (MOSI)
- #define LCD_PINS_D4 PD8 // SCK (CLK) clock
- #define LCD_PINS_D5 PD9
- #define LCD_PINS_D6 PD10
- #define LCD_PINS_D7 PE15
+ #define LCD_PINS_RS PE6 // CS chip select /SS chip slave select
+ #define LCD_PINS_ENABLE PE14 // SID (MOSI)
+ #define LCD_PINS_D4 PD8 // SCK (CLK) clock
+ #define LCD_PINS_D5 PD9
+ #define LCD_PINS_D6 PD10
+ #define LCD_PINS_D7 PE15
- #define BTN_EN1 PE8
- #define BTN_EN2 PE9
- #define BTN_ENC PE13
+ #define BTN_EN1 PE8
+ #define BTN_EN2 PE9
+ #define BTN_ENC PE13
//#define GTM32_PRO_VB_USE_LCD_BEEPER
#define GTM32_PRO_VB_USE_EXT_SDCARD
@@ -158,19 +158,19 @@
//
// Serial LCDs can be implemented in ExtUI
//
- //#define LCD_UART_TX PD8
- //#define LCD_UART_RX PD9
+ //#define LCD_UART_TX PD8
+ //#define LCD_UART_RX PD9
#endif
#if HAS_GRAPHICAL_LCD
#ifndef ST7920_DELAY_1
- #define ST7920_DELAY_1 DELAY_NS(96)
+ #define ST7920_DELAY_1 DELAY_NS(96)
#endif
#ifndef ST7920_DELAY_2
- #define ST7920_DELAY_2 DELAY_NS(48)
+ #define ST7920_DELAY_2 DELAY_NS(48)
#endif
#ifndef ST7920_DELAY_3
- #define ST7920_DELAY_3 DELAY_NS(715)
+ #define ST7920_DELAY_3 DELAY_NS(715)
#endif
#endif
@@ -183,10 +183,10 @@
// This is pin 32 on J2 FFC40 and pin, goes to the beeper
// on Geeetech's version of RepRapDiscount Smart Controller
// (e.g. on Rostock 301)
- #define BEEPER_PIN PE12
+ #define BEEPER_PIN PE12
#else
// This is the beeper on the board itself
- #define BEEPER_PIN PB10
+ #define BEEPER_PIN PB10
#endif
/**
@@ -204,29 +204,29 @@
//
// SD Card on RepRapDiscount Smart Controller (J2) or on SD_CARD connector
//
- #define SS_PIN PB12 // PC11
- #define SCK_PIN PB13 // PC12 // PC1
- #define MOSI_PIN PB15 // PD2 // PD2
- #define MISO_PIN PB14 // PC8
- #define SD_DETECT_PIN PC7
+ #define SS_PIN PB12 // PC11
+ #define SCK_PIN PB13 // PC12 // PC1
+ #define MOSI_PIN PB15 // PD2 // PD2
+ #define MISO_PIN PB14 // PC8
+ #define SD_DETECT_PIN PC7
#else
//
// Use the on-board card socket labeled TF_CARD_SOCKET
//
- #define SS_PIN PA4
- #define SCK_PIN PA5
- #define MOSI_PIN PA7
- #define MISO_PIN PA6 // PA6
- #define SD_DETECT_PIN -1 // Card detect is not connected
+ #define SS_PIN PA4
+ #define SCK_PIN PA5
+ #define MOSI_PIN PA7
+ #define MISO_PIN PA6 // PA6
+ #define SD_DETECT_PIN -1 // Card detect is not connected
#endif
-#define SDSS SS_PIN
+#define SDSS SS_PIN
//
// ESP WiFi can be soldered to J9 connector which is wired to USART2.
// Must define WIFISUPPORT in Configuration.h for the printer.
//
-#define ESP_WIFI_MODULE_COM 2
-#define ESP_WIFI_MODULE_BAUDRATE 115200
-#define ESP_WIFI_MODULE_RESET_PIN -1
+#define ESP_WIFI_MODULE_COM 2
+#define ESP_WIFI_MODULE_BAUDRATE 115200
+#define ESP_WIFI_MODULE_RESET_PIN -1
diff --git a/Marlin/src/pins/stm32/pins_JGAURORA_A5S_A1.h b/Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h
similarity index 51%
rename from Marlin/src/pins/stm32/pins_JGAURORA_A5S_A1.h
rename to Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h
index 3849af3ae3..6395f6efc9 100644
--- a/Marlin/src/pins/stm32/pins_JGAURORA_A5S_A1.h
+++ b/Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h
@@ -42,10 +42,10 @@
// #define MCU_STM32F103ZE // not yet required
// Enable EEPROM Emulation for this board, so that we don't overwrite factory data
-//#define I2C_EEPROM // AT24C64
-//#define E2END 0x7FFF // 64KB
+//#define I2C_EEPROM // AT24C64
+//#define E2END 0x7FFF // 64KB
//#define FLASH_EEPROM_EMULATION
-//#define E2END 0xFFF // 4KB
+//#define E2END 0xFFF // 4KB
//#define E2END uint32(EEPROM_START_ADDRESS + (EEPROM_PAGE_SIZE * 2) - 1)
//#define EEPROM_CHITCHAT
//#define DEBUG_EEPROM_READWRITE
@@ -53,78 +53,78 @@
//
// Limit Switches
//
-#define X_STOP_PIN PC6
-#define Y_STOP_PIN PG8
-#define Z_STOP_PIN PG7
-//#define X_MAX_PIN PC5
-//#define Y_MAX_PIN PC4
-//#define Z_MAX_PIN PB0
+#define X_STOP_PIN PC6
+#define Y_STOP_PIN PG8
+#define Z_STOP_PIN PG7
+//#define X_MAX_PIN PC5
+//#define Y_MAX_PIN PC4
+//#define Z_MAX_PIN PB0
//
// Steppers
//
-#define X_STEP_PIN PD6
-#define X_DIR_PIN PD3
-#define X_ENABLE_PIN PG9
+#define X_STEP_PIN PD6
+#define X_DIR_PIN PD3
+#define X_ENABLE_PIN PG9
-#define Y_STEP_PIN PG12
-#define Y_DIR_PIN PG11
-#define Y_ENABLE_PIN PG13
+#define Y_STEP_PIN PG12
+#define Y_DIR_PIN PG11
+#define Y_ENABLE_PIN PG13
-#define Z_STEP_PIN PG15
-#define Z_DIR_PIN PG14
-#define Z_ENABLE_PIN PB8
+#define Z_STEP_PIN PG15
+#define Z_DIR_PIN PG14
+#define Z_ENABLE_PIN PB8
-#define E0_STEP_PIN PE2
-#define E0_DIR_PIN PB9
-#define E0_ENABLE_PIN PE3
+#define E0_STEP_PIN PE2
+#define E0_DIR_PIN PB9
+#define E0_ENABLE_PIN PE3
-#define E1_STEP_PIN PE5
-#define E1_DIR_PIN PE4
-#define E1_ENABLE_PIN PE6
+#define E1_STEP_PIN PE5
+#define E1_DIR_PIN PE4
+#define E1_ENABLE_PIN PE6
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC2
-#define TEMP_BED_PIN PC1
+#define TEMP_0_PIN PC2
+#define TEMP_BED_PIN PC1
//
// Heaters / Fans
//
-#define HEATER_0_PIN PA2
-#define HEATER_BED_PIN PA3
+#define HEATER_0_PIN PA2
+#define HEATER_BED_PIN PA3
-#define FAN_PIN PA1
+#define FAN_PIN PA1
-#define FIL_RUNOUT_PIN PC7
+#define FIL_RUNOUT_PIN PC7
//
// LCD
//
-#define LCD_BACKLIGHT_PIN PF11
-#define FSMC_CS_PIN PD7
-#define FSMC_RS_PIN PG0
+#define LCD_BACKLIGHT_PIN PF11
+#define FSMC_CS_PIN PD7
+#define FSMC_RS_PIN PG0
-#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
-#define FSMC_DMA_DEV DMA2
-#define FSMC_DMA_CHANNEL DMA_CH5
+#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
+#define FSMC_DMA_DEV DMA2
+#define FSMC_DMA_CHANNEL DMA_CH5
//
// SD Card
//
-#define SD_DETECT_PIN PF10
+#define SD_DETECT_PIN PF10
//
// Misc.
//
-#define BEEPER_PIN PC3 // use PB7 to shut up if desired
-#define LED_PIN PC13
+#define BEEPER_PIN PC3 // use PB7 to shut up if desired
+#define LED_PIN PC13
//
// Touch support
//
#if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PA4
- #define TOUCH_INT_PIN PC4
+ #define TOUCH_CS_PIN PA4
+ #define TOUCH_INT_PIN PC4
#endif
diff --git a/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h b/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h
new file mode 100644
index 0000000000..83881c128d
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_LONGER3D_LK.h
@@ -0,0 +1,170 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * Longer3D LK1/LK2 & Alfawise U20/U30 (STM32F103VET6) board pin assignments
+ */
+
+#if !defined(__STM32F1__) && !defined(STM32F1xx)
+ #error "Oops! Select a STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 1 || E_STEPPERS > 1
+ #error "Longer3D board only supports 1 hotend / E-stepper. Comment out this line to continue."
+#endif
+
+#define BOARD_INFO_NAME "Longer3D"
+#define ALFAWISE_UX0 // Common to all Longer3D STM32F1 boards (used for Open drain mosfets)
+
+//#define DISABLE_DEBUG // We still want to debug with STLINK...
+#define DISABLE_JTAG // We free the jtag pins (PA15) but keep STLINK
+ // Release PB4 (STEP_X_PIN) from JTAG NRST role.
+//
+// Limit Switches
+//
+#define X_MIN_PIN PC1 // pin 16
+#define X_MAX_PIN PC0 // pin 15 (Filament sensor on Alfawise setup)
+#define Y_MIN_PIN PC15 // pin 9
+#define Y_MAX_PIN PC14 // pin 8 (Unused in stock Alfawise setup)
+#define Z_MIN_PIN PE6 // pin 5 Standard Endstop or Z_Probe endstop function
+#define Z_MAX_PIN PE5 // pin 4 (Unused in stock Alfawise setup)
+ // May be used for BLTouch Servo function on older variants (<= V08)
+#define ONBOARD_ENDSTOPPULLUPS
+
+//
+// Filament Sensor
+//
+#ifndef FIL_RUNOUT_PIN
+ #define FIL_RUNOUT_PIN PC0 // XMAX plug on PCB used as filament runout sensor on Alfawise boards (inverting true)
+#endif
+
+//
+// Steppers
+//
+#define X_ENABLE_PIN PB5 // pin 91
+#define X_STEP_PIN PB4 // pin 90
+#define X_DIR_PIN PB3 // pin 89
+
+#define Y_ENABLE_PIN PB8 // pin 95
+#define Y_STEP_PIN PB7 // pin 93
+#define Y_DIR_PIN PB6 // pin 92
+
+#define Z_ENABLE_PIN PE1 // pin 98
+#define Z_STEP_PIN PE0 // pin 97
+#define Z_DIR_PIN PB9 // pin 96
+
+#define E0_ENABLE_PIN PE4 // pin 3
+#define E0_STEP_PIN PE3 // pin 2
+#define E0_DIR_PIN PE2 // pin 1
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PA0 // pin 23 (Nozzle 100K/3950 thermistor)
+#define TEMP_BED_PIN PA1 // pin 24 (Hot Bed 100K/3950 thermistor)
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PD3 // pin 84 (Nozzle Heat Mosfet)
+#define HEATER_BED_PIN PA8 // pin 67 (Hot Bed Mosfet)
+
+#define FAN_PIN PA15 // pin 77 (4cm Fan)
+#define FAN_SOFT_PWM // Required to avoid issues with heating or STLink
+#define FAN_MIN_PWM 35 // Fan will not start in 1-30 range
+#define FAN_MAX_PWM 255
+
+//#define BEEPER_PIN PD13 // pin 60 (Servo PWM output 5V/GND on Board V0G+) made for BL-Touch sensor
+ // Can drive a PC Buzzer, if connected between PWM and 5V pins
+
+#define LED_PIN PC2 // pin 17
+
+//
+// PWM for a servo probe
+// Other servo devices are not supported on this board!
+//
+#if HAS_Z_SERVO_PROBE
+ #define SERVO0_PIN PD13 // Open drain PWM pin on the V0G (GND or floating 5V)
+ #define SERVO0_PWM_OD // Comment this if using PE5
+
+ //#define SERVO0_PIN PE5 // Pulled up PWM pin on the V08 (3.3V or 0)
+ //#undef Z_MAX_PIN // Uncomment if using ZMAX connector (PE5)
+#endif
+
+/**
+ * Note: Alfawise screens use various TFT controllers. Supported screens
+ * are based on the ILI9341, ILI9328 and ST7798V. Define init sequences for
+ * other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
+ *
+ * If the screen stays white, disable 'LCD_RESET_PIN' to let the bootloader
+ * init the screen.
+ *
+ * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
+ * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
+ */
+
+#define LCD_RESET_PIN PC4 // pin 33
+#define LCD_BACKLIGHT_PIN PD12 // pin 59
+#define FSMC_CS_PIN PD7 // pin 88 = FSMC_NE1
+#define FSMC_RS_PIN PD11 // pin 58 A16 Register. Only one address needed
+
+#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
+#define FSMC_DMA_DEV DMA2
+#define FSMC_DMA_CHANNEL DMA_CH5
+
+#define DOGLCD_MOSI -1 // Prevent auto-define by Conditionals_post.h
+#define DOGLCD_SCK -1
+
+/**
+ * Note: Alfawise U20/U30 boards DON'T use SPI2, as the hardware designer
+ * mixed up MOSI and MISO pins. SPI is managed in SW, and needs pins
+ * declared below.
+ */
+#if ENABLED(TOUCH_BUTTONS)
+ #define TOUCH_CS_PIN PB12 // pin 51 SPI2_NSS
+ #define TOUCH_SCK_PIN PB13 // pin 52
+ #define TOUCH_MOSI_PIN PB14 // pin 53
+ #define TOUCH_MISO_PIN PB15 // pin 54
+ #define TOUCH_INT_PIN PC6 // pin 63 (PenIRQ coming from ADS7843)
+#endif
+
+//
+// Persistent Storage
+// If no option is selected below the SD Card will be used
+//
+//#define SPI_EEPROM
+#define FLASH_EEPROM_EMULATION
+
+#undef E2END
+#if ENABLED(SPI_EEPROM)
+ // SPI1 EEPROM Winbond W25Q64 (8MB/64Mbits)
+ #define SPI_CHAN_EEPROM1 1
+ #define SPI_EEPROM1_CS PC5 // pin 34
+ #define EEPROM_SCK BOARD_SPI1_SCK_PIN // PA5 pin 30
+ #define EEPROM_MISO BOARD_SPI1_MISO_PIN // PA6 pin 31
+ #define EEPROM_MOSI BOARD_SPI1_MOSI_PIN // PA7 pin 32
+ #define EEPROM_PAGE_SIZE 0x1000U // 4KB (from datasheet)
+ #define E2END ((16 * EEPROM_PAGE_SIZE)-1) // Limit to 64KB for now...
+#elif ENABLED(FLASH_EEPROM_EMULATION)
+ // SoC Flash (framework-arduinoststm32-maple/STM32F1/libraries/EEPROM/EEPROM.h)
+ #define EEPROM_START_ADDRESS (0x8000000UL + (512 * 1024) - 2 * EEPROM_PAGE_SIZE)
+ #define EEPROM_PAGE_SIZE (0x800U) // 2KB, but will use 2x more (4KB)
+ #define E2END (EEPROM_PAGE_SIZE - 1)
+#else
+ #define E2END (0x7FFU) // On SD, Limit to 2KB, require this amount of RAM
+#endif
diff --git a/Marlin/src/pins/stm32/pins_MALYAN_M200.h b/Marlin/src/pins/stm32f1/pins_MALYAN_M200.h
similarity index 56%
rename from Marlin/src/pins/stm32/pins_MALYAN_M200.h
rename to Marlin/src/pins/stm32f1/pins_MALYAN_M200.h
index 624c59ebea..9829018d8d 100644
--- a/Marlin/src/pins/stm32/pins_MALYAN_M200.h
+++ b/Marlin/src/pins/stm32f1/pins_MALYAN_M200.h
@@ -36,7 +36,7 @@
// but it is literally the only board which uses it.
#define FLASH_EEPROM_EMULATION
-#define SDSS SS_PIN
+#define SDSS SS_PIN
// Based on PWM timer usage, we have to use these timers and soft PWM for the fans
// On STM32F103:
@@ -50,43 +50,43 @@
//
// Limit Switches
//
-#define X_MIN_PIN PB4
-#define Y_MIN_PIN PA15
-#define Z_MIN_PIN PB5
+#define X_MIN_PIN PB4
+#define Y_MIN_PIN PA15
+#define Z_MIN_PIN PB5
//
// Steppers
//
// X & Y enable are the same
-#define X_STEP_PIN PB14
-#define X_DIR_PIN PB15
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PB14
+#define X_DIR_PIN PB15
+#define X_ENABLE_PIN PA8
-#define Y_STEP_PIN PB12
-#define Y_DIR_PIN PB13
-#define Y_ENABLE_PIN PA8
+#define Y_STEP_PIN PB12
+#define Y_DIR_PIN PB13
+#define Y_ENABLE_PIN PA8
-#define Z_STEP_PIN PB10
-#define Z_DIR_PIN PB2
-#define Z_ENABLE_PIN PB11
+#define Z_STEP_PIN PB10
+#define Z_DIR_PIN PB2
+#define Z_ENABLE_PIN PB11
-#define E0_STEP_PIN PB0
-#define E0_DIR_PIN PC13
-#define E0_ENABLE_PIN PB1
+#define E0_STEP_PIN PB0
+#define E0_DIR_PIN PC13
+#define E0_ENABLE_PIN PB1
//
// Temperature Sensors
//
-#define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
-#define TEMP_BED_PIN PA1 // Analog Input (BED thermistor)
+#define TEMP_0_PIN PA0 // Analog Input (HOTEND0 thermistor)
+#define TEMP_BED_PIN PA1 // Analog Input (BED thermistor)
//
// Heaters / Fans
//
-#define HEATER_0_PIN PB6 // HOTEND0 MOSFET
-#define HEATER_BED_PIN PB7 // BED MOSFET
+#define HEATER_0_PIN PB6 // HOTEND0 MOSFET
+#define HEATER_BED_PIN PB7 // BED MOSFET
-#define MALYAN_FAN1_PIN PB8 // FAN1 header on board - PRINT FAN
-#define MALYAN_FAN2_PIN PB3 // FAN2 header on board - CONTROLLER FAN
+#define MALYAN_FAN1_PIN PB8 // FAN1 header on board - PRINT FAN
+#define MALYAN_FAN2_PIN PB3 // FAN2 header on board - CONTROLLER FAN
-#define FAN1_PIN MALYAN_FAN2_PIN
+#define FAN1_PIN MALYAN_FAN2_PIN
diff --git a/Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h
new file mode 100644
index 0000000000..db35548e88
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h
@@ -0,0 +1,159 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * MKS Robin (STM32F130ZET6) board pin assignments
+ *
+ * https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin/Hardware
+ */
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 2 || E_STEPPERS > 2
+ #error "MKS Robin supports up to 2 hotends / E-steppers. Comment out this line to continue."
+#endif
+
+#define BOARD_INFO_NAME "MKS Robin"
+
+//
+// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
+//
+#define DISABLE_JTAG
+
+//
+// Servos
+//
+#define SERVO0_PIN PC3 // XS1 - 5
+#define SERVO1_PIN PA1 // XS1 - 6
+#define SERVO2_PIN PF9 // XS2 - 5
+#define SERVO3_PIN PF8 // XS2 - 6
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PB12
+#define X_MAX_PIN PB0
+#define Y_MIN_PIN PC5
+#define Y_MAX_PIN PC4
+#define Z_MIN_PIN PA4
+#define Z_MAX_PIN PF7
+
+//
+// Steppers
+//
+#define X_ENABLE_PIN PB9
+#define X_STEP_PIN PB8
+#define X_DIR_PIN PB5
+
+#define Y_ENABLE_PIN PB4
+#define Y_STEP_PIN PG15
+#define Y_DIR_PIN PG10
+
+#define Z_ENABLE_PIN PD7
+#define Z_STEP_PIN PD3
+#define Z_DIR_PIN PG14
+
+#define E0_ENABLE_PIN PG13
+#define E0_STEP_PIN PG8
+#define E0_DIR_PIN PA15
+
+#define E1_ENABLE_PIN PA12
+#define E1_STEP_PIN PA11
+#define E1_DIR_PIN PA8
+
+//
+// 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 PC7 // HEATER1
+#define HEATER_1_PIN PA6 // HEATER2
+#define HEATER_BED_PIN PC6 // HOT BED
+
+#define FAN_PIN PA7 // FAN
+
+/**
+ * Note: MKS Robin board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
+ */
+//#define MAX6675_SS_PIN PE5 // TC1 - CS1
+//#define MAX6675_SS_PIN PE6 // TC2 - CS2
+
+#define POWER_LOSS_PIN PA2 // PW_DET
+#define PS_ON_PIN PA3 // PW_OFF
+#define FIL_RUNOUT_PIN PF11 // MT_DET
+
+#define BEEPER_PIN PC13
+#define LED_PIN PB2
+
+/**
+ * Note: MKS Robin TFT screens use various TFT controllers
+ * Supported screens are based on the ILI9341, ST7789V and ILI9328 (320x240)
+ * ILI9488 is not supported
+ * Define init sequences for other screens in u8g_dev_tft_320x240_upscale_from_128x64.cpp
+ *
+ * If the screen stays white, disable 'LCD_RESET_PIN'
+ * to let the bootloader init the screen.
+ *
+ * Setting an 'LCD_RESET_PIN' may cause a flicker when entering the LCD menu
+ * because Marlin uses the reset as a failsafe to revive a glitchy LCD.
+ */
+//#define LCD_RESET_PIN PF6
+#define LCD_BACKLIGHT_PIN PG11
+#define FSMC_CS_PIN PG12 // NE4
+#define FSMC_RS_PIN PF0 // A0
+
+#define LCD_USE_DMA_FSMC // Use DMA transfers to send data to the TFT
+#define FSMC_DMA_DEV DMA2
+#define FSMC_DMA_CHANNEL DMA_CH5
+
+#if ENABLED(TOUCH_BUTTONS)
+ #define TOUCH_CS_PIN PB1 // SPI2_NSS
+ #define TOUCH_SCK_PIN PB13 // SPI2_SCK
+ #define TOUCH_MISO_PIN PB14 // SPI2_MISO
+ #define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
+#endif
+
+// SPI1(PA7) & SPI3(PB5) not available
+#define ENABLE_SPI2
+
+#if ENABLED(SDIO_SUPPORT)
+ #define SCK_PIN PB13 // SPI2
+ #define MISO_PIN PB14 // SPI2
+ #define MOSI_PIN PB15 // SPI2
+ #define SS_PIN -1 // PB12 is X-
+ #define SD_DETECT_PIN PF12 // SD_CD
+#else
+ // SD as custom software SPI (SDIO pins)
+ #define SCK_PIN PC12
+ #define MISO_PIN PC8
+ #define MOSI_PIN PD2
+ #define SS_PIN -1
+ #define ONBOARD_SD_CS_PIN PC11
+ #define SDSS PD2
+ #define SD_DETECT_PIN -1
+#endif
diff --git a/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h
new file mode 100644
index 0000000000..4c10a310bf
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE.h
@@ -0,0 +1,137 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 1 || E_STEPPERS > 1
+ #error "MKS Robin Lite supports only 1 hotend / E-stepper. Comment out this line to continue."
+#endif
+
+#ifndef BOARD_INFO_NAME
+ #define BOARD_INFO_NAME "MKS Robin Lite"
+#endif
+#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
+
+//#define DISABLE_DEBUG
+#define DISABLE_JTAG
+#define ENABLE_SPI2
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PC13
+#define Y_STOP_PIN PC0
+#define Z_MIN_PIN PC12
+#define Z_MAX_PIN PB9
+
+//
+// Steppers
+//
+#define X_STEP_PIN PC6
+#define X_DIR_PIN PB12
+#define X_ENABLE_PIN PB10
+
+#define Y_STEP_PIN PB11
+#define Y_DIR_PIN PB2
+#define Y_ENABLE_PIN PB10
+
+#define Z_STEP_PIN PB1
+#define Z_DIR_PIN PC5
+#define Z_ENABLE_PIN PB10
+
+#define E0_STEP_PIN PC4
+#define E0_DIR_PIN PA5
+#define E0_ENABLE_PIN PA4
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PC9
+#define FAN_PIN PA8
+#define HEATER_BED_PIN PC8
+
+//
+// Temperature Sensors
+//
+#define TEMP_BED_PIN PA1
+#define TEMP_0_PIN PA0
+
+#define FIL_RUNOUT_PIN PB8 // MT_DET
+
+//
+// LCD Pins
+//
+#if HAS_SPI_LCD
+ #define BEEPER_PIN PD2
+ #define BTN_ENC PB3
+ #define LCD_PINS_RS PC3
+
+ #define BTN_EN1 PB5
+ #define BTN_EN2 PB4
+
+ #define LCD_PINS_ENABLE PC2
+
+ #if ENABLED(MKS_MINI_12864)
+
+ #define LCD_BACKLIGHT_PIN -1
+ #define LCD_RESET_PIN -1
+ #define DOGLCD_A0 PC1
+ #define DOGLCD_CS PC2
+ #define DOGLCD_SCK PB13
+ #define DOGLCD_MOSI PB15
+
+ #else // !MKS_MINI_12864
+
+ #define LCD_PINS_D4 PC1
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 -1
+ #define LCD_PINS_D6 -1
+ #define LCD_PINS_D7 -1
+ #endif
+
+ #endif // !MKS_MINI_12864
+
+#endif // HAS_SPI_LCD
+
+// Motor current PWM pins
+#define MOTOR_CURRENT_PWM_XY_PIN PB0
+#define MOTOR_CURRENT_PWM_Z_PIN PA7
+#define MOTOR_CURRENT_PWM_E_PIN PA6
+#define MOTOR_CURRENT_PWM_RANGE (65535/10/3.3) // (255 * (1000mA / 65535)) * 257 = 1000 is equal 1.6v Vref in turn equal 1Amp
+#define DEFAULT_PWM_MOTOR_CURRENT { 1000, 1000, 1000 } // 1.05Amp per driver, here is XY, Z and E. This values determined empirically.
+
+//
+// SD Card
+//
+#define ENABLE_SPI2
+#define SD_DETECT_PIN PC10
+#define SCK_PIN PB13
+#define MISO_PIN P1B4
+#define MOSI_PIN P1B5
+#define SS_PIN PA15
+
+#if HAS_GRAPHICAL_LCD
+ #define BOARD_ST7920_DELAY_1 DELAY_NS(125)
+ #define BOARD_ST7920_DELAY_2 DELAY_NS(125)
+ #define BOARD_ST7920_DELAY_3 DELAY_NS(125)
+#endif
diff --git a/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE3.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE3.h
new file mode 100644
index 0000000000..466bdecc81
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_LITE3.h
@@ -0,0 +1,153 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * MKS Robin Lite 3 (STM32F103RCT6) board pin assignments
+ */
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 2 || E_STEPPERS > 2
+ #error "MKS Robin Lite3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
+#endif
+
+#ifndef BOARD_INFO_NAME
+ #define BOARD_INFO_NAME "MKS Robin Lite3"
+#endif
+#define BOARD_WEBSITE_URL "github.com/makerbase-mks"
+
+//#define DISABLE_DEBUG
+#define DISABLE_JTAG
+#define ENABLE_SPI2
+
+//
+// Servos
+//
+#define SERVO0_PIN PA3
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PA12
+#define Y_STOP_PIN PA11
+#define Z_MIN_PIN PC6
+#define Z_MAX_PIN PB1
+
+//
+// Steppers
+//
+#define X_STEP_PIN PC0
+#define X_DIR_PIN PB2
+#define X_ENABLE_PIN PC13
+
+#define Y_STEP_PIN PC2
+#define Y_DIR_PIN PB9
+#define Y_ENABLE_PIN PB12
+
+#define Z_STEP_PIN PB7
+#define Z_DIR_PIN PB6
+#define Z_ENABLE_PIN PB8
+
+#define E0_STEP_PIN PB4
+#define E0_DIR_PIN PB3
+#define E0_ENABLE_PIN PB5
+
+#define E1_STEP_PIN PC12
+#define E1_DIR_PIN PC11
+#define E1_ENABLE_PIN PD2
+
+//
+// Heaters 0,1 / Fans / Bed
+//
+#define HEATER_0_PIN PC9
+#define HEATER_1_PIN PC7
+#define FAN_PIN PA8
+#define HEATER_BED_PIN PC8
+
+//
+// Temperature Sensors
+//
+#define TEMP_BED_PIN PA1 //TB
+#define TEMP_0_PIN PA0 //TH1
+#define TEMP_1_PIN PA2 //TH2
+
+#define FIL_RUNOUT_PIN PB10 // MT_DET
+
+//
+// LCD Pins
+//
+#if HAS_SPI_LCD
+
+ #define BEEPER_PIN PC1
+ #define BTN_ENC PC3
+ #define LCD_PINS_ENABLE PA4
+ #define LCD_PINS_RS PA5
+ #define BTN_EN1 PB11
+ #define BTN_EN2 PB0
+
+ // 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 PC4
+ #define DOGLCD_CS PA7
+ #define DOGLCD_SCK PB13
+ #define DOGLCD_MOSI PB15
+
+ // Required for MKS_MINI_12864 with this board
+ #define MKS_LCD12864B
+ #undef SHOW_BOOTSCREEN
+
+ #else // !MKS_MINI_12864
+
+ #define LCD_PINS_D4 PA6
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 PA7
+ #define LCD_PINS_D6 PC4
+ #define LCD_PINS_D7 PC5
+ #endif
+
+ #endif // !MKS_MINI_12864
+
+#endif // HAS_SPI_LCD
+
+//
+// SD Card
+//
+#define ENABLE_SPI2
+#define SD_DETECT_PIN PC10
+#define SCK_PIN PB13
+#define MISO_PIN PB14
+#define MOSI_PIN PB15
+#define SS_PIN PA15
+
+#ifndef ST7920_DELAY_1
+ #define ST7920_DELAY_1 DELAY_NS(125)
+#endif
+#ifndef ST7920_DELAY_2
+ #define ST7920_DELAY_2 DELAY_NS(125)
+#endif
+#ifndef ST7920_DELAY_3
+ #define ST7920_DELAY_3 DELAY_NS(125)
+#endif
diff --git a/Marlin/src/pins/stm32/pins_MKS_ROBIN_MINI.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_MINI.h
old mode 100755
new mode 100644
similarity index 50%
rename from Marlin/src/pins/stm32/pins_MKS_ROBIN_MINI.h
rename to Marlin/src/pins/stm32f1/pins_MKS_ROBIN_MINI.h
index 16e74b169e..50babad274
--- a/Marlin/src/pins/stm32/pins_MKS_ROBIN_MINI.h
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_MINI.h
@@ -52,67 +52,67 @@
//
// Limit Switches
//
-#define X_STOP_PIN PA15
-#define Y_STOP_PIN PA12
-#define Z_MIN_PIN PA11
-#define Z_MAX_PIN PC4
+#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
+ #define FIL_RUNOUT_PIN PA4 // MT_DET
#endif
//
// Steppers
//
-#define X_ENABLE_PIN PE4
-#define X_STEP_PIN PE3
-#define X_DIR_PIN PE2
+#define X_ENABLE_PIN PE4
+#define X_STEP_PIN PE3
+#define X_DIR_PIN PE2
-#define Y_ENABLE_PIN PE1
-#define Y_STEP_PIN PE0
-#define Y_DIR_PIN PB9
+#define Y_ENABLE_PIN PE1
+#define Y_STEP_PIN PE0
+#define Y_DIR_PIN PB9
-#define Z_ENABLE_PIN PB8
-#define Z_STEP_PIN PB5
-#define Z_DIR_PIN PB4
+#define Z_ENABLE_PIN PB8
+#define Z_STEP_PIN PB5
+#define Z_DIR_PIN PB4
-#define E0_ENABLE_PIN PB3
-#define E0_STEP_PIN PD6
-#define E0_DIR_PIN PD3
+#define E0_ENABLE_PIN PB3
+#define E0_STEP_PIN PD6
+#define E0_DIR_PIN PD3
//
// Temperature Sensors
//
-#define TEMP_0_PIN PC1 // TH1
-#define TEMP_BED_PIN PC0 // TB1
+#define TEMP_0_PIN PC1 // TH1
+#define TEMP_BED_PIN PC0 // TB1
//
// Heaters / Fans
//
-#define HEATER_0_PIN PC3 // HEATER1
-#define HEATER_BED_PIN PA0 // HOT BED
+#define HEATER_0_PIN PC3 // HEATER1
+#define HEATER_BED_PIN PA0 // HOT BED
-#define FAN_PIN PB1 // FAN
+#define FAN_PIN PB1 // FAN
//
// Thermocouples
//
-//#define MAX6675_SS_PIN PE5 // TC1 - CS1
-//#define MAX6675_SS_PIN PE6 // TC2 - CS2
+//#define MAX6675_SS_PIN PE5 // TC1 - CS1
+//#define MAX6675_SS_PIN PE6 // TC2 - CS2
//
// Misc. Functions
//
-#define POWER_LOSS_PIN PA2 // PW_DET
-#define PS_ON_PIN PA3 // PW_OFF
+#define POWER_LOSS_PIN PA2 // PW_DET
+#define PS_ON_PIN PA3 // PW_OFF
-//#define LED_PIN PB2
+//#define LED_PIN PB2
//
// LCD / Controller
//
-#define BEEPER_PIN PC5
-#define SD_DETECT_PIN PD12
+#define BEEPER_PIN PC5
+#define SD_DETECT_PIN PD12
/**
* Note: MKS Robin TFT screens use various TFT controllers.
@@ -120,27 +120,27 @@
* to let the bootloader init the screen.
*/
#if ENABLED(FSMC_GRAPHICAL_TFT)
- #define FSMC_CS_PIN PD7 // NE4
- #define FSMC_RS_PIN PD11 // A0
+ #define FSMC_CS_PIN PD7 // NE4
+ #define FSMC_RS_PIN PD11 // A0
- #define LCD_RESET_PIN PC6
- #define NO_LCD_REINIT // Suppress LCD re-initialization
+ #define LCD_RESET_PIN PC6
+ #define NO_LCD_REINIT // Suppress LCD re-initialization
- #define LCD_BACKLIGHT_PIN PD13
+ #define LCD_BACKLIGHT_PIN PD13
#if ENABLED(TOUCH_BUTTONS)
- #define TOUCH_CS_PIN PC2
- #define TOUCH_SCK_PIN PB13
- #define TOUCH_MOSI_PIN PB15
- #define TOUCH_MISO_PIN PB14
+ #define TOUCH_CS_PIN PC2
+ #define TOUCH_SCK_PIN PB13
+ #define TOUCH_MOSI_PIN PB15
+ #define TOUCH_MISO_PIN PB14
#endif
#endif
// Motor current PWM pins
-#define MOTOR_CURRENT_PWM_XY_PIN PA6
-#define MOTOR_CURRENT_PWM_Z_PIN PA7
-#define MOTOR_CURRENT_PWM_E_PIN PB0
-#define MOTOR_CURRENT_PWM_RANGE 1500 // (255 * (1000mA / 65535)) * 257 = 1000 is equal 1.6v Vref in turn equal 1Amp
+#define MOTOR_CURRENT_PWM_XY_PIN PA6
+#define MOTOR_CURRENT_PWM_Z_PIN PA7
+#define MOTOR_CURRENT_PWM_E_PIN PB0
+#define MOTOR_CURRENT_PWM_RANGE 1500 // (255 * (1000mA / 65535)) * 257 = 1000 is equal 1.6v Vref in turn equal 1Amp
#define DEFAULT_PWM_MOTOR_CURRENT { 1030, 1030, 1030 } // 1.05Amp per driver, here is XY, Z and E. This values determined empirically.
// This is a kind of workaround in case native marlin "digipot" interface won't work.
@@ -149,6 +149,6 @@
// #define MKS_ROBIN_MINI_VREF_PWM
//#endif
-//#define VREF_XY_PIN PA6
-//#define VREF_Z_PIN PA7
-//#define VREF_E1_PIN PB0
+//#define VREF_XY_PIN PA6
+//#define VREF_Z_PIN PA7
+//#define VREF_E1_PIN PB0
diff --git a/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h
new file mode 100644
index 0000000000..ae9118e6d0
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h
@@ -0,0 +1,137 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * MKS Robin nano (STM32F130VET6) board pin assignments
+ */
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 2 || E_STEPPERS > 2
+ #error "MKS Robin nano supports up to 2 hotends / E-steppers. Comment out this line to continue."
+#endif
+
+#define BOARD_INFO_NAME "MKS Robin nano"
+
+//
+// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
+//
+#define DISABLE_DEBUG
+
+//
+// Limit Switches
+//
+#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
+
+#define Y_ENABLE_PIN PE1
+#define Y_STEP_PIN PE0
+#define Y_DIR_PIN PB9
+
+#define Z_ENABLE_PIN PB8
+#define Z_STEP_PIN PB5
+#define Z_DIR_PIN PB4
+
+#define E0_ENABLE_PIN PB3
+#define E0_STEP_PIN PD6
+#define E0_DIR_PIN PD3
+
+#define E1_ENABLE_PIN PA3
+#define E1_STEP_PIN PA6
+#define E1_DIR_PIN PA1
+
+//
+// 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 MAX6675_SS_PIN PE5 // TC1 - CS1
+//#define MAX6675_SS_PIN PE6 // TC2 - CS2
+
+//
+// Misc. Functions
+//
+#define POWER_LOSS_PIN PA2 // PW_DET
+#define PS_ON_PIN PA3 // PW_OFF
+
+#define LED_PIN PB2
+
+//
+// SD Card
+//
+#define SDIO_SUPPORT
+#define SD_DETECT_PIN PD12
+
+//
+// LCD / Controller
+//
+#define BEEPER_PIN PC5
+
+/**
+ * Note: MKS Robin TFT screens use various TFT controllers.
+ * If the screen stays white, disable 'LCD_RESET_PIN'
+ * to let the bootloader init the screen.
+ */
+#if ENABLED(FSMC_GRAPHICAL_TFT)
+ #define FSMC_CS_PIN PD7 // NE4
+ #define FSMC_RS_PIN PD11 // A0
+
+ #define LCD_RESET_PIN PC6 // FSMC_RST
+ #define NO_LCD_REINIT // Suppress LCD re-initialization
+
+ #define LCD_BACKLIGHT_PIN PD13
+
+ #if ENABLED(TOUCH_BUTTONS)
+ #define TOUCH_CS_PIN PA7 // SPI2_NSS
+ #define TOUCH_SCK_PIN PB13 // SPI2_SCK
+ #define TOUCH_MISO_PIN PB14 // SPI2_MISO
+ #define TOUCH_MOSI_PIN PB15 // SPI2_MOSI
+ #endif
+#endif
diff --git a/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h
new file mode 100644
index 0000000000..b42856721d
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_MKS_ROBIN_PRO.h
@@ -0,0 +1,274 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * MKS Robin pro (STM32F103ZET6) board pin assignments
+ */
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#elif HOTENDS > 3 || E_STEPPERS > 3
+ #error "MKS Robin pro supports up to 3 hotends / E-steppers. Comment out this line to continue."
+#endif
+
+#define BOARD_INFO_NAME "MKS Robin pro"
+
+//
+// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
+//
+#define DISABLE_DEBUG
+
+//
+// Note: MKS Robin board is using SPI2 interface.
+//
+//#define SPI_MODULE 2
+#define ENABLE_SPI2
+
+//
+// Servos
+//
+#define SERVO0_PIN PA8 // BLTOUCH
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PA15
+#define X_MAX_PIN PG7
+#define Y_MIN_PIN PA12
+#define Y_MAX_PIN PG8
+#define Z_MIN_PIN PA11
+#define Z_MAX_PIN PC4
+
+//
+// Steppers
+//
+#define X_ENABLE_PIN PE4
+#define X_STEP_PIN PE3
+#define X_DIR_PIN PE2
+#ifndef X_CS_PIN
+ #define X_CS_PIN PF8
+#endif
+
+#define Y_ENABLE_PIN PE1
+#define Y_STEP_PIN PE0
+#define Y_DIR_PIN PB9
+#ifndef Y_CS_PIN
+ #define Y_CS_PIN PF3
+#endif
+
+#define Z_ENABLE_PIN PB8
+#define Z_STEP_PIN PB5
+#define Z_DIR_PIN PB4
+#ifndef Z_CS_PIN
+ #define Z_CS_PIN PF6
+#endif
+
+#define E0_ENABLE_PIN PB3
+#define E0_STEP_PIN PD6
+#define E0_DIR_PIN PD3
+#ifndef E0_CS_PIN
+ #define E0_CS_PIN PG15
+#endif
+
+#define E1_ENABLE_PIN PA3
+#define E1_STEP_PIN PA6
+#define E1_DIR_PIN PA1
+#ifndef E1_CS_PIN
+ #define E1_CS_PIN PG10
+#endif
+
+#define E2_ENABLE_PIN PF0
+#define E2_STEP_PIN PF2
+#define E2_DIR_PIN PF1
+#ifndef E2_CS_PIN
+ #define E2_CS_PIN PG9
+#endif
+//
+// Software SPI pins for TMC2130 stepper drivers
+//
+#if ENABLED(TMC_USE_SW_SPI)
+ #ifndef TMC_SW_MOSI
+ #define TMC_SW_MOSI PB15
+ #endif
+ #ifndef TMC_SW_MISO
+ #define TMC_SW_MISO PB14
+ #endif
+ #ifndef TMC_SW_SCK
+ #define TMC_SW_SCK PB13
+ #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 PF7
+ #define X_SERIAL_RX_PIN PF8
+
+ #define Y_SERIAL_TX_PIN PF4
+ #define Y_SERIAL_RX_PIN PF3
+
+ #define Z_SERIAL_TX_PIN PF5
+ #define Z_SERIAL_RX_PIN PF6
+
+ #define E0_SERIAL_TX_PIN PG13
+ #define E0_SERIAL_RX_PIN PG15
+
+ #define E1_SERIAL_TX_PIN PG12
+ #define E1_SERIAL_RX_PIN PG10
+
+ #define E2_SERIAL_TX_PIN PC13
+ #define E2_SERIAL_RX_PIN PG9
+#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC1 // TH1
+#define TEMP_1_PIN PC2 // TH2
+#define TEMP_2_PIN PC3 // TH3
+#define TEMP_BED_PIN PC0 // TB1
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PF10 // +HE0-
+#define HEATER_1_PIN PB0 // +HE1-
+#define HEATER_2_PIN PF9 // +HE2-
+#define HEATER_BED_PIN PA0 // +HOT-BED-
+#define FAN_PIN PB1 // +FAN-
+
+/**
+ * Note: MKS Robin Pro board is using SPI2 interface. Make sure your stm32duino library is configured accordingly
+ */
+//#define MAX6675_SS_PIN PE5 // TC1 - CS1
+//#define MAX6675_SS_PIN PF11 // TC2 - CS2
+
+#define POWER_LOSS_PIN PA2 // PW_DET
+#define PS_ON_PIN PG11 // PW_OFF
+#define FIL_RUNOUT_PIN PA4 // MT_DET1
+//#define FIL_RUNOUT_PIN PE6 // MT_DET2
+//#define FIL_RUNOUT_PIN PG14 // MT_DET3
+
+//
+// SD Card
+//
+#ifndef SDCARD_CONNECTION
+ #define SDCARD_CONNECTION ONBOARD
+#endif
+
+#if SD_CONNECTION_IS(LCD)
+ #define ENABLE_SPI2
+ #define SD_DETECT_PIN PG3
+ #define SCK_PIN PB13
+ #define MISO_PIN PB14
+ #define MOSI_PIN PB15
+ #define SS_PIN PG6
+#elif SD_CONNECTION_IS(ONBOARD)
+ #define SDIO_SUPPORT
+ #define SD_DETECT_PIN PD12
+#elif SD_CONNECTION_IS(CUSTOM_CABLE)
+ #error "No custom SD drive cable defined for this board."
+#endif
+
+/**
+ * Note: MKS Robin TFT screens use various TFT controllers.
+ * If the screen stays white, disable 'LCD_RESET_PIN'
+ * to let the bootloader init the screen.
+ */
+#if ENABLED(FSMC_GRAPHICAL_TFT)
+ #define FSMC_CS_PIN PD7 // NE4
+ #define FSMC_RS_PIN PD11 // A0
+
+ #define LCD_RESET_PIN PF6
+ #define NO_LCD_REINIT // Suppress LCD re-initialization
+
+ #define LCD_BACKLIGHT_PIN PD13
+
+ #if ENABLED(TOUCH_BUTTONS)
+ #define TOUCH_CS_PIN PA7
+ #else
+ #define BEEPER_PIN PC5
+ #define BTN_ENC PG2
+ #define BTN_EN1 PG5
+ #define BTN_EN2 PG4
+ #endif
+
+#elif HAS_SPI_LCD
+
+ #define BEEPER_PIN PC5
+ #define BTN_ENC PG2
+ #define LCD_PINS_ENABLE PG0
+ #define LCD_PINS_RS PG1
+ #define BTN_EN1 PG5
+ #define BTN_EN2 PG4
+
+ // 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 PF12
+ #define DOGLCD_CS PF15
+ #define DOGLCD_SCK PB13
+ #define DOGLCD_MOSI PB15
+
+ #else // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
+
+ #define LCD_PINS_D4 PF14
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 PF15
+ #define LCD_PINS_D6 PF12
+ #define LCD_PINS_D7 PF13
+ #endif
+
+ #endif // !MKS_MINI_12864 && !ENDER2_STOCKDISPLAY
+#endif
+
+#ifndef ST7920_DELAY_1
+ #define ST7920_DELAY_1 DELAY_NS(125)
+#endif
+#ifndef ST7920_DELAY_2
+ #define ST7920_DELAY_2 DELAY_NS(125)
+#endif
+#ifndef ST7920_DELAY_3
+ #define ST7920_DELAY_3 DELAY_NS(125)
+#endif
diff --git a/Marlin/src/pins/stm32/pins_MORPHEUS.h b/Marlin/src/pins/stm32f1/pins_MORPHEUS.h
similarity index 53%
rename from Marlin/src/pins/stm32/pins_MORPHEUS.h
rename to Marlin/src/pins/stm32f1/pins_MORPHEUS.h
index 8c583434e4..7311d91a80 100644
--- a/Marlin/src/pins/stm32/pins_MORPHEUS.h
+++ b/Marlin/src/pins/stm32f1/pins_MORPHEUS.h
@@ -39,53 +39,53 @@
//
// Limit Switches
//
-#define X_MIN_PIN PB14
-#define Y_MIN_PIN PB13
-#define Z_MIN_PIN PB12
+#define X_MIN_PIN PB14
+#define Y_MIN_PIN PB13
+#define Z_MIN_PIN PB12
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN PB9
+ #define Z_MIN_PROBE_PIN PB9
#endif
//
// Steppers
//
// X & Y enable are the same
-#define X_STEP_PIN PB7
-#define X_DIR_PIN PB6
-#define X_ENABLE_PIN PB8
+#define X_STEP_PIN PB7
+#define X_DIR_PIN PB6
+#define X_ENABLE_PIN PB8
-#define Y_STEP_PIN PB5
-#define Y_DIR_PIN PB4
-#define Y_ENABLE_PIN PB8
+#define Y_STEP_PIN PB5
+#define Y_DIR_PIN PB4
+#define Y_ENABLE_PIN PB8
-#define Z_STEP_PIN PA15
-#define Z_DIR_PIN PA10
-#define Z_ENABLE_PIN PB3
+#define Z_STEP_PIN PA15
+#define Z_DIR_PIN PA10
+#define Z_ENABLE_PIN PB3
-#define E0_STEP_PIN PA8
-#define E0_DIR_PIN PB15
-#define E0_ENABLE_PIN PA9
+#define E0_STEP_PIN PA8
+#define E0_DIR_PIN PB15
+#define E0_ENABLE_PIN PA9
//
// Temperature Sensors
//
-#define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
-#define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)
+#define TEMP_0_PIN PB1 // Analog Input (HOTEND thermistor)
+#define TEMP_BED_PIN PB0 // Analog Input (BED thermistor)
//
// Heaters / Fans
//
-#define HEATER_0_PIN PA2 // HOTEND MOSFET
-#define HEATER_BED_PIN PA0 // BED MOSFET
+#define HEATER_0_PIN PA2 // HOTEND MOSFET
+#define HEATER_BED_PIN PA0 // BED MOSFET
-#define FAN_PIN PA1 // FAN1 header on board - PRINT FAN
+#define FAN_PIN PA1 // FAN1 header on board - PRINT FAN
//
// Misc.
//
-#define LED_PIN PC13
-#define SDSS PA3
+#define LED_PIN PC13
+#define SDSS PA3
diff --git a/Marlin/src/pins/stm32f1/pins_STM32F1R.h b/Marlin/src/pins/stm32f1/pins_STM32F1R.h
new file mode 100644
index 0000000000..d144c0e692
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_STM32F1R.h
@@ -0,0 +1,261 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef __STM32F1__
+ #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
+#endif
+
+/**
+ * 21017 Victor Perez Marlin for stm32f1 test
+ */
+
+#define BOARD_INFO_NAME "Misc. STM32F1R"
+#define DEFAULT_MACHINE_NAME "STM32F103RET6"
+
+// Ignore temp readings during development.
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PB3
+#define Y_STOP_PIN PB4
+#define Z_STOP_PIN PB5
+
+//
+// Steppers
+//
+#define X_STEP_PIN PC0
+#define X_DIR_PIN PC1
+#define X_ENABLE_PIN PA8
+
+#define Y_STEP_PIN PC2
+#define Y_DIR_PIN PC3
+#define Y_ENABLE_PIN PA8
+
+#define Z_STEP_PIN PC4
+#define Z_DIR_PIN PC5
+#define Z_ENABLE_PIN PA8
+
+#define E0_STEP_PIN PC6
+#define E0_DIR_PIN PC7
+#define E0_ENABLE_PIN PA8
+
+/**
+ * TODO: Currently using same Enable pin to all steppers.
+ */
+
+#define E1_STEP_PIN PC8
+#define E1_DIR_PIN PC9
+#define E1_ENABLE_PIN PA8
+
+#define E2_STEP_PIN PC10
+#define E2_DIR_PIN PC11
+#define E2_ENABLE_PIN PA8
+
+//
+// Misc. Functions
+//
+#define SDSS PA4
+#define LED_PIN PD2
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PB0 // EXTRUDER 1
+#define HEATER_1_PIN PB1
+
+#define HEATER_BED_PIN PA3 // BED
+
+//
+// Temperature Sensors
+//
+#define TEMP_BED_PIN PA0 // Analog Input
+#define TEMP_0_PIN PA1 // Analog Input
+#define TEMP_1_PIN PA2 // 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
diff --git a/Marlin/src/pins/stm32f1/pins_STM3R_MINI.h b/Marlin/src/pins/stm32f1/pins_STM3R_MINI.h
new file mode 100644
index 0000000000..58b13b90df
--- /dev/null
+++ b/Marlin/src/pins/stm32f1/pins_STM3R_MINI.h
@@ -0,0 +1,285 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * Based on Sprinter and grbl.
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+#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 "STM3R Mini"
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
+
+// Enable I2C_EEPROM for testing
+#define I2C_EEPROM
+
+// Ignore temp readings during development.
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PD0
+#define Y_STOP_PIN PD1
+#define Z_STOP_PIN PD4
+
+//
+// Steppers
+//
+#define X_STEP_PIN PE1
+#define X_DIR_PIN PE0
+#define X_ENABLE_PIN PC0
+
+#define Y_STEP_PIN PE3
+#define Y_DIR_PIN PE2
+#define Y_ENABLE_PIN PC1
+
+#define Z_STEP_PIN PE5
+#define Z_DIR_PIN PE4
+#define Z_ENABLE_PIN PC2
+
+#define E0_STEP_PIN PE7
+#define E0_DIR_PIN PE6
+#define E0_ENABLE_PIN PC3
+
+#define E1_STEP_PIN PE9
+#define E1_DIR_PIN PE8
+#define E1_ENABLE_PIN PC4
+
+#define E2_STEP_PIN PE11
+#define E2_DIR_PIN PE10
+#define E2_ENABLE_PIN PC5
+
+//
+// Misc. Functions
+//
+#define SDSS PA15
+#define LED_PIN PB2
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PD12 // EXTRUDER 1
+//#define HEATER_1_PIN PD13
+
+#define HEATER_BED_PIN PB9 // BED
+//#define HEATER_BED2_PIN -1 // BED2
+//#define HEATER_BED3_PIN -1 // BED3
+
+#ifndef FAN_PIN
+ #define FAN_PIN PD14
+#endif
+#define FAN1_PIN PD13
+
+#define FAN_SOFT_PWM
+
+//
+// Temperature Sensors
+//
+#define TEMP_BED_PIN PA0
+#define TEMP_0_PIN PA1
+#define TEMP_1_PIN PA2
+#define TEMP_2_PIN PA3
+
+// Laser control
+#if HAS_CUTTER
+ #define SPINDLE_LASER_PWM_PIN PB8
+ #define SPINDLE_LASER_ENA_PIN PD5
+#endif
+
+//
+// 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(TOUCH_BUTTONS)
+
+ #define TOUCH_CS_PIN PB12 // SPI2_NSS
+ #define TOUCH_SCK_PIN PB13
+ #define TOUCH_MOSI_PIN PB14
+ #define TOUCH_MISO_PIN PB15
+ #define TOUCH_INT_PIN PC6 // (PenIRQ coming from ADS7843)
+
+ #elif 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
diff --git a/Marlin/src/pins/stm32f4/pins_ARMED.h b/Marlin/src/pins/stm32f4/pins_ARMED.h
new file mode 100644
index 0000000000..ddbe09c355
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_ARMED.h
@@ -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://github.com/ktand/Armed
+
+#pragma once
+
+#ifndef STM32F4
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif HOTENDS > 2 || E_STEPPERS > 2
+ #error "Arm'ed supports up to 2 hotends / E-steppers."
+#endif
+
+#ifndef ARMED_V1_0
+ #define ARMED_V1_1
+#endif
+
+#undef BOARD_INFO_NAME // Defined on the command line by Arduino Core STM32
+#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
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PE0
+#define Y_STOP_PIN PE1
+#define Z_STOP_PIN PE14
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+//#ifndef Z_MIN_PROBE_PIN
+// #define Z_MIN_PROBE_PIN PA4
+//#endif
+
+//
+// Filament Runout Sensor
+//
+#ifndef FIL_RUNOUT_PIN
+ #define FIL_RUNOUT_PIN PA3
+#endif
+
+//
+// Steppers
+//
+
+#ifdef ARMED_SWAP_X_E1
+ #define X_STEP_PIN PE4
+ #define X_DIR_PIN PE2
+ #define X_ENABLE_PIN PE3
+ #define X_CS_PIN PE5
+#else
+ #define X_STEP_PIN PD3
+ #define X_DIR_PIN PD2
+ #define X_ENABLE_PIN PD0
+ #define X_CS_PIN PD1
+#endif
+
+#define Y_STEP_PIN PE11
+#define Y_DIR_PIN PE10
+#define Y_ENABLE_PIN PE13
+#define Y_CS_PIN PE12
+
+#define Z_STEP_PIN PD6
+#define Z_DIR_PIN PD7
+#define Z_ENABLE_PIN PD4
+#define Z_CS_PIN PD5
+
+#define E0_STEP_PIN PB5
+#define E0_DIR_PIN PB6
+#ifdef ARMED_V1_1
+ #define E0_ENABLE_PIN PC12
+#else
+ #define E0_ENABLE_PIN PB3
+#endif
+#define E0_CS_PIN PB4
+
+#ifdef ARMED_SWAP_X_E1
+ #define E1_STEP_PIN PD3
+ #define E1_DIR_PIN PD2
+ #define E1_ENABLE_PIN PD0
+ #define E1_CS_PIN PD1
+#else
+ #define E1_STEP_PIN PE4
+ #define E1_DIR_PIN PE2
+ #define E1_ENABLE_PIN PE3
+ #define E1_CS_PIN PE5
+#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC0 // Analog Input
+#define TEMP_1_PIN PC1 // Analog Input
+#define TEMP_BED_PIN PC2 // Analog Input
+
+#if HOTENDS == 1 && TEMP_SENSOR_PROBE
+ #define TEMP_PROBE_PIN PC1
+#endif
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PA1 // Hardware PWM
+#define HEATER_1_PIN PA2 // Hardware PWM
+#define HEATER_BED_PIN PA0 // Hardware PWM
+
+#define FAN_PIN PC6 // Hardware PWM, Part cooling fan
+#define FAN1_PIN PC7 // Hardware PWM, Extruder fan
+#define FAN2_PIN PC8 // Hardware PWM, Controller fan
+
+//
+// Misc functions
+//
+#define SDSS PE7
+#define LED_PIN PB7 // Heart beat
+#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
+
+#if ENABLED(FYSETC_MINI_12864)
+ //
+ // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
+ //
+ #define DOGLCD_A0 PE9
+ #define DOGLCD_CS PE8
+
+ #define LCD_BACKLIGHT_PIN -1
+
+ #define LCD_RESET_PIN PB12 // 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 PB13
+ #endif
+ #ifndef RGB_LED_G_PIN
+ #define RGB_LED_G_PIN PB14
+ #endif
+ #ifndef RGB_LED_B_PIN
+ #define RGB_LED_B_PIN PB15
+ #endif
+ #elif ENABLED(FYSETC_MINI_12864_2_1)
+ #define NEOPIXEL_PIN PB13
+ #endif
+#else
+ #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
+
+ #if ENABLED(MKS_MINI_12864)
+ #define DOGLCD_CS PB13
+ #define DOGLCD_A0 PB14
+ #endif
+#endif
+
+#define BTN_EN1 PC4
+#define BTN_EN2 PC5
+#define BTN_ENC PC3
+
+//
+// Extension pins
+//
+#define EXT0_PIN PB0
+#define EXT1_PIN PB1
+#define EXT2_PIN PB2
+#define EXT3_PIN PD8
+#define EXT4_PIN PD9
+#define EXT5_PIN PD10
+#define EXT6_PIN PD11
+#define EXT7_PIN PD12
+#define EXT8_PIN PB10
+#define EXT9_PIN PB11
+
+#if HAS_TMC_UART
+ // TMC2208/TMC2209 stepper drivers
+ //
+ // Software serial
+ //
+ #define X_SERIAL_TX_PIN EXT0_PIN
+ #define X_SERIAL_RX_PIN EXT0_PIN
+
+ #define Y_SERIAL_TX_PIN EXT1_PIN
+ #define Y_SERIAL_RX_PIN EXT1_PIN
+
+ #define Z_SERIAL_TX_PIN EXT2_PIN
+ #define Z_SERIAL_RX_PIN EXT2_PIN
+
+ #define E0_SERIAL_TX_PIN EXT3_PIN
+ #define E0_SERIAL_RX_PIN EXT3_PIN
+
+ #define E1_SERIAL_RX_PIN EXT4_PIN
+ #define E1_SERIAL_TX_PIN EXT4_PIN
+
+ #define Z2_SERIAL_RX_PIN EXT4_PIN
+ #define Z2_SERIAL_TX_PIN EXT4_PIN
+
+ #define TMC_BAUD_RATE 19200
+#endif
diff --git a/Marlin/src/pins/stm32f4/pins_BEAST.h b/Marlin/src/pins/stm32f4/pins_BEAST.h
new file mode 100644
index 0000000000..5be4368789
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_BEAST.h
@@ -0,0 +1,285 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * Based on Sprinter and grbl.
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+#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
diff --git a/Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h b/Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
new file mode 100644
index 0000000000..170b90368b
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_BLACK_STM32F407VE.h
@@ -0,0 +1,155 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * STM32F407VET6 with RAMPS-like shield
+ * 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
+ * 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
+ #error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
+#endif
+
+#ifndef BOARD_INFO_NAME
+ #define BOARD_INFO_NAME "Black STM32F4VET6"
+#endif
+
+#define DEFAULT_MACHINE_NAME "STM32F407VET6"
+
+//#define I2C_EEPROM
+//#define E2END 0x1FFF // 8KB
+#define SRAM_EEPROM_EMULATION
+
+//
+// Servos
+//
+#define SERVO0_PIN PC6
+#define SERVO1_PIN PC7
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PC13
+#define X_MAX_PIN PA15
+#define Y_MIN_PIN PA5
+#define Y_MAX_PIN PD12
+#define Z_MIN_PIN PD14
+#define Z_MAX_PIN PD15
+
+//
+// Steppers
+//
+#define X_STEP_PIN PC4
+#define X_DIR_PIN PA4
+#define X_ENABLE_PIN PE7
+
+#define Y_STEP_PIN PE5
+#define Y_DIR_PIN PE2
+#define Y_ENABLE_PIN PE6
+
+#define Z_STEP_PIN PD5
+#define Z_DIR_PIN PD3
+#define Z_ENABLE_PIN PD6
+
+#define E0_STEP_PIN PD7
+#define E0_DIR_PIN PD0
+#define E0_ENABLE_PIN PB9
+
+#define E1_STEP_PIN PE0
+#define E1_DIR_PIN PE1
+#define E1_ENABLE_PIN PB8
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC0 // T0
+#define TEMP_1_PIN PC1 // T1
+#define TEMP_BED_PIN PC2 // TB
+
+#ifndef TEMP_CHAMBER_PIN
+ #define TEMP_CHAMBER_PIN PC3 // TC
+#endif
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PA2 // Heater0
+#define HEATER_1_PIN PA3 // Heater1
+#define HEATER_BED_PIN PA1 // Hotbed
+
+#define FAN_PIN PE9 // Fan0
+#define FAN1_PIN PE11 // Fan1
+#define FAN2_PIN PE13 // Fan2
+#define FAN3_PIN PE14 // Fan3
+
+//
+// Misc. Functions
+//
+#define LED_PIN PA6
+//#define LED_PIN PA7
+#define KILL_PIN PB1
+
+//
+// LCD / Controller
+//
+//#define SD_DETECT_PIN PC5
+//#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
+
+#define BEEPER_PIN PD10
+#define LCD_PINS_RS PE15
+#define LCD_PINS_ENABLE PD8
+#define LCD_PINS_D4 PE10
+#define LCD_PINS_D5 PE12
+#define LCD_PINS_D6 PD1
+#define LCD_PINS_D7 PE8
+#define BTN_ENC PD9
+#define BTN_EN1 PD4
+#define BTN_EN2 PD13
+
+#define DOGLCD_CS LCD_PINS_D5
+#define DOGLCD_A0 LCD_PINS_D6
+
+//
+// Onboard SD support
+//
+#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 !defined(SDCARD_CONNECTION) || SDCARD_CONNECTION == 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
+ #endif
+#endif
diff --git a/Marlin/src/pins/stm32/pins_BTT_BTT002_V1_0.h b/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
similarity index 53%
rename from Marlin/src/pins/stm32/pins_BTT_BTT002_V1_0.h
rename to Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
index bfae524743..ee5c4da1fe 100644
--- a/Marlin/src/pins/stm32/pins_BTT_BTT002_V1_0.h
+++ b/Marlin/src/pins/stm32f4/pins_BTT_BTT002_V1_0.h
@@ -30,8 +30,8 @@
#define BOARD_INFO_NAME "BIGTREE Btt002 1.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
+//#define SRAM_EEPROM_EMULATION // Use BackSRAM-based EEPROM emulation
+#define FLASH_EEPROM_EMULATION // Use Flash-based EEPROM emulation
// Ignore temp readings during development.
//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
@@ -39,60 +39,60 @@
//
// Limit Switches
//
-#define X_STOP_PIN PD3
-#define Y_STOP_PIN PD2
-#define Z_STOP_PIN PD1 // Shares J4 connector with PC3
+#define X_STOP_PIN PD3
+#define Y_STOP_PIN PD2
+#define Z_STOP_PIN PD1 // Shares J4 connector with PC3
//
// Z Probe must be this pin
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN PD1
+ #define Z_MIN_PROBE_PIN PD1
#endif
//
// Filament Runout Sensor
//
#ifndef FIL_RUNOUT_PIN
- #define FIL_RUNOUT_PIN PA15
+ #define FIL_RUNOUT_PIN PA15
#endif
//
// Power Loss Detection
//
#ifndef POWER_LOSS_PIN
- #define POWER_LOSS_PIN PD4
+ #define POWER_LOSS_PIN PD4
#endif
//
// Steppers
//
-#define X_STEP_PIN PA9
-#define X_DIR_PIN PA10
-#define X_ENABLE_PIN PA8
+#define X_STEP_PIN PA9
+#define X_DIR_PIN PA10
+#define X_ENABLE_PIN PA8
#ifndef X_CS_PIN
- #define X_CS_PIN PE2
+ #define X_CS_PIN PE2
#endif
-#define Y_STEP_PIN PC8
-#define Y_DIR_PIN PC9
-#define Y_ENABLE_PIN PC7
+#define Y_STEP_PIN PC8
+#define Y_DIR_PIN PC9
+#define Y_ENABLE_PIN PC7
#ifndef Y_CS_PIN
- #define Y_CS_PIN PE3
+ #define Y_CS_PIN PE3
#endif
-#define Z_STEP_PIN PD15
-#define Z_DIR_PIN PC6
-#define Z_ENABLE_PIN PD14
+#define Z_STEP_PIN PD15
+#define Z_DIR_PIN PC6
+#define Z_ENABLE_PIN PD14
#ifndef Z_CS_PIN
- #define Z_CS_PIN PE4
+ #define Z_CS_PIN PE4
#endif
-#define E0_STEP_PIN PD12
-#define E0_DIR_PIN PD13
-#define E0_ENABLE_PIN PD11
+#define E0_STEP_PIN PD12
+#define E0_DIR_PIN PD13
+#define E0_ENABLE_PIN PD11
#ifndef E0_CS_PIN
- #define E0_CS_PIN PD7
+ #define E0_CS_PIN PD7
#endif
//
@@ -100,17 +100,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PB15
+ #define TMC_SW_MOSI PB15
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO PB14
+ #define TMC_SW_MISO PB14
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK PB13
+ #define TMC_SW_SCK PB13
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -132,17 +132,17 @@
//
// Software serial ##
//
- #define X_SERIAL_TX_PIN PE2
- #define X_SERIAL_RX_PIN PE2
+ #define X_SERIAL_TX_PIN PE2
+ #define X_SERIAL_RX_PIN PE2
- #define Y_SERIAL_TX_PIN PE3
- #define Y_SERIAL_RX_PIN PE3
+ #define Y_SERIAL_TX_PIN PE3
+ #define Y_SERIAL_RX_PIN PE3
- #define Z_SERIAL_TX_PIN PE4
- #define Z_SERIAL_RX_PIN PE4
+ #define Z_SERIAL_TX_PIN PE4
+ #define Z_SERIAL_RX_PIN PE4
- #define E0_SERIAL_TX_PIN PD7
- #define E0_SERIAL_RX_PIN PD7
+ #define E0_SERIAL_TX_PIN PD7
+ #define E0_SERIAL_RX_PIN PD7
// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
@@ -151,32 +151,32 @@
//
// Temperature Sensors
//
-#define TEMP_0_PIN PA2 // T0 <-> E0
-#define TEMP_1_PIN PA0 // T1 <-> E1
-#define TEMP_BED_PIN PA1 // T2 <-> Bed
-#define TEMP_PROBE_PIN PC3 // Shares J4 connector with PD1
+#define TEMP_0_PIN PA2 // T0 <-> E0
+#define TEMP_1_PIN PA0 // T1 <-> E1
+#define TEMP_BED_PIN PA1 // T2 <-> Bed
+#define TEMP_PROBE_PIN PC3 // Shares J4 connector with PD1
//
// Heaters / Fans
//
-#define HEATER_0_PIN PE6 // Heater0
-#define HEATER_BED_PIN PE5 // Hotbed
-#define FAN_PIN PB8 // Fan1
-#define FAN1_PIN PB9 // Fan0
+#define HEATER_0_PIN PE6 // Heater0
+#define HEATER_BED_PIN PE5 // Hotbed
+#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
+ #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
+#define SDSS PA4
/**
* -------------------------------------BTT002 V1.0-----------------------------------------------
@@ -194,35 +194,35 @@
// LCDs and Controllers
//
#if HAS_SPI_LCD
- #define BEEPER_PIN PE7
- #define BTN_ENC PB1
+ #define BEEPER_PIN PE7
+ #define BTN_ENC PB1
#if ENABLED(CR10_STOCKDISPLAY)
- #define LCD_PINS_RS PE12
+ #define LCD_PINS_RS PE12
- #define BTN_EN1 PE9
- #define BTN_EN2 PE10
+ #define BTN_EN1 PE9
+ #define BTN_EN2 PE10
- #define LCD_PINS_ENABLE PE13
- #define LCD_PINS_D4 PE11
+ #define LCD_PINS_ENABLE PE13
+ #define LCD_PINS_D4 PE11
#else
- #define LCD_PINS_RS PE8
+ #define LCD_PINS_RS PE8
- #define BTN_EN1 PC5
- #define BTN_EN2 PB0
- #define SD_DETECT_PIN PC4
+ #define BTN_EN1 PC5
+ #define BTN_EN2 PB0
+ #define SD_DETECT_PIN PC4
- #define LCD_SDSS PA4
+ #define LCD_SDSS PA4
- #define LCD_PINS_ENABLE PE9
- #define LCD_PINS_D4 PE10
+ #define LCD_PINS_ENABLE PE9
+ #define LCD_PINS_D4 PE10
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_D5 PE11
- #define LCD_PINS_D6 PE12
- #define LCD_PINS_D7 PE13
+ #define LCD_PINS_D5 PE11
+ #define LCD_PINS_D6 PE12
+ #define LCD_PINS_D7 PE13
#endif
#endif
@@ -240,14 +240,14 @@
// RGB LEDs
//
#ifndef RGB_LED_R_PIN
- #define RGB_LED_R_PIN PB5
+ #define RGB_LED_R_PIN PB5
#endif
#ifndef RGB_LED_G_PIN
- #define RGB_LED_G_PIN PB4
+ #define RGB_LED_G_PIN PB4
#endif
#ifndef RGB_LED_B_PIN
- #define RGB_LED_B_PIN PB3
+ #define RGB_LED_B_PIN PB3
#endif
#ifndef RGB_LED_W_PIN
- #define RGB_LED_W_PIN -1
+ #define RGB_LED_W_PIN -1
#endif
diff --git a/Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h b/Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
new file mode 100644
index 0000000000..ac8b731aae
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_BTT_GTR_V1_0.h
@@ -0,0 +1,391 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef TARGET_STM32F4
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#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"
+
+// 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
+
+#define TP // Enable to define servo and probe pins
+
+//
+// Servos
+//
+#if ENABLED(TP)
+ #define SERVO0_PIN PB11
+#endif
+
+#define PS_ON_PIN PH6
+
+//
+// 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
+
+//
+// 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(TP) && !defined(Z_MIN_PROBE_PIN)
+ #define Z_MIN_PROBE_PIN PH11 // Z Probe must be PH11
+#endif
+
+//
+// Steppers
+//
+#define X_STEP_PIN PC15
+#define X_DIR_PIN PF0
+#define X_ENABLE_PIN PF1
+#ifndef X_CS_PIN
+ #define X_CS_PIN PC14
+#endif
+
+#define Y_STEP_PIN PE3
+#define Y_DIR_PIN PE2
+#define Y_ENABLE_PIN PE4
+#ifndef Y_CS_PIN
+ #define Y_CS_PIN PE1
+#endif
+
+#define Z_STEP_PIN PB8
+#define Z_DIR_PIN PB7 // PB7
+#define Z_ENABLE_PIN PB9
+#ifndef Z_CS_PIN
+ #define Z_CS_PIN PB5
+#endif
+
+#define E0_STEP_PIN PG12
+#define E0_DIR_PIN PG11
+#define E0_ENABLE_PIN PG13
+#ifndef E0_CS_PIN
+ #define E0_CS_PIN PG10
+#endif
+
+#define E1_STEP_PIN PD6
+#define E1_DIR_PIN PD5
+#define E1_ENABLE_PIN PD7
+#ifndef E1_CS_PIN
+ #define E1_CS_PIN PD4
+#endif
+
+#define E2_STEP_PIN PD1
+#define E2_DIR_PIN PD0
+#define E2_ENABLE_PIN PD2
+#ifndef E2_CS_PIN
+ #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
+
+#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 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
+
+//
+// Software SPI pins for TMC2130 stepper drivers
+//
+#if ENABLED(TMC_USE_SW_SPI)
+ #ifndef TMC_SW_MOSI
+ #define TMC_SW_MOSI PG15
+ #endif
+ #ifndef TMC_SW_MISO
+ #define TMC_SW_MISO PB6
+ #endif
+ #ifndef TMC_SW_SCK
+ #define TMC_SW_SCK PB3
+ #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
+ //#define E5_HARDWARE_SERIAL Serial1
+ //#define E6_HARDWARE_SERIAL Serial1
+ //#define E7_HARDWARE_SERIAL Serial1
+
+ //
+ // Software serial
+ //
+ #define X_SERIAL_TX_PIN PC14
+ #define X_SERIAL_RX_PIN PC14
+
+ #define Y_SERIAL_TX_PIN PE1
+ #define Y_SERIAL_RX_PIN PE1
+
+ #define Z_SERIAL_TX_PIN PB5
+ #define Z_SERIAL_RX_PIN PB5
+
+ #define E0_SERIAL_TX_PIN PG10
+ #define E0_SERIAL_RX_PIN PG10
+
+ #define E1_SERIAL_TX_PIN PD4
+ #define E1_SERIAL_RX_PIN PD4
+
+ #define E2_SERIAL_TX_PIN PC12
+ #define E2_SERIAL_RX_PIN PC12
+
+ #define E3_SERIAL_TX_PIN PG4
+ #define E3_SERIAL_RX_PIN PG4
+
+ #define E4_SERIAL_TX_PIN PE15
+ #define E4_SERIAL_RX_PIN PE15
+
+ #define E5_SERIAL_TX_PIN PE7
+ #define E5_SERIAL_RX_PIN PE7
+
+ #define E6_SERIAL_TX_PIN PF15
+ #define E6_SERIAL_RX_PIN PF15
+
+ #define E7_SERIAL_TX_PIN PH14
+ #define E7_SERIAL_RX_PIN PH14
+
+ // Reduce baud rate to improve software serial reliability
+ #define TMC_BAUD_RATE 19200
+#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC1 // T1 <-> E0
+#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
+
+#define TEMP_BED_PIN PC0 // T0 <-> Bed
+
+// SPI for Max6675 or Max31855 Thermocouple
+// Uses a separate SPI bus
+// If you have a two-way thermocouple, you can customize two THERMO_CSx_PIN pins (x:1~2)
+
+#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 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
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PB1 // Heater0
+#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
+
+#define HEATER_BED_PIN PA2 // Hotbed
+
+#define FAN_PIN PE5 // Fan0
+#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
+#endif
+
+// HAL SPI1 pins group
+#if ENABLED(CUSTOM_SPI_PINS)
+ #define SDSS PA4
+ #define SD_DETECT_PIN PC4
+ #define LCD_SDSS PA4
+
+ #define SCK_PIN PA5
+ #define MISO_PIN PA6
+ #define MOSI_PIN PA7
+ #define SS_PIN PA4 // Chip select for SD card used by Marlin
+#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
+ */
+
+//
+// LCDs and Controllers
+//
+#if HAS_SPI_LCD
+ #define BEEPER_PIN PC11
+ #define BTN_ENC PA15
+
+ #if ENABLED(CR10_STOCKDISPLAY)
+
+ #define LCD_PINS_RS PA8
+
+ #define BTN_EN1 PD10
+ #define BTN_EN2 PH10
+
+ #define LCD_PINS_ENABLE PG7
+ #define LCD_PINS_D4 PG8
+
+ //#undef ST7920_DELAY_1
+ //#undef ST7920_DELAY_2
+ //#undef ST7920_DELAY_3
+
+ #else
+
+ #define LCD_PINS_RS PA8
+
+ #define BTN_EN1 PD10
+ #define BTN_EN2 PH10
+
+ #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
+
+ #if ENABLED(FYSETC_MINI_12864)
+ #define DOGLCD_CS PC10
+ #define DOGLCD_A0 PA8
+ //#define LCD_BACKLIGHT_PIN -1
+ #define LCD_RESET_PIN PG8 // 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
+ #endif
+ #ifndef RGB_LED_G_PIN
+ #define RGB_LED_G_PIN PG6
+ #endif
+ #ifndef RGB_LED_B_PIN
+ #define RGB_LED_B_PIN PG5
+ #endif
+ #elif ENABLED(FYSETC_MINI_12864_2_1)
+ #define NEOPIXEL_PIN PF13
+ #endif
+ #endif // !FYSETC_MINI_12864
+
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 PG7
+ #define LCD_PINS_D6 PG6
+ #define LCD_PINS_D7 PG5
+ #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
+
+ //#define DOGLCD_CS PB12
+ //#define DOGLCD_A0 PA8
+ //#define LCD_PINS_DC PB14
+ //#define DOGLCD_MOSI PB15
+
+#endif // HAS_SPI_LCD
diff --git a/Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h b/Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
new file mode 100644
index 0000000000..4dbdf0e77f
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_BTT_SKR_PRO_V1_1.h
@@ -0,0 +1,284 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef TARGET_STM32F4
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif 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?
+
+// 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
diff --git a/Marlin/src/pins/stm32f4/pins_FLYF407ZG.h b/Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
new file mode 100644
index 0000000000..8205cd9f4d
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_FLYF407ZG.h
@@ -0,0 +1,265 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#if !defined(STM32F4) && !defined(STM32F4xx)
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif HOTENDS > 6 || E_STEPPERS > 6
+ #error "FLYF407ZG supports up to 6 hotends / E-steppers."
+#endif
+
+#define BOARD_INFO_NAME "FLYF407ZG"
+#define BOARD_WEBSITE_URL "github.com/FLYmaker/FLYF407ZG"
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
+
+#undef E2END
+#define E2END 0xFFF // 4KB
+
+//
+// Servos
+//
+#define SERVO0_PIN PE11
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PC3
+#define X_MAX_PIN PC2
+#define Y_MIN_PIN PF2
+#define Y_MAX_PIN PF1
+#define Z_MIN_PIN PF0
+#define Z_MAX_PIN PC15
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+#define Z_MIN_PROBE_PIN PC14 // Z3_PIN
+
+//
+// Steppers
+//
+
+#define X_STEP_PIN PB9
+#define X_DIR_PIN PE0
+#define X_ENABLE_PIN PE1
+#ifndef X_CS_PIN
+ #define X_CS_PIN PG13
+#endif
+
+#define Y_STEP_PIN PB8
+#define Y_DIR_PIN PG11
+#define Y_ENABLE_PIN PG12
+#ifndef Y_CS_PIN
+ #define Y_CS_PIN PG10
+#endif
+
+#define Z_STEP_PIN PA8
+#define Z_DIR_PIN PD6
+#define Z_ENABLE_PIN PD7
+#ifndef Z_CS_PIN
+ #define Z_CS_PIN PD5
+#endif
+
+#define E0_STEP_PIN PC7
+#define E0_DIR_PIN PD3
+#define E0_ENABLE_PIN PD4
+#ifndef E0_CS_PIN
+ #define E0_CS_PIN PD1
+#endif
+
+#define E1_STEP_PIN PC6
+#define E1_DIR_PIN PA15
+#define E1_ENABLE_PIN PD0
+#ifndef E1_CS_PIN
+ #define E1_CS_PIN PA14
+#endif
+
+#define E2_STEP_PIN PD15
+#define E2_DIR_PIN PG7
+#define E2_ENABLE_PIN PG8
+#ifndef E2_CS_PIN
+ #define E2_CS_PIN PG6
+#endif
+
+#define E3_STEP_PIN PD14
+#define E3_DIR_PIN PG4
+#define E3_ENABLE_PIN PG5
+#ifndef E3_CS_PIN
+ #define E3_CS_PIN PG3
+#endif
+
+#define E4_STEP_PIN PD13
+#define E4_DIR_PIN PD11
+#define E4_ENABLE_PIN PG2
+#ifndef E4_CS_PIN
+ #define E4_CS_PIN PD10
+#endif
+
+#define E5_STEP_PIN PD12
+#define E5_DIR_PIN PD8
+#define E5_ENABLE_PIN PD9
+#ifndef E5_CS_PIN
+ #define E5_CS_PIN PB12
+#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PA0 // Analog Input
+#define TEMP_1_PIN PC1 // Analog Input
+#define TEMP_2_PIN PC0 // Analog Input
+#define TEMP_3_PIN PF10 // Analog Input
+#define TEMP_4_PIN PF5 // Analog Input
+#define TEMP_5_PIN PF4 // Analog Input
+#define TEMP_BED_PIN PF3 // Analog Input
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PF7
+#define HEATER_1_PIN PF6
+#define HEATER_2_PIN PE6
+#define HEATER_3_PIN PE5
+#define HEATER_4_PIN PE4
+#define HEATER_5_PIN PA2
+#define HEATER_BED_PIN PE2
+
+#ifndef FAN_PIN
+ #define FAN_PIN PF8
+#endif
+#define FAN1_PIN PF9
+#define FAN2_PIN PE3
+#define FAN3_PIN PA1
+#define FAN4_PIN PE13
+#define FAN5_PIN PB11
+
+//
+// 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
+ #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
+ #endif
+#endif
+
+//
+// Trinamic Software SPI
+//
+
+#if ENABLED(TMC_USE_SW_SPI)
+ #ifndef TMC_SW_MOSI
+ #define TMC_SW_MOSI PB15
+ #endif
+ #ifndef TMC_SW_MISO
+ #define TMC_SW_MISO PB14
+ #endif
+ #ifndef TMC_SW_SCK
+ #define TMC_SW_SCK PB13
+ #endif
+#endif
+
+//
+// Trinamic Software Serial
+//
+
+#if HAS_TMC_UART
+ #define X_SERIAL_TX_PIN PG13
+ #define X_SERIAL_RX_PIN PG13
+
+ #define Y_SERIAL_TX_PIN PG10
+ #define Y_SERIAL_RX_PIN PG10
+
+ #define Z_SERIAL_TX_PIN PD5
+ #define Z_SERIAL_RX_PIN PD5
+
+ #define E0_SERIAL_TX_PIN PD1
+ #define E0_SERIAL_RX_PIN PD1
+
+ #define E1_SERIAL_TX_PIN PA14
+ #define E1_SERIAL_RX_PIN PA14
+
+ #define E2_SERIAL_TX_PIN PG6
+ #define E2_SERIAL_RX_PIN PG6
+
+ #define E3_SERIAL_TX_PIN PG3
+ #define E3_SERIAL_RX_PIN PG3
+
+ #define E4_SERIAL_TX_PIN PD10
+ #define E4_SERIAL_RX_PIN PD10
+
+ #define E5_SERIAL_TX_PIN PB12
+ #define E5_SERIAL_RX_PIN PB12
+
+#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
+
+//
+// Filament runout
+//
+
+#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)
+#endif
diff --git a/Marlin/src/pins/stm32f4/pins_FYSETC_S6.h b/Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
new file mode 100644
index 0000000000..bdadbe36c2
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_FYSETC_S6.h
@@ -0,0 +1,266 @@
+/**
+ * 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 .
+ *
+ */
+#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."
+#endif
+
+#ifndef BOARD_INFO_NAME
+ #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
+
+//
+// EEPROM Emulation
+//
+#define FLASH_EEPROM_EMULATION
+#if ENABLED(FLASH_EEPROM_EMULATION)
+ #define FLASH_EEPROM_LEVELING
+#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
+#endif
+
+//
+// Servos
+//
+#define SERVO0_PIN PA3
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PB14
+#define X_MAX_PIN PA1
+#define Y_MIN_PIN PB13
+#define Y_MAX_PIN PA2
+#define Z_MIN_PIN PA0
+#define Z_MAX_PIN PA3
+
+//
+// Filament Sensor
+// share with X_MAX_PIN
+//
+#ifndef FIL_RUNOUT_PIN
+ #define FIL_RUNOUT_PIN PA1
+#endif
+
+//
+// Steppers
+//
+#define X_STEP_PIN PE11
+#define X_DIR_PIN PE10
+#define X_ENABLE_PIN PE12
+#define X_CS_PIN PE7
+
+#define Y_STEP_PIN PD8
+#define Y_DIR_PIN PB12
+#define Y_ENABLE_PIN PD9
+#define Y_CS_PIN PE15
+
+#define Z_STEP_PIN PD14
+#define Z_DIR_PIN PD13
+#define Z_ENABLE_PIN PD15
+#define Z_CS_PIN PD10
+
+#define E0_STEP_PIN PD5
+#define E0_DIR_PIN PD6
+#define E0_ENABLE_PIN PD4
+#define E0_CS_PIN PD7
+
+#define E1_STEP_PIN PE6
+#define E1_DIR_PIN PC13
+#define E1_ENABLE_PIN PE5
+#define E1_CS_PIN PC14
+
+#define E2_STEP_PIN PE2
+#define E2_DIR_PIN PE4
+#define E2_ENABLE_PIN PE3
+#define E2_CS_PIN PC15
+
+#if HAS_TMC_UART
+ //
+ // 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
+#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC0
+#define TEMP_1_PIN PC1
+#define TEMP_2_PIN PC2
+#define TEMP_BED_PIN PC3
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PB3
+#define HEATER_1_PIN PB4
+#define HEATER_2_PIN PB15
+#define HEATER_BED_PIN PC8
+
+#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
+
+//
+// LCD / Controller
+//
+#if HAS_SPI_LCD
+ #define BEEPER_PIN PC9
+ #define BTN_ENC PA8
+
+ #if ENABLED(CR10_STOCKDISPLAY)
+ #define LCD_PINS_RS PD0
+
+ #define BTN_EN1 PC11
+ #define BTN_EN2 PC10
+
+ #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
+
+ #else
+
+ #define LCD_PINS_RS PD2
+
+ #define BTN_EN1 PC6
+ #define BTN_EN2 PC7
+
+ #define LCD_SDSS PA4
+
+ #define LCD_PINS_ENABLE PC11
+ #define LCD_PINS_D4 PC10
+
+ #if ENABLED(FYSETC_MINI_12864)
+ // See https://wiki.fysetc.com/Mini12864_Panel
+ #define DOGLCD_CS PC11
+ #define DOGLCD_A0 PD2
+ #if ENABLED(FYSETC_GENERIC_12864_1_1)
+ #define LCD_BACKLIGHT_PIN PD0
+ #endif
+ #define LCD_RESET_PIN PC10 // 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
+ #endif
+ #ifndef RGB_LED_G_PIN
+ #define RGB_LED_G_PIN PD0
+ #endif
+ #ifndef RGB_LED_B_PIN
+ #define RGB_LED_B_PIN PD1
+ #endif
+ #elif ENABLED(FYSETC_MINI_12864_2_1)
+ #define NEOPIXEL_PIN PC12
+ #endif
+ #endif // !FYSETC_MINI_12864
+
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 PC12
+ #define LCD_PINS_D6 PD0
+ #define LCD_PINS_D7 PD1
+ #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_SPI_LCD
+
+#ifndef RGB_LED_R_PIN
+ #define RGB_LED_R_PIN PB6
+#endif
+#ifndef RGB_LED_G_PIN
+ #define RGB_LED_G_PIN PB5
+#endif
+#ifndef RGB_LED_B_PIN
+ #define RGB_LED_B_PIN PB7
+#endif
+#ifndef RGB_LED_W_PIN
+ #define RGB_LED_W_PIN -1
+#endif
diff --git a/Marlin/src/pins/stm32f4/pins_GENERIC_STM32F4.h b/Marlin/src/pins/stm32f4/pins_GENERIC_STM32F4.h
new file mode 100644
index 0000000000..924b94c4f1
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_GENERIC_STM32F4.h
@@ -0,0 +1,189 @@
+/**
+ * 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 .
+ *
+ */
+#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
diff --git a/Marlin/src/pins/stm32f4/pins_LERDGE_K.h b/Marlin/src/pins/stm32f4/pins_LERDGE_K.h
new file mode 100644
index 0000000000..d21cdd0958
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_LERDGE_K.h
@@ -0,0 +1,177 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * 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 .
+ *
+ */
+#pragma once
+
+#if !defined(STM32F4) && !defined(STM32F4xx)
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif 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
+
+// Ignore temp readings during develpment.
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+
+//
+// Servos
+//
+//#define SERVO0_PIN PD12
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PG3
+#define Y_STOP_PIN PG4
+#define Z_STOP_PIN PG5
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+//#ifndef Z_MIN_PROBE_PIN
+// #define Z_MIN_PROBE_PIN PB15
+//#endif
+
+//
+// Filament runout
+//
+#define FIL_RUNOUT_PIN PE6
+#define FIL_RUNOUT2_PIN PE7
+
+//
+// Steppers
+//
+#define X_STEP_PIN PG1
+#define X_DIR_PIN PB10
+#define X_ENABLE_PIN PG0
+//#ifndef X_CS_PIN
+// #define X_CS_PIN PE0
+//#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
+//#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
+//#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
+//#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
+//#endif
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC1 // Analog Input
+#define TEMP_1_PIN PC2 // Analog Input
+#define TEMP_BED_PIN PC0 // Analog Input
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PA1
+#define HEATER_1_PIN PA0
+#define HEATER_BED_PIN PA2
+
+#ifndef FAN_PIN
+ #define FAN_PIN PC15
+#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
+
+//
+// LED / Lighting
+//
+//#define CASE_LIGHT_PIN_CI -1
+//#define CASE_LIGHT_PIN_DO -1
+//#define NEOPIXEL_PIN -1
+
+//
+// Prusa i3 MK2 Multi-Material Multiplexer Support
+//
+//#define E_MUX0_PIN -1
+//#define E_MUX1_PIN -1
+
+//
+// SD support
+//
+#define SDIO_SUPPORT
+
+//
+// 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
+
+//
+// LCD / Controller
+//
+
+// 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 BTN_EN1 PE3
+#define BTN_EN2 PE4
+#define BTN_ENC PE2
+
+//
+// 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
diff --git a/Marlin/src/pins/stm32f4/pins_LERDGE_X.h b/Marlin/src/pins/stm32f4/pins_LERDGE_X.h
new file mode 100644
index 0000000000..c54c5c1806
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_LERDGE_X.h
@@ -0,0 +1,174 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * 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 .
+ *
+ */
+#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."
+#endif
+
+#define BOARD_INFO_NAME "Lerdge X"
+#define DEFAULT_MACHINE_NAME "LERDGE"
+
+//#define I2C_EEPROM
+
+//
+// Servos
+//
+//#define SERVO0_PIN PD12
+//#define SERVO1_PIN -1
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PB12
+#define Y_STOP_PIN PB13
+#define Z_STOP_PIN PB14
+
+//
+// Filament runout
+//
+#define FIL_RUNOUT_PIN PE1
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+//#ifndef Z_MIN_PROBE_PIN
+// #define Z_MIN_PROBE_PIN PB15
+//#endif
+
+//
+// Steppers
+//
+#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
+//
+#define TEMP_0_PIN PC0 // Analog Input
+#define TEMP_1_PIN -1 // Analog Input
+#define TEMP_BED_PIN PC1 // Analog Input
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PA1
+#define HEATER_1_PIN -1
+#define HEATER_BED_PIN PA2
+
+#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
+
+//
+// LED / Lighting
+//
+//#define CASE_LIGHT_PIN_CI -1
+//#define CASE_LIGHT_PIN_DO -1
+//#define NEOPIXEL_PIN -1
+
+//
+// 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
+
+//
+// SD support
+//
+#define SDIO_SUPPORT
+
+//
+// LCD / Controller
+//
+
+// The LCD is initialized in FSMC mode
+#define SD_DETECT_PIN -1
+#define BEEPER_PIN PD12
+
+#define BTN_EN1 PE3
+#define BTN_EN2 PE4
+#define BTN_ENC PE2
+
+#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)
+#endif
diff --git a/Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h b/Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
new file mode 100644
index 0000000000..36298d05f5
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_MKS_ROBIN2.h
@@ -0,0 +1,101 @@
+/**
+ * Marlin 3D Printer Firmware
+ * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
+ *
+ * Based on Sprinter and grbl.
+ * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ *
+ */
+#pragma once
+
+#ifndef STM32F4
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif 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"
+#endif
+
+#ifndef DEFAULT_MACHINE_NAME
+ #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
+#endif
+
+#define SRAM_EEPROM_EMULATION
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PG8
+#define X_MAX_PIN PG7
+#define Y_MIN_PIN PG6
+#define Y_MAX_PIN PG5
+#define Z_MIN_PIN PG4
+#define Z_MAX_PIN PG3
+
+//
+// Servos
+//
+#define SERVO0_PIN PB0 // XS2-5
+#define SERVO1_PIN PF7 // XS1-5
+#define SERVO2_PIN PF8 // XS1-6
+
+//
+// Steppers
+//
+#define X_STEP_PIN PE6
+#define X_DIR_PIN PE5
+#define X_ENABLE_PIN PC13
+
+#define Y_STEP_PIN PE3
+#define Y_DIR_PIN PE2
+#define Y_ENABLE_PIN PE4
+
+#define Z_STEP_PIN PE0
+#define Z_DIR_PIN PB9
+#define Z_ENABLE_PIN PE1
+
+#define E0_STEP_PIN PG10
+#define E0_DIR_PIN PG9
+#define E0_ENABLE_PIN PB8
+
+#define E1_STEP_PIN PD3
+#define E1_DIR_PIN PA15
+#define E1_ENABLE_PIN PD6
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC1 // T1 <-> E0
+#define TEMP_1_PIN PC2 // T2 <-> E1
+#define TEMP_BED_PIN PC0 // T0 <-> Bed
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PF3 // Heater0
+#define HEATER_1_PIN PF2 // Heater1
+#define HEATER_BED_PIN PF4 // Hotbed
+#define FAN_PIN PA7 // Fan0
+
+//
+// Misc. Functions
+//
+#define SDSS -1 // PB12
+
+#define SD_DETECT_PIN PF9
+#define BEEPER_PIN PG2
diff --git a/Marlin/src/pins/stm32/pins_RUMBA32_AUS3D.h b/Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
similarity index 100%
rename from Marlin/src/pins/stm32/pins_RUMBA32_AUS3D.h
rename to Marlin/src/pins/stm32f4/pins_RUMBA32_AUS3D.h
diff --git a/Marlin/src/pins/stm32/pins_RUMBA32_MKS.h b/Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
similarity index 76%
rename from Marlin/src/pins/stm32/pins_RUMBA32_MKS.h
rename to Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
index 8e2bb3b8af..9fcd5a1474 100644
--- a/Marlin/src/pins/stm32/pins_RUMBA32_MKS.h
+++ b/Marlin/src/pins/stm32f4/pins_RUMBA32_MKS.h
@@ -46,17 +46,17 @@
//
#if ENABLED(TMC_USE_SW_SPI)
#ifndef TMC_SW_MOSI
- #define TMC_SW_MOSI PA7
+ #define TMC_SW_MOSI PA7
#endif
#ifndef TMC_SW_MISO
- #define TMC_SW_MISO PA6
+ #define TMC_SW_MISO PA6
#endif
#ifndef TMC_SW_SCK
- #define TMC_SW_SCK PA5
+ #define TMC_SW_SCK PA5
#endif
#endif
-#if HAS_TMC220x
+#if HAS_TMC_UART
/**
* TMC2208/TMC2209 stepper drivers
*
@@ -78,23 +78,23 @@
//
// Software serial
//
- #define X_SERIAL_TX_PIN PA3
- #define X_SERIAL_RX_PIN PC14
+ #define X_SERIAL_TX_PIN PA3
+ #define X_SERIAL_RX_PIN PC14
- #define Y_SERIAL_TX_PIN PA4
- #define Y_SERIAL_RX_PIN PE4
+ #define Y_SERIAL_TX_PIN PA4
+ #define Y_SERIAL_RX_PIN PE4
- #define Z_SERIAL_TX_PIN PD13
- #define Z_SERIAL_RX_PIN PE0
+ #define Z_SERIAL_TX_PIN PD13
+ #define Z_SERIAL_RX_PIN PE0
- #define E0_SERIAL_TX_PIN PD14
- #define E0_SERIAL_RX_PIN PC13
+ #define E0_SERIAL_TX_PIN PD14
+ #define E0_SERIAL_RX_PIN PC13
- #define E1_SERIAL_TX_PIN PD15
- #define E1_SERIAL_RX_PIN PD5
+ #define E1_SERIAL_TX_PIN PD15
+ #define E1_SERIAL_RX_PIN PD5
- #define E2_SERIAL_TX_PIN PD12
- #define E2_SERIAL_RX_PIN PD1
+ #define E2_SERIAL_TX_PIN PD12
+ #define E2_SERIAL_RX_PIN PD1
#endif
//
diff --git a/Marlin/src/pins/stm32f4/pins_RUMBA32_common.h b/Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
new file mode 100644
index 0000000000..19853a78fe
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_RUMBA32_common.h
@@ -0,0 +1,149 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+/**
+ * Common pin assignments for all RUMBA32 boards
+ */
+
+#ifndef STM32F4
+ #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
+#elif 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
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PB12
+#define X_MAX_PIN PB13
+#define Y_MIN_PIN PB15
+#define Y_MAX_PIN PD8
+#define Z_MIN_PIN PD9
+#define Z_MAX_PIN PD10
+
+//
+// Steppers
+//
+#define X_STEP_PIN PA0
+#define X_DIR_PIN PC15
+#define X_ENABLE_PIN PC11
+#define X_CS_PIN PC14
+
+#define Y_STEP_PIN PE5
+#define Y_DIR_PIN PE6
+#define Y_ENABLE_PIN PE3
+#define Y_CS_PIN PE4
+
+#define Z_STEP_PIN PE1
+#define Z_DIR_PIN PE2
+#define Z_ENABLE_PIN PB7
+#define Z_CS_PIN PE0
+
+#define E0_STEP_PIN PB5
+#define E0_DIR_PIN PB6
+#define E0_ENABLE_PIN PC12
+#define E0_CS_PIN PC13
+
+#define E1_STEP_PIN PD6
+#define E1_DIR_PIN PD7
+#define E1_ENABLE_PIN PD4
+#define E1_CS_PIN PD5
+
+#define E2_STEP_PIN PD2
+#define E2_DIR_PIN PD3
+#define E2_ENABLE_PIN PD0
+#define E2_CS_PIN PD1
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN PC4
+#define TEMP_1_PIN PC3
+#define TEMP_2_PIN PC2
+#define TEMP_3_PIN PC1
+#define TEMP_BED_PIN PC0
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PC6
+#define HEATER_1_PIN PC7
+#define HEATER_2_PIN PC8
+#define HEATER_BED_PIN PA1
+
+#define FAN_PIN PC9
+#define FAN1_PIN PA8
+
+//
+// I2C
+//
+#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 PA2
+#define SD_DETECT_PIN PB0
+#define BEEPER_PIN PE8
+
+//
+// LCD / Controller
+//
+#if HAS_SPI_LCD
+
+ #define BTN_EN1 PB2
+ #define BTN_EN2 PB1
+ #define BTN_ENC PE7
+
+ #define LCD_PINS_RS PE10
+ #define LCD_PINS_ENABLE PE9
+ #define LCD_PINS_D4 PE12
+
+ #if ENABLED(MKS_MINI_12864)
+ #define DOGLCD_CS PE13
+ #define DOGLCD_A0 PE14
+ #endif
+
+ #if ENABLED(ULTIPANEL)
+ #define LCD_PINS_D5 PE13
+ #define LCD_PINS_D6 PE14
+ #define LCD_PINS_D7 PE15
+ #endif
+
+#endif
diff --git a/Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h b/Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
similarity index 53%
rename from Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h
rename to Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
index 2b6e6f6c33..1a008cd4ae 100644
--- a/Marlin/src/pins/stm32/pins_STEVAL_3DP001V1.h
+++ b/Marlin/src/pins/stm32f4/pins_STEVAL_3DP001V1.h
@@ -51,13 +51,13 @@
//
// Limit Switches
//
-#define X_MIN_PIN 39 // PD8 X_STOP
-#define Y_MIN_PIN 40 // PD9 Y_STOP
-#define Z_MIN_PIN 41 // PD10 Z_STOP
+#define X_MIN_PIN 39 // PD8 X_STOP
+#define Y_MIN_PIN 40 // PD9 Y_STOP
+#define Z_MIN_PIN 41 // PD10 Z_STOP
-#define X_MAX_PIN 44 // PD0 W_STOP
-#define Y_MAX_PIN 43 // PA8 V_STOP
-#define Z_MAX_PIN 42 // PD11 U_STOP
+#define X_MAX_PIN 44 // PD0 W_STOP
+#define Y_MAX_PIN 43 // PA8 V_STOP
+#define Z_MAX_PIN 42 // PD11 U_STOP
//
// Z Probe (when not Z_MIN_PIN)
@@ -69,64 +69,64 @@
//
// Filament runout
//
-//#define FIL_RUNOUT_PIN 53 // PA3 BED_THE
+//#define FIL_RUNOUT_PIN 53 // PA3 BED_THE
//
// Steppers
//
-#define X_STEP_PIN 61 // PE14 X_PWM
-#define X_DIR_PIN 62 // PE15 X_DIR
-#define X_ENABLE_PIN 60 // PE13 X_RES
-#define X_CS_PIN 16 // PA4 SPI_CS
+#define X_STEP_PIN 61 // PE14 X_PWM
+#define X_DIR_PIN 62 // PE15 X_DIR
+#define X_ENABLE_PIN 60 // PE13 X_RES
+#define X_CS_PIN 16 // PA4 SPI_CS
-#define Y_STEP_PIN 64 // PB10 Y_PWM
-#define Y_DIR_PIN 65 // PE9 Y_DIR
-#define Y_ENABLE_PIN 63 // PE10 Y_RES
-#define Y_CS_PIN 16 // PA4 SPI_CS
+#define Y_STEP_PIN 64 // PB10 Y_PWM
+#define Y_DIR_PIN 65 // PE9 Y_DIR
+#define Y_ENABLE_PIN 63 // PE10 Y_RES
+#define Y_CS_PIN 16 // PA4 SPI_CS
-#define Z_STEP_PIN 67 // PC6 Z_PWM
-#define Z_DIR_PIN 68 // PC0 Z_DIR
-#define Z_ENABLE_PIN 66 // PC15 Z_RES
-#define Z_CS_PIN 16 // PA4 SPI_CS
+#define Z_STEP_PIN 67 // PC6 Z_PWM
+#define Z_DIR_PIN 68 // PC0 Z_DIR
+#define Z_ENABLE_PIN 66 // PC15 Z_RES
+#define Z_CS_PIN 16 // PA4 SPI_CS
-#define E0_STEP_PIN 71 // PD12 E1_PW
-#define E0_DIR_PIN 70 // PC13 E1_DIR
-#define E0_ENABLE_PIN 69 // PC14 E1_RE
-#define E0_CS_PIN 16 // PA4 SPI_CS
+#define E0_STEP_PIN 71 // PD12 E1_PW
+#define E0_DIR_PIN 70 // PC13 E1_DIR
+#define E0_ENABLE_PIN 69 // PC14 E1_RE
+#define E0_CS_PIN 16 // PA4 SPI_CS
-#define E1_STEP_PIN 73 // PE5 E2_PWM
-#define E1_DIR_PIN 74 // PE6 E2_DIR
-#define E1_ENABLE_PIN 72 // PE4 E2_RESE
-#define E1_CS_PIN 16 // PA4 SPI_CS
+#define E1_STEP_PIN 73 // PE5 E2_PWM
+#define E1_DIR_PIN 74 // PE6 E2_DIR
+#define E1_ENABLE_PIN 72 // PE4 E2_RESE
+#define E1_CS_PIN 16 // PA4 SPI_CS
-#define E2_STEP_PIN 77 // PB8 E3_PWM
-#define E2_DIR_PIN 76 // PE2 E3_DIR
-#define E2_ENABLE_PIN 75 // PE3 E3_RESE
-#define E2_CS_PIN 16 // PA4 SPI_CS
+#define E2_STEP_PIN 77 // PB8 E3_PWM
+#define E2_DIR_PIN 76 // PE2 E3_DIR
+#define E2_ENABLE_PIN 75 // PE3 E3_RESE
+#define E2_CS_PIN 16 // PA4 SPI_CS
// needed to pass a sanity check
-#define X2_CS_PIN 16 // PA4 SPI_CS
-#define Y2_CS_PIN 16 // PA4 SPI_CS
-#define Z2_CS_PIN 16 // PA4 SPI_CS
-#define Z3_CS_PIN 16 // PA4 SPI_CS
-#define E3_CS_PIN 16 // PA4 SPI_CS
-#define E4_CS_PIN 16 // PA4 SPI_CS
-#define E5_CS_PIN 16 // PA4 SPI_CS
+#define X2_CS_PIN 16 // PA4 SPI_CS
+#define Y2_CS_PIN 16 // PA4 SPI_CS
+#define Z2_CS_PIN 16 // PA4 SPI_CS
+#define Z3_CS_PIN 16 // PA4 SPI_CS
+#define E3_CS_PIN 16 // PA4 SPI_CS
+#define E4_CS_PIN 16 // PA4 SPI_CS
+#define E5_CS_PIN 16 // PA4 SPI_CS
#if HAS_L64XX
- #define L6470_CHAIN_SCK_PIN 17 // PA5
- #define L6470_CHAIN_MISO_PIN 18 // PA6
- #define L6470_CHAIN_MOSI_PIN 19 // PA7
- #define L6470_CHAIN_SS_PIN 16 // PA4
+ #define L6470_CHAIN_SCK_PIN 17 // PA5
+ #define L6470_CHAIN_MISO_PIN 18 // PA6
+ #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 SCK_PIN L6470_CHAIN_SCK_PIN
+ //#define MISO_PIN L6470_CHAIN_MISO_PIN
+ //#define 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 SCK_PIN 13 // PB13 SPI_S
+ //#define MISO_PIN 12 // PB14 SPI_M
+ //#define MOSI_PIN 11 // PB15 SPI_M
#endif
/**
@@ -147,64 +147,64 @@
//
// Temperature Sensors
//
-#define TEMP_0_PIN 3 // Analog input 3, digital pin 54 PA0 E1_THERMISTOR
-#define TEMP_1_PIN 4 // Analog input 4, digital pin 55 PA1 E2_THERMISTOR
-#define TEMP_2_PIN 5 // Analog input 5, digital pin 56 PA2 E3_THERMISTOR
-#define TEMP_BED_PIN 0 // Analog input 0, digital pin 51 PC2 BED_THERMISTOR_1
-#define TEMP_BED_1_PIN 1 // Analog input 1, digital pin 52 PC3 BED_THERMISTOR_2
-#define TEMP_BED_2_PIN 2 // Analog input 2, digital pin 53 PA3 BED_THERMISTOR_3
+#define TEMP_0_PIN 3 // Analog input 3, digital pin 54 PA0 E1_THERMISTOR
+#define TEMP_1_PIN 4 // Analog input 4, digital pin 55 PA1 E2_THERMISTOR
+#define TEMP_2_PIN 5 // Analog input 5, digital pin 56 PA2 E3_THERMISTOR
+#define TEMP_BED_PIN 0 // Analog input 0, digital pin 51 PC2 BED_THERMISTOR_1
+#define TEMP_BED_1_PIN 1 // Analog input 1, digital pin 52 PC3 BED_THERMISTOR_2
+#define TEMP_BED_2_PIN 2 // Analog input 2, digital pin 53 PA3 BED_THERMISTOR_3
//
// Heaters / Fans
//
-#define HEATER_0_PIN 48 // PC7 E1_HEAT_PWM
-#define HEATER_1_PIN 49 // PB0 E2_HEAT_PWM
-#define HEATER_2_PIN 50 // PB1 E3_HEAT_PWM
-#define HEATER_BED_PIN 46 // PD14 (BED_HEAT_1 FET
-#define HEATER_BED_1_PIN 45 // PD13 (BED_HEAT_2 FET
-#define HEATER_BED_2_PIN 47 // PD15 (BED_HEAT_3 FET
+#define HEATER_0_PIN 48 // PC7 E1_HEAT_PWM
+#define HEATER_1_PIN 49 // PB0 E2_HEAT_PWM
+#define HEATER_2_PIN 50 // PB1 E3_HEAT_PWM
+#define HEATER_BED_PIN 46 // PD14 (BED_HEAT_1 FET
+#define HEATER_BED_1_PIN 45 // PD13 (BED_HEAT_2 FET
+#define HEATER_BED_2_PIN 47 // PD15 (BED_HEAT_3 FET
-#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
+#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
//
// 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
-#define POWER_LOSS_PIN -1 // PWR_LOSS / nAC_FAULT
+#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
+#define POWER_LOSS_PIN -1 // PWR_LOSS / nAC_FAULT
//
// LCD / Controller
//
-//#define SD_DETECT_PIN 66 // PA15 SD_CA
-//#define BEEPER_PIN 24 // PC9 SDIO_D1
-//#define LCD_PINS_RS 65 // PE9 Y_DIR
-//#define LCD_PINS_ENABLE 59 // PE8 E3_FAN
-//#define LCD_PINS_D4 10 // PB12 SPI_C
-//#define LCD_PINS_D5 13 // PB13 SPI_S
-//#define LCD_PINS_D6 12 // PB14 SPI_M
-//#define LCD_PINS_D7 11 // PB15 SPI_M
-//#define BTN_EN1 57 // PC4 E1_FAN
-//#define BTN_EN2 58 // PC5 E2_FAN
-//#define BTN_ENC 52 // PC3 BED_THE
+//#define SD_DETECT_PIN 66 // PA15 SD_CA
+//#define BEEPER_PIN 24 // PC9 SDIO_D1
+//#define LCD_PINS_RS 65 // PE9 Y_DIR
+//#define LCD_PINS_ENABLE 59 // PE8 E3_FAN
+//#define LCD_PINS_D4 10 // PB12 SPI_C
+//#define LCD_PINS_D5 13 // PB13 SPI_S
+//#define LCD_PINS_D6 12 // PB14 SPI_M
+//#define LCD_PINS_D7 11 // PB15 SPI_M
+//#define BTN_EN1 57 // PC4 E1_FAN
+//#define BTN_EN2 58 // PC5 E2_FAN
+//#define BTN_ENC 52 // PC3 BED_THE
//
// Extension pins
//
-//#define EXT0_PIN 49 // PB0 E2_HEAT
-//#define EXT1_PIN 50 // PB1 E3_HEAT
-//#define EXT2_PIN // PB2 not used (tied to ground
-//#define EXT3_PIN 39 // PD8 X_STOP
-//#define EXT4_PIN 40 // PD9 Y_STOP
-//#define EXT5_PIN 41 // PD10 Z_STOP
-//#define EXT6_PIN 42 // PD11
-//#define EXT7_PIN 71 // PD12 E1_PW
-//#define EXT8_PIN 64 // PB10 Y_PWM
+//#define EXT0_PIN 49 // PB0 E2_HEAT
+//#define EXT1_PIN 50 // PB1 E3_HEAT
+//#define EXT2_PIN // PB2 not used (tied to ground
+//#define EXT3_PIN 39 // PD8 X_STOP
+//#define EXT4_PIN 40 // PD9 Y_STOP
+//#define EXT5_PIN 41 // PD10 Z_STOP
+//#define EXT6_PIN 42 // PD11
+//#define EXT7_PIN 71 // PD12 E1_PW
+//#define EXT8_PIN 64 // PB10 Y_PWM
// WIFI
// 2 // PD3 CTS
@@ -215,7 +215,6 @@
// 7 // PE11 WIFI_RESET
// 8 // PE12 WIFI_BOOT
-
// I2C USER
// 14 // PB7 SDA
// 15 // PB6 SCL
@@ -228,27 +227,27 @@
//
// Onboard SD support
//
-#define SDIO_D0_PIN 23 // PC8 SDIO_D0
-#define SDIO_D1_PIN 24 // PC9 SDIO_D1
-//#define SD_CARD_DETECT_PIN 25 // PA15 SD_CARD_DETECT
-#define SDIO_D2_PIN 26 // PC10 SDIO_D2
-#define SDIO_D3_PIN 27 // PC11 SDIO_D3
-#define SDIO_CK_PIN 28 // PC12 SDIO_CK
-#define SDIO_CMD_PIN 29 // PD2 SDIO_CMD
+#define SDIO_D0_PIN 23 // PC8 SDIO_D0
+#define SDIO_D1_PIN 24 // PC9 SDIO_D1
+//#define SD_CARD_DETECT_PIN 25 // PA15 SD_CARD_DETECT
+#define SDIO_D2_PIN 26 // PC10 SDIO_D2
+#define SDIO_D3_PIN 27 // PC11 SDIO_D3
+#define SDIO_CK_PIN 28 // PC12 SDIO_CK
+#define SDIO_CMD_PIN 29 // PD2 SDIO_CMD
#ifndef SDCARD_CONNECTION
- #define SDCARD_CONNECTION ONBOARD
+ #define SDCARD_CONNECTION ONBOARD
#endif
#if SDCARD_CONNECTION == ONBOARD
- #define SDIO_SUPPORT // Use SDIO for onboard SD
+ #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 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
#endif
#endif
@@ -265,16 +264,13 @@
// USERKET
// 38 // PE7 USER_BUTTON
-
// 0 // PA9 TX
// 1 // PA10 RX
-
// IR/PROBE
// 32 // PD1 IR_OUT
// 33 // PC1 IR_ON
-
/**
* Logical pin vs. port/pin cross reference
*
diff --git a/Marlin/src/pins/stm32f4/pins_VAKE403D.h b/Marlin/src/pins/stm32f4/pins_VAKE403D.h
new file mode 100644
index 0000000000..7eb95a4f50
--- /dev/null
+++ b/Marlin/src/pins/stm32f4/pins_VAKE403D.h
@@ -0,0 +1,194 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#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 DEFAULT_MACHINE_NAME "STM32F446VET6"
+#define BOARD_NAME "STM32F4 VAkE"
+
+//#define I2C_EEPROM
+
+#define E2END 0xFFF // EEPROM end address (4kB)
+
+//
+// Servos
+//
+//#define SERVO0_PIN PE13
+//#define SERVO1_PIN PE14
+
+//
+// Limit Switches
+//
+#define X_STOP_PIN PE10
+#define Y_STOP_PIN PE9
+#define Z_STOP_PIN PE8
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+#ifndef Z_MIN_PROBE_PIN
+ #define Z_MIN_PROBE_PIN PA4
+#endif
+
+//
+// Filament runout
+//
+#define FIL_RUNOUT_PIN PA3
+
+//
+// Steppers
+//
+
+#define STEPPER_ENABLE_PIN PB2
+
+#define X_STEP_PIN PC6 // X_STEP
+#define X_DIR_PIN PC7 // X_DIR
+#define X_ENABLE_PIN PB2 //
+#ifndef X_CS_PIN
+ #define X_CS_PIN PC8 // X_CS
+#endif
+
+#define Y_STEP_PIN PD9 // Y_STEP
+#define Y_DIR_PIN PD10 // Y_DIR
+#define Y_ENABLE_PIN PB2 //
+#ifndef Y_CS_PIN
+ #define Y_CS_PIN PD11 // Y_CS
+#endif
+
+#define Z_STEP_PIN PE15 // Z_STEP
+#define Z_DIR_PIN PB10 // Z_DIR
+#define Z_ENABLE_PIN PB2
+#ifndef Z_CS_PIN
+ #define Z_CS_PIN PD8
+#endif
+
+#define E0_STEP_PIN PB1
+#define E0_DIR_PIN PB13
+#define E0_ENABLE_PIN PB2
+#ifndef E0_CS_PIN
+ #define E0_CS_PIN PE11
+#endif
+
+#define E1_STEP_PIN PC4
+#define E1_DIR_PIN PC5
+#define E1_ENABLE_PIN PB2
+#ifndef E1_CS_PIN
+ #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
+
+// 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
+
+//
+// Temperature Sensors (Analog inputs)
+//
+
+#define TEMP_0_PIN PC0 // Analog Input
+#define TEMP_1_PIN PC1 // Analog Input
+#define TEMP_2_PIN PC2 // Analog Input
+#define TEMP_3_PIN PC3 // Analog Input
+#define TEMP_BED_PIN PC3 // Analog Input
+
+//
+// Heaters / Fans
+//
+
+#define HEATER_0_PIN PD15
+#define HEATER_1_PIN PD14
+#define HEATER_BED_PIN PD12
+
+#ifndef FAN_PIN
+ #define FAN_PIN PD13
+#endif
+#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
+
+//
+// Misc. Functions
+//
+
+//#define CASE_LIGHT_PIN_CI PF13
+//#define CASE_LIGHT_PIN_DO PF14
+//#define NEOPIXEL_PIN PF13
+
+//
+// Prusa i3 MK2 Multi Material Multiplexer Support
+//
+//#define E_MUX0_PIN PG3
+//#define E_MUX1_PIN PG4
+
+#define LED_PIN PB14 // Alive
+#define PS_ON_PIN PE0
+#define KILL_PIN PD5
+#define POWER_LOSS_PIN PA4 // ?? Power loss / nAC_FAULT
+
+#if ENABLED(SDSUPPORT)
+ #define SD_DETECT_PIN PB7
+ #define SS_PIN PB_15 // USD_CS -> CS for onboard SD
+#endif
+
+//
+// LCD / Controller
+//
+#if HAS_SPI_LCD
+ #if ENABLED(SDSUPPORT)
+ #define SDSS PB6 // CS for SD card in LCD
+ #endif
+ #define BEEPER_PIN PC9
+ #define LCD_PINS_RS PC12
+ #define LCD_PINS_ENABLE PD7
+ #define LCD_PINS_D4 PD1
+ #define LCD_PINS_D5 PD2
+ #define LCD_PINS_D6 PD3
+ #define LCD_PINS_D7 PD4
+ #define BTN_EN1 PD6
+ #define BTN_EN2 PD0
+ #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)
+#endif
diff --git a/Marlin/src/pins/stm32f7/pins_REMRAM_V1.h b/Marlin/src/pins/stm32f7/pins_REMRAM_V1.h
new file mode 100644
index 0000000000..736445cdab
--- /dev/null
+++ b/Marlin/src/pins/stm32f7/pins_REMRAM_V1.h
@@ -0,0 +1,133 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef STM32F7xx
+ #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
+#endif
+
+#define BOARD_INFO_NAME "RemRam v1"
+#define DEFAULT_MACHINE_NAME "RemRam"
+
+#define SRAM_EEPROM_EMULATION // Emulate the EEPROM using Backup SRAM
+
+#if HOTENDS > 1 || E_STEPPERS > 1
+ #error "RemRam supports only one hotend / E-stepper."
+#endif
+
+//
+// Limit Switches
+//
+#if DISABLED(SENSORLESS_HOMING)
+ #define X_MIN_PIN 58
+ #define X_MAX_PIN 59
+ #define Y_MIN_PIN 60
+ #define Y_MAX_PIN 61
+ #define Z_MIN_PIN 62
+ #define Z_MAX_PIN 63
+#else
+ #define X_STOP_PIN 36
+ #define Y_STOP_PIN 39
+ #define Z_MIN_PIN 62
+ #define Z_MAX_PIN 42
+#endif
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+#ifndef Z_MIN_PROBE_PIN
+ #define Z_MIN_PROBE_PIN 26 // EXT_D1
+#endif
+
+//
+// Steppers
+//
+#define X_STEP_PIN 22
+#define X_DIR_PIN 35
+#define X_ENABLE_PIN 34
+#define X_CS_PIN 14
+
+#define Y_STEP_PIN 23
+#define Y_DIR_PIN 38
+#define Y_ENABLE_PIN 37
+#define Y_CS_PIN 15
+
+#define Z_STEP_PIN 24
+#define Z_DIR_PIN 41
+#define Z_ENABLE_PIN 40
+#define Z_CS_PIN 16
+
+#define E0_STEP_PIN 25
+#define E0_DIR_PIN 44
+#define E0_ENABLE_PIN 43
+#define E0_CS_PIN 10
+
+//
+// Temperature Sensors
+//
+#define TEMP_0_PIN 64 // THERM_1
+#define TEMP_1_PIN 65 // THERM_2
+#define TEMP_BED_PIN 66 // THERM_3
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN 33
+#define HEATER_BED_PIN 31
+
+#ifndef FAN_PIN
+ #define FAN_PIN 30 // "FAN1"
+#endif
+#define FAN1_PIN 32 // "FAN2"
+
+#define ORIG_E0_AUTO_FAN_PIN 32 // Use this by NOT overriding E0_AUTO_FAN_PIN
+
+//
+// Servos
+//
+#define SERVO0_PIN 26 // PWM_EXT1
+#define SERVO1_PIN 27 // PWM_EXT2
+
+#define SDSS 57 // Onboard SD card reader
+//#define SDSS 9 // LCD SD card reader
+#define LED_PIN 21 // STATUS_LED
+
+//
+// LCD / Controller
+//
+#define SD_DETECT_PIN 56 // SD_CARD_DET
+#define BEEPER_PIN 46 // LCD_BEEPER
+#define LCD_PINS_RS 49 // LCD_RS
+#define LCD_PINS_ENABLE 48 // LCD_EN
+#define LCD_PINS_D4 50 // LCD_D4
+#define LCD_PINS_D5 51 // LCD_D5
+#define LCD_PINS_D6 52 // LCD_D6
+#define LCD_PINS_D7 53 // LCD_D7
+#define BTN_EN1 54 // BTN_EN1
+#define BTN_EN2 55 // BTN_EN2
+#define BTN_ENC 47 // BTN_ENC
+
+//
+// Timers
+//
+
+#define STEP_TIMER 2
diff --git a/Marlin/src/pins/stm32f7/pins_THE_BORG.h b/Marlin/src/pins/stm32f7/pins_THE_BORG.h
new file mode 100644
index 0000000000..9968d9d1f1
--- /dev/null
+++ b/Marlin/src/pins/stm32f7/pins_THE_BORG.h
@@ -0,0 +1,181 @@
+/**
+ * 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 .
+ *
+ */
+#pragma once
+
+#ifndef STM32F7
+ #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
+#elif HOTENDS > 3 || E_STEPPERS > 3
+ #error "The-Borg supports up to 3 hotends / E-steppers."
+#endif
+
+#define BOARD_INFO_NAME "The-Borge"
+#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
+
+#ifndef E2END
+ #define E2END 0xFFF // EEPROM end address
+#endif
+
+// Ignore temp readings during development.
+//#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
+
+//
+// Limit Switches
+//
+#define X_MIN_PIN PE9
+#define X_MAX_PIN PE10
+#define Y_MIN_PIN PE7
+#define Y_MAX_PIN PE8
+#define Z_MIN_PIN PF15
+#define Z_MAX_PIN PG0
+#define E_MIN_PIN PE2
+#define E_MAX_PIN PE3
+
+//
+// Z Probe (when not Z_MIN_PIN)
+//
+#ifndef Z_MIN_PROBE_PIN
+ #define Z_MIN_PROBE_PIN PA4
+#endif
+
+//
+// Steppers
+//
+#define STEPPER_ENABLE_PIN PE0
+
+#define X_STEP_PIN PC6 // 96, 39 in Arduino
+#define X_DIR_PIN PC7
+#define X_ENABLE_PIN PC8
+
+#define Y_STEP_PIN PD9
+#define Y_DIR_PIN PD10
+#define Y_ENABLE_PIN PD11
+
+#define Z_STEP_PIN PE15
+#define Z_DIR_PIN PG1
+#define Z_ENABLE_PIN PD8
+
+#define E0_STEP_PIN PB1
+#define E0_DIR_PIN PB2
+#define E0_ENABLE_PIN PE11
+
+#define E1_STEP_PIN PC4
+#define E1_DIR_PIN PC5
+#define E1_ENABLE_PIN PB0
+
+#define E2_STEP_PIN PC13
+#define E2_DIR_PIN PC14
+#define E2_ENABLE_PIN PC15
+
+#define Z2_STEP_PIN PC13
+#define Z2_DIR_PIN PC14
+#define Z2_ENABLE_PIN PC15
+
+#define SCK_PIN PA5
+#define MISO_PIN PA6
+#define MOSI_PIN PA7
+
+#define SPI1_SCK_PIN PA5
+#define SPI1_MISO_PIN PA6
+#define SPI1_MOSI_PIN PA7
+
+#define SPI6_SCK_PIN PG13
+#define SPI6_MISO_PIN PG12
+#define SPI6_MOSI_PIN PG14
+
+//
+// Temperature Sensors
+//
+
+#define TEMP_0_PIN PC3 // Analog Input
+#define TEMP_1_PIN PC2 // Analog Input
+#define TEMP_2_PIN PC1 // Analog Input
+#define TEMP_3_PIN PC0 // Analog Input
+
+#define TEMP_BED_PIN PF10 // Analog Input
+
+#define TEMP_5_PIN PE12 // Analog Input, Probe temp
+
+//
+// Heaters / Fans
+//
+#define HEATER_0_PIN PD15
+#define HEATER_1_PIN PD14
+#define HEATER_BED_PIN PF6
+
+#ifndef FAN_PIN
+ #define FAN_PIN PD13
+#endif
+#define FAN1_PIN PA0
+#define FAN2_PIN PA1
+
+#define ORIG_E0_AUTO_FAN_PIN PA1 // 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 PA8
+#define SS_PIN PA8
+#define LED_PIN PA2 // Alive
+#define PS_ON_PIN PA3
+#define KILL_PIN -1 //PD5 // EXP2-10
+#define PWR_LOSS PG5 // Power loss / nAC_FAULT
+
+//
+// MAX7219_DEBUG
+//
+#define MAX7219_CLK_PIN PG10 // EXP1-1
+#define MAX7219_DIN_PIN PD7 // EXP1-3
+#define MAX7219_LOAD_PIN PD1 // EXP1-5
+
+//
+// LCD / Controller
+//
+//#define SD_DETECT_PIN -1 //PB6) // EXP2-4
+#define BEEPER_PIN PG10 // EXP1-1
+#define LCD_PINS_RS PG9 // EXP1-4
+#define LCD_PINS_ENABLE PD7 // EXP1-3
+#define LCD_PINS_D4 PD1 // EXP1-5
+#define LCD_PINS_D5 PF0 // EXP1-6
+#define LCD_PINS_D6 PD3 // EXP1-7
+#define LCD_PINS_D7 PD4 // EXP1-8
+#define BTN_EN1 PD6 // EXP2-5
+#define BTN_EN2 PD0 // EXP2-3
+#define BTN_ENC PG11 // EXP1-2
diff --git a/Marlin/src/pins/teensy2/pins_5DPRINT.h b/Marlin/src/pins/teensy2/pins_5DPRINT.h
index 206e22bb9c..4ee74660ea 100755
--- a/Marlin/src/pins/teensy2/pins_5DPRINT.h
+++ b/Marlin/src/pins/teensy2/pins_5DPRINT.h
@@ -78,71 +78,71 @@
//
// Servos
//
-#define SERVO0_PIN 41
-#define SERVO1_PIN 42
-#define SERVO2_PIN 43
-#define SERVO3_PIN 44
+#define SERVO0_PIN 41
+#define SERVO1_PIN 42
+#define SERVO2_PIN 43
+#define SERVO3_PIN 44
//
// Limit Switches
//
-#define X_STOP_PIN 37 // E5
-#define Y_STOP_PIN 36 // E4
-#define Z_STOP_PIN 19 // E7
+#define X_STOP_PIN 37 // E5
+#define Y_STOP_PIN 36 // E4
+#define Z_STOP_PIN 19 // E7
//
// Steppers
//
-#define X_STEP_PIN 28 // A0
-#define X_DIR_PIN 29 // A1
-#define X_ENABLE_PIN 17 // C7
+#define X_STEP_PIN 28 // A0
+#define X_DIR_PIN 29 // A1
+#define X_ENABLE_PIN 17 // C7
-#define Y_STEP_PIN 30 // A2
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 13 // C3
+#define Y_STEP_PIN 30 // A2
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 13 // C3
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 12 // C2
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 12 // C2
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 11 // C1
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 11 // C1
//
// Digital Microstepping
//
-#define X_MS1_PIN 25 // B5
-#define X_MS2_PIN 26 // B6
-#define Y_MS1_PIN 9 // E1
-#define Y_MS2_PIN 8 // E0
-#define Z_MS1_PIN 7 // D7
-#define Z_MS2_PIN 6 // D6
-#define E0_MS1_PIN 5 // D5
-#define E0_MS2_PIN 4 // D4
+#define X_MS1_PIN 25 // B5
+#define X_MS2_PIN 26 // B6
+#define Y_MS1_PIN 9 // E1
+#define Y_MS2_PIN 8 // E0
+#define Z_MS1_PIN 7 // D7
+#define Z_MS2_PIN 6 // D6
+#define E0_MS1_PIN 5 // D5
+#define E0_MS2_PIN 4 // D4
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // F1 Analog Input
-#define TEMP_BED_PIN 0 // F0 Analog Input
+#define TEMP_0_PIN 1 // F1 Analog Input
+#define TEMP_BED_PIN 0 // F0 Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5
-#define HEATER_BED_PIN 14 // C4
+#define HEATER_0_PIN 15 // C5
+#define HEATER_BED_PIN 14 // C4
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A
+ #define FAN_PIN 16 // C6 PWM3A
#endif
//
// Misc. Functions
//
-#define SDSS 20 // B0
+#define SDSS 20 // B0
//DIGIPOTS slave addresses
#ifndef DIGIPOT_I2C_ADDRESS_A
- #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for DIGIPOT 0x2C (0x58 <- 0x2C << 1)
+ #define DIGIPOT_I2C_ADDRESS_A 0x2C // unshifted slave address for DIGIPOT 0x2C (0x58 <- 0x2C << 1)
#endif
diff --git a/Marlin/src/pins/teensy2/pins_BRAINWAVE.h b/Marlin/src/pins/teensy2/pins_BRAINWAVE.h
index 22ceb97540..f7597dbbae 100644
--- a/Marlin/src/pins/teensy2/pins_BRAINWAVE.h
+++ b/Marlin/src/pins/teensy2/pins_BRAINWAVE.h
@@ -77,50 +77,50 @@
//
// Limit Switches
//
-#define X_STOP_PIN 35 // A7
-#define Y_STOP_PIN 34 // A6
-#define Z_STOP_PIN 33 // A5
+#define X_STOP_PIN 35 // A7
+#define Y_STOP_PIN 34 // A6
+#define Z_STOP_PIN 33 // A5
//
// Steppers
//
-#define X_STEP_PIN 3 // D3
-#define X_DIR_PIN 5 // D5
-#define X_ENABLE_PIN 4 // D4
-#define X_ATT_PIN 2 // D2
+#define X_STEP_PIN 3 // D3
+#define X_DIR_PIN 5 // D5
+#define X_ENABLE_PIN 4 // D4
+#define X_ATT_PIN 2 // D2
-#define Y_STEP_PIN 7 // D7
-#define Y_DIR_PIN 9 // E1
-#define Y_ENABLE_PIN 8 // E0
-#define Y_ATT_PIN 6 // D6
+#define Y_STEP_PIN 7 // D7
+#define Y_DIR_PIN 9 // E1
+#define Y_ENABLE_PIN 8 // E0
+#define Y_ATT_PIN 6 // D6
-#define Z_STEP_PIN 11 // C1
-#define Z_DIR_PIN 13 // C3
-#define Z_ENABLE_PIN 12 // C2
-#define Z_ATT_PIN 10 // C0
+#define Z_STEP_PIN 11 // C1
+#define Z_DIR_PIN 13 // C3
+#define Z_ENABLE_PIN 12 // C2
+#define Z_ATT_PIN 10 // C0
-#define E0_STEP_PIN 15 // C5
-#define E0_DIR_PIN 17 // C7
-#define E0_ENABLE_PIN 16 // C6
-#define E0_ATT_PIN 14 // C4
+#define E0_STEP_PIN 15 // C5
+#define E0_DIR_PIN 17 // C7
+#define E0_ENABLE_PIN 16 // C6
+#define E0_ATT_PIN 14 // C4
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // F7 Analog Input
-#define TEMP_BED_PIN 6 // F6 Analog Input
+#define TEMP_0_PIN 7 // F7 Analog Input
+#define TEMP_BED_PIN 6 // F6 Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 32 // A4 Extruder
-#define HEATER_BED_PIN 18 // E6 Bed
+#define HEATER_0_PIN 32 // A4 Extruder
+#define HEATER_BED_PIN 18 // E6 Bed
#ifndef FAN_PIN
- #define FAN_PIN 31 // A3 Fan
+ #define FAN_PIN 31 // A3 Fan
#endif
//
// Misc. Functions
//
-#define LED_PIN 19 // E7
+#define LED_PIN 19 // E7
diff --git a/Marlin/src/pins/teensy2/pins_BRAINWAVE_PRO.h b/Marlin/src/pins/teensy2/pins_BRAINWAVE_PRO.h
index 88b045b833..575428f097 100644
--- a/Marlin/src/pins/teensy2/pins_BRAINWAVE_PRO.h
+++ b/Marlin/src/pins/teensy2/pins_BRAINWAVE_PRO.h
@@ -84,55 +84,55 @@
//
// Limit Switches
//
-#define X_STOP_PIN 45 // F7
-#define Y_STOP_PIN 12 // C2
-#define Z_STOP_PIN 36 // E4
+#define X_STOP_PIN 45 // F7
+#define Y_STOP_PIN 12 // C2
+#define Z_STOP_PIN 36 // E4
//
// Z Probe (when not Z_MIN_PIN)
//
#ifndef Z_MIN_PROBE_PIN
- #define Z_MIN_PROBE_PIN 11 // C1
+ #define Z_MIN_PROBE_PIN 11 // C1
#endif
//
// Steppers
//
-#define X_STEP_PIN 9 // E1
-#define X_DIR_PIN 8 // E0
-#define X_ENABLE_PIN 23 // B3
+#define X_STEP_PIN 9 // E1
+#define X_DIR_PIN 8 // E0
+#define X_ENABLE_PIN 23 // B3
-#define Y_STEP_PIN 7 // D7
-#define Y_DIR_PIN 6 // D6
-#define Y_ENABLE_PIN 20 // B0
+#define Y_STEP_PIN 7 // D7
+#define Y_DIR_PIN 6 // D6
+#define Y_ENABLE_PIN 20 // B0
-#define Z_STEP_PIN 5 // D5
-#define Z_DIR_PIN 4 // D4
-#define Z_ENABLE_PIN 37 // E5
+#define Z_STEP_PIN 5 // D5
+#define Z_DIR_PIN 4 // D4
+#define Z_ENABLE_PIN 37 // E5
-#define E0_STEP_PIN 47 // E3
-#define E0_DIR_PIN 46 // E2
-#define E0_ENABLE_PIN 25 // B5
+#define E0_STEP_PIN 47 // E3
+#define E0_DIR_PIN 46 // E2
+#define E0_ENABLE_PIN 25 // B5
//
// Temperature Sensors
//
-#define TEMP_0_PIN 2 // F2 Analog Input
-#define TEMP_1_PIN 1 // F1 Analog Input
-#define TEMP_BED_PIN 0 // F0 Analog Input
+#define TEMP_0_PIN 2 // F2 Analog Input
+#define TEMP_1_PIN 1 // F1 Analog Input
+#define TEMP_BED_PIN 0 // F0 Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 27 // B7
-#define HEATER_BED_PIN 26 // B6 Bed
+#define HEATER_0_PIN 27 // B7
+#define HEATER_BED_PIN 26 // B6 Bed
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 Fan, PWM3A
+ #define FAN_PIN 16 // C6 Fan, PWM3A
#endif
//
// Misc. Functions
//
-#define SDSS 20 // B0
-#define SD_DETECT_PIN 24 // B4
-#define LED_PIN 13 // C3
+#define SDSS 20 // B0
+#define SD_DETECT_PIN 24 // B4
+#define LED_PIN 13 // C3
diff --git a/Marlin/src/pins/teensy2/pins_PRINTRBOARD.h b/Marlin/src/pins/teensy2/pins_PRINTRBOARD.h
index 4f10e08084..68c548f833 100644
--- a/Marlin/src/pins/teensy2/pins_PRINTRBOARD.h
+++ b/Marlin/src/pins/teensy2/pins_PRINTRBOARD.h
@@ -74,95 +74,95 @@
//
// Limit Switches
//
-#define X_STOP_PIN 47 // E3
-#define Y_STOP_PIN 20 // B0 SS
-#define Z_STOP_PIN 36 // E4
+#define X_STOP_PIN 47 // E3
+#define Y_STOP_PIN 20 // B0 SS
+#define Z_STOP_PIN 36 // E4
//
// Steppers
//
-#define X_STEP_PIN 28 // A0
-#define X_DIR_PIN 29 // A1
-#define X_ENABLE_PIN 19 // E7
+#define X_STEP_PIN 28 // A0
+#define X_DIR_PIN 29 // A1
+#define X_ENABLE_PIN 19 // E7
-#define Y_STEP_PIN 30 // A2
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 18 // E6
+#define Y_STEP_PIN 30 // A2
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 18 // E6
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 17 // C7
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 17 // C7
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 13 // C3
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 13 // C3
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input
-#define TEMP_BED_PIN 0 // Analog Input
+#define TEMP_0_PIN 1 // Analog Input
+#define TEMP_BED_PIN 0 // Analog Input
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
-#define HEATER_1_PIN 44 // F6
-#define HEATER_2_PIN 45 // F7
-#define HEATER_BED_PIN 14 // C4 PWM3C
+#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
+#define HEATER_1_PIN 44 // F6
+#define HEATER_2_PIN 45 // F7
+#define HEATER_BED_PIN 14 // C4 PWM3C
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A
+ #define FAN_PIN 16 // C6 PWM3A
#endif
//
// Misc. Functions
//
-#define SDSS 26 // B6 SDCS
-#define FILWIDTH_PIN 2 // Analog Input
+#define SDSS 26 // B6 SDCS
+#define FILWIDTH_PIN 2 // Analog Input
//
// LCD / Controller
//
#if BOTH(ULTRA_LCD, NEWPANEL)
- #define LCD_PINS_RS 9 // E1 JP11-11
- #define LCD_PINS_ENABLE 8 // E0 JP11-10
- #define LCD_PINS_D4 7 // D7 JP11-8
- #define LCD_PINS_D5 6 // D6 JP11-7
- #define LCD_PINS_D6 5 // D5 JP11-6
- #define LCD_PINS_D7 4 // D4 JP11-5
+ #define LCD_PINS_RS 9 // E1 JP11-11
+ #define LCD_PINS_ENABLE 8 // E0 JP11-10
+ #define LCD_PINS_D4 7 // D7 JP11-8
+ #define LCD_PINS_D5 6 // D6 JP11-7
+ #define LCD_PINS_D6 5 // D5 JP11-6
+ #define LCD_PINS_D7 4 // D4 JP11-5
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN 8 // E0 JP11-10
+ #define BEEPER_PIN 8 // E0 JP11-10
- #define DOGLCD_A0 40 // F2 JP2-2
- #define DOGLCD_CS 41 // F3 JP2-4
+ #define DOGLCD_A0 40 // F2 JP2-2
+ #define DOGLCD_CS 41 // F3 JP2-4
#define LCD_SCREEN_ROT_180
- #define BTN_EN1 2 // D2 TX1 JP2-5
- #define BTN_EN2 3 // D3 RX1 JP2-7
- #define BTN_ENC 45 // F7 TDI JP2-12
+ #define BTN_EN1 2 // D2 TX1 JP2-5
+ #define BTN_EN2 3 // D3 RX1 JP2-7
+ #define BTN_ENC 45 // F7 TDI JP2-12
#undef SDSS
- #define SDSS 43 // F5 TMS JP2-8
+ #define SDSS 43 // F5 TMS JP2-8
- #define STAT_LED_RED_PIN 12 // C2 JP11-14
- #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
+ #define STAT_LED_RED_PIN 12 // C2 JP11-14
+ #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
#elif ENABLED(LCD_I2C_PANELOLU2)
- #define BTN_EN1 3 // D3 RX1 JP2-7
- #define BTN_EN2 2 // D2 TX1 JP2-5
- #define BTN_ENC 41 // F3 JP2-4
+ #define BTN_EN1 3 // D3 RX1 JP2-7
+ #define BTN_EN2 2 // D2 TX1 JP2-5
+ #define BTN_ENC 41 // F3 JP2-4
#undef SDSS
- #define SDSS 38 // F0 B-THERM connector - use SD card on Panelolu2
+ #define SDSS 38 // F0 B-THERM connector - use SD card on Panelolu2
#else
- #define BTN_EN1 10 // C0 JP11-12
- #define BTN_EN2 11 // C1 JP11-13
- #define BTN_ENC 12 // C2 JP11-14
+ #define BTN_EN1 10 // C0 JP11-12
+ #define BTN_EN2 11 // C1 JP11-13
+ #define BTN_ENC 12 // C2 JP11-14
#endif
diff --git a/Marlin/src/pins/teensy2/pins_PRINTRBOARD_REVF.h b/Marlin/src/pins/teensy2/pins_PRINTRBOARD_REVF.h
index c1198a4d4b..f5f05ddeaf 100644
--- a/Marlin/src/pins/teensy2/pins_PRINTRBOARD_REVF.h
+++ b/Marlin/src/pins/teensy2/pins_PRINTRBOARD_REVF.h
@@ -99,46 +99,46 @@
//
// Limit Switches
//
-#define X_STOP_PIN 47 // E3
-#define Y_STOP_PIN 24 // B4 PWM2A
-#define Z_STOP_PIN 36 // E4
+#define X_STOP_PIN 47 // E3
+#define Y_STOP_PIN 24 // B4 PWM2A
+#define Z_STOP_PIN 36 // E4
//
// Steppers
//
-#define X_STEP_PIN 28 // A0
-#define X_DIR_PIN 29 // A1
-#define X_ENABLE_PIN 19 // E7
+#define X_STEP_PIN 28 // A0
+#define X_DIR_PIN 29 // A1
+#define X_ENABLE_PIN 19 // E7
-#define Y_STEP_PIN 30 // A2
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 18 // E6
+#define Y_STEP_PIN 30 // A2
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 18 // E6
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 17 // C7
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 17 // C7
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 13 // C3
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 13 // C3
#if DISABLED(NO_EXTRUDRBOARD)
#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
- #define E1_STEP_PIN 25 // B5
- #define E1_DIR_PIN 37 // E5
- #define E1_ENABLE_PIN 42 // F4
+ #define E1_STEP_PIN 25 // B5
+ #define E1_DIR_PIN 37 // E5
+ #define E1_ENABLE_PIN 42 // F4
- #define E2_STEP_PIN 2 // D2
- #define E2_DIR_PIN 3 // D3
- #define E2_ENABLE_PIN 43 // F5
+ #define E2_STEP_PIN 2 // D2
+ #define E2_DIR_PIN 3 // D3
+ #define E2_ENABLE_PIN 43 // F5
#else
- #define E1_STEP_PIN 2 // D2
- #define E1_DIR_PIN 3 // D3
- #define E1_ENABLE_PIN 43 // F5
+ #define E1_STEP_PIN 2 // D2
+ #define E1_DIR_PIN 3 // D3
+ #define E1_ENABLE_PIN 43 // F5
- #define E2_STEP_PIN 25 // B5
- #define E2_DIR_PIN 37 // E5
- #define E2_ENABLE_PIN 42 // F4
+ #define E2_STEP_PIN 25 // B5
+ #define E2_DIR_PIN 37 // E5
+ #define E2_ENABLE_PIN 42 // F4
#endif
#endif // NO_EXTRUDRBOARD
@@ -154,46 +154,46 @@
#define DAC_STEPPER_ORDER { 3, 2, 1, 0 }
#define DAC_STEPPER_SENSE 0.11
-#define DAC_STEPPER_ADDRESS 0
-#define DAC_STEPPER_MAX 3520
-#define DAC_STEPPER_VREF 1 // internal Vref, gain 1x = 2.048V
-#define DAC_STEPPER_GAIN 0
-#define DAC_OR_ADDRESS 0x00
+#define DAC_STEPPER_ADDRESS 0
+#define DAC_STEPPER_MAX 3520
+#define DAC_STEPPER_VREF 1 // internal Vref, gain 1x = 2.048V
+#define DAC_STEPPER_GAIN 0
+#define DAC_OR_ADDRESS 0x00
//
// Temperature Sensors
//
-#define TEMP_0_PIN 1 // Analog Input (Extruder)
-#define TEMP_BED_PIN 0 // Analog Input (Bed)
+#define TEMP_0_PIN 1 // Analog Input (Extruder)
+#define TEMP_BED_PIN 0 // Analog Input (Bed)
#if DISABLED(NO_EXTRUDRBOARD)
#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
- #define TEMP_1_PIN 2 // Analog Input (Extrudrboard A THERM)
- #define TEMP_2_PIN 3 // Analog Input (Extrudrboard B THERM)
+ #define TEMP_1_PIN 2 // Analog Input (Extrudrboard A THERM)
+ #define TEMP_2_PIN 3 // Analog Input (Extrudrboard B THERM)
#else
- #define TEMP_1_PIN 3 // Analog Input (Extrudrboard B THERM)
- #define TEMP_2_PIN 2 // Analog Input (Extrudrboard A THERM)
+ #define TEMP_1_PIN 3 // Analog Input (Extrudrboard B THERM)
+ #define TEMP_2_PIN 2 // Analog Input (Extrudrboard A THERM)
#endif
#endif
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
-#define HEATER_BED_PIN 14 // C4 PWM3C
+#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
+#define HEATER_BED_PIN 14 // C4 PWM3C
#if DISABLED(NO_EXTRUDRBOARD)
#if DISABLED(NO_EXTRUDRBOARD_OUTPUT_SWAP)
- #define HEATER_1_PIN 44 // F6 - Extrudrboard A HOTEND
- #define HEATER_2_PIN 45 // F7 - Extrudrboard B HOTEND
+ #define HEATER_1_PIN 44 // F6 - Extrudrboard A HOTEND
+ #define HEATER_2_PIN 45 // F7 - Extrudrboard B HOTEND
#else
- #define HEATER_1_PIN 45 // F7 - Extrudrboard B HOTEND
- #define HEATER_2_PIN 44 // F6 - Extrudrboard A HOTEND
+ #define HEATER_1_PIN 45 // F7 - Extrudrboard B HOTEND
+ #define HEATER_2_PIN 44 // F6 - Extrudrboard A HOTEND
#endif
#endif
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A
+ #define FAN_PIN 16 // C6 PWM3A
#endif
//
@@ -202,49 +202,49 @@
//#define USE_INTERNAL_SD
#if HAS_SPI_LCD
- #define LCD_PINS_RS 9 // E1 JP11-11
- #define LCD_PINS_ENABLE 8 // E0 JP11-10
- #define LCD_PINS_D4 7 // D7 JP11-8
- #define LCD_PINS_D5 6 // D6 JP11-7
- #define LCD_PINS_D6 5 // D5 JP11-6
- #define LCD_PINS_D7 4 // D4 JP11-5
+ #define LCD_PINS_RS 9 // E1 JP11-11
+ #define LCD_PINS_ENABLE 8 // E0 JP11-10
+ #define LCD_PINS_D4 7 // D7 JP11-8
+ #define LCD_PINS_D5 6 // D6 JP11-7
+ #define LCD_PINS_D6 5 // D5 JP11-6
+ #define LCD_PINS_D7 4 // D4 JP11-5
#if ANY(VIKI2, miniVIKI)
- #define BEEPER_PIN 8 // E0 JP11-10
- #define DOGLCD_A0 40 // F2 JP2-2
- #define DOGLCD_CS 41 // F3 JP2-4
+ #define BEEPER_PIN 8 // E0 JP11-10
+ #define DOGLCD_A0 40 // F2 JP2-2
+ #define DOGLCD_CS 41 // F3 JP2-4
#define LCD_SCREEN_ROT_180
- #define BTN_EN1 2 // D2 TX1 JP2-5
- #define BTN_EN2 3 // D3 RX1 JP2-7
- #define BTN_ENC 45 // F7 TDI JP2-12
+ #define BTN_EN1 2 // D2 TX1 JP2-5
+ #define BTN_EN2 3 // D3 RX1 JP2-7
+ #define BTN_ENC 45 // F7 TDI JP2-12
- #define SDSS 3 // F5 TMS JP2-8
+ #define SDSS 3 // F5 TMS JP2-8
- #define STAT_LED_RED_PIN 12 // C2 JP11-14
- #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
+ #define STAT_LED_RED_PIN 12 // C2 JP11-14
+ #define STAT_LED_BLUE_PIN 10 // C0 JP11-12
#elif ENABLED(MINIPANEL)
#if DISABLED(USE_INTERNAL_SD)
// PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN# Printrboard RevF Conn. MKSLCD12864 PIN#
- #define SDSS 11 // 36 C1 EXP2-13 EXP2-07
- #define SD_DETECT_PIN 9 // 34 E1 EXP2-11 EXP2-04
+ #define SDSS 11 // 36 C1 EXP2-13 EXP2-07
+ #define SD_DETECT_PIN 9 // 34 E1 EXP2-11 EXP2-04
#endif
// PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN# Printrboard RevF Conn. MKSLCD12864 PIN#
- #define DOGLCD_A0 4 // 29 D4 EXP2-05 EXP1-04
- #define DOGLCD_CS 5 // 30 D5 EXP2-06 EXP1-05
- #define BTN_ENC 6 // 31 D6 EXP2-07 EXP1-09
- #define BEEPER_PIN 7 // 32 D7 EXP2-08 EXP1-10
- #define KILL_PIN 8 // 33 E0 EXP2-10 EXP2-03
- #define BTN_EN1 10 // 35 C0 EXP2-12 EXP2-06
- #define BTN_EN2 12 // 37 C2 EXP2-14 EXP2-08
- //#define LCD_BACKLIGHT_PIN 43 // 56 F5 EXP1-12 Not Implemented
- //#define SCK 21 // 11 B1 ICSP-04 EXP2-09
- //#define MOSI 22 // 12 B2 ICSP-03 EXP2-05
- //#define MISO 23 // 13 B3 ICSP-06 EXP2-05
+ #define DOGLCD_A0 4 // 29 D4 EXP2-05 EXP1-04
+ #define DOGLCD_CS 5 // 30 D5 EXP2-06 EXP1-05
+ #define BTN_ENC 6 // 31 D6 EXP2-07 EXP1-09
+ #define BEEPER_PIN 7 // 32 D7 EXP2-08 EXP1-10
+ #define KILL_PIN 8 // 33 E0 EXP2-10 EXP2-03
+ #define BTN_EN1 10 // 35 C0 EXP2-12 EXP2-06
+ #define BTN_EN2 12 // 37 C2 EXP2-14 EXP2-08
+ //#define LCD_BACKLIGHT_PIN 43 // 56 F5 EXP1-12 Not Implemented
+ //#define SCK 21 // 11 B1 ICSP-04 EXP2-09
+ //#define MOSI 22 // 12 B2 ICSP-03 EXP2-05
+ //#define MISO 23 // 13 B3 ICSP-06 EXP2-05
// increase delays
#define BOARD_ST7920_DELAY_1 DELAY_NS(313)
@@ -253,9 +253,9 @@
#else
- #define BTN_EN1 10 // C0 JP11-12
- #define BTN_EN2 11 // C1 JP11-13
- #define BTN_ENC 12 // C2 JP11-14
+ #define BTN_EN1 10 // C0 JP11-12
+ #define BTN_EN2 11 // C1 JP11-13
+ #define BTN_ENC 12 // C2 JP11-14
#endif
@@ -266,7 +266,7 @@
//
// PIN FASTIO PIN# ATUSB90 PIN# Teensy2.0++ PIN# Printrboard RevF Conn.
#ifndef SDSS
- #define SDSS 20 // 10 B0
+ #define SDSS 20 // 10 B0
#endif
/**
@@ -277,5 +277,5 @@
* which will let you use Channel B on the Extrudrboard as E1.
*/
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 2 // Analog Input
+ #define FILWIDTH_PIN 2 // Analog Input
#endif
diff --git a/Marlin/src/pins/teensy2/pins_SAV_MKI.h b/Marlin/src/pins/teensy2/pins_SAV_MKI.h
index 0ced699938..01003b056d 100644
--- a/Marlin/src/pins/teensy2/pins_SAV_MKI.h
+++ b/Marlin/src/pins/teensy2/pins_SAV_MKI.h
@@ -73,56 +73,56 @@
//
// Servos
//
-#define SERVO0_PIN 39 // F1 In teensy's pin definition for pinMode (in servo.cpp)
+#define SERVO0_PIN 39 // F1 In teensy's pin definition for pinMode (in servo.cpp)
//
// Limit Switches
//
-#define X_STOP_PIN 25 // B5
-#define Y_STOP_PIN 26 // B6
-//#define Z_STOP_PIN 27 // B7
-#define Z_STOP_PIN 36 // E4 For inductive sensor.
-//#define E_STOP_PIN 36 // E4
+#define X_STOP_PIN 25 // B5
+#define Y_STOP_PIN 26 // B6
+//#define Z_STOP_PIN 27 // B7
+#define Z_STOP_PIN 36 // E4 For inductive sensor.
+//#define E_STOP_PIN 36 // E4
//
// Steppers
//
-#define X_STEP_PIN 28 // A0
-#define X_DIR_PIN 29 // A1
-#define X_ENABLE_PIN 19 // E7
+#define X_STEP_PIN 28 // A0
+#define X_DIR_PIN 29 // A1
+#define X_ENABLE_PIN 19 // E7
-#define Y_STEP_PIN 30 // A2
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 18 // E6
+#define Y_STEP_PIN 30 // A2
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 18 // E6
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 17 // C7
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 17 // C7
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 13 // C3
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 13 // C3
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // F7 Analog Input (Extruder)
-#define TEMP_BED_PIN 6 // F6 Analog Input (Bed)
+#define TEMP_0_PIN 7 // F7 Analog Input (Extruder)
+#define TEMP_BED_PIN 6 // F6 Analog Input (Bed)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
-#define HEATER_BED_PIN 14 // C4 PWM3C - Bed
+#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
+#define HEATER_BED_PIN 14 // C4 PWM3C - Bed
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A
+ #define FAN_PIN 16 // C6 PWM3A
#endif
//
// Misc. Functions
//
-#define SDSS 20 // B0
+#define SDSS 20 // B0
// Extension header pin mapping
// ----------------------------
@@ -133,53 +133,53 @@
// PWM-D24 A4 (An), IO
// 5V GND
// 12V GND
-#define EXT_AUX_SCL_D0 0 // D0 PWM0B
-#define EXT_AUX_SDA_D1 1 // D1
-#define EXT_AUX_RX1_D2 2 // D2
-#define EXT_AUX_TX1_D3 3 // D3
-#define EXT_AUX_PWM_D24 24 // B4 PWM2A
-#define EXT_AUX_A0 0 // F0 Analog Input
-#define EXT_AUX_A0_IO 38 // F0 Digital IO
-#define EXT_AUX_A1 1 // F1 Analog Input
-#define EXT_AUX_A1_IO 39 // F1 Digital IO
-#define EXT_AUX_A2 2 // F2 Analog Input
-#define EXT_AUX_A2_IO 40 // F2 Digital IO
-#define EXT_AUX_A3 3 // F3 Analog Input
-#define EXT_AUX_A3_IO 41 // F3 Digital IO
-#define EXT_AUX_A4 4 // F4 Analog Input
-#define EXT_AUX_A4_IO 42 // F4 Digital IO
+#define EXT_AUX_SCL_D0 0 // D0 PWM0B
+#define EXT_AUX_SDA_D1 1 // D1
+#define EXT_AUX_RX1_D2 2 // D2
+#define EXT_AUX_TX1_D3 3 // D3
+#define EXT_AUX_PWM_D24 24 // B4 PWM2A
+#define EXT_AUX_A0 0 // F0 Analog Input
+#define EXT_AUX_A0_IO 38 // F0 Digital IO
+#define EXT_AUX_A1 1 // F1 Analog Input
+#define EXT_AUX_A1_IO 39 // F1 Digital IO
+#define EXT_AUX_A2 2 // F2 Analog Input
+#define EXT_AUX_A2_IO 40 // F2 Digital IO
+#define EXT_AUX_A3 3 // F3 Analog Input
+#define EXT_AUX_A3_IO 41 // F3 Digital IO
+#define EXT_AUX_A4 4 // F4 Analog Input
+#define EXT_AUX_A4_IO 42 // F4 Digital IO
//
// LCD / Controller
//
-#define BEEPER_PIN -1
-#define LCD_PINS_RS -1
-#define LCD_PINS_ENABLE -1
+#define BEEPER_PIN -1
+#define LCD_PINS_RS -1
+#define LCD_PINS_ENABLE -1
#if ENABLED(SAV_3DLCD)
// For LCD SHIFT register LCD
- #define SR_DATA_PIN EXT_AUX_SDA_D1
- #define SR_CLK_PIN EXT_AUX_SCL_D0
+ #define SR_DATA_PIN EXT_AUX_SDA_D1
+ #define SR_CLK_PIN EXT_AUX_SCL_D0
#endif
#if EITHER(SAV_3DLCD, SAV_3DGLCD)
- #define BTN_EN1 EXT_AUX_A1_IO
- #define BTN_EN2 EXT_AUX_A0_IO
- #define BTN_ENC EXT_AUX_PWM_D24
+ #define BTN_EN1 EXT_AUX_A1_IO
+ #define BTN_EN2 EXT_AUX_A0_IO
+ #define BTN_ENC EXT_AUX_PWM_D24
- #define KILL_PIN EXT_AUX_A2_IO
- #define HOME_PIN EXT_AUX_A4_IO
+ #define KILL_PIN EXT_AUX_A2_IO
+ #define HOME_PIN EXT_AUX_A4_IO
-#else // Use the expansion header for spindle control
+#else // Use the expansion header for spindle control
//
// M3/M4/M5 - Spindle/Laser Control
//
- #define SPINDLE_LASER_PWM_PIN 24 // B4 PWM2A
- #define SPINDLE_LASER_ENA_PIN 39 // F1 Pin should have a pullup!
- #define SPINDLE_DIR_PIN 40 // F2
+ #define SPINDLE_LASER_PWM_PIN 24 // B4 PWM2A
+ #define SPINDLE_LASER_ENA_PIN 39 // F1 Pin should have a pullup!
+ #define SPINDLE_DIR_PIN 40 // F2
- #define CASE_LIGHT_PIN 0 // D0 PWM0B
+ #define CASE_LIGHT_PIN 0 // D0 PWM0B
#endif
diff --git a/Marlin/src/pins/teensy2/pins_TEENSY2.h b/Marlin/src/pins/teensy2/pins_TEENSY2.h
index 985cd46df4..eb116ee3e8 100644
--- a/Marlin/src/pins/teensy2/pins_TEENSY2.h
+++ b/Marlin/src/pins/teensy2/pins_TEENSY2.h
@@ -116,70 +116,70 @@
//
// Limit Switches
//
-#define X_STOP_PIN 2 // D2
-#define Y_STOP_PIN 3 // D3
-#define Z_STOP_PIN 4 // D4
+#define X_STOP_PIN 2 // D2
+#define Y_STOP_PIN 3 // D3
+#define Z_STOP_PIN 4 // D4
//
// Steppers
//
-#define X_STEP_PIN 28 // A0 Marlin
-#define X_DIR_PIN 29 // A1 Marlin
-#define X_ENABLE_PIN 26 // B6
+#define X_STEP_PIN 28 // A0 Marlin
+#define X_DIR_PIN 29 // A1 Marlin
+#define X_ENABLE_PIN 26 // B6
-#define Y_STEP_PIN 30 // A2 Marlin
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 26 // B6 Shared w/x
+#define Y_STEP_PIN 30 // A2 Marlin
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 26 // B6 Shared w/x
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 26 // B6 Shared w/x
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 26 // B6 Shared w/x
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 26 // B6 Shared w/x
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 26 // B6 Shared w/x
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // F7 Analog Input (Extruder)
-#define TEMP_BED_PIN 6 // F6 Analog Input (Bed)
+#define TEMP_0_PIN 7 // F7 Analog Input (Extruder)
+#define TEMP_BED_PIN 6 // F6 Analog Input (Bed)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5 PWM3B Extruder
-#define HEATER_BED_PIN 14 // C4 PWM3C
+#define HEATER_0_PIN 15 // C5 PWM3B Extruder
+#define HEATER_BED_PIN 14 // C4 PWM3C
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A Fan
+ #define FAN_PIN 16 // C6 PWM3A Fan
#endif
//
// Misc. Functions
//
-#define SDSS 20 // B0
-#define LED_PIN 6 // D6
-#define PS_ON_PIN 27 // B7
-#define CASE_LIGHT_PIN 1 // D1 PWM2B MUST BE HARDWARE PWM
+#define SDSS 20 // B0
+#define LED_PIN 6 // D6
+#define PS_ON_PIN 27 // B7
+#define CASE_LIGHT_PIN 1 // D1 PWM2B MUST BE HARDWARE PWM
//
// LCD / Controller
//
#if ENABLED(ULTIPANEL)
- #define LCD_PINS_RS 8 // E0
- #define LCD_PINS_ENABLE 9 // E1
- #define LCD_PINS_D4 10 // C0
- #define LCD_PINS_D5 11 // C1
- #define LCD_PINS_D6 12 // C2
- #define LCD_PINS_D7 13 // C3
- #define BTN_EN1 38 // F0
- #define BTN_EN2 39 // F1
- #define BTN_ENC 40 // F2
+ #define LCD_PINS_RS 8 // E0
+ #define LCD_PINS_ENABLE 9 // E1
+ #define LCD_PINS_D4 10 // C0
+ #define LCD_PINS_D5 11 // C1
+ #define LCD_PINS_D6 12 // C2
+ #define LCD_PINS_D7 13 // C3
+ #define BTN_EN1 38 // F0
+ #define BTN_EN2 39 // F1
+ #define BTN_ENC 40 // F2
#endif
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_ENA_PIN 5 // D5 Pin should have a pullup!
-#define SPINDLE_LASER_PWM_PIN 0 // D0 PWM0B MUST BE HARDWARE PWM
-#define SPINDLE_DIR_PIN 7 // D7
+#define SPINDLE_LASER_ENA_PIN 5 // D5 Pin should have a pullup!
+#define SPINDLE_LASER_PWM_PIN 0 // D0 PWM0B MUST BE HARDWARE PWM
+#define SPINDLE_DIR_PIN 7 // D7
diff --git a/Marlin/src/pins/teensy2/pins_TEENSYLU.h b/Marlin/src/pins/teensy2/pins_TEENSYLU.h
index 72eb21c1aa..05f433cb89 100755
--- a/Marlin/src/pins/teensy2/pins_TEENSYLU.h
+++ b/Marlin/src/pins/teensy2/pins_TEENSYLU.h
@@ -82,82 +82,81 @@
//
// Limit Switch definitions that match the SCHEMATIC
//
-//#define X_STOP_PIN 25 // B5
-//#define Y_STOP_PIN 26 // B6
-//#define Z_STOP_PIN 27 // B7
-//#define E_STOP_PIN 36 // E4
-
+//#define X_STOP_PIN 25 // B5
+//#define Y_STOP_PIN 26 // B6
+//#define Z_STOP_PIN 27 // B7
+//#define E_STOP_PIN 36 // E4
//
// Limit Switch definitions that match the SILKSCREEN
//
-#define X_STOP_PIN 26 // B6
-#define Y_STOP_PIN 27 // B7
-#define Z_STOP_PIN 36 // E4
-//#define E_STOP_PIN 25 // B5
+#define X_STOP_PIN 26 // B6
+#define Y_STOP_PIN 27 // B7
+#define Z_STOP_PIN 36 // E4
+//#define E_STOP_PIN 25 // B5
//
// Steppers
//
-#define X_STEP_PIN 28 // A0
-#define X_DIR_PIN 29 // A1
-#define X_ENABLE_PIN 19 // E7
+#define X_STEP_PIN 28 // A0
+#define X_DIR_PIN 29 // A1
+#define X_ENABLE_PIN 19 // E7
-#define Y_STEP_PIN 30 // A2
-#define Y_DIR_PIN 31 // A3
-#define Y_ENABLE_PIN 18 // E6
+#define Y_STEP_PIN 30 // A2
+#define Y_DIR_PIN 31 // A3
+#define Y_ENABLE_PIN 18 // E6
-#define Z_STEP_PIN 32 // A4
-#define Z_DIR_PIN 33 // A5
-#define Z_ENABLE_PIN 17 // C7
+#define Z_STEP_PIN 32 // A4
+#define Z_DIR_PIN 33 // A5
+#define Z_ENABLE_PIN 17 // C7
-#define E0_STEP_PIN 34 // A6
-#define E0_DIR_PIN 35 // A7
-#define E0_ENABLE_PIN 13 // C3
+#define E0_STEP_PIN 34 // A6
+#define E0_DIR_PIN 35 // A7
+#define E0_ENABLE_PIN 13 // C3
//
// Temperature Sensors
//
-#define TEMP_0_PIN 7 // Analog Input (Extruder)
-#define TEMP_BED_PIN 6 // Analog Input (Bed)
+#define TEMP_0_PIN 7 // Analog Input (Extruder)
+#define TEMP_BED_PIN 6 // Analog Input (Bed)
//
// Heaters / Fans
//
-#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
-#define HEATER_BED_PIN 14 // C4 PWM3C
+#define HEATER_0_PIN 15 // C5 PWM3B - Extruder
+#define HEATER_BED_PIN 14 // C4 PWM3C
#ifndef FAN_PIN
- #define FAN_PIN 16 // C6 PWM3A
+ #define FAN_PIN 16 // C6 PWM3A
#endif
//
// Misc. Functions
//
-#define SDSS 20 // B0 JP31-6
-#define CASE_LIGHT_PIN 0 // D0 IO-14 PWM0B
+#define SDSS 20 // B0 JP31-6
+#define CASE_LIGHT_PIN 0 // D0 IO-14 PWM0B
//
// LCD / Controller
//
#if BOTH(ULTRA_LCD, NEWPANEL)
- #define BEEPER_PIN -1
+ #define BEEPER_PIN -1
#if ENABLED(LCD_I2C_PANELOLU2)
- #define BTN_EN1 3 // D3 IO-8
- #define BTN_EN2 2 // D2 IO-10
- #define BTN_ENC 41 // F3 IO-7
- #define SDSS 38 // F0 IO-13 use SD card on Panelolu2
+ #define BTN_EN1 3 // D3 IO-8
+ #define BTN_EN2 2 // D2 IO-10
+ #define BTN_ENC 41 // F3 IO-7
+ #define SDSS 38 // F0 IO-13 use SD card on Panelolu2
#endif
- #define SD_DETECT_PIN -1
+ #define SD_DETECT_PIN -1
#endif // HAS_SPI_LCD && NEWPANEL
//
// M3/M4/M5 - Spindle/Laser Control
//
-#define SPINDLE_LASER_PWM_PIN 24 // B4 IO-3 PWM2A - MUST BE HARDWARE PWM
-#define SPINDLE_LASER_ENA_PIN 39 // F1 IO-11 - Pin should have a pullup!
-#define SPINDLE_DIR_PIN 40 // F2 IO-9
+#define SPINDLE_LASER_PWM_PIN 24 // B4 IO-3 PWM2A - MUST BE HARDWARE PWM
+#define SPINDLE_LASER_ENA_PIN 39 // F1 IO-11 - Pin should have a pullup!
+#define SPINDLE_DIR_PIN 40 // F2 IO-9
diff --git a/Marlin/src/pins/teensy3/pins_TEENSY31_32.h b/Marlin/src/pins/teensy3/pins_TEENSY31_32.h
index 6c43c4aaa8..0f895c9e6b 100644
--- a/Marlin/src/pins/teensy3/pins_TEENSY31_32.h
+++ b/Marlin/src/pins/teensy3/pins_TEENSY31_32.h
@@ -35,87 +35,87 @@
#define BOARD_INFO_NAME "Teensy3.2"
#endif
-#define AT90USB 1286 // Disable MarlinSerial etc.
+#define AT90USB 1286 // Disable MarlinSerial etc.
#define USBCON //1286 // Disable MarlinSerial etc.
//
// Limit Switches
//
-#define X_STOP_PIN 3
-#define Y_STOP_PIN 4
-#define Z_STOP_PIN 5
+#define X_STOP_PIN 3
+#define Y_STOP_PIN 4
+#define Z_STOP_PIN 5
//
// Steppers
//
-#define X_STEP_PIN 5
-#define X_DIR_PIN 6
-#define X_ENABLE_PIN 2
+#define X_STEP_PIN 5
+#define X_DIR_PIN 6
+#define X_ENABLE_PIN 2
-#define Y_STEP_PIN 7
-#define Y_DIR_PIN 8
-#define Y_ENABLE_PIN 2
+#define Y_STEP_PIN 7
+#define Y_DIR_PIN 8
+#define Y_ENABLE_PIN 2
-#define Z_STEP_PIN 9
-#define Z_DIR_PIN 10
-#define Z_ENABLE_PIN 2
+#define Z_STEP_PIN 9
+#define Z_DIR_PIN 10
+#define Z_ENABLE_PIN 2
-#define E0_STEP_PIN 11
-#define E0_DIR_PIN 12
-#define E0_ENABLE_PIN 2
+#define E0_STEP_PIN 11
+#define E0_DIR_PIN 12
+#define E0_ENABLE_PIN 2
-//#define E1_STEP_PIN 33
-//#define E1_DIR_PIN 34
-//#define E1_ENABLE_PIN 35
+//#define E1_STEP_PIN 33
+//#define E1_DIR_PIN 34
+//#define E1_ENABLE_PIN 35
//
// Heaters / Fans
//
-#define HEATER_0_PIN 20
+#define HEATER_0_PIN 20
// #define HEATER_1_PIN 36
-#define HEATER_BED_PIN 21
+#define HEATER_BED_PIN 21
#ifndef FAN_PIN
- #define FAN_PIN 22
+ #define FAN_PIN 22
#endif
//
// Temperature Sensors
//
-#define TEMP_0_PIN 14 // Analog Input - Extruder 2 => A2
-//#define TEMP_1_PIN 0 // Analog Input
-#define TEMP_BED_PIN 15 // Analog Input - Bed
+#define TEMP_0_PIN 14 // Analog Input - Extruder 2 => A2
+//#define TEMP_1_PIN 0 // Analog Input
+#define TEMP_BED_PIN 15 // Analog Input - Bed
#ifndef FILWIDTH_PIN
- #define FILWIDTH_PIN 6 // Analog Input
+ #define FILWIDTH_PIN 6 // Analog Input
#endif
//
// Misc. Functions
//
-//#define SDSS 16 // 8
-#define LED_PIN 13
+//#define SDSS 16 // 8
+#define LED_PIN 13
-//#define SOL1_PIN 28
+//#define SOL1_PIN 28
//
// LCD / Controller
//
-//#define SCK_PIN 13
-//#define MISO_PIN 12
-//#define MOSI_PIN 11
+//#define SCK_PIN 13
+//#define MISO_PIN 12
+//#define MOSI_PIN 11
/*
#if HAS_SPI_LCD
- #define LCD_PINS_RS 40
- #define LCD_PINS_ENABLE 41
- #define LCD_PINS_D4 42
- #define LCD_PINS_D5 43
- #define LCD_PINS_D6 44
- #define LCD_PINS_D7 45
- #define BTN_EN1 46
- #define BTN_EN2 47
- #define BTN_ENC 48
+ #define LCD_PINS_RS 40
+ #define LCD_PINS_ENABLE 41
+ #define LCD_PINS_D4 42
+ #define LCD_PINS_D5 43
+ #define LCD_PINS_D6 44
+ #define LCD_PINS_D7 45
+ #define BTN_EN1 46
+ #define BTN_EN2 47
+ #define BTN_ENC 48
#endif
*/
diff --git a/Marlin/src/pins/teensy3/pins_TEENSY35_36.h b/Marlin/src/pins/teensy3/pins_TEENSY35_36.h
index 28fd51b8a0..8528533d7b 100644
--- a/Marlin/src/pins/teensy3/pins_TEENSY35_36.h
+++ b/Marlin/src/pins/teensy3/pins_TEENSY35_36.h
@@ -37,7 +37,7 @@
#define BOARD_INFO_NAME "Teensy3.6"
#endif
-#define AT90USB 1286 // Disable MarlinSerial etc.
+#define AT90USB 1286 // Disable MarlinSerial etc.
#define USBCON //1286 // Disable MarlinSerial etc.
/*
@@ -83,80 +83,80 @@ D8 HEATER_BED_PIN CS1 RX4 A12 31 | 46 * * 47 | 34 A15 PWM
//
// Limit Switches
//
-#define X_STOP_PIN 24
-#define Y_STOP_PIN 26
-#define Z_STOP_PIN 28
+#define X_STOP_PIN 24
+#define Y_STOP_PIN 26
+#define Z_STOP_PIN 28
//
// Steppers
//
-#define X_STEP_PIN 22
-#define X_DIR_PIN 21
-#define X_ENABLE_PIN 39
+#define X_STEP_PIN 22
+#define X_DIR_PIN 21
+#define X_ENABLE_PIN 39
-#define Y_STEP_PIN 19
-#define Y_DIR_PIN 18
-#define Y_ENABLE_PIN 20
+#define Y_STEP_PIN 19
+#define Y_DIR_PIN 18
+#define Y_ENABLE_PIN 20
-#define Z_STEP_PIN 38
-#define Z_DIR_PIN 37
-#define Z_ENABLE_PIN 17
+#define Z_STEP_PIN 38
+#define Z_DIR_PIN 37
+#define Z_ENABLE_PIN 17
-#define E0_STEP_PIN 31
-#define E0_DIR_PIN 30
-#define E0_ENABLE_PIN 32
+#define E0_STEP_PIN 31
+#define E0_DIR_PIN 30
+#define E0_ENABLE_PIN 32
-#define E1_STEP_PIN 33
-#define E1_DIR_PIN 34
-#define E1_ENABLE_PIN 35
+#define E1_STEP_PIN 33
+#define E1_DIR_PIN 34
+#define E1_ENABLE_PIN 35
-#define HEATER_0_PIN 30
-#define HEATER_1_PIN 36
-#define HEATER_BED_PIN 31
+#define HEATER_0_PIN 30
+#define HEATER_1_PIN 36
+#define HEATER_BED_PIN 31
#ifndef FAN_PIN
- #define FAN_PIN 2
+ #define FAN_PIN 2
#endif
-#define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
-#define TEMP_1_PIN 0
-#define TEMP_BED_PIN 1 // Bed / Analog pin numbering
+#define TEMP_0_PIN 2 // Extruder / Analog pin numbering: 2 => A2
+#define TEMP_1_PIN 0
+#define TEMP_BED_PIN 1 // Bed / Analog pin numbering
-#define SDSS 39 // 8
-#define LED_PIN 13
-#define PS_ON_PIN 1
-#define ALARM_PIN -1
+#define SDSS 39 // 8
+#define LED_PIN 13
+#define PS_ON_PIN 1
+#define ALARM_PIN -1
-#define FILWIDTH_PIN 6
-#define SOL1_PIN 28
+#define FILWIDTH_PIN 6
+#define SOL1_PIN 28
#if 0
// Pretty sure this is obsolete!
// Please use Marlin 1.1.x pins files as reference for new pins files.
#ifndef SDSUPPORT
// these are defined in the SD library if building with SD support
- #define SCK_PIN 13
- #define MISO_PIN 12
- #define MOSI_PIN 11
+ #define SCK_PIN 13
+ #define MISO_PIN 12
+ #define MOSI_PIN 11
#endif
#endif
#if HAS_SPI_LCD
- #define LCD_PINS_RS 40
- #define LCD_PINS_ENABLE 41
- #define LCD_PINS_D4 42
- #define LCD_PINS_D5 43
- #define LCD_PINS_D6 44
- #define LCD_PINS_D7 45
+ #define LCD_PINS_RS 40
+ #define LCD_PINS_ENABLE 41
+ #define LCD_PINS_D4 42
+ #define LCD_PINS_D5 43
+ #define LCD_PINS_D6 44
+ #define LCD_PINS_D7 45
#endif
#if ENABLED(NEWPANEL)
- #define BTN_EN1 46
- #define BTN_EN2 47
- #define BTN_ENC 48
+ #define BTN_EN1 46
+ #define BTN_EN2 47
+ #define BTN_ENC 48
#endif
#if ENABLED(REPRAPWORLD_KEYPAD)
- #define SHIFT_OUT 40
- #define SHIFT_CLK 44
- #define SHIFT_LD 42
+ #define SHIFT_OUT 40
+ #define SHIFT_CLK 44
+ #define SHIFT_LD 42
#endif