C   676
Marlin Config.H
Guest on 5th March 2022 11:14:23 AM


  1. /**
  2.  * Marlin 3D Printer Firmware
  3.  * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4.  *
  5.  * Based on Sprinter and grbl.
  6.  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7.  *
  8.  * This program is free software: you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation, either version 3 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  20.  *
  21.  */
  22. #pragma once
  23.  
  24. /**
  25.  * Configuration.h
  26.  *
  27.  * Basic settings such as:
  28.  *
  29.  * - Type of electronics
  30.  * - Type of temperature sensor
  31.  * - Printer geometry
  32.  * - Endstop configuration
  33.  * - LCD controller
  34.  * - Extra features
  35.  *
  36.  * Advanced settings can be found in Configuration_adv.h
  37.  */
  38. #define CONFIGURATION_H_VERSION 02000903
  39.  
  40. //===========================================================================
  41. //============================= Getting Started =============================
  42. //===========================================================================
  43.  
  44. /**
  45.  * Here are some useful links to help get your machine configured and calibrated:
  46.  *
  47.  * Example Configs:     https://github.com/MarlinFirmware/Configurations/branches/all
  48.  *
  49.  * Průša Calculator:    https://blog.prusaprinters.org/calculator_3416/
  50.  *
  51.  * Calibration Guides:  https://reprap.org/wiki/Calibration
  52.  *                      https://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
  53.  *                      https://sites.google.com/site/repraplogphase/calibration-of-your-reprap
  54.  *                      https://youtu.be/wAL9d7FgInk
  55.  *
  56.  * Calibration Objects: https://www.thingiverse.com/thing:5573
  57.  *                      https://www.thingiverse.com/thing:1278865
  58.  */*///===========================================================================
  59. //========================== DELTA / SCARA / TPARA ==========================
  60. //===========================================================================
  61. //
  62. // Download configurations from the link above and customize for your machine.
  63. // Examples are located in config/examples/delta, .../SCARA, and .../TPARA.
  64. //
  65. //===========================================================================
  66. =// @section info
  67. o// Author info of this build printed to the host during boot and M115
  68. #define STRING_CONFIG_H_AUTHOR "Tevo Tornado MKS GEN L V2" // Who made the changes.
  69. //#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes)
  70. )/**
  71.  * *** VENDORS PLEASE READ ***
  72.  *
  73.  * Marlin allows you to add a custom boot image for Graphical LCDs.
  74.  * With this option Marlin will first show your custom screen followed
  75.  * by the standard Marlin logo with version number and web URL.
  76.  *
  77.  * We encourage you to take advantage of this new feature and we also
  78.  * respectfully request that you retain the unmodified Marlin boot screen.
  79.  */*/// Show the Marlin bootscreen on startup. ** ENABLE FOR PRODUCTION **
  80. #define SHOW_BOOTSCREEN
  81. N// Show the bitmap in Marlin/_Bootscreen.h on startup.
  82. //#define SHOW_CUSTOM_BOOTSCREEN
  83. N// Show the bitmap in Marlin/_Statusscreen.h on the status screen.
  84. //#define CUSTOM_STATUS_SCREEN_IMAGE
  85. E// @section machine
  86. e// Choose the name from boards.h that matches your setup
  87. #ifndef MOTHERBOARD
  88. D
  89. #define MOTHERBOARD BOARD_MKS_GEN_L_V2
  90. #endif
  91. f/**
  92.  * Select the serial port on the board to use for communication with the host.
  93.  * This allows the connection of wireless adapters (for instance) to non-default port pins.
  94.  * Serial port -1 is the USB emulated serial port, if available.
  95.  * Note: The first serial port (-1 or 0) will always be used by the Arduino bootloader.
  96.  *
  97.  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
  98.  */*#define SERIAL_PORT 0
  99. 0/**
  100.  * Serial Port Baud Rate
  101.  * This is the default communication speed for all serial ports.
  102.  * Set the baud rate defaults for additional serial ports below.
  103.  *
  104.  * 250000 works in most cases, but you might try a lower speed if
  105.  * you commonly experience drop-outs during host printing.
  106.  * You may try up to 1000000 to speed up SD file transfer.
  107.  *
  108.  * :[2400, 9600, 19200, 38400, 57600, 115200, 250000, 500000, 1000000]
  109.  */*#define BAUDRATE 250000
  110. //#define BAUD_RATE_GCODE     // Enable G-code M575 to set the baud rate
  111. e/**
  112.  * Select a secondary serial port on the board to use for communication with the host.
  113.  * Currently Ethernet (-2) is only supported on Teensy 4.1 boards.
  114.  * :[-2, -1, 0, 1, 2, 3, 4, 5, 6, 7]
  115.  */*//#define SERIAL_PORT_2 -1
  116. //#define BAUDRATE_2 250000   // Enable to override BAUDRATE
  117. E/**
  118.  * Select a third serial port on the board to use for communication with the host.
  119.  * Currently only supported for AVR, DUE, LPC1768/9 and STM32/STM32F1
  120.  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
  121.  */*//#define SERIAL_PORT_3 1
  122. //#define BAUDRATE_3 250000   // Enable to override BAUDRATE
  123. E// Enable the Bluetooth serial interface on AT90USB devices
  124. //#define BLUETOOTH
  125. H// Name displayed in the LCD "Ready" message and Info menu
  126. #define CUSTOM_MACHINE_NAME "Tevo Tronado"
  127. "// Printer's unique ID, used by some programs to differentiate between machines.
  128. // Choose your own or use a service like https://www.uuidgenerator.net/version4
  129. //#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
  130. "/**
  131.  * Define the number of coordinated linear axes.
  132.  * See https://github.com/DerAndere1/Marlin/wiki
  133.  * Each linear axis gets its own stepper control and endstop:
  134.  *
  135.  *   Steppers: *_STEP_PIN, *_ENABLE_PIN, *_DIR_PIN, *_ENABLE_ON
  136.  *   Endstops: *_STOP_PIN, USE_*MIN_PLUG, USE_*MAX_PLUG
  137.  *       Axes: *_MIN_POS, *_MAX_POS, INVERT_*_DIR
  138.  *    Planner: DEFAULT_AXIS_STEPS_PER_UNIT, DEFAULT_MAX_FEEDRATE
  139.  *             DEFAULT_MAX_ACCELERATION, AXIS_RELATIVE_MODES,
  140.  *             MICROSTEP_MODES, MANUAL_FEEDRATE
  141.  *
  142.  * :[3, 4, 5, 6]
  143.  */*//#define LINEAR_AXES 3
  144. 3/**
  145.  * Axis codes for additional axes:
  146.  * This defines the axis code that is used in G-code commands to
  147.  * reference a specific axis.
  148.  * 'A' for rotational axis parallel to X
  149.  * 'B' for rotational axis parallel to Y
  150.  * 'C' for rotational axis parallel to Z
  151.  * 'U' for secondary linear axis parallel to X
  152.  * 'V' for secondary linear axis parallel to Y
  153.  * 'W' for secondary linear axis parallel to Z
  154.  * Regardless of the settings, firmware-internal axis IDs are
  155.  * I (AXIS4), J (AXIS5), K (AXIS6).
  156.  */*#if LINEAR_AXES >= 4
  157. 4
  158. #define AXIS4_NAME 'A' // :['A', 'B', 'C', 'U', 'V', 'W']
  159. #endif
  160. #if LINEAR_AXES >= 5
  161. 5
  162. #define AXIS5_NAME 'B' // :['A', 'B', 'C', 'U', 'V', 'W']
  163. #endif
  164. #if LINEAR_AXES >= 6
  165. 6
  166. #define AXIS6_NAME 'C' // :['A', 'B', 'C', 'U', 'V', 'W']
  167. #endif
  168. f// @section extruder
  169. r// This defines the number of extruders
  170. // :[0, 1, 2, 3, 4, 5, 6, 7, 8]
  171. #define EXTRUDERS 1
  172. 1// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.
  173. #define DEFAULT_NOMINAL_FILAMENT_DIA 1.75
  174. 5// For Cyclops or any "multi-extruder" that shares a single nozzle.
  175. //#define SINGLENOZZLE
  176. E// Save and restore temperature and fan speed on tool-change.
  177. // Set standby for the unselected tool with M104/106/109 T...
  178. #if ENABLED(SINGLENOZZLE)
  179. )
  180. //#define SINGLENOZZLE_STANDBY_TEMP
  181. P
  182. //#define SINGLENOZZLE_STANDBY_FAN
  183. #endif
  184. f/**
  185.  * Multi-Material Unit
  186.  * Set to one of these predefined models:
  187.  *
  188.  *   PRUSA_MMU1           : Průša MMU1 (The "multiplexer" version)
  189.  *   PRUSA_MMU2           : Průša MMU2
  190.  *   PRUSA_MMU2S          : Průša MMU2S (Requires MK3S extruder with motion sensor, EXTRUDERS = 5)
  191.  *   EXTENDABLE_EMU_MMU2  : MMU with configurable number of filaments (ERCF, SMuFF or similar with Průša MMU2 compatible firmware)
  192.  *   EXTENDABLE_EMU_MMU2S : MMUS with configurable number of filaments (ERCF, SMuFF or similar with Průša MMU2 compatible firmware)
  193.  *
  194.  * Requires NOZZLE_PARK_FEATURE to park print head in case MMU unit fails.
  195.  * See additional options in Configuration_adv.h.
  196.  */n//#define MMU_MODEL PRUSA_MMU2
  197.  // A dual extruder that uses a single stepper motor
  198. //#define SWITCHING_EXTRUDER
  199. #if ENABLED(SWITCHING_EXTRUDER)
  200. G_#define SWITCHING_EXTRUDER_SERVO_NR 0
  201. _S#define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]
  202. 1[#if EXTRUDERS > 3
  203. TRUD#define SWITCHING_EXTRUDER_E23_SERVO_NR 1
  204. _S#endif
  205. #endif
  206. n// A dual-nozzle that uses a servomotor to raise/lower one (or both) of the nozzles
  207. //#define SWITCHING_NOZZLE
  208. #if ENABLED(SWITCHING_NOZZLE)
  209. IN#define SWITCHING_NOZZLE_SERVO_NR 0
  210. _S//#define SWITCHING_NOZZLE_E1_SERVO_NR 1          // If two servos are used, the index of the second
  211.  t#define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 }   // Angles for E0, E1 (single servo) or lowered/raised (dual servo)
  212. #endif
  213. r/**
  214.  * Two separate X-carriages with extruders that connect to a moving part
  215.  * via a solenoid docking mechanism. Requires SOL1_PIN and SOL2_PIN.
  216.  */O//#define PARKING_EXTRUDER
  217. N/**
  218.  * Two separate X-carriages with extruders that connect to a moving part
  219.  * via a magnetic docking mechanism using movements and no solenoid
  220.  *
  221.  * project   : https://www.thingiverse.com/thing:3080893
  222.  * movements : https://youtu.be/0xCEiG9VS3k
  223.  *             https://youtu.be/Bqbcs0CU2FE
  224.  */c//#define MAGNETIC_PARKING_EXTRUDER
  225. N#if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER)
  226. G_E#define PARKING_EXTRUDER_PARKING_X { -78, 184 }     // X positions for parking the extruders
  227. e #define PARKING_EXTRUDER_GRAB_DISTANCE 1            // (mm) Distance to move beyond the parking point to grab the extruder
  228. he #if ENABLED(PARKING_EXTRUDER)
  229. G_EXT#define PARKING_EXTRUDER_SOLENOIDS_INVERT           // If enabled, the solenoid is NOT magnetized with applied voltage
  230. ied #define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW  // LOW or HIGH pin signal energizes the coil
  231. es t#define PARKING_EXTRUDER_SOLENOIDS_DELAY 250        // (ms) Delay for magnetic field. No delay if 0 or not defined.
  232. ot d//#define MANUAL_SOLENOID_CONTROL                   // Manual control of docking solenoids with M380 S / M381
  233. 80 #elif ENABLED(MAGNETIC_PARKING_EXTRUDER)
  234. G_EXT#define MPE_FAST_SPEED      9000      // (mm/min) Speed for travel before last distance point
  235. tanc#define MPE_SLOW_SPEED      4500      // (mm/min) Speed for last distance travel to park and couple
  236.  and#define MPE_TRAVEL_DISTANCE   10      // (mm) Last distance point
  237. tanc#define MPE_COMPENSATION       0      // Offset Compensation -1 , 0 , 1 (multiplier) only for coupling
  238. or #endif
  239. g#endif
  240. d/**
  241.  * Switching Toolhead
  242.  *
  243.  * Support for swappable and dockable toolheads, such as
  244.  * the E3D Tool Changer. Toolheads are locked with a servo.
  245.  */a//#define SWITCHING_TOOLHEAD
  246. N/**
  247.  * Magnetic Switching Toolhead
  248.  *
  249.  * Support swappable and dockable toolheads with a magnetic
  250.  * docking mechanism using movement and no servo.
  251.  */o//#define MAGNETIC_SWITCHING_TOOLHEAD
  252. N/**
  253.  * Electromagnetic Switching Toolhead
  254.  *
  255.  * Parking for CoreXY / HBot kinematics.
  256.  * Toolheads are parked at one edge and held with an electromagnet.
  257.  * Supports more than 2 Toolheads. See https://youtu.be/JolbsAKTKf4
  258.  */b//#define ELECTROMAGNETIC_SWITCHING_TOOLHEAD
  259. N#if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
  260. G_#define SWITCHING_TOOLHEAD_Y_POS          235         // (mm) Y position of the toolhead dock
  261. ol#define SWITCHING_TOOLHEAD_Y_SECURITY      10         // (mm) Security distance Y axis
  262. an#define SWITCHING_TOOLHEAD_Y_CLEAR         60         // (mm) Minimum distance from dock for unobstructed X axis
  263. ct#define SWITCHING_TOOLHEAD_X_POS          { 215, 0 }  // (mm) X positions for parking the extruders
  264. e #if ENABLED(SWITCHING_TOOLHEAD)
  265. G_TO#define SWITCHING_TOOLHEAD_SERVO_NR       2         // Index of the servo connector
  266. o co#define SWITCHING_TOOLHEAD_SERVO_ANGLES { 0, 180 }  // (degrees) Angles for Lock, Unlock
  267. oc#elif ENABLED(MAGNETIC_SWITCHING_TOOLHEAD)
  268. G_TO#define SWITCHING_TOOLHEAD_Y_RELEASE      5         // (mm) Security distance Y axis
  269. ance#define SWITCHING_TOOLHEAD_X_SECURITY   { 90, 150 } // (mm) Security distance X axis (T0,T1)
  270. xis //#define PRIME_BEFORE_REMOVE                       // Prime the nozzle before release from the dock
  271. om t#if ENABLED(PRIME_BEFORE_REMOVE)
  272. ORE_RE#define SWITCHING_TOOLHEAD_PRIME_MM           20  // (mm)   Extruder prime length
  273. rime l#define SWITCHING_TOOLHEAD_RETRACT_MM         10  // (mm)   Retract after priming length
  274. ming l#define SWITCHING_TOOLHEAD_PRIME_FEEDRATE    300  // (mm/min) Extruder prime feedrate
  275. me fee#define SWITCHING_TOOLHEAD_RETRACT_FEEDRATE 2400  // (mm/min) Extruder retract feedrate
  276. ct f#endif
  277.  
  278.  #elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
  279. G_TO#define SWITCHING_TOOLHEAD_Z_HOP          2         // (mm) Z raise for switching
  280. r #endif
  281. #endif
  282. n/**
  283.  * "Mixing Extruder"
  284.  *   - Adds G-codes M163 and M164 to set and "commit" the current mix factors.
  285.  *   - Extends the stepping routines to move multiple steppers in proportion to the mix.
  286.  *   - Optional support for Repetier Firmware's 'M164 S<index>' supporting virtual tools.
  287.  *   - This implementation supports up to two mixing extruders.
  288.  *   - Enable DIRECT_MIXING_IN_G1 for M165 and mixing in G1 (from Pia Taubert's reference implementation).
  289.  */t//#define MIXING_EXTRUDER
  290. #if ENABLED(MIXING_EXTRUDER)
  291. G_#define MIXING_STEPPERS 2        // Number of steppers in your mixing extruder
  292. ng#define MIXING_VIRTUAL_TOOLS 16  // Use the Virtual Tool method with M163 and M164
  293. 63//#define DIRECT_MIXING_IN_G1    // Allow ABCDHI mix factors in G1 movement commands
  294. nt//#define GRADIENT_MIX           // Support for gradient mixing with M166 and LCD
  295. 16//#define MIXING_PRESETS         // Assign 8 default V-tool presets for 2 or 3 MIXING_STEPPERS
  296. NG#if ENABLED(GRADIENT_MIX)
  297. ADIE//#define GRADIENT_VTOOL       // Add M166 T to use a V-tool index as a Gradient alias
  298. di#endif
  299. #endif
  300. n// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).
  301. // The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).
  302. // For the other hotends it is their distance from the extruder 0 hotend.
  303. //#define HOTEND_OFFSET_X { 0.0, 20.00 } // (mm) relative X-offset for each nozzle
  304. //#define HOTEND_OFFSET_Y { 0.0, 5.00 }  // (mm) relative Y-offset for each nozzle
  305. //#define HOTEND_OFFSET_Z { 0.0, 0.00 }  // (mm) relative Z-offset for each nozzle
  306. e// @section machine
  307. i/**
  308.  * Power Supply Control
  309.  *
  310.  * Enable and connect the power supply to the PS_ON_PIN.
  311.  * Specify whether the power supply is active HIGH or active LOW.
  312.  */i//#define PSU_CONTROL
  313. //#define PSU_NAME "Power Supply"
  314. w#if ENABLED(PSU_CONTROL)
  315. SU//#define MKS_PWC                 // Using the MKS PWC add-on
  316.  P//#define PS_OFF_CONFIRM          // Confirm dialog when power off
  317. n //#define PS_OFF_SOUND            // Beep 1s when power off
  318. n #define PSU_ACTIVE_STATE LOW      // Set 'LOW' for ATX, 'HIGH' for X-Box
  319. ' f//#define PSU_DEFAULT_OFF         // Keep power off until enabled directly with M80
  320. ly//#define PSU_POWERUP_DELAY 250   // (ms) Delay for the PSU to warm up to full power
  321.  fu//#define PSU_POWERUP_GCODE  "M355 S1"  // G-code to run after power-on (e.g., case light on)
  322. e //#define PSU_POWEROFF_GCODE "M355 S0"  // G-code to run before power-off (e.g., case light off)
  323.  li//#define AUTO_POWER_CONTROL      // Enable automatic control of the PS_ON pin
  324. e #if ENABLED(AUTO_POWER_CONTROL)
  325. ER_C#define AUTO_POWER_FANS         // Turn on PSU if fans need power
  326.  nee#define AUTO_POWER_E_FANS
  327. OWER#define AUTO_POWER_CONTROLLERFAN
  328. NTRO#define AUTO_POWER_CHAMBER_FAN
  329. CHAM#define AUTO_POWER_COOLER_FAN
  330. _COO//#define AUTO_POWER_E_TEMP        50 // (°C) Turn on PSU if any extruder is over this temperature
  331.  tem//#define AUTO_POWER_CHAMBER_TEMP  30 // (°C) Turn on PSU if the chamber is over this temperature
  332. s te//#define AUTO_POWER_COOLER_TEMP   26 // (°C) Turn on PSU if the cooler is over this temperature
  333. is t#define POWER_TIMEOUT              30 // (s) Turn off power if the machine is idle for this duration
  334.  thi//#define POWER_OFF_DELAY          60 // (s) Delay of poweroff after M81 command. Useful to let fans run for extra time.
  335. or#endif
  336. #endif
  337.  //====
  338. ======
  339.  
  340. ==============================================================
  341. //============
  342. ================ Thermal Settings ============================
  343. //============
  344. ==============================================================
  345. // @section te
  346. perature
  347.  
  348. /**
  349.  * --NORM
  350.  
  351. /**
  352.  * --NORMAL IS 4.7kΩ PULLUP!-- 1kΩ pullup can be used on hotend sensor, using correct resistor and table
  353.  *
  354.  * Temperature sensors available:
  355.  *
  356.  *  SPI RTD/Thermocouple Boards - IMPORTANT: Read the NOTE below!
  357.  *  -------
  358.  *    -5 : MAX31865 with Pt100/Pt1000, 2, 3, or 4-wire  (only for sensors 0-1)
  359.  *                  NOTE: You must uncomment/set the MAX31865_*_OHMS_n defines below.
  360.  *    -3 : MAX31855 with Thermocouple, -200°C to +700°C (only for sensors 0-1)
  361.  *    -2 : MAX6675  with Thermocouple, 0°C to +700°C    (only for sensors 0-1)
  362.  *
  363.  *  NOTE: Ensure TEMP_n_CS_PIN is set in your pins file for each TEMP_SENSOR_n using an SPI Thermocouple. By default,
  364.  *        Hardware SPI on the default serial bus is used. If you have also set TEMP_n_SCK_PIN and TEMP_n_MISO_PIN,
  365.  *        Software SPI will be used on those ports instead. You can force Hardware SPI on the default bus in the
  366.  *        Configuration_adv.h file. At this time, separate Hardware SPI buses for sensors are not supported.
  367.  *
  368.  *  Analog Themocouple Boards
  369.  *  -------
  370.  *    -4 : AD8495 with Thermocouple
  371.  *    -1 : AD595  with Thermocouple
  372.  *
  373.  *  Analog Thermistors - 4.7kΩ pullup - Normal
  374.  *  -------
  375.  *     1 : 100kΩ  EPCOS - Best choice for EPCOS thermistors
  376.  * #1, but 3.3V scaled for MEGA
  377. ut 3.3V scaled for MEGA
  378.  *#1, but 3.3V scaled for DUE
  379.  but 3.3V scaled for DUE
  380.  *     2 : 200kΩ  ATC Semitec 204GT-2
  381.  *   202 : 200kΩ  Copymaster 3D
  382.  *     3 : ???Ω   Mendel-parts thermistor
  383.  *     4 : 10kΩ   Generic Thermistor !! DO NOT use for a hotend - it gives bad resolution at high temp. !!
  384.  *     5 : 100kΩ  ATC Semitec 104GT-2/104NT-4-R025H42G - Used in ParCan, J-Head, and E3D, SliceEngineering 300°C
  385.  *   501 : 100kΩ  Zonestar - Tronxy X3A
  386.  *   502 : 100kΩ  Zonestar - used by hot bed in Zonestar Průša P802M
  387.  *   512 : 100kΩ  RPW-Ultra hotend
  388.  *     6 : 100k#1 (created using a fluke thermocouple)
  389. (created using a fluke thermocouple)
  390.  *     7 : 100kΩ  Honeywell 135-104LAG-J01
  391.  *    71 : 100kΩ  Honeywell 135-104LAF-J01
  392.  *     8 : 100kΩ  Vishay 0603 SMD NTCS0603E3104FXT
  393.  *     9 : 100kΩ  GE Sensing AL03006-58.2K-97-G1
  394.  *    10 : 100kΩ  RS PRO 198-961
  395.  *    11 : 100kΩ  Keenovo AC silicone mats, most Wanhao i3 machines - beta 3950, 1%
  396.  *    12 #8) - calibrated for Makibox hot bed
  397. 04FXT (3 : 100kΩ  Hisens up to 300°C - for
  398.  *    13 : 100kΩ  Hisens up to 300°C - for "Simple ONE" & "All In ONE" hotend - beta 3950, 1%
  399.  *    15 : 100kΩ  Calibrated for JGAurora A5 hotend
  400.  *    18 : 200kΩ  ATC Semitec 204GT-2 Dagoma.Fr - MKS_Base_DKU001327
  401.  *    22 : 100kΩ  GTM32 Pro vB - hotend - 4.7kΩ pullup to 3.3V and 220Ω to analog input
  402.  *    23 : 100kΩ  GTM32 Pro vB - bed - 4.7kΩ pullup to 3.3v and 220Ω to analog input
  403.  *    30 : 100kΩ  Kis3d Silicone heating mat 200W/300W with 6mm precision cast plate (EN AW 5083) NTC100K - beta 3950
  404.  *    60 : 100kΩ  Maker's Tool Works Kapton Bed Thermistor - beta 3950
  405.  *    61 : 100kΩ  Formbot/Vivedino 350°C Thermistor - beta 3950
  406.  *    66 : 4.7MΩ  Dyze Design High Temperature Thermistor
  407.  *    67 : 500kΩ  SliceEngineering 450°C Thermistor
  408.  *    70 : 100kΩ  bq Hephestos 2
  409.  *    75 : 100kΩ  Generic Silicon Heat Pad with NTC100K MGB18-104F39050L32
  410.  *  2000 : 100kΩ  Ultimachine Rambo TDK NTCG104LH104KT1 NTC100K motherboard Thermistor
  411.  *
  412.  *  Analog Thermistors - 1kΩ pullup - Atypical, and requires changing out the 4.7kΩ pullup for 1kΩ.
  413.  *  -------                           (but gives greater accuracy and more stable PID)
  414.  *    51 : 100kΩ  EPCOS (1kΩ pullup)
  415.  *    52 : 200kΩ  ATC Semitec 204GT-2 (1kΩ pullup)
  416.  *    55 : 100kΩ  ATC Semitec 104GT-2 - Used in ParCan & J-Head (1kΩ pullup)
  417.  *
  418.  *  Analog Thermistors - 10kΩ pullup - Atypical
  419.  *  -------
  420.  *    99 : 100kΩ  Found on some Wanhao i3 machines with a 10kΩ pull-up resistor
  421.  *
  422.  *  Analog RTDs (Pt100/Pt1000)
  423.  *  -------
  424.  *   110 : Pt100  with 1kΩ pullup (atypical)
  425.  *   147 : Pt100  with 4.7kΩ pullup
  426.  *  1010 : Pt1000 with 1kΩ pullup (atypical)
  427.  *  1047 : Pt1000 with 4.7kΩ pullup (E3D)
  428.  *    20 : Pt100  with circuit in the Ultimainboard V2.x with mainboard ADC reference voltage = INA826 amplifier-board supply voltage.
  429.  *                NOTE: (1) Must use an ADC input with no pullup. (2) Some INA826 amplifiers are unreliable at 3.3V so consider using sensor 147, 110, or 21.
  430.  *    21 : Pt100  with circuit in the Ultimainboard V2.x with 3.3v ADC reference voltage (STM32, LPC176x....) and 5V INA826 amplifier board supply.
  431.  *                NOTE: ADC pins are not 5V tolerant. Not recommended because it's possible to damage the CPU by going over 500°C.
  432.  *   201 : Pt100  with circuit in Overlord, similar to Ultimainboard V2.x
  433.  *
  434.  *  Custom/Dummy/Other Thermal Sensors
  435.  *  ------
  436.  *     0 : not used
  437.  *  1000 : Custom - Specify parameters in Configuration_adv.h
  438.  *
  439.  *   !!! Use these for Testing or Development purposes. NEVER for production machine. !!!
  440.  *   998 : Dummy Table that ALWAYS reads 25°C or the temperature defined below.
  441.  *   9#define TEMP_SENSOR_0 5
  442. #define TEMP_SENSOR_1 0
  443. #define TEMP_SENSOR_2 0
  444. #define TEMP_SENSOR_3 0
  445. #define TEMP_SENSOR_4 0
  446. #define TEMP_SENSOR_5 0
  447. #define TEMP_SENSOR_6 0
  448. #define TEMP_SENSOR_7 0
  449. #define TEMP_SENSOR_BED 11
  450. #define TEMP_SENSOR_PROBE 0
  451. #define TEMP_SENSOR_CHAMBER 0
  452. #define TEMP_SENSOR_COOLER 0
  453. #define TEMP_SENSOR_BOARD 0
  454. #define TEMP_SENSOR_REDUNDANT 0
  455. e// Dummy thermistor constant temperature readings, for use with 998 and 999
  456. #define DUMMY_THERMISTOR_998_VALUE  25
  457. #define DUMMY_THERMISTOR_999_VALUE 100
  458.  // Resistor values when using MAX31865 sensors (-5) on TEMP_SENSOR_0 / 1
  459. //#define MAX31865_SENSOR_OHMS_0      100   // (Ω) Typically 100 or 1000 (PT100 or PT1000)
  460. //#define MAX31865_CALIBRATION_OHMS_0 430   // (Ω) Typically 430 for Adafruit PT100; 4300 for Adafruit PT1000
  461. //#define MAX31865_SENSOR_OHMS_1      100
  462. //#define MAX31865_CALIBRATION_OHMS_1 430
  463.  
  464. #define TEMP_RESIDENCY_TIME         5   /
  465. (seconds) Time to wait for hotend to "se
  466.  
  467. le" in M109
  468. #define TEMP_WINDOW                  1  // (°C) Temperature proximity for the "tempe
  469. ature reached" timer
  470. #define TEMP_HYSTERESIS              3  // (°C) Temperature proximity considered "clr
  471. e enough" to the target
  472.  
  473. #define TEMP_BED_RESIDENCY_TIME     5   // (seconds) Time to wait for bed to "settlet
  474.  
  475. n M190
  476. #define TEMP_BED_WINDOW              1  // (°C) Temperature proximity for the "tempera
  477. ure reached" timer
  478. #define TEMP_BED_HYSTERESIS          3  // (°C) Temperature proximity considered "closr
  479. enough" to the target
  480.  
  481. #define TEMP_CHAMBER_RESIDENCY_TIME 10  // (seconds) Time to wait for chamber to "settt
  482.  
  483. in M191
  484. #define TEMP_CHAMBER_WINDOW          1  // (°C) Temperature proximity for the "temperatu
  485. e reached" timer
  486. #define TEMP_CHAMBER_HYSTERESIS      3  // (°C) Temperature proximity considered "close r
  487. ough" to the target
  488.  
  489. /**
  490.  * Redundant Temperature Sensor (TEMP_SENSOR_REDUNDANT)
  491.  *
  492.  * Use a temp sensor as at
  493.  
  494. /**
  495.  * Redundant Temperature Sensor (TEMP_SENSOR_REDUNDANT)
  496.  *
  497.  * Use a temp sensor as a redundant sensor for another reading. Select an unused temperature sensor, and another
  498.  * sensor you'd like it to be redundant for. If the two thermistors differ by TEMP_SENSOR_REDUNDANT_MAX_DIFF (°C),
  499.  * the print will be aborted. Whichever sensor is selected will have its normal functions disabled; i.e. selecting
  500.  * the Bed sensor (-1) will disable bed heating/monitoring.
  501.  *
  502.  * For selectin#if TEMP_SENSOR_REDUNDANT
  503. R,#define TEMP_SENSOR_REDUNDANT_SOURCE    E1  // The sensor that will provide the redundant reading.
  504.  T#define TEMP_SENSOR_REDUNDANT_TARGET    E0  // The sensor that we are providing a redundant reading for.
  505. SE#define TEMP_SENSOR_REDUNDANT_MAX_DIFF  10  // (°C) Temperature difference that will trigger a print abort.
  506. #endif
  507. U// Below this temperature the heater will be switched off
  508. // because it probably indicates a broken thermistor wire.
  509. #define HEATER_0_MINTEMP   5
  510. #define HEATER_1_MINTEMP   5
  511. #define HEATER_2_MINTEMP   5
  512. #define HEATER_3_MINTEMP   5
  513. #define HEATER_4_MINTEMP   5
  514. #define HEATER_5_MINTEMP   5
  515. #define HEATER_6_MINTEMP   5
  516. #define HEATER_7_MINTEMP   5
  517. #define BED_MINTEMP        5
  518. #define CHAMBER_MINTEMP    5
  519. P// Above this temperature the heater will be switched off.
  520. // This can protect components from overheating, but NOT from shorts and failures.
  521. // (Use MINTEMP for thermistor short/failure protection.)
  522. #define HEATER_0_MAXTEMP 275
  523. #define HEATER_1_MAXTEMP 275
  524. #define HEATER_2_MAXTEMP 275
  525. #define HEATER_3_MAXTEMP 275
  526. #define HEATER_4_MAXTEMP 275
  527. #define HEATER_5_MAXTEMP 275
  528. #define HEATER_6_MAXTEMP 275
  529. #define HEATER_7_MAXTEMP 275
  530. #define BED_MAXTEMP      150
  531. #define CHAMBER_MAXTEMP  60
  532. M/**
  533.  * Thermal Overshoot
  534.  * During heatup (and printing) the temperature can often "overshoot" the target by many degrees
  535.  * (especially before PID tuning). Setting the target temperature too close to MAXTEMP guarantees
  536.  * a MAXTEMP shutdown! Use these values to forbid temperatures being set too close to MAXTEMP.
  537.  */M#define HOTEND_OVERSHOOT 15   // (°C) Forbid temperatures over MAXTEMP - OVERSHOOT
  538. #define BED_OVERSHOOT    10   // (°C) Forbid temperatures over MAXTEMP - OVERSHOOT
  539. #define COOLER_OVERSHOOT  2   // (°C) Forbid temperatures closer than OVERSHOOT
  540. M//===========================================================================
  541. //============================= PID Settings ================================
  542. //===========================================================================
  543. // PID Tuning Guide here: https://reprap.org/wiki/PID_Tuning
  544. =// Comment the following line to disable PID and enable bang-bang.
  545. #define PIDTEMP
  546. #define BANG_MAX 255     // Limits current to nozzle while in bang-bang mode; 255=full current
  547. #define PID_MAX BANG_MAX // Limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
  548. #define PID_K1 0.95      // Smoothing factor within any PID loop
  549. R#if ENABLED(PIDTEMP)
  550.  c//#define PID_EDIT_MENU         // Add PID editing to the "Advanced Settings" menu. (~700 bytes of PROGMEM)
  551. D_//#define PID_AUTOTUNE_MENU     // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of PROGMEM)
  552. TO//#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders)
  553. _PER_HOTEND                      // Set/get with gcode: M301 E[extruder number, 0-2]
  554.  
  555.   #if EN
  556.                                 // Specify up to one value per hotend here, according to your setup.
  557. PID_// If there are fewer values, the last one applies to the remaining hotends.
  558. to y#define DEFAULT_Kp_LIST {  22.20,  22.20 }
  559. , th#define DEFAULT_Ki_LIST {   1.08,   1.08 }
  560. .
  561.   #define DEFAULT_Kd_LIST { 114.00, 114.00 }
  562. }
  563. #else
  564. efin#define DEFAULT_Kp  22.20
  565. ,   #define DEFAULT_Ki   1.08
  566. _Kd_#define DEFAULT_Kd 114.00
  567.  #en
  568.    #endif // PIDTEMP
  569. p//===========================================================================
  570. //====================== PID > Bed Temperature Control ======================
  571. //===========================================================================
  572. =/**
  573.  * PID Bed Heating
  574.  *
  575.  * If this option is enabled set PID constants below.
  576.  * If this option is disabled, bang-bang will be used and BED_LIMIT_SWITCHING will enable hysteresis.
  577.  *
  578.  * The PID frequency will be the same as the extruder PWM.
  579.  * If PID_dT is the default, and correct for the hardware/configuration, that means 7.689Hz,
  580.  * which is fine for driving a square wave into a resistive load and does not significantly
  581.  * impact FET heating. This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W
  582.  * heater. If your configuration is significantly different than this and you don't understand
  583.  * the issues involved, don't use bed PID until someone else verifies that your hardware works.
  584.  */t#define PIDTEMPBED
  585.  //#define BED_LIMIT_SWITCHING
  586. e/**
  587.  * Max Bed Power
  588.  * Applies to all forms of bed control (PID, bang-bang, and bang-bang with hysteresis).
  589.  * When set to any value below 255, enables a form of PWM to the bed that acts like a divider
  590.  * so don't use it unless you are OK with PWM on your bed. (See the comment on enabling PIDTEMPBED)
  591.  */o#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
  592. n#if ENABLED(PIDTEMPBED)
  593. de//#define MIN_BED_POWER 0
  594. li//#define PID_BED_DEBUG // Sends debug data to the serial port.
  595. )
  596.  // 120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
  597. da// from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
  598. m #define DEFAULT_bedKp 97.1
  599.  T#define DEFAULT_bedKi 1.41
  600. gr#define DEFAULT_bedKd 1675.16
  601. , 1// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
  602. #endif // PIDTEMPBED
  603.  //===========================================================================
  604. //==================== PID > Chamber Temperature Control ====================
  605. //===========================================================================
  606. =/**
  607.  * PID Chamber Heating
  608.  *
  609.  * If this option is enabled set PID constants below.
  610.  * If this option is disabled, bang-bang will be used and CHAMBER_LIMIT_SWITCHING will enable
  611.  * hysteresis.
  612.  *
  613.  * The PID frequency will be the same as the extruder PWM.
  614.  * If PID_dT is the default, and correct for the hardware/configuration, that means 7.689Hz,
  615.  * which is fine for driving a square wave into a resistive load and does not significantly
  616.  * impact FET heating. This also works fine on a Fotek SSR-10DA Solid State Relay into a 200W
  617.  * heater. If your configuration is significantly different than this and you don't understand
  618.  * the issues involved, don't use chamber PID until someone else verifies that your hardware works.
  619.  */i//#define PIDTEMPCHAMBER
  620. //#define CHAMBER_LIMIT_SWITCHING
  621. r/**
  622.  * Max Chamber Power
  623.  * Applies to all forms of chamber control (PID, bang-bang, and bang-bang with hysteresis).
  624.  * When set to any value below 255, enables a form of PWM to the chamber heater that acts like a divider
  625.  * so don't use it unless you are OK with PWM on your heater. (See the comment on enabling PIDTEMPCHAMBER)
  626.  */e#define MAX_CHAMBER_POWER 255 // limits duty cycle to chamber heater; 255=full current
  627. B#if ENABLED(PIDTEMPCHAMBER)
  628. PO#define MIN_CHAMBER_POWER 0
  629.  t//#define PID_CHAMBER_DEBUG // Sends debug data to the serial port.
  630. efi// Lasko "MyHeat Personal Heater" (200w) modified with a Fotek SSR-10DA to control only the heating element
  631. He// and placed inside the small Creality printer enclosure tent.
  632. tr//
  633. on#define DEFAULT_chamberKp 37.04
  634. pl#define DEFAULT_chamberKi 1.40
  635. pr#define DEFAULT_chamberKd 655.17
  636. in// M309 P37.04 I1.04 D655.17
  637. def// FIND YOUR OWN: "M303 E-2 C8 S50" to run autotune on the chamber at 50 degreesC for 8 cycles.
  638. #endif // PIDTEMPCHAMBER
  639.  
  640. #if ANY(PIDTEMP, PIDTEMPBED, PIDTEMPCHAMBER)
  641.   //#define PID_DEBUG  
  642.         // Sends debug
  643.  
  644. ta to the serial port. Use 'M303 D' to toggl
  645.   ctivation.
  646.   //#define PID_OPENLOOP          // Puts PID in open loop. M104/M140 sets the output power fro
  647.   to PID_MAX
  648.   //#define SLOW_PWM_HEATERS      // PWM with very low frequency (roughly 0.125Hz=8s) and minim
  649.   state time of approximately 1s useful for heaters driven by a relay
  650.   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperatu
  651.   and the actual temperature
  652.                                   // is more than PID_FUNCTIONAL_RANGE then the PID will be shu
  653.                                   min/max.
  654. #endif
  655.  
  656. // @section extruder
  657.  
  658. /**
  659.  * Prevent extrusion if the temperature is below EXTRUDE_MINT
  660. MP.
  661.  *
  662.  
  663. dd M302 to set the m
  664.  
  665. /**
  666.  * Prevent extrusion if the temperature is below EXTRUDE_MINTEMP.
  667.  * Add M302 to set the minimum extrusion temperature and/or turn
  668.  * cold extrusion #define PREVENT_COLD_EXTRUSION
  669. #define EXTRUDE_MINTEMP 170
  670. O/**
  671.  * Prevent a single extrusion longer than EXTRUDE_MAXLENGTH.
  672.  * Note: For Bowden Extruders make this large enough to allow load/unload.
  673.  */X#define PREVENT_LENGTHY_EXTRUDE
  674. #define EXTRUDE_MAXLENGTH 600
  675.  //===========================================================================
  676. //======================== Thermal Runaway Protection =======================
  677. //===========================================================================
  678. =/**
  679.  * Thermal Protection provides additional protection to your printer from damage
  680.  * and fire. Marlin always includes safe min and max temperature ranges which
  681.  * protect against a broken or disconnected thermistor wire.
  682.  *
  683.  * The issue: If a thermistor falls out, it will report the much lower
  684.  * temperature of the air in the room, and the the firmware will keep
  685.  * the heater on.
  686.  *
  687.  * If you get "Thermal Runaway" or "Heating failed" errors the
  688.  * details can be tuned in Configuration_adv.h
  689.  */er#define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
  690. #define THERMAL_PROTECTION_BED     // Enable thermal protection for the heated bed
  691. #define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber
  692. #define THERMAL_PROTECTION_COOLER  // Enable thermal protection for the laser cooling
  693. d//===========================================================================
  694. //============================= Mechanical Settings =========================
  695. //===========================================================================
  696. =// @section machine
  697. =// Enable one of the options below for CoreXY, CoreXZ, or CoreYZ kinematics,
  698. // either in the usual order or reversed
  699. //#define COREXY
  700. //#define COREXZ
  701. //#define COREYZ
  702. //#define COREYX
  703. //#define COREZX
  704. //#define COREZY
  705. //#define MARKFORGED_XY  // MarkForged. See https://reprap.org/forum/read.php?152,504042
  706. //#define MARKFORGED_YX
  707. G// Enable for a belt style printer with endless "Z" motion
  708. //#define BELTPRINTER
  709. M// Enable for Polargraph Kinematics
  710. //#define POLARGRAPH
  711. #if ENABLED(POLARGRAPH)
  712. e #define POLARGRAPH_MAX_BELT_LEN 1035.0
  713. in#define POLAR_SEGMENTS_PER_SECOND 5
  714. #endif
  715. L//===========================================================================
  716. //============================== Endstop Settings ===========================
  717. //===========================================================================
  718. =// @section homing
  719. =// Specify here all the endstop connectors that are connected to any endstop or probe.
  720. // Almost all printers will be using one per axis. Probes will use one or more of the
  721. // extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
  722. #define USE_XMIN_PLUG
  723. #define USE_YMIN_PLUG
  724. #define USE_ZMIN_PLUG
  725. //#define USE_IMIN_PLUG
  726. //#define USE_JMIN_PLUG
  727. //#define USE_KMIN_PLUG
  728. //#define USE_XMAX_PLUG
  729. //#define USE_YMAX_PLUG
  730. //#define USE_ZMAX_PLUG
  731. //#define USE_IMAX_PLUG
  732. //#define USE_JMAX_PLUG
  733. //#define USE_KMAX_PLUG
  734.  
  735. // Enable pullup for a
  736. l endstops to prevent a
  737. floating state
  738. #define
  739. NDSTOPPULLUPS
  740. #if DISAB
  741.  
  742. D(ENDSTOPPULLUPS)
  743.   // Disable ENDSTOPPULLUPS to set pullups
  744. ndividually
  745.   //#defin
  746. ENDSTOPPULLUP_XMIN
  747.   //#def
  748.   ENDSTOPPULLUP_YMIN
  749.   //#define ENDSTOPPULLUP_ZMIN
  750.   //#define ENDSTOPPULLUP_IMIN
  751. IN//#define ENDSTOPPULLUP_JMIN
  752. IN//#define ENDSTOPPULLUP_KMIN
  753. IN//#define ENDSTOPPULLUP_XMAX
  754. IN//#define ENDSTOPPULLUP_YMAX
  755. IN//#define ENDSTOPPULLUP_ZMAX
  756. IN//#define ENDSTOPPULLUP_IMAX
  757. AX//#define ENDSTOPPULLUP_JMAX
  758. AX//#define ENDSTOPPULLUP_KMAX
  759. AX//#define ENDSTOPPULLUP_ZMIN_PROBE
  760. #endif
  761. e// Enable pulldown for all endstops to prevent a floating state
  762. //#define ENDSTOPPULLDOWNS
  763. #if DISABLED(ENDSTOPPULLDOWNS)
  764.  e// Disable ENDSTOPPULLDOWNS to set pulldowns individually
  765. OW//#define ENDSTOPPULLDOWN_XMIN
  766. S)//#define ENDSTOPPULLDOWN_YMIN
  767. to//#define ENDSTOPPULLDOWN_ZMIN
  768. / //#define ENDSTOPPULLDOWN_I
  769.  
  770.   //#define ENDSTOPPULLDOWN_J
  771.  
  772.   //#define ENDSTOPPULLDOWN_K
  773.  
  774.   //#define ENDSTOPPULLDOWN_X
  775.  
  776.   //#define ENDSTOPPULLDOWN_Y
  777.  
  778.   //#define ENDSTOPPULLDOWN_Z
  779.  
  780.   //#define ENDSTOPPULLDOWN_I
  781.  
  782.   //#define ENDSTOPPULLDOWN_J
  783.  
  784.   //#define ENDSTOPPULLDOWN_K
  785.  
  786.   //#define ENDSTOPPULLDOWN_Z
  787.   _PROBE
  788. #endif
  789.  
  790. // Mechanical e
  791.   top with COM to ground and NC
  792.   Signal uses "false" here (most commo
  793. setup
  794.  
  795.  
  796. #define X_MIN_ENDSTOP_INVERTING true  // Set to true to invert the logic of the endstop.
  797. #defin
  798. Y_MIN_ENDSTOP_INVERTING true  // Set to true to invert the logic of the endstop.
  799. #defin
  800. Z_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  801. #defin
  802. I_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  803. #defin
  804. J_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  805. #defin
  806. K_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  807. #defin
  808. X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  809. #defin
  810. Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  811. #defin
  812. Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  813. #defin
  814. I_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  815. #defin
  816. J_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  817. #defin
  818. K_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
  819. #defin
  820. Z_MIN_PROBE_ENDSTOP_INVERTING false // Set to true to invert the logic of the probe.
  821.  
  822. /
  823. *
  824.  * Stepper Drivers
  825.  *
  826.  * These settings allow Marlin to tune stepper driver timing and ena
  827.  
  828. /**
  829.  * Stepper Drivers
  830.  *
  831.  * These settings allow Marlin to tune stepper driver timing and enable advanced options for
  832.  * stepper drivers that support them. You may also override timing options in Configuration_adv.h.
  833.  *
  834.  * A4988 is assumed for unspecified drivers.
  835.  *
  836.  * Use TMC2208/TMC2208_STANDALONE for TMC2225 drivers and TMC2209/TMC2209_STANDALONE for TMC2226 drivers.
  837.  *
  838.  * Options: A4988, A5984, DRV8825, LV8729, L6470, L6474, POWERSTEP01,
  839.  *          TB6560, TB6600, TMC2100,
  840.  *          TMC2130, TMC2130_STANDALONE, TMC2160, TMC2160_STANDALONE,
  841.  *          TMC2208, TMC2208_STANDALONE, TMC2209, TMC2209_STANDALONE,
  842.  *          TMC26X,  TMC26X_STANDALONE,  TMC2660, TMC2660_STANDALONE,
  843.  *          TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE
  844.  * :['A4988', 'A5984', 'DRV8825', 'LV8729', 'L6470', ', '74', 'POWERSTEP01', 'TB6560', 'TB6600', 'TMC2100', ', '2130', ', '2130_STANDALONE', ', '2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', ']
  845. */
  846. #define X_DRIVER_TYPE  TMC2209
  847. #define Y_DRIVER_TYPE  TMC2209
  848. #define Z_DRIVER_TYPE  TMC2209
  849. //#define X2_DRIVER_TYPE A4988
  850. //#define Y2_DRIVER_TYPE A4988
  851. //#define Z2_DRIVER_TYPE A4988
  852. //#define Z3_DRIVER_TYPE A4988
  853. //#define Z4_DRIVER_TYPE A4988
  854. //#define I_DRIVER_TYPE  A4988
  855. //#define J_DRIVER_TYPE  A4988
  856. //#define K_DRIVER_TYPE  A4988
  857. #define E0_DRIVER_TYPE TMC2209
  858. //#define E1_DRIVER_TYPE A4988
  859. //#define E2_DRIVER_TYPE A4988
  860. //#define E3_DRIVER_TYPE A4988
  861. //#define E4_DRIVER_TYPE A4988
  862. //#define E5_DRIVER_TYPE A4988
  863. //#define E6_DRIVER_TYPE A4988
  864. //#define E7_DRIVER_TYPE A4988
  865.  
  866. // Enable this feature if all enabled endstop pins are interrupt-capable.
  867. // This will remove the need to poll the interrupt pins, saving many CPU cycles.
  868. //#define ENDSTOP_INTERRUPTS_FEATURE
  869.  
  870. /**
  871. * Endstop Noise Threshold
  872. *
  873. * Enable if your probe or endstops falsely trigger due to noise.
  874. *
  875. * - Higher values may affect repeatability or accuracy of some bed probes.
  876. * - To fix noise install a 100nF ceramic capacitor in parallel with the switch.
  877. * - This feature is not required for common micro-switches mounted on PCBs
  878. *   based on the Makerbot design, which already have the 100nF capacitor.
  879. *
  880. * :[2,3,4,5,6,7]
  881. */
  882. //#define ENDSTOP_NOISE_THRESHOLD 2
  883.  
  884. // Check for stuck or disconnected endstops during homing moves.
  885. //#define DETECT_BROKEN_ENDSTOP
  886.  
  887. //=============================================================================
  888. //============================== Movement Settings ============================
  889. //=============================================================================
  890. // @section motion
  891.  
  892. /**
  893. * Default Settings
  894. *
  895. * These settings can be reset by M502
  896. *
  897. * Note that if EEPROM is enabled, saved values will override these.
  898. */
  899.  
  900. /**
  901. * With this option each E stepper can have its own factors for the
  902. * following movement settings. If fewer factors are given than the
  903. * total number of extruders, the last value applies to the rest.
  904. */
  905. //#define DISTINCT_E_FACTORS
  906.  
  907. /**
  908. * Default Axis Steps Per Unit (steps/mm)
  909. * Override with M92
  910. *                                      X, Y, Z [, I [, J [, K]]], E0 [, E1[, E2...]]
  911. */
  912. #define DEFAULT_AXIS_STEPS_PER_UNIT   { 100.10, 100.60, 1616.16, 400 }
  913.  
  914. /**
  915. * Default Max Feed Rate (mm/s)
  916. * Override with M203
  917. *                                      X, Y, Z [, I [, J [, K]]], E0 [, E1[, E2...]]
  918. */
  919. #define DEFAULT_MAX_FEEDRATE          { 250, 250, 30, 55 }
  920.  
  921. //#define LIMITED_MAX_FR_EDITING        // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2
  922. #if ENABLED(LIMITED_MAX_FR_EDITING)
  923.  #define MAX_FEEDRATE_EDIT_VALUES    { 600, 600, 10, 50 } // ...or, set your own edit limits
  924. #endif
  925.  
  926. /**
  927. * Default Max Acceleration (change/s) change = mm/s
  928. * (Maximum start speed for accelerated moves)
  929. * Override with M201
  930. *                                      X, Y, Z [, I [, J [, K]]], E0 [, E1[, E2...]]
  931. */
  932. #define DEFAULT_MAX_ACCELERATION      { 2000, 2000, 120, 10000 }
  933.  
  934. //#define LIMITED_MAX_ACCEL_EDITING     // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2
  935. #if ENABLED(LIMITED_MAX_ACCEL_EDITING)
  936.  #define MAX_ACCEL_EDIT_VALUES       { 6000, 6000, 200, 20000 } // ...or, set your own edit limits
  937. #endif
  938.  
  939. /**
  940. * Default Acceleration (change/s) change = mm/s
  941. * Override with M204
  942. *
  943. *   M204 P    Acceleration
  944. *   M204 R    Retract Acceleration
  945. *   M204 T    Travel Acceleration
  946. */
  947. #define DEFAULT_ACCELERATION          1000    // X, Y, Z and E acceleration for printing moves
  948. #define DEFAULT_RETRACT_ACCELERATION  10000   // E acceleration for retracts
  949. #define DEFAULT_TRAVEL_ACCELERATION   1500    // X, Y, Z acceleration for travel (non printing) moves
  950.  
  951. /**
  952. * Default Jerk limits (mm/s)
  953. * Override with M205 X Y Z E
  954. *
  955. * "Jerk" specifies the minimum speed change that requires acceleration.
  956. * When changing speed and direction, if the difference is less than the
  957. * value set here, it may happen instantaneously.
  958. */
  959. #define CLASSIC_JERK
  960. #if ENABLED(CLASSIC_JERK)
  961.  #define DEFAULT_XJERK 10.0
  962.  #define DEFAULT_YJERK 10.0
  963.  #define DEFAULT_ZJERK  0.4
  964.  //#define DEFAULT_IJERK  0.3
  965.  //#define DEFAULT_JJERK  0.3
  966.  //#define DEFAULT_KJERK  0.3
  967.  
  968.  //#define TRAVEL_EXTRA_XYJERK 0.0     // Additional jerk allowance for all travel moves
  969.  
  970.  //#define LIMITED_JERK_EDITING        // Limit edit via M205 or LCD to DEFAULT_aJERK * 2
  971.  #if ENABLED(LIMITED_JERK_EDITING)
  972.    #define MAX_JERK_EDIT_VALUES { 20, 20, 0.6, 10 } // ...or, set your own edit limits
  973.  #endif
  974. #endif
  975.  
  976. #define DEFAULT_EJERK    5.0  // May be used by Linear Advance
  977.  
  978. /**
  979. * Junction Deviation Factor
  980. *
  981. * See:
  982. *   https://reprap.org/forum/read.php?1,739819
  983. *   https://blog.kyneticcnc.com/2018/10/computing-junction-deviation-for-marlin.html
  984. */
  985. #if DISABLED(CLASSIC_JERK)
  986.  #define JUNCTION_DEVIATION_MM 0.013 // (mm) Distance from real junction edge
  987.  #define JD_HANDLE_SMALL_SEGMENTS    // Use curvature estimation instead of just the junction angle
  988.                                      // for small segments (< 1mm) with large junction angles (> 135°).
  989. #endif
  990.  
  991. /**
  992. * S-Curve Acceleration
  993. *
  994. * This option eliminates vibration during printing by fitting a Bézier
  995. * curve to move acceleration, producing much smoother direction changes.
  996. *
  997. * See https://github.com/synthetos/TinyG/wiki/Jerk-Controlled-Motion-Explained
  998. */
  999. //#define S_CURVE_ACCELERATION
  1000.  
  1001. //===========================================================================
  1002. //============================= Z Probe Options =============================
  1003. //===========================================================================
  1004. // @section probes
  1005.  
  1006. //
  1007. // See https://marlinfw.org/docs/configuration/probes.html
  1008. //
  1009.  
  1010. /**
  1011. * Enable this option for a probe connected to the Z-MIN pin.
  1012. * The probe replaces the Z-MIN endstop and is used for Z homing.
  1013. * (Automatically enables USE_PROBE_FOR_Z_HOMING.)
  1014. */
  1015. #define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  1016.  
  1017. // Force the use of the probe for Z-axis homing
  1018. //#define USE_PROBE_FOR_Z_HOMING
  1019.  
  1020. /**
  1021. * Z_MIN_PROBE_PIN
  1022. *
  1023. * Define this pin if the probe is not connected to Z_MIN_PIN.
  1024. * If not defined the default pin for the selected MOTHERBOARD
  1025. * will be used. Most of the time the default is what you want.
  1026. *
  1027. *  - The simplest option is to use a free endstop connector.
  1028. *  - Use 5V for powered (usually inductive) sensors.
  1029. *
  1030. *  - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
  1031. *    - For simple switches connect...
  1032. *      - normally-closed switches to GND and D32.
  1033. *      - normally-open switches to 5V and D32.
  1034. */
  1035. //#define Z_MIN_PROBE_PIN 32 // Pin 32 is the RAMPS default
  1036.  
  1037. /**
  1038. * Probe Type
  1039. *
  1040. * Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc.
  1041. * Activate one of these to use Auto Bed Leveling below.
  1042. */
  1043.  
  1044. /**
  1045. * The "Manual Probe" provides a means to do "Auto" Bed Leveling without a probe.
  1046. * Use G29 repeatedly, adjusting the Z height at each point with movement commands
  1047. * or (with LCD_BED_LEVELING) the LCD controller.
  1048. */
  1049. //#define PROBE_MANUALLY
  1050.  
  1051. /**
  1052. * A Fix-Mounted Probe either doesn'VELING) the LCD controller.
  1053.  */
  1054. ent.
  1055.  *   (e.g., an indu
  1056.  
  1057. /**
  1058.  * A Fix-Mounted Probe either doesn't deplo//#define FIX_MOUNTED_PROBE
  1059. ./**
  1060.  * Use the nozzle as the probe, as with a conductive
  1061.  * nozzle system or a piezo-electric smart effector.
  1062.  */n//#define NOZZLE_AS_PROBE
  1063. h/**
  1064.  * Z Servo Probe, such as an endstop switch on a rotating arm.
  1065.  */
  1066. //#define Z_PROBE_SERVO_N
  1067.  
  1068. /**
  1069.  * Z// Defaults to SERVO 0 connector.
  1070. //#define Z_SERVO_ANGLES { 70, 0 } // Z Servo Deploy and Stow angles
  1071. f/**
  1072.  * The BLTouch probe uses a Hall effect sensor and emulates a servo.
  1073.  */p#define BLTOUCH
  1074. l/**
  1075.  * Touch-MI Probe by hotends.fr
  1076.  *
  1077.  * This probe is deployed and activated by moving the X-axis to a magnet at the edge of the bed.
  1078.  * By default, the magnet is assumed to be on the left and activated by a home. If the magnet is
  1079.  * on the right, enable and set TOUCH_MI_DEPLOY_XPOS to the deploy position.
  1080.  *
  1081.  * Also requires: BABYSTEPPING, BABYSTEP_ZPROBE_OFFSET, Z_SAFE_HOMING,
  1082.  *                and a minimum Z_HOMING_HEIGHT of 10.
  1083.  */ //#define TOUCH_MI_PROBE
  1084. #if ENABLED(TOUCH_MI_PROBE)
  1085.   #define TOUCH_MI_RETRACT_Z 0.5                  // Height at which the probe retracts
  1086. MI//#define TOUCH_MI_DEPLOY_XPOS (X_MAX_BED + 2)  // For a magnet on the right side of the bed
  1087. ts//#define TOUCH_MI_MANUAL_DEPLOY                // For manual deploy (LCD menu)
  1088. #endif
  1089.  // A probe that is deployed and stowed with a solenoid pin (SOL1_PIN)
  1090. //#define SOLENOID_PROBE
  1091. f// A sled-mounted probe like those designed by Charles Bell.
  1092. //#define Z_PROBE_SLED
  1093. //#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.
  1094.  // A probe deployed by moving the x-axis, such as the Wilson II's rack-and-pinion probe designed by Marty Rice.
  1095. //#define RACK_AND_PINION_PROBE
  1096. #if ENABLED(RACK_AND_PINION_PROBE)
  1097.  p#define Z_PROBE_DEPLOY_X  X_MIN_POS
  1098. ne#define Z_PROBE_RETRACT_X X_MAX_POS
  1099. #endif
  1100. _// Duet Smart Effector (for delta printers) - https://bit.ly/2ul5U7J
  1101. // When the pin is defined you can use M672 to set/reset the probe sensitivity.
  1102. //#define DUET_SMART_EFFECTOR
  1103. #if ENABLED(DUET_SMART_EFFECTOR)
  1104. o #define SMART_EFFECTOR_MOD_PIN  -1  // Connect a GPIO pin to the Smart Effector MOD pin
  1105. #endif
  1106.  
  1107. /**
  1108.  * Use StallGuard2 to probe the bed with the nozzle.
  1109.  * Requires stallGuard-capable Trinamic stepper drivers.
  1110.  * CAUTION: This can damage machines with Z lead screws.
  1111.  *          Take extreme care when setting up this feature.
  1112.  */a//#define SENSORLESS_PROBING
  1113. e//
  1114. // For Z_PROBE_ALLEN_KEY see the Delta example configurations.
  1115. //
  1116. //**
  1117.  * Nozzle-to-Probe off
  1118.  
  1119. ts
  1120. { X, Y, Z }
  1121.  *
  1122.  * X and Y offset
  1123.  *   Use a caliper or ruler t
  1124. m
  1125.  
  1126. /**
  1127.  * Nozzle-to-Probe offsets { X, Y, Z }
  1128.  *
  1129.  * X and Y offset
  1130.  *   Use a caliper or ruler to measure the distance from the tip of
  1131.  *   the Nozzle to the center-point of the Probe in the X and Y axes.
  1132.  *
  1133.  * Z offset
  1134.  * - For the Z offset use your best known value and adjust at runtime.
  1135.  * - Common probes trigger below the nozzle and have negative values for Z offset.
  1136.  * - Probes triggering above the nozzle height are uncommon but do exist. When using
  1137.  *   probes such as this, carefully set Z_CLEARANCE_DEPLOY_PROBE and Z_CLEARANCE_BETWEEN_PROBES
  1138.  *   to avoid collisions during probing.
  1139.  *
  1140.  * Tune and Adjust
  1141.  * -  Probe Offsets can be tuned at runtime with 'M851', LCD menus, babystepping, etc.
  1142.  * -  PROBE_OFFSET_WIZARD (configuration_adv.h) can be used for setting the Z offset.
  1143.  *
  1144.  * Assuming the typical work area orientation:
  1145.  *  - Probe to RIGHT of the Nozzle has a Positive X offset
  1146.  *  - Probe to LEFT  of the Nozzle has a Negative X offset
  1147.  *  - Probe in BACK  of the Nozzle has a Posit#define NOZZLE_TO_PROBE_OFFSET { 10, 10, -1 }   // Example "1"
  1148. Y off#define NOZZLE_TO_PROBE_OFFSET {-10,  5, -1 }   // Example "2"
  1149. 10, 1#define NOZZLE_TO_PROBE_OFFSET {  5, -5, -1 }   // Example "3"
  1150. 10,  #define NOZZLE_TO_PROBE_OFFSET {-15,-10, -1 }   // Example "4"
  1151.  5, -5, -1 }   ACK ---+
  1152.  *  
  1153.  *   [+]    |
  1154.  *   L |        1  | R <-- Example "1" (right+,  bac
  1155.  *
  1156.  *     +-- BACK ---+
  1157.  *     |    [+]    |
  1158.  *   L |        1  | R <-- Example "1" (right+,  back+)
  1159.  *   E |  2        | I <-- Example "2" ( left-,  back+)
  1160.  *   F |[-]  N  [+]| G <-- Nozzle
  1161.  *   T |       3   | H <-- Example "3" (right+, front-)
  1162.  *  #define NOZZLE_TO_PROBE_OFFSET { -42.5, -12.5, -0.98 }
  1163.  // Most probes should stay away from the edges of the bed, but
  1164. // with NOZZLE_AS_PROBE this can be negative for a wider probing area.
  1165. #define PROBING_MARGIN 10
  1166.  
  1167. // X and Y axis travel speed (mm/min) between probes
  1168. #define XY_PROBE_
  1169. EEDRATE (133*60)
  1170.  
  1171. // Feed
  1172.  
  1173. te (mm/min) for the first approach when double-probi
  1174. g (MULTIPLE_PROBING == 2)
  1175. #define
  1176.  
  1177. PROBE_FEEDRATE_FAST (4*60)
  1178.  
  1179. // Feedrate (mm/min) for the "accurate" probe of each point
  1180. #define Z_PROBE_FEEDRATE_SLOW (Z_PRO
  1181.  
  1182. _FEEDRATE_FAST / 2)
  1183.  
  1184. /**
  1185.  * Probe Activation Switch
  1186.  * A sw
  1187. tch indicating proper deployment, or an optical
  1188.  * switch
  1189.  
  1190. /**
  1191.  * Probe Activation Switch
  1192.  * A switch indic//#define PROBE_ACTIVATION_SWITCH
  1193. #if ENABLED(PROBE_ACTIVATION_SWITCH)
  1194. ri#define PROBE_ACTIVATION_SWITCH_STATE LOW // State indicating probe is active
  1195. CT//#define PROBE_ACTIVATION_SWITCH_PIN PC6 // Override default pin
  1196. #endif
  1197. c/**
  1198.  * Tare Probe (determine zero-point) prior to each probe.
  1199.  * Useful for a strain gauge or piezo sensor that needs to factor out
  1200.  * elements such as cables pulling on the carriage.
  1201.  */e//#define PROBE_TARE
  1202. #if ENABLED(PROBE_TARE)
  1203. el#define PROBE_TARE_TIME  200    // (ms) Time to hold tare pin
  1204. RO#define PROBE_TARE_DELAY 200    // (ms) Delay after tare before
  1205.   #define PROBE_TARE_STATE HIGH
  1206.   // State to write pin for tare
  1207.   //#define PROBE_TARE_PIN PA5  
  1208.  // Override default pin
  1209. E #if ENABLED(PROBE_ACTIVATION_SWITCH)
  1210.  
  1211.   //#define PROBE_TARE_ONLY_WHILE_INACTIVE  // Fail to t
  1212.   /probe if PROBE_ACTIVATION_SWITCH is
  1213.     ve
  1214.   #endif
  1215. #endif
  1216.  
  1217. /**
  1218.  * Probe Enable / Disable
  1219.  * The probe only provides a triggered signal when
  1220.   abled.
  1221. */
  1222. //#define PROBE_ENABLE_DISABLE
  1223. #if ENABLED(PROBE_ENABLE_DISABLE)
  1224. ig//#define PROBE_ENABLE_PIN -1   // Override the default pin here
  1225. #endif
  1226. D/**
  1227.  * Multiple Probing
  1228.  *
  1229.  * You may get improved results by probing 2 or more times.
  1230.  * With EXTRA_PROBING the more atypical reading(s) will be disregarded.
  1231.  *
  1232.  * A total of 2 does fast/slow probes with a weighted average.
  1233.  * A total of 3 or more adds more slow probes, taking the average.
  1234.  */e//#define MULTIPLE_PROBING 2
  1235. //#define EXTRA_PROBING    1
  1236. r/**
  1237.  * Z probes require clearance when deploying, stowing, and moving between
  1238.  * probe points to avoid hitting the bed and other hardware.
  1239.  * Servo-mounted probes require extra space for the arm to rotate.
  1240.  * Inductive probes need space to keep from triggering early.
  1241.  *
  1242.  * Use these settings to specify the distance (mm) to raise the probe (or
  1243.  * lower the bed). The values set here apply over and above any (negative)
  1244.  * probe Z Offset set with NOZZLE_TO_PROBE_OFFSET, M851, or the LCD.
  1245.  * Only integer values >= 1 are valid here.
  1246.  *
  1247.  * Example: `M851 Z-5` with a CLEARANCE of 4  =>  9mm from bed to nozzle.
  1248.  *     But: `M851 Z+1` with a CLEARANCE of 2  =>  2mm from bed to nozzle.
  1249.  */ #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
  1250. #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
  1251. #define Z_CLEARANCE_MULTI_PROBE     5 // Z Clearance between multiple probes
  1252. //#define Z_AFTER_PROBING           5 // Z position after probing is done
  1253. b#define Z_PROBE_LOW_POINT          -2 // Farthest distance below the trigger-point to go before stopping
  1254.  // For M851 give a range for adjusting the Z probe offset
  1255. #define Z_PROBE_OFFSET_RANGE_MIN -20
  1256. #define Z_PROBE_OFFSET_RANGE_MAX 20
  1257. s// Enable the M48 repeatability test to test probe accuracy
  1258. #define Z_MIN_PROBE_REPEATABILITY_TEST
  1259. /// Before deploy/stow pause for user confirmation
  1260. //#define PAUSE_BEFORE_DEPLOY_STOW
  1261. #if ENABLED(PAUSE_BEFORE_DEPLOY_STOW)
  1262. se//#define PAUSE_PROBE_DEPLOY_WHEN_TRIGGERED // For Manual Deploy Allenkey Probe
  1263. #endif
  1264. O/**
  1265.  * Enable one or more of the following if probing seems unreliable.
  1266.  * Heaters and/or fans can be disabled during probing to minimize electrical
  1267.  * noise. A delay can also be added to allow noise and vibration to settle.
  1268.  * These options are most useful for the BLTouch probe, but may also improve
  1269.  * readings with inductive probes and piezo sensors.
  1270.  */r//#define PROBING_HEATERS_OFF       // Turn heaters off when probing
  1271. #if ENABLED(PROBING_HEATERS_OFF)
  1272. ef//#define WAIT_FOR_BED_HEATER     // Wait for bed to heat back up between probes (to improve accuracy)
  1273. fi//#define WAIT_FOR_HOTEND         // Wait for hotend to heat back up between probes (to improve accuracy & prevent cold extrude)
  1274. #endif
  1275. //#define PROBING_FANS_OFF          // Turn fans off when probing
  1276. //#define PROBING_ESTEPPERS_OFF     // Turn all extruder steppers off when probing
  1277. //#define PROBING_STEPPERS_OFF      // Turn all steppers off (unless needed to hold position) when probing (including extruders)
  1278. //#define DELAY_BEFORE_PROBING 200  // (ms) To prevent vibrations from triggering piezo sensors
  1279. )// Require minimum nozzle and/or bed temperature for probing
  1280. //#define PREHEAT_BEFORE_PROBING
  1281. #if ENABLED(PREHEAT_BEFORE_PROBING)
  1282.  b#define PROBING_NOZZLE_TEMP 120   // (°C) Only applies to E0 at this time
  1283. EH#define PROBING_BED_TEMP     50
  1284. #endif
  1285. O// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
  1286. // :{
  1287.  
  1288. 'Low', 1:'High' }
  1289. #define X_ENABLE_ON 0
  1290. #define Y_ENABLE_ON 0
  1291. #define Z_ENABLE_ON 0
  1292. #defin
  1293. E_ENABLE_ON 0 // For all
  1294. extruders
  1295. //#define I
  1296. ENABLE_ON 0
  1297. //#define
  1298. J_ENABLE_ON 0
  1299. //#defi
  1300. e K_ENABLE_ON 0
  1301.  
  1302. // Disable axis steppers
  1303. mmediately when they're
  1304. not being stepped.
  1305. // W
  1306. RNING: When motors turn
  1307.  
  1308. ff there is a chance of losing position accuracy!
  1309. #define DISABLE_X
  1310. alse
  1311. #define DISABLE_Y false
  1312. #define DISABLE_Z false
  1313. //#define DISABLE_I false
  1314. //#define DISABLE_J false
  1315. //#define DISABLE_K false
  1316. f// Turn off the display blinking that warns about possible accuracy reduction
  1317. //#define DISABLE_REDUCED_ACCURACY_WARNING
  1318. y// @section extruder
  1319. a#define DISABLE_E false             // Disable the extruder when not stepping
  1320. #define DISABLE_INACTIVE_EXTRUDER   // Keep only the active extruder enabled
  1321. d// @section machine
  1322.  
  1323. // Invert the stepper direction. Change (or reverse the motor connector) if
  1324.  
  1325. axis goes the wron
  1326.  
  1327. way.
  1328. #define INVERT_X_DIR false
  1329. #define INVERT_Y_DIR false
  1330. #define INVERT_Z_DIR true
  1331. //#define INVERT_I
  1332. DIR false
  1333. //#define INVERT
  1334. J_DIR false
  1335. //#define INVE
  1336. T_K_DIR false
  1337.  
  1338. // @sectio
  1339. extruder
  1340.  
  1341. // For direct dri
  1342. e extruder v9 set to true, f
  1343. r geared extruder set to fal
  1344.  
  1345. .
  1346. #define INVERT_E0_
  1347.  
  1348. R true
  1349. #define INVERT_E1_DIR false
  1350. #define INVERT_E2_DIR false
  1351. #define INVERT_
  1352. 3_DIR false
  1353. #define INVERT
  1354. E4_DIR false
  1355. #define INVERT
  1356. E5_DIR false
  1357. #define INVERT
  1358. E6_DIR false
  1359. #define INVERT
  1360. E7_DIR false
  1361.  
  1362. // @section h
  1363. ming
  1364.  
  1365. //#define NO_MOTION_B
  1366. FORE_HOMING // Inhibit move
  1367. ent until all axes have bee
  1368.  
  1369. homed. Also enable
  1370.  
  1371. OME_AFTER_DEACTIVATE for extra safety.
  1372. //#define HOME_AFTER_DEACTIVATE   // Require rehoming after steppers are deactivated. Also enable
  1373. O_MOTION_BEFORE_HOMING for extra safety.
  1374.  
  1375. /**
  1376.  * Set Z_IDLE_HEIGHT if the Z-Axis moves on its own when steppers are disabled.
  1377.  *  - Use a l
  1378.  
  1379. /**
  1380.  * Set Z_IDLE_HEIGHT if the Z-Axis moves on its own when steppers are disabled.
  1381.  *  - Use a low value (i.e., Z_MIN_POS) if the nozzle falls down to t//#define Z_IDLE_HEIGHT Z_HOME_POS
  1382. e#define Z_HOMING_HEIGHT  10       // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
  1383.   10                             // Be sure to have this much clearance over your Z_MAX_POS to pr
  1384.                 //#define Z_AFTER_HOMING  10      // (mm) Height to move to after homing Z
  1385. S// Direction of endstops when homing; 1=MAX, -1=MIN
  1386. // :[-1,1]
  1387. #define X_HOME_DIR -1
  1388. #define Y_HOME_DIR -1
  1389. #define Z_HOME_DIR -1
  1390. //#define I_HOME_DIR -1
  1391. //#define J_HOME_DIR -1
  1392. //#define K_HOME_DIR -1
  1393. R// @section machine
  1394. I// The size of the printable area
  1395. #define X_BED_SIZE 320
  1396. #define Y_BED_SIZE 300
  1397.  // Travel limits (mm) after homing, corresponding to endstop positions.
  1398. #define X_MIN_POS 0
  1399. #define Y_MIN_POS 0
  1400. #define Z_MIN_POS 0
  1401. #define X_MAX_POS X_BED_SIZE
  1402. #define Y_MAX_POS Y_BED_SIZE
  1403. #define Z_MAX_POS 350
  1404. //#define I_MIN_POS 0
  1405. //#define I_MAX_POS 50
  1406. //#define J_MIN_POS 0
  1407. //#define J_MAX_POS 50
  1408. //#define K_MIN_POS 0
  1409. //#define K_MAX_POS 50
  1410. X/**
  1411.  * Software Endstops
  1412.  *
  1413.  * - Prevent moves outside the set machine bounds.
  1414.  * - Individual axes can be disabled, if desired.
  1415.  * - X and Y only apply to Cartesian robots.
  1416.  * - Use 'M211' to set software endstops on/off or report current state
  1417.  */ly// Min software endstops constrain movement within minimum coordinate bounds
  1418. #define MIN_SOFTWARE_ENDSTOPS
  1419. #if ENABLED(MIN_SOFTWARE_ENDSTOPS)
  1420.  w#define MIN_SOFTWARE_ENDSTOP_X
  1421.  
  1422. #define MIN_SOFTWARE_ENDSTOP
  1423. Y
  1424.   #define MIN_SOFTWARE_ENDSTOP_Z
  1425.   #define MIN_SOFTWARE_ENDSTOP_I
  1426.   #define MIN_SOFTWARE_ENDSTOP_J
  1427.   #define MIN_SOFTWARE_ENDSTOP_K
  1428. #endif
  1429. n// Max software endstops constrain movement within maximum coordinate bounds
  1430. #define MAX_SOFTWARE_ENDSTOPS
  1431. #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
  1432.  w#define MAX_SOFTWARE_ENDSTOP_X
  1433.  
  1434. #define MAX_SOFTWARE_ENDSTOP
  1435. Y
  1436.   #define MAX_SOFTWARE_ENDSTOP_Z
  1437.   #define MAX_SOFTWARE_ENDSTOP_I
  1438.   #define MAX_SOFTWARE_ENDSTOP_J
  1439.   #define MAX_SOFTWARE_ENDSTOP_K
  1440. #endif
  1441. n#if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS)
  1442.  
  1443.  //#define SOFT_ENDSTOPS_MENU_ITEM  // Enable/Disable software endstops from the LCD
  1444. #endif
  1445. T/**
  1446.  * Filament Runout Sensors
  1447.  * Mechanical or opto endstops are used to check for the presence of filament.
  1448.  *
  1449.  * IMPORTANT: Runout will only trigger if Marlin is aware that a print job is running.
  1450.  * Marlin knows a print job is running when:
  1451.  *  1. Running a print job from media started with M24.
  1452.  *  2. The Print Job Timer has been started with M75.
  1453.  *  3. The heaters were turned on and PRINTJOB_TIMER_AUTOSTART is enabled.
  1454.  *
  1455.  * RAMPS-based boards use SERVO3_PIN for the first runout sensor.
  1456.  * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
  1457.  */r//#define FILAMENT_RUNOUT_SENSOR
  1458. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  1459. IN#define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
  1460. _R#define NUM_RUNOUT_SENSORS   1          // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
  1461. SOR#define FIL_RUNOUT_STATE     LOW        // Pin state indicating that filament is NOT present.
  1462. .
  1463. #define FIL_RUNOUT_PULLUP               // Use internal pullup for filament runout pins.
  1464. re//#define FIL_RUNOUT_PULLDOWN           // Use internal pulldown for filament runout pins.
  1465. pi//#define WATCH_ALL_RUNOUT_SENSORS      // Execute runout script on any triggering sensor, not only for the active extruder.
  1466. _SENSORS                                  // This is automatically enabled for MIXING_EXTRUDERs.
  1467.  
  1468.  
  1469.  // Override individually if the runout sensors vary
  1470. au//#define FIL_RUNOUT1_STATE LOW
  1471. XT//#define FIL_RUNOUT1_PULLUP
  1472. du//#define FIL_RUNOUT1_PULLDOWN
  1473.  
  1474.   //#define FIL_RUNOUT2_STATE LOW
  1475.   //#define FIL_RUNOUT2_PULLUP
  1476.   //#define FIL_RUNOUT2_PULLDOWN
  1477.  
  1478.   //#define FIL_RUNOUT3_STATE LOW
  1479.   //#define FIL_RUNOUT3_PULLUP
  1480.   //#define FIL_RUNOUT3_PULLDOWN
  1481.  
  1482.   //#define FIL_RUNOUT4_STATE LOW
  1483.   //#define FIL_RUNOUT4_PULLUP
  1484.   //#define FIL_RUNOUT4_PULLDOWN
  1485.  
  1486.   //#define FIL_RUNOUT5_STATE LOW
  1487.   //#define FIL_RUNOUT5_PULLUP
  1488.   //#define FIL_RUNOUT5_PULLDOWN
  1489.  
  1490.   //#define FIL_RUNOUT6_STATE LOW
  1491.   //#define FIL_RUNOUT6_PULLUP
  1492.   //#define FIL_RUNOUT6_PULLDOWN
  1493.  
  1494.   //#define FIL_RUNOUT7_STATE LOW
  1495.   //#define FIL_RUNOUT7_PULLUP
  1496.   //#define FIL_RUNOUT7_PULLDOWN
  1497.  
  1498.   //#define FIL_RUNOUT8_STATE LOW
  1499.   //#define FIL_RUNOUT8_PULLUP
  1500.   //#define FIL_RUNOUT8_PULLDOWN
  1501.  
  1502.   // Commands to execute on filam
  1503.   runout.
  1504.   // With multiple
  1505.   out sensors use the %c placeho
  1506.  
  1507.   for the current tool in commands (e.g., "
  1508.   0 T%c")
  1509.   // NOTE: After 'M412 H1' the host handles filament runout and this script does not apply.
  1510.   #def
  1511.   FILAMENT_RUNOUT_SCRIPT "M600"
  1512.  
  1513.   // After a runout is detected, continue printing this l
  1514.   th of filament
  1515.   // before executing
  1516.  
  1517.   runout script. Useful for a sensor at the end of
  1518.   // a feed tube. Requi
  1519.   4 bytes SRAM per sensor, plus 4 bytes overhead.
  1520.   //#define FILAMENT_RU
  1521.   T_DISTANCE_MM 25
  1522.  
  1523.   #ifdef FILAMENT_RUNOUT_DISTANCE_MM
  1524.     // Enable thi
  1525.   ption to use an encoder disc that toggle
  1526.  
  1527.   e runout pin
  1528.     // as the filamen
  1529.     es. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
  1530.     // large enough to a
  1531.     false positives.)
  1532.     //#define FILAMENT_MOTION_SENSOR
  1533.   #endif
  1534. #endi
  1535.   //===========================================================================
  1536. //=============================== Bed Leveling ==============================
  1537. //===========================================================================
  1538. // @section calibrate
  1539. //**
  1540.  * Choose one of the options below to enable G29 Bed Leveling. The parameters
  1541.  * and behavior of G29 will change depending on your selection.
  1542.  *
  1543.  *  If using a Probe for Z Homing, enable Z_SAFE_HOMING also!
  1544.  *
  1545.  * - AUTO_BED_LEVELING_3POINT
  1546.  *   Probe 3 arbitrary points on the bed (that aren't collinear)
  1547.  *   You specify the XY coordinates of all 3 points.
  1548.  *   The result is a single tilted plane. Best for a flat bed.
  1549.  *
  1550.  * - AUTO_BED_LEVELING_LINEAR
  1551.  *   Probe several points in a grid.
  1552.  *   You specify the rectangle and the density of sample points.
  1553.  *   The result is a single tilted plane. Best for a flat bed.
  1554.  *
  1555.  * - AUTO_BED_LEVELING_BILINEAR
  1556.  *   Probe several points in a grid.
  1557.  *   You specify the rectangle and the density of sample points.
  1558.  *   The result is a mesh, best for large or uneven beds.
  1559.  *
  1560.  * - AUTO_BED_LEVELING_UBL (Unified Bed Leveling)
  1561.  *   A comprehensive bed leveling system combining the features and benefits
  1562.  *   of other systems. UBL also includes integrated Mesh Generation, Mesh
  1563.  *   Validation and Mesh Editing systems.
  1564.  *
  1565.  * - MESH_BED_LEVELING
  1566.  *   Probe a grid manually
  1567.  *   The result is a mesh, suitable for large or uneven beds. (See BILINEAR.)
  1568.  *   For machines without a probe, Mesh Bed Leveling provides a method to perform
  1569.  *   leveling in steps so you can manually adjust the Z height at each grid-point.
  1570.  *   With an LCD controller the process is guided step-by-step.
  1571.  */h//#define AUTO_BED_LEVELING_3POINT
  1572. //#define AUTO_BED_LEVELING_LINEAR
  1573. #define AUTO_BED_LEVELING_BILINEAR
  1574. //#define AUTO_BED_LEVELING_UBL
  1575. //#define MESH_BED_LEVELING
  1576. E/**
  1577.  * Normally G28 leaves leveling disabled on completion. Enable one of
  1578.  * these options to restore the prior leveling state or to always enable
  1579.  * leveling immediately after G28.
  1580.  */i//#define RESTORE_LEVELING_AFTER_G28
  1581. //#define ENABLE_LEVELING_AFTER_G28
  1582. m/**
  1583.  * Auto-leveling needs preheating
  1584.  */E//#define PREHEAT_BEFORE_LEVELING
  1585. #if ENABLED(PREHEAT_BEFORE_LEVELING)
  1586. ve#define LEVELING_NOZZLE_TEMP 120   // (°C) Only applies to E0 at this time
  1587. HE#define LEVELING_BED_TEMP     50
  1588. #endif
  1589. O/**
  1590.  * Enable detailed logging of G28, G29, M48, etc.
  1591.  * Turn on with the command 'M111 S32'.
  1592.  * NOTE: Requires a lot of PROGMEM!
  1593.  */ //#define DEBUG_LEVELING_FEATURE
  1594. t#if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL, PROBE_MANUALLY)
  1595.  // Set a height for the start
  1596.  
  1597. manual adjustment
  1598.   #define MANUAL_PROBE_START_Z 0.2  // (mm) Co
  1599.   nt out to use the last-measured height
  1600. #endif
  1601.  
  1602. #if
  1603.   Y(MESH_BED_LEVELING, AUTO_BED_LEVELING_BILINEAR, AUTO_BED_LEVELING_UBL)
  1604.   // Graduall
  1605. reduc
  1606.  
  1607. leveling correction until a set height is reached,
  1608.   // at which point moveme
  1609.   will be level to the machine's XY plane.
  1610.   // The height can be set wi
  1611.   M420 Z<height>
  1612.   #define ENABLE_LEVELING_FADE_HEIGHT
  1613.   #if ENABLED(
  1614.   BLE_LEVELING_FADE_HEIGHT)
  1615.     #define DEFAUL
  1616.   EVELING_FADE_HEIGHT 10.0 // (mm) De
  1617.   lt fade height.
  1618.   #endif
  1619.  
  1620.   // For Carte
  1621.     machines, instead of dividing moves on mesh boundaries,
  1622.   // split up
  1623.   es int
  1624.  
  1625.   ort segments like a Delta. This follows the
  1626.   // contours of the bed mor
  1627.   losely than edge-to-edge straight moves.
  1628.   #define SEGMENT_LEVELED_M
  1629.   S
  1630.   #define LEVELED_SEGMENT_LENGTH 5.0 // (mm) Length of all segments
  1631.   xcept the last one)
  1632.  
  1633.   /**
  1634.  
  1635.   Enable the G26 Mesh Validation Pattern tool.
  1636.    */
  1637.   //#define G26_MESH_VALIDATION
  1638.   #i
  1639.  
  1640.   /**
  1641.    * Enable the G26 Mesh Va#define MESH_TEST_NOZZLE_SIZE    0.4  // (mm) Diameter of primary nozzle.
  1642. (G26#define MESH_TEST_LAYER_HEIGHT   0.2  // (mm) Default layer height for G26.
  1643.  of #define MESH_TEST_HOTEND_TEMP  205    // (°C) Default nozzle temperature for G26.
  1644. ight#define MESH_TEST_BED_TEMP      60    // (°C) Default bed temperature for G26.
  1645. pera#define G26_XY_FEEDRATE         20    // (mm/s) Feedrate for G26 XY moves.
  1646. d te#define G26_XY_FEEDRATE_TRAVEL 100    // (mm/s) Feedrate for G26 XY travel moves.
  1647. r G2#define G26_RETRACT_MULTIPLIER   1.0  // G26 Q (retraction) used by default between mesh test elements.
  1648. ef#endif
  1649. _#endif
  1650. _#if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR)
  1651. esh// Set the number of grid points per dimension.
  1652. O_#define GRID_MAX_POINTS_X 4
  1653. D_#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  1654. rid// Probe along the Y axis, advancing X after each column
  1655. ef//#define PROBE_Y_FIRST
  1656. ID_#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
  1657. s, ad// Beyond the probed grid, continue the implied tilt?
  1658.  
  1659.   // Default is to maintain the height o
  1660.  
  1661.     nearest edge.
  1662.     //#define EXTRAPOLATE_BEYOND_GRID
  1663.  
  1664.  
  1665.    //
  1666.  Def// Experimental Subdivision of the grid by Catmull-Rom method.
  1667. ne E// Synthesizes intermediate points to produce a more detailed mesh.
  1668. e gr//
  1669. by C//#define ABL_BILINEAR_SUBDIVISION
  1670. es i#if ENABLED(ABL_BILINEAR_SUBDIVISION)
  1671. etaile// Number of subdivisions between probe points
  1672. VISION#define BILINEAR_SUBDIVISIONS 3
  1673. BDIV#endif
  1674.    #endif
  1675. u#elif ENABLED(AUTO_BED_LEVELING_UBL)
  1676. int//===========================================================================
  1677. TO//========================= Unified Bed Leveling ============================
  1678. ==//===========================================================================
  1679. ===//#define MESH_EDIT_GFX_OVERLAY   // Display a graphics overlay while editing the mesh
  1680. ===#define MESH_INSET 1              // Set Mesh bounds as an inset region of the bed
  1681. di#define GRID_MAX_POINTS_X 10      // Don't use more than 15 points per axis, implementation limited.
  1682.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  1683.  
  1684.   //#define UBL_HILBERT_CURVE       // Use Hilbert dis
  1685.   bution for less travel when probing multipl
  1686.  
  1687.   ints
  1688.  
  1689.   #define UBL_MESH_EDIT_MOVES_Z     // Sophisticated users prefer no movement of nozzle
  1690.   #define UB
  1691.  
  1692.   VE_ACTIVE_ON_M500   // Save the currently active mesh in the current slot on M500
  1693.  
  1694.   //#define UBL_Z_RAISE_WHEN_OFF_MESH 2.5 // When the nozzle is off the mesh, this value is used
  1695. 500
  1696.  
  1697.                                     // as the Z-Height correction value.
  1698.  
  1699.   //#define UBL_MESH_
  1700.               // Run several commands in a row to get a complete mesh
  1701. n#elif ENABLED(MESH_BED_LEVELING)
  1702. ARD//===========================================================================
  1703. D(//=================================== Mesh ==================================
  1704. ==//===========================================================================
  1705. ===#define MESH_INSET 10          // Set Mesh bounds as an inset region of the bed
  1706. ==#define GRID_MAX_POINTS_X 3    // Don't use more than 7 points per axis, implementation limited.
  1707. ed#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  1708. se //#define MESH_G28_REST_ORIGIN // After homing all axes ('G28' or 'G28 XYZ') rest Z at Z_MIN_POS
  1709. X#endif // BED_LEVELING
  1710. R/**
  1711.  * Add a bed leveling sub-menu for ABL or MBL.
  1712.  * Include a guided procedure if manual probing is enabled.
  1713.  */ //#define LCD_BED_LEVELING
  1714. B#if ENABLED(LCD_BED_LEVELING)
  1715. pr#define MESH_EDIT_Z_STEP  0.025 // (mm) Step size while manually probing Z axis.
  1716. (L#define LCD_PROBE_Z_RANGE 4     // (mm) Z Range centered on Z_MIN_POS for LCD Z adjustment
  1717.  Z//#define MESH_EDIT_MENU        // Add a menu to edit mesh points
  1718. #endif
  1719. N// Add a menu item to move between bed corners for manual bed adjustment
  1720. //#define LEVEL_BED_CORNERS
  1721.  
  1722. #if ENABLED(LEVEL_BED_CORNERS)
  1723.   #define LEVEL_CORNERS_INSET_LFRB { 30,
  1724. 0, 30, 30 } // (mm) Left, F
  1725.  
  1726. nt, Right, Back insets
  1727.   #defi
  1728.   LEVEL_CORNERS_HEIGHT      0.0   // (mm) Z height of nozzle at leveling points
  1729.   #define LEV
  1730.   CORNERS_Z_HOP       4.0   // (mm) Z height of nozzle between leveling points
  1731.   //#def
  1732.   LEVEL_CENTER_TOO              // Move to the center after the last corner
  1733.   //#define LEV
  1734.   CORNERS_USE_PROBE
  1735.   #if ENABLED(LEVEL_CORNERS_USE_PROBE)
  1736.     #define LEVEL_CORNERS_
  1737.   BE_TOLERANCE 0.1
  1738.     #define LEVE
  1739.   ORNERS_VERIFY_RAISED   // After adju
  1740.     t triggers the probe, re-probe to verify
  1741.  
  1742.    //#define LEVEL_CORNERS_AUDIO_FEEDBACK
  1743.  #endif
  1744.  
  1745.   /**
  1746.    * Corner Leveling Order
  1747.    *
  1748.    * Set 2
  1749.     points. When 2 points are given, the
  1750.   is th
  1751.  
  1752.   /**
  1753.    * Corner Leveling Order
  1754.    *
  1755.    * Set 2 or 4 points. When 2 points are given, the 3rd is the center of the opposite edge.
  1756.    *
  1757.    *  LF  Left-Front    RF  Right-Front
  1758.    *  LB  Left-Back     RB  Right-Back
  1759.    *
  1760.    * Examples:
  1761.    *
  1762.    *      Default        {LF,RB,LB,RF}         {LF,RF}           {LB,LF}
  1763.    *  LB --------- RB   LB --------- RB    LB --------- RB   LB --------- RB
  1764.    *  |  4       3  |   | 3         2 |    |     <3>     |   | 1           |
  1765.    *  |             |   |             |    |             |   |          <3>|
  1766.    *  |  1       2  |   | 1         4 |    | 1         2 |  #define LEVEL_CORNERS_LEVELING_ORDER { LF, RF, RB, LB }
  1767. #endif
  1768. -/**
  1769.  * Commands to execute at the end of G29 probing.
  1770.  * Useful to retract or move the Z probe out of the way.
  1771.  */n//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
  1772.  // @section homing
  1773. y// The center of the bed is at (X=0, Y=0)
  1774. //#define BED_CENTER_AT_0_0
  1775. 5// Manually set the home position. Leave these undefined for automatic settings.
  1776. // For DELTA this is the top-center of the Cartesian print volume.
  1777. //#define MANUAL_X_HOME_POS 0
  1778. //#define MANUAL_Y_HOME_POS 0
  1779. //#define MANUAL_Z_HOME_POS 0
  1780. //#define MANUAL_I_HOME_POS 0
  1781. //#define MANUAL_J_HOME_POS 0
  1782. //#define MANUAL_K_HOME_POS 0
  1783. _/**
  1784.  * Use "Z Safe Homing" to avoid homing with a Z probe outside the bed area.
  1785.  *
  1786.  * - Moves the Z probe (or nozzle) to a defined XY point before Z homing.
  1787.  * - Allows Z homing only when XY positions are known and trusted.
  1788.  * - If stepper drivers sleep, XY homing may be required again before Z homing.
  1789.  */k#define Z_SAFE_HOMING
  1790.  #if ENABLED(Z_SAFE_HOMING)
  1791. Y #define Z_SAFE_HOMING_X_POINT X_CENTER  // X point for Z homing
  1792. _H#define Z_SAFE_HOMING_Y_POINT Y_CENTER  // Y point for Z homing
  1793. #endif
  1794. T// Homing speeds (mm/min)
  1795. #define HOMING_FEEDRATE_MM_M { (50*60), (50*60), (4*60) }
  1796.  // Validate that endstops are triggered on homing moves
  1797. #define VALIDATE_HOMING_ENDSTOPS
  1798. )// @section calibrate
  1799. e/**
  1800.  * Bed Skew Compensation
  1801.  *
  1802.  * This feature corrects for misalignment in the XYZ axes.
  1803.  *
  1804.  * Take the following steps to get the bed skew in the XY plane:
  1805.  *  1. Print a test square (e.g., https://www.thingiverse.com/thing:2563185)
  1806.  *  2. For XY_DIAG_AC measure the diagonal A to C
  1807.  *  3. For XY_DIAG_BD measure the diagonal B to D
  1808.  *  4. For XY_SIDE_AD measure the edge A to D
  1809.  *
  1810.  * Marlin automatically computes skew factors from these measurements.
  1811.  * Skew factors may also be computed and set manually:
  1812.  *
  1813.  *  - Compute AB     : SQRT(2*AC*AC+2*BD*BD-4*AD*AD)/2
  1814.  *  - XY_SKEW_FACTOR : TAN(PI/2-ACOS((AC*AC-AB*AB-AD*AD)/(2*AB*AD)))
  1815.  *
  1816.  * If desired, follow the same procedure for XZ and YZ.
  1817.  * Use these diagrams for reference:
  1818.  *
  1819.  *    Y                     Z                     Z
  1820.  *    ^     B-------C       ^     B-------C       ^     B-------C
  1821.  *    |    /       /        |    /       /        |    /       /
  1822.  *    |   /       /         |   /       /         |   /       /
  1823.  *    |  A-------D          |  A-------D          |  A-------D
  1824.  *    +-------------->X     +-------------->X     +-------------->Y
  1825.  *     XY_SKEW_FACTOR        XZ_SKEW_FACTOR        YZ_SKEW_FACTOR
  1826.  */-//#define SKEW_CORRECTION
  1827. -#if ENABLED(SKEW_CORRECTION)
  1828.   // Input all length measurements here:
  1829.  
  1830.  #define XY_DIAG_AC 282.8427124746
  1831. EN#define XY_DIAG_BD 282.8427124746
  1832. al#define XY_SIDE_AD 200
  1833. ere// Or, set the default skew factors directly here
  1834. _D// to override the above measurements:
  1835. _A#define XY_SKEW_FACTOR 0.0
  1836. aul//#define SKEW_CORRECTION_FOR_Z
  1837. / #if ENABLED(SKEW_CORRECTION_FOR_Z)
  1838.  
  1839.   #define XZ_DIAG_AC 282.84
  1840.  
  1841.   4746
  1842.     #define XZ_DIAG_BD 282
  1843.   27124746
  1844.     #define YZ_DIAG_AC 28
  1845.     7124746
  1846.     #define YZ_DIAG_BD 28
  1847.     7124746
  1848.     #define YZ_SIDE_AD 20
  1849.     #define XZ_SKEW_FACTOR 0.0
  1850.     #
  1851.     e YZ_SKEW_FACTOR 0.0
  1852.   #endif
  1853.  
  1854.   // Enable this option for M852 to set skew at runtime
  1855.  0//#define SKEW_CORRECTION_GCODE
  1856. #endif
  1857. d//=============================================================================
  1858. //============================= Additional Features ===========================
  1859. //=============================================================================
  1860. =// @section extras
  1861. =/**
  1862.  * EEPROM
  1863.  *
  1864.  * Persistent storage to preserve configurable settings across reboots.
  1865.  *
  1866.  *   M500 - Store settings to EEPROM.
  1867.  *   M501 - Read settings from EEPROM. (i.e., Throw away unsaved changes)
  1868.  *   M502 - Revert settings to "factory" defaults. (Follow with M500 to init the EEPROM.)
  1869.  */c#define EEPROM_SETTINGS       // Persistent storage with M500 and M501
  1870. //#define DISABLE_M503        // Saves ~2700 bytes of PROGMEM. Disable for release!
  1871. #define EEPROM_CHITCHAT       // Give feedback on EEPROM commands. Disable to save PROGMEM.
  1872. #define EEPROM_BOOT_SILENT    // Keep M503 quiet and only give errors during first load
  1873. #if ENABLED(EEPROM_SETTINGS)
  1874. BO//#define EEPROM_AUTO_INIT  // Init EEPROM automatically on any errors.
  1875. if//#define EEPROM_INIT_NOW   // Init EEPROM on first boot after a new build.
  1876. #endif
  1877. y//
  1878. // Host Keepalive
  1879. //
  1880. // When enabled Marlin will send a busy status message to the host
  1881. // every couple of seconds when it can't accept commands.
  1882. //
  1883. #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
  1884. #d
  1885. fine DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
  1886. #d
  1887. fine BUSY_WHILE_HEATING            // Some hosts require "busy" messages even during heating
  1888.  
  1889. //
  1890. /
  1891. G20/G21 Inch mode support
  1892. //
  1893. //#define INCH_MODE_SUPPORT
  1894.  
  1895. //
  1896. // M149 Set temperature units sup
  1897.  
  1898. rt
  1899. //
  1900. //#define TEMPERATURE_UNI
  1901. S_
  1902. UPPORT
  1903.  
  1904. // @section tempera
  1905.  
  1906. re
  1907.  
  1908. //
  1909. // Preheat Constants - Up to 5 ar
  1910. s
  1911. pported without changes
  1912. //
  1913. #define
  1914.  
  1915. EHEAT_1_LABEL       "PL
  1916.  
  1917.  
  1918. #
  1919. efine PREHEAT_1_TEMP_HOTEND 200
  1920. #define PREHEAT_1_TEMP_BED  
  1921.  
  1922. 0
  1923. #define PREHEAT_1_TEMP_CHAMBER 35
  1924. #define PREHEAT_1_FAN_SPEED     0
  1925. // Value from 0 to 255
  1926.  
  1927. #define P
  1928. EHEAT_2_LABEL       "ABS"
  1929. #define
  1930. PREHEAT_2_TEMP_HOTEND 240
  1931. #define PREHEAT_2_TEMP_BED    
  1932.  
  1933. 0
  1934. #define PREHEAT_2_TEMP_CHAMBER 35
  1935. #define PREHEAT_2_FAN_SPEED     0
  1936. // Value from 0 to 255
  1937.  
  1938. /**
  1939.  * No
  1940. zle Park
  1941.  *
  1942.  * Park the nozzle at
  1943. the given XYZ position on idle or G27.
  1944.  *
  1945.  * The "P" par
  1946.  
  1947. /**
  1948.  * Nozzle Park
  1949.  *
  1950.  * Park the nozzle at the given XYZ position on idle or G27.
  1951.  *
  1952.  * The "P" parameter controls the action applied to the Z axis:
  1953.  *
  1954.  *    P0  (Default) If Z is below park Z raise the nozzle.
  1955.  *    P1  Raise the n#define NOZZLE_PARK_FEATURE
  1956. t#if ENABLED(NOZZLE_PARK_FEATURE)
  1957. -p// Specify a park position as { X, Y, Z_raise }
  1958. ZZ#define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
  1959.  p//#define NOZZLE_PARK_X_ONLY          // X move only is required to park
  1960. 0)//#define NOZZLE_PARK_Y_ONLY          // Y move only is required to park
  1961. e #define NOZZLE_PARK_Z_RAISE_MIN   2   // (mm) Always raise Z by at least this distance
  1962. ir#define NOZZLE_PARK_XY_FEEDRATE 100   // (mm/s) X and Y axes feedrate (also used for delta Z axis)
  1963.  
  1964.  #define NOZZLE_PARK_Z_FEEDRATE    5   // (mm/s) Z axis feedrate (not used for delta printers)
  1965. #endif
  1966.  /**
  1967.  * Clean Nozzle Feature -- EXPERIMENTAL
  1968.  *
  1969.  * Adds the G12 command to perform a nozzle cl
  1970. aning
  1971.  
  1972. /**
  1973.  * Clean Nozzle Feature -- EXPERIMENTAL
  1974.  *
  1975.  * Adds the G12 command to perform a nozzle cleaning process.
  1976.  *
  1977.  * Parameters:
  1978.  *   P  Pattern
  1979.  *   S  Strokes / Repetitions
  1980.  *   T  Triangles (P1 only)
  1981.  *
  1982.  * Patterns:
  1983.  *   P0  Straight line (default). This process requires a sponge type material
  1984.  *       at a fixed bed location. "S" specifies strokes (i.e. back-forth motions)
  1985.  *       between the start / end points.
  1986.  *
  1987.  *   P1  Zig-zag pattern between (X0, Y0) and (X1, Y1), "T" specifies the
  1988.  *       number of zig-zag triangles to do. "S" defines the number of strokes.
  1989.  *       Zig-zags are done in whichever is the narrower dimension.
  1990.  *       For example, "G12 P1 S1 T3" will execute:
  1991.  *
  1992.  *          --
  1993.  *         |  (X0, Y1) |     /\        /\        /\     | (X1, Y1)
  1994.  *         |           |    /  \      /  \      /  \    |
  1995.  *       A |           |   /    \    /    \    /    \   |
  1996.  *         |           |  /      \  /      \  /      \  |
  1997.  *         |  (X0, Y0) | /        \/        \/        \ | (X1, Y0)
  1998.  *          --         +--------------------------------+
  1999.  *                       |________|_________|_________|
  2000.  *                           T1        T2        T3
  2001.  *
  2002.  *   P2  Circular pattern with middle at NOZZLE_CLEAN_CIRCLE_MIDDLE.
  2003.  *       "R" specifies the radius. "S" specifies the stroke count.
  2004.  *       Before starting, the nozzle moves to NOZZLE_CLEAN_START_POINT.
  2005.  *
  2006.  *   Caveats: The en//#define NOZZLE_CLEAN_FEATURE
  2007. a#if ENABLED(NOZZLE_CLEAN_FEATURE)
  2008. L.// Default number of pattern repetitions
  2009. ne#define NOZZLE_CLEAN_STROKES  12
  2010. D(N// Default number of triangles
  2011. lt#define NOZZLE_CLEAN_TRIANGLES  3
  2012. def// Specify positions for each tool as { { X, Y, Z }, { X, Y, Z } }
  2013. ef// Dual hotend system may use { {  -20, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) },  {  420, (Y_BED_SIZE / 2), (Z_MIN_POS + 1) }}
  2014.  m#define NOZZLE_CLEAN_START_POINT { {  30, 30, (Z_MIN_POS + 1) } }
  2015. BE#define NOZZLE_CLEAN_END_POINT   { { 100, 60, (Z_MIN_POS + 1) } }
  2016.  { // Circular pattern radius
  2017. } #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
  2018. { // Circular pattern circle fragments number
  2019. pa#define NOZZLE_CLEAN_CIRCLE_FN 10
  2020. N_// Middle point of circle
  2021. cu#define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
  2022. IRC// Move the nozzle to the initial position after cleaning
  2023. N_#define NOZZLE_CLEAN_GOBACK
  2024. TAR// For a purge/clean station that's always at the gantry height (thus no Z move)
  2025. ZZ//#define NOZZLE_CLEAN_NO_Z
  2026. pur// For a purge/clean station mounted on the X axis
  2027.  (//#define NOZZLE_CLEAN_NO_Y
  2028. NOZ// Require a minimum hotend temperature for cleaning
  2029. d #define NOZZLE_CLEAN_MIN_TEMP 170
  2030. LE//#define NOZZLE_CLEAN_HEATUP       // Heat up the nozzle instead of skipping wipe
  2031. EAN// Explicit wipe G-code script applies to a G12 with no arguments.
  2032. no//#define WIPE_SEQUENCE_COMMANDS "G1 X-17 Y25 Z10 F4000\nG1 Z1\nM114\nG1 X-17 Y25\nG1 X-17 Y95\nG1 X-17 Y25\nG1 X-17 Y95\nG1 X-17 Y25\nG1 X-17 Y95\nG1 X-17 Y25\nG1 X-17 Y95\nG1 X-17 Y25\nG1 X-17 Y95\nG1 X-17 Y25\nG1 X-17 Y95\nG1 Z15\nM400\nG0 X-10.0 Y-9.0"
  2033.  #endif
  2034.  /**
  2035.  * Print Job Timer
  2036.  *
  2037.  * Automatically start and stop the print job timer on M104/M109/M140/M190/M141/M191.
  2038.  * The print job timer will only be stopped if the bed/chamber target temp is
  2039.  * below BED_MINTEMP/CHAMBER_MINTEMP.
  2040.  *
  2041.  *   M104 (hotend, no wait)  - high temp = none,        low temp = stop timer
  2042.  *   M109 (hotend, wait)     - high temp = start timer, low temp = stop timer
  2043.  *   M140 (bed, no wait)     - high temp = none,        low temp = stop timer
  2044.  *   M190 (bed, wait)        - high temp = start timer, low temp = none
  2045.  *   M141 (chamber, no wait) - high temp = none,        low temp = stop timer
  2046.  *   M191 (chamber, wait)    - high temp = start timer, low temp = none
  2047.  *
  2048.  * For M104/M109, high temp is anything over EXTRUDE_MINTEMP / 2.
  2049.  * For M140/M190, high temp is anything over BED_MINTEMP.
  2050.  * For M141/M191, high temp is anything over CHAMBER_MINTEMP.
  2051.  *
  2052.  * The timer can also be controlled with the following commands:
  2053.  *
  2054.  *   M75 - Start the print job timer
  2055.  *   M76 - Pause the print job timer
  2056.  *   M77 - Stop the print job timer
  2057.  */S#define PRINTJOB_TIMER_AUTOSTART
  2058.  /**
  2059.  * Print Counter
  2060.  *
  2061.  * Track statistical data such as:
  2062.  *
  2063.  *  - Total print jobs
  2064.  *  - Total successful print jobs
  2065.  *  - Total failed print jobs
  2066.  *  - Total time printing
  2067.  *
  2068.  * View the current statistics with M78.
  2069.  */*#define PRINTCOUNTER
  2070. #if ENABLED(PRINTCOUNTER)
  2071. in#define PRINTCOUNTER_SAVE_INTERVAL 60 // (minutes) EEPROM save interval during print
  2072. #endif
  2073. O/**
  2074.  * Password
  2075.  *
  2076.  * Set a numerical password for the printer which can be requested:
  2077.  *
  2078.  *  - When the printer boots up
  2079.  *  - Upon opening the 'Print from Media' Menu
  2080.  *  - When SD printing is completed or aborted
  2081.  *
  2082.  * The following G-codes can be used:
  2083.  *
  2084.  *  M510 - Lock Printer. Blocks all commands except M511.
  2085.  *  M511 - Unlock Printer.
  2086.  *  M512 - Set, Change and Remove Password.
  2087.  *
  2088.  * If you forget the password and get locked out you'll need to re-flash
  2089.  * the firmware with the feature disabled, reset EEPROM, and (optionally)
  2090.  * re-flash the firmware again with this feature enabled.
  2091.  */d//#define PASSWORD_FEATURE
  2092. #if ENABLED(PASSWORD_FEATURE)
  2093. ir#define PASSWORD_LENGTH 4                 // (#) Number of digits (1-9). 3 or 4 is recommended
  2094. UR#define PASSWORD_ON_STARTUP
  2095.  4#define PASSWORD_UNLOCK_GCODE             // Unlock with the M511 P<password> command. Disable to prevent brute-force attack.
  2096. GC#define PASSWORD_CHANGE_GCODE             // Change the password with M512 P<old> S<new>.
  2097. e //#define PASSWORD_ON_SD_PRINT_MENU       // This does not prevent gcodes from running
  2098. ol//#define PASSWORD_AFTER_SD_PRINT_END
  2099. PR//#define PASSWORD_AFTER_SD_PRINT_ABORT
  2100. gc//#include "Configuration_Secure.h"       // External file with PASSWORD_DEFAULT_VALUE
  2101. #endif
  2102. A//=============================================================================
  2103. //============================= LCD and SD support ============================
  2104. //=============================================================================
  2105. =// @section lcd
  2106. =/**
  2107.  * LCD LANGUAGE
  2108.  *
  2109.  * Select the language to display on the LCD. These languages are available:
  2110.  *
  2111.  *   en, an, bg, ca, cz, da, de, el, el_CY, es, eu, fi, fr, gl, hr, hu, it,
  2112.  *   jp_kana, ko_KR, nl, pl, pt, pt_br, ro, ru, sk, sv, tr, uk, vi, zh_CN, zh_TW
  2113.  *
  2114.  * :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cz':'Czech', 'da':'Danish', 'de':'German', 'el':'Greek (Greece)', 'el_CY':'Greek (Cyprus)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'hu':'Hungarian', 'it':'Italian', 'jp_kana':'Japanese', 'ko_KR':'Korean (South Korea)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt_br':'Portuguese (Brazilian)', 'ro':'Romanian', 'ru':'Russian', 'sk':'Slovak', 'sv':'Swedish', 'tr':'Turkish', 'uk':'Ukrainian', 'vi':'Vietnamese', 'zh_CN':'Chinese (Simplified)', 'zh_TW':'Chinese (Traditional)' }
  2115.  */:#define LCD_LANGUAGE en
  2116. a/**
  2117.  * LCD Character Set
  2118.  *
  2119.  * Note: This option is NOT applicable to Graphical Displays.
  2120.  *
  2121.  * All character-based LCDs provide ASCII plus one of these
  2122.  * language extensions:
  2123.  *
  2124.  *  - JAPANESE ... the most common
  2125.  *  - WESTERN  ... with more accented characters
  2126.  *  - CYRILLIC ... for the Russian language
  2127.  *
  2128.  * To determine the language extension installed on your controller:
  2129.  *
  2130.  *  - Compile and upload with LCD_LANGUAGE set to 'test'
  2131.  *  - Click the controller to view the LCD menu
  2132.  *  - The LCD will display Japanese, Western, or Cyrillic text
  2133.  *
  2134.  * See https://marlinfw.org/docs/development/lcd_language.html
  2135.  *
  2136.  * :['JAPANESE', 'WESTERN', 'CYRILLIC']
  2137.  */h#define DISPLAY_CHARSET_HD44780 JAPANESE
  2138. l/**
  2139.  * Info Screen Style (0:Classic, 1:Průša)
  2140.  *
  2141.  * :[0:'Classic', 1:'Průša']
  2142.  */E#define LCD_INFO_SCREEN_STYLE 0
  2143. S/**
  2144.  * SD CARD
  2145.  *
  2146.  * SD Card support is disabled by default. If your controller has an SD slot,
  2147.  * you must uncomment the following option or it won't work.
  2148.  */f#define SDSUPPORT
  2149. r/**
  2150.  * SD CARD: ENABLE CRC
  2151.  *
  2152.  * Use CRC checks and retries on the SD communication.
  2153.  */d//#define SD_CHECK_AND_RETRY
  2154. R/**
  2155.  * LCD Menu Items
  2156.  *
  2157.  * Disable all menus and only display the Status Screen, or
  2158.  * just remove some extraneous menu items to recover space.
  2159.  */n//#define NO_LCD_MENUS
  2160. //#define SLIM_LCD_MENUS
  2161. t//
  2162. // ENCODER SETTINGS
  2163. //
  2164. // This option overrides the default number of encoder pulses needed to
  2165. // produce one step. Should be increased for high-resolution encoders.
  2166. //
  2167. #define ENCODER_PULSES_PER_STEP 4
  2168.  //
  2169. // Use this option to override the number of step signals required to
  2170. // move between next/prev menu items.
  2171. //
  2172. #define ENCODER_STEPS_PER_MENU_ITEM 1
  2173. f/**
  2174.  * Encoder Direction Options
  2175.  *
  2176.  * Test your encoder's behavior first with both options disabled.
  2177.  *
  2178.  *  Reversed Value Edit and Menu Nav? Enable REVERSE_ENCODER_DIRECTION.
  2179.  *  Reversed Menu Navigation only?    Enable REVERSE_MENU_DIRECTION.
  2180.  *  Reversed Value Editing only?      Enable BOTH options.
  2181.  */io//
  2182. // This option reverses the encoder direction everywhere.
  2183. //
  2184. //  Set this option if CLOCKWISE causes values to DECREASE
  2185. //
  2186. #define REVERSE_ENCODER_DIRECTION
  2187. w//
  2188. // This option reverses the encoder direction for navigating LCD menus.
  2189. //
  2190. //  If CLOCKWISE normally moves DOWN this makes it go UP.
  2191. //  If CLOCKWISE normally moves UP this makes it go DOWN.
  2192. //
  2193. //#define REVERSE_MENU_DIRECTION
  2194. s//
  2195. // This option reverses the encoder direction for Select Screen.
  2196. //
  2197. //  If CLOCKWISE normally moves LEFT this makes it go RIGHT.
  2198. //  If CLOCKWISE normally moves RIGHT this makes it go LEFT.
  2199. //
  2200. //#define REVERSE_SELECT_DIRECTION
  2201. R//
  2202. // Individual Axis Homing
  2203. //
  2204. // Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
  2205. //
  2206. #define INDIVIDUAL_AXIS_HOMING_MENU
  2207. //#define INDIVIDUAL_AXIS_HOMING_SUBMENU
  2208.  //
  2209. // SPEAKER/BUZZER
  2210. //
  2211. // If you have a speaker that can produce tones, enable it here.
  2212. // By default Marlin assumes you have a buzzer with a fixed frequency.
  2213. //
  2214. #define SPEAKER
  2215. e//
  2216. // The duration and frequency for the UI feedback sound.
  2217. // Set these to 0 to disable audio feedback in the LCD menus.
  2218. //
  2219. // Note: Test audio output with the G-Code:
  2220. //  M300 S<frequency Hz> P<duration ms>
  2221. //
  2222. //#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 2
  2223. //#define LCD_FEEDBACK_FREQUENCY_HZ 5000
  2224. P//=============================================================================
  2225. //======================== LCD / Controller Selection =========================
  2226. //========================   (Character-based LCDs)   =========================
  2227. //=============================================================================
  2228. =//
  2229. // RepRapDiscount Smart Controller.
  2230. // https://reprap.org/wiki/RepRapDiscount_Smart_Controller
  2231. //
  2232. // Note: Usually sold with a white PCB.
  2233. //
  2234. //#define REPRAP_DISCOUNT_SMART_CONTROLLER
  2235. S//
  2236. // GT2560 (YHCB2004) LCD Display
  2237. //
  2238. // Requires Testato, Koepel softwarewire library and
  2239. // Andriy Golovnya's LiquidCrystal_AIP31068 library.
  2240. //
  2241. //#define YHCB2004
  2242.  
  2243. //
  2244. // Original RADDS LCD Disp
  2245. ay+Encoder+SDCardReader
  2246. // http://doku.radds.org/dok
  2247. me
  2248. tation/lcd-display
  2249.  
  2250. //
  2251. //#define RADDS_DISPLAY
  2252.  
  2253. //
  2254. // ULTIMAKER Controlle
  2255. .
  2256. //
  2257. //#define ULTIMAKERCONTROLLER
  2258.  
  2259. //
  2260. // ULTIPANEL
  2261. as
  2262. seen on Thingiverse.
  2263. //
  2264. //#define ULTIPANEL
  2265. t//
  2266. // PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
  2267. // https://reprap.org/wiki/PanelOne
  2268. //
  2269. //#define PANE
  2270.  
  2271. ON
  2272.  
  2273.  
  2274. //
  2275. // GADGETS3D G3D LCD/SD Controller
  2276. // http
  2277. ://reprap.org/wiki/RAMPS_1.3/1.4_GA
  2278. GE
  2279. S3D_Shield_with_Pan
  2280.  
  2281.  
  2282. /
  2283.  
  2284. // Note: Usually sold with a blue
  2285. PCB.
  2286. //
  2287. //#define G3D_PANEL
  2288.  
  2289. //
  2290. // RigidBot Panel V1.0
  2291. // http://www
  2292. in
  2293. entapart.com/
  2294. //
  2295. //#define RIGIDBOT_PA
  2296. EL
  2297.  
  2298. //
  2299. // Makeboard 3D
  2300.  
  2301. ri
  2302. ter Parts 3D Printer M
  2303. ni Display 1602 Mini Controlle
  2304.  
  2305. /
  2306. https://www.aliexpress.
  2307.  
  2308. m/
  2309. tem/32765887917.html
  2310. //
  2311. //#define MAKEBOARD_MINI_2_LINE_DISPLAY_1602
  2312.  
  2313. //
  2314. /
  2315. ANET and Tronxy 20x4 Controller
  2316. //
  2317. //#define ZONES
  2318. AR
  2319. LCD            // Requires ADC_KEYPAD_PIN to
  2320.  
  2321. e
  2322. ssigned to an analog pin.
  2323.        
  2324.  
  2325.                      // This LCD is known to be susceptible to electrical interference
  2326.      
  2327.                             // which scrambles the display.  Pressing any button clears it up.
  2328. ence
  2329.                              // This is a LCD2004 display with 5 analog buttons.
  2330. u//
  2331. // Generic 16x2, 16x4, 20x2, or 20x4 character-based LCD.
  2332. //
  2333. //#define ULTRA_LCD
  2334. t//=============================================================================
  2335. //======================== LCD / Controller Selection =========================
  2336. //=====================   (I2C and Shift-Register LCDs)   =====================
  2337. //=============================================================================
  2338. )//
  2339. // CONTROLLER TYPE: I2C
  2340. //
  2341. // Note: These controllers require the installation of Arduino's LiquidCrystal_I2C
  2342. // library. For more info: https://github.com/kiyoshigawa/LiquidCrystal_I2C
  2343. //
  2344. r//
  2345. // Elefu RA Board Control Panel
  2346. // http://www.elefu.com/index.php?route=product/product&product_id=53
  2347. //
  2348. //#define RA_CONTROL_PANEL
  2349. P//
  2350. // Sainsmart (YwRobot) LCD Displays
  2351. //
  2352. // These require F.Malpartida's LiquidCrystal_I2C library
  2353. // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
  2354. //
  2355. //#define LCD_SAINSMART_I2C_1602
  2356. //#define LCD_SAINSMART_I2C_2004
  2357. l//
  2358. // Generic LCM1602 LCD adapter
  2359. //
  2360. //#define LCM1602
  2361. I//
  2362. // PANELOLU2 LCD with status LEDs,
  2363. // separate encoder and click inputs.
  2364. //
  2365. // Note: This controller requires Arduino's LiquidTWI2 library v1.2.3 or later.
  2366. // For more info: https://github.com/lincomatic/LiquidTWI2
  2367. //
  2368. // Note: The PANELOLU2 encoder click input can either be directly connected to
  2369. // a pin (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
  2370. //
  2371. //#define LCD_I2C_PANELOLU2
  2372. i//
  2373. // Panucatt VIKI LCD with status LEDs,
  2374. // integrated click & L/R/U/D buttons, separate encoder inputs.
  2375. //
  2376. //#define LCD_I2C_VIKI
  2377.  
  2378. //
  2379. // CONTROLL
  2380. R TYPE: Shift register panels
  2381. //
  2382.  
  2383. //
  2384. // 2-wire Non-latching LCD
  2385. SR
  2386. from https://goo.gl/aJ
  2387.  
  2388. sH
  2389. // LCD configuration: https://reprap.org/
  2390. ik
  2391.  
  2392. SA
  2393. _3D_LCD
  2394. //
  2395. //#define SAV_3DLCD
  2396.  
  2397. //
  2398. // 3-wire SR LCD with
  2399. strobe using 74HC4094
  2400. // https://github.com/mikeshub/Sai
  2401. fi
  2402. hLCD
  2403. // Uses the co
  2404.  
  2405. d
  2406. rectly from Sailfish
  2407. //
  2408. //#define FF_INTERF
  2409. CEBOARD
  2410.  
  2411. //
  2412. // TFT GLCD Panel with Marlin
  2413. I
  2414. // Panel connected to main board by S
  2415. I
  2416. r I2C interface.
  2417. // See htt
  2418.  
  2419. :/
  2420. github.com/Serhiy-K/TFTGLCDAdapt
  2421. r
  2422. //
  2423. //#define TFTGLCD_PANEL_SPI
  2424. //#define TFTGLCD_PANEL_
  2425. 2C
  2426.  
  2427. //===========================================
  2428. ==
  2429. ===========================
  2430. ==
  2431. //======================
  2432.  
  2433.  LCD / Controller Selection  =======================
  2434. //=======================
  2435. =      (Graphical LCDs)      ========================
  2436. //=======================
  2437. =====================================================
  2438.  
  2439. //
  2440. // CONTROLLER TYPE: G
  2441. aphical 128x64 (DOGM)
  2442. //
  2443. // IMPORTANT: The U8glib library is required for Graph
  2444.  
  2445. al
  2446. Display!
  2447. //            https://github.com/o
  2448. ik
  2449. aus/U8glib_Arduino
  2450. //
  2451. // NOTE: If the LCD is unresponsive you may n
  2452. ed to reverse the plugs.
  2453. //
  2454.  
  2455. //
  2456. // RepRapDiscount FULL G
  2457. AP
  2458. IC Smart Controller
  2459. // https://reprap.org/wiki/RepRapDiscount_Full_Gra
  2460. hi
  2461.  
  2462. Sm
  2463. rt_Controller
  2464. //
  2465. #define REPRAP_DISCOUNT_FULL_G
  2466. APHIC_SMART_CONTROLLER
  2467.  
  2468. //
  2469. // K.3D Full Graphic Smart Controller
  2470. //
  2471. //#
  2472. ef
  2473. ne K3D_FULL_GRAPHIC_SMART_CONTROLLER
  2474.  
  2475. //
  2476. // ReprapWor
  2477.  
  2478. G
  2479. aphical LCD
  2480. // https://reprapworld.co
  2481. /?
  2482. roducts_details&products_id/1218
  2483. //
  2484. //#defi
  2485.  
  2486. R
  2487. PRAPWORLD_GRAPHICAL_LCD
  2488.  
  2489. //
  2490. // Activate one of these if you have a Panucatt Devices
  2491. // Viki 2.0 or mini Viki with Graphic LCD
  2492. // https://www.panucatt.com
  2493. //
  2494. //#define VIKI2
  2495. //#define miniVIKI
  2496.  //
  2497. // Alfawise Ex8 printer LCD marked as WYH L12864 COG
  2498. //
  2499. //#define WYH_L12864
  2500. V//
  2501. // MakerLab Mini Panel with graphic
  2502. // controller and SD support - https://reprap.org/wiki/Mini_panel
  2503. //
  2504. //#define MINIPANEL
  2505. n//
  2506. // MaKr3d Makr-Panel with graphic controller and SD support.
  2507. // https://reprap.org/wiki/MaKr3d_MaKrPanel
  2508. //
  2509. //#define MAKRPANEL
  2510. i//
  2511. // Adafruit ST7565 Full Graphic Controller.
  2512. // https://github.com/eboston/Adaf
  2513. ui
  2514. -ST7565-Full-Graphi
  2515.  
  2516. Co
  2517. troller/
  2518. //
  2519. //#define ELB_FULL_GRAPHIC_CONT
  2520. OLLER
  2521.  
  2522. //
  2523. // BQ LCD Smart Controller shipped by
  2524. // default with the BQ
  2525. He
  2526. hestos 2 and Witbox 2.
  2527. //
  2528. //#define B
  2529.  
  2530. LC
  2531. _SMART_CONTROLLER
  2532.  
  2533. //
  2534. // Cartesio UI
  2535. // http://mauk.cc/webshop/cartesio-shop/electronics/user-interface
  2536. //
  2537. //#define CARTESIO_UI
  2538. ///
  2539. // LCD for Melzi Card with Graphical LCD
  2540. //
  2541. //#define LCD_FOR_MELZI
  2542. n//
  2543. // Original Ulticontroller from Ultimaker 2 printer with SSD1309 I2C display and encoder
  2544. // https://github.com/Ultimaker/Ultimaker2/tree/master/1249_Ulticontroller_Board_(x1)
  2545. //
  2546. //#define ULTI_CONTROLLER
  2547.  
  2548. //
  2549. // MKS MINI12864 with graphic controller and SD support
  2550. // https://repra
  2551. .o
  2552. g/wiki/MKS_MINI_12864
  2553. //
  2554. //#define MKS_MINI_12864
  2555. h//
  2556. // MKS MINI12864 V3 is an alias for FYSETC_MINI_12864_2_1. Type A/B. NeoPixel RGB Backlight.
  2557. //
  2558. //#define MKS_MINI_12864_V3
  2559. 3//
  2560. // MKS LCD12864A/B with graphic controller and SD support. Follows MKS_MINI_12864 pinout.
  2561. // https://www.aliexpress.com/item/33018110072.html
  2562. //
  2563. //#define MKS_LCD12864A
  2564. //#define MKS_LCD12864B
  2565. t//
  2566. // FYSETC variant of the MINI12864 graphic controller with SD support
  2567. // https://wiki.fysetc.com/Mini12864_Panel/
  2568. //
  2569. //#define FYSETC_MINI_12864_X_X    // Type C/D/E/F. No tunable RGB Backlight by default
  2570. //#define FYSETC_MINI_12864_1_2    // Type C/D/E/F. Simple RGB Backlight (always on)
  2571. //#define FYSETC_MINI_12864_2_0    // Type A/B. Discreet RGB Backlight
  2572. //#define FYSETC_MINI_12864_2_1    // Type A/B. NeoPixel RGB Backlight
  2573. //#define FYSETC_GENERIC_12864_1_1 // Larger display with basic ON/OFF backlight.
  2574.  //
  2575. // BigTreeTech Mini 12864 V1.0 is an alias for FYSETC_MINI_12864_2_1. Type A/B. NeoPixel RGB Backlight.
  2576. //
  2577. //#define BTT_MINI_12864_V1
  2578. 0//
  2579. // Factory display for Creality CR-10
  2580. // https://www.aliexpress.com/item/32833148327.html
  2581. //
  2582. // This is RAMPS-compatible using a single 10-pin connector.
  2583. // (For CR-10 owners who want to replace the Melzi Creality board but retain the display)
  2584. //
  2585. //#define CR10_STOCKDISPLAY
  2586. w//
  2587. // Ender-2 OEM display, a variant of the MKS_MINI_12864
  2588. //
  2589. //#define ENDER2_STOCKDISPLAY
  2590. S//
  2591. // ANET and Tronxy Graphical Controller
  2592. //
  2593. // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
  2594. // A clone of the RepRapDiscount full graphics display but with
  2595. // different pins/wiring (see pins_ANET_10.h). Enable one of these.
  2596. //
  2597. //#define ANET_FULL_GRAPHICS_LCD
  2598. //#define ANET_FULL_GRAPHICS_LCD_ALT_WIRING
  2599. .//
  2600. // AZSMZ 12864 LCD with SD
  2601. // https://www.aliexpress.com/
  2602. tem/32837222770.html
  2603. //
  2604. //#define AZSMZ_128
  2605.  
  2606.  
  2607.  
  2608. //
  2609. // Silvergate GLCD controller
  2610. // https://github.com/android444/Silvergate
  2611. //
  2612. //#define SILVER_GATE_GLCD_CONTROLLER
  2613. g//=============================================================================
  2614. //==============================  OLED Displays  ==============================
  2615. //=============================================================================
  2616. =//
  2617. // SSD1306 OLED full graphics generic display
  2618. //
  2619. //#define U8GLIB_SSD1306
  2620. =//
  2621. // SAV OLEd LCD module support using either SSD1306 or SH1106 based LCD modules
  2622. //
  2623. //#define SAV_3DGLCD
  2624. #if ENABLED(SAV_3DGLCD)
  2625.  s#define U8GLIB_SSD1306
  2626. 13//#define U8GLIB_SH1106
  2627. #endif
  2628.  
  2629. /
  2630.  
  2631. // TinyBoy2 128x64
  2632. LED / Encoder Panel
  2633. //
  2634. //#define OLED_PANEL_TINYBOY2
  2635.  
  2636. //
  2637. // MKS OLED 1.3"
  2638. 28×64
  2639.  
  2640. ll
  2641. Graphics Controller
  2642. // https://reprap.o
  2643. g/
  2644. iki/MKS_12864OLED
  2645. //
  2646. // Tiny,
  2647.  
  2648. ut
  2649. very sharp OLED display
  2650. //
  2651. //#define MKS_12864OLr
  2652.          // Uses the SH1106 controller
  2653. de
  2654. ault)
  2655. //#define MKS_12864OLED_SSD130
  2656.  // Uses the SSD1306 controller
  2657.  //
  2658. // Zonestar OLED 128×64 Full Graphics Controller
  2659. //
  2660. //#define ZONESTAR_12864LCD           // Graphical (DOGM) with ST7920 controller
  2661. //#define ZONESTAR_12864OLED          // 1.3" OLED with SH1106 controller (default)
  2662. //#define ZONESTAR_12864OLED_SSD1306  // 0.96" OLED with SSD1306 controller
  2663. i//
  2664. // Einstart S OLED SSD1306
  2665. //
  2666. //#define U8GLIB_SH1106_EINSTART
  2667.  
  2668. //
  2669. // Overlord OLED display/controller
  2670.  
  2671. th
  2672. i2c buzzer and LEDs
  2673. //
  2674. //#
  2675. ef
  2676. ne OVERLORD_OLED
  2677.  
  2678. //
  2679. // FYSETC O
  2680.  
  2681. D
  2682. .42" 128×64 Full Graphics Controller with WS2812 RGB
  2683. // Wher
  2684. t
  2685. find : https://www.ali
  2686.  
  2687. pr
  2688. ss.com/item/4000345255731.html
  2689. //#define FYSETC_242_OLED_12864   // B
  2690. es the SSD1309 controller
  2691.  
  2692. //
  2693. // K.3D SSD1309 OLED 2.42" 128×64 Full
  2694. raphics Controller
  2695. //
  2696. //#define K3D_242_OLED_CONTROLLER   // Sof
  2697.  
  2698. ar
  2699. SPI
  2700.  
  2701. //==================================================r
  2702. ==
  2703. ======================
  2704. //==========================
  2705.  
  2706. xtensible UI Displays ===========================
  2707. //===========================
  2708. =================================================
  2709.  
  2710. //
  2711. // DGUS Touch Display wit
  2712. DWIN OS. (Choose one.)
  2713. // ORIGIN : https://www.aliexpress.com/item/32993409517
  2714.  
  2715. tm
  2716.  
  2717. // FYSETC : https://www.aliexpress.com/item/3296
  2718. 471929.html
  2719. // MKS    : https://www.aliexpress.com/item/1005
  2720. 02008179262.html
  2721. //
  2722. // Flash display with DGUS Displays for
  2723. arlin:
  2724. //  - Format the SD card to FAT32 with an allocation size
  2725. f
  2726. kb.
  2727. //  - Download files as specified for your
  2728. ype of display.
  2729. //  - Plug the microSD card into the back of the
  2730. isplay.
  2731. //  - Boot the display and wait for the update to c
  2732. mplete.
  2733. //
  2734. // ORIGIN (Marlin DWIN_SET)
  2735. //  - Download htt
  2736. s://github.com/coldtobi/Marlin_DGUS_Resources
  2737. //  - Copy th
  2738. d
  2739. wnloaded DWIN_SET folder to
  2740. the SD card.
  2741. //
  2742. // FYSETC (Supplier default)
  2743. //  - Download http
  2744. ://github.com/FYSETC/FYSTLCD-2.0
  2745. //  - Copy the downloade
  2746. S
  2747. REEN folder to the SD card.
  2748. //
  2749. // HIPRECY (Supplier default)
  2750. //  - Download https://github.com/HiPrecy/Touch-Lcd-LEO
  2751. //  - Copy the downloaded DWIN_SET folder to the SD card.
  2752. //
  2753. // MKS (MKS-H43) (Supplier default)
  2754. //  - Download https://github.com/makerbase-mks/MKS-H43
  2755. //  - Copy the downloaded DWIN_SET folder to the SD card.
  2756. //
  2757. // RELOADED (T5UID1)
  2758. //  - Download https://github.com/Desuuuu/DGUS-reloaded/releases
  2759. //  - Copy the downloaded DWIN_SET folder to the SD card.
  2760. //
  2761. //#define DGUS_LCD_UI_ORIGIN
  2762. //#define DGUS_LCD_UI_FYSETC
  2763. //#define DGUS_LCD_UI_HIPRECY
  2764. //#define DGUS_LCD_UI_MKS
  2765. //#define DGUS_LCD_UI_RELOADED
  2766. #if ENABLED(DGUS_LCD_UI_MKS)
  2767. in#define USE_MKS_GREEN_UI
  2768. #endif
  2769. D//
  2770. // Touch-screen LCD for Malyan M200/M300 printers
  2771. //
  2772. //#define MALYAN_LCD
  2773. #if ENABLED(MALYAN_LCD)
  2774.  
  2775. #defi
  2776.  
  2777. L
  2778. D_SERIAL_PORT 1  // Default is 1 for Malyan M200
  2779. #endif
  2780. d//
  2781. // Touch UI for FTDI EVE (FT800/FT810) displays
  2782. // See Configuration_adv.h for all configuration options.
  2783. //
  2784. //#define TOUCH_UI_FTDI_EVE
  2785. T//
  2786. // Touch-screen LCD for Anycubic printers
  2787. //
  2788. //#define ANYCUBIC_LCD_I3MEGA
  2789. //#define ANYCUBIC_LCD_CHIRON
  2790. #if EITHER(ANYCUBIC_LCD_I3MEGA, ANYCUBIC_LCD_CHIRON)
  2791. de#define LCD_SERIAL_PORT 3  // Default is 3 for Anycubic
  2792. if//#define ANYCUBIC_LCD_DEBUG
  2793. #endif
  2794. C//
  2795. // 320x240 Nextion 2.8" serial TFT Resistive Touch Screen NX3224T028
  2796. //
  2797. //#define NEXTION_TFT
  2798. #if
  2799. NABLED
  2800.  
  2801. EX
  2802. ION_TFT)
  2803.   #define LCD_SERIAL_PORT 1  // Default is 1 for Nextion
  2804. #e
  2805. di
  2806.  
  2807.  
  2808. //
  2809. // Third-party o
  2810. vendor-customized contr
  2811.   er interfaces.
  2812. // Sources should be installed in 'src/
  2813. cd/ext
  2814.  
  2815. '.
  2816. //
  2817. //#define EXTENSIBLE_UI
  2818.  
  2819. #if ENABLED(EXTENSIBLE_UI)
  2820.   /
  2821. #define EXTUI_LOCAL_BEEPER // Enables use of local
  2822. Be
  2823. per pin with external d
  2824.  
  2825. play
  2826. #endif
  2827.  
  2828. //===========
  2829.   ===============================================================
  2830. //===================
  2831. ======
  2832.  
  2833. === Graphical TFTs ==============================
  2834. //===========================
  2835. =================================================
  2836.  
  2837. /**
  2838.  * Specific TFT Model Pr
  2839. sets. Enable one of the following options
  2840.  * or enable TFT_GENERIC and set sub-
  2841.  
  2842. /**
  2843.  * Speci//
  2844. // 480x320, 3.5", SPI Display with Rotary Encoder from MKS
  2845. // Usually paired with MKS Robin Nano V2 & V3
  2846. //
  2847. //#define MKS_TS35_V2_0
  2848. D//
  2849. // 320x240, 2.4", FSMC Display From MKS
  2850. // Usually paired with MKS Robin Nano V1.2
  2851. //
  2852. //#define MKS_ROBIN_TFT24
  2853.  //
  2854. // 320x240, 2.8", FSMC Display From MKS
  2855. // Usually paired with MKS Robin Nano V1.2
  2856. //
  2857. //#define MKS_ROBIN_TFT28
  2858.  //
  2859. // 320x240, 3.2", FSMC Display From MKS
  2860. // Usually paired with MKS Robin Nano V1.2
  2861. //
  2862. //#define MKS_ROBIN_TFT32
  2863.  //
  2864. // 480x320, 3.5", FSMC Display From MKS
  2865. // Usually paired with MKS Robin Nano V1.2
  2866. //
  2867. //#define MKS_ROBIN_TFT35
  2868.  //
  2869. // 480x272, 4.3", FSMC Display From MKS
  2870. //
  2871. //#define MKS_ROBIN_TFT43
  2872. n//
  2873. // 320x240, 3.2", FSMC Display From MKS
  2874. // Usually paired with MKS Robin
  2875. //
  2876. //#define MKS_ROBIN_TFT_V1_1R
  2877.  
  2878. //
  2879. // 480x320, 3.5", FSMC Stock Display fr
  2880. m TronxXY
  2881. //
  2882. //#define TFT_TRONX
  2883. _X
  2884. SA
  2885.  
  2886. //
  2887. // 480x320, 3.5", FSMC
  2888.  
  2889. to
  2890. k Display from AnyCubic
  2891. //
  2892. //#define ANYCUBIC_TFT
  2893. 5
  2894.  
  2895. //
  2896. // 320x240, 2.8", FSMC
  2897.  
  2898. to
  2899. k Display from Longer/Alfawise
  2900. //
  2901. //#define LONGER
  2902. LK
  2903. TFT28
  2904.  
  2905. //
  2906. // 320x240, 2.
  2907.  
  2908. ,
  2909. SMC Stock Display from ET4
  2910. //
  2911. //#define ANET_ET4_TFT28
  2912.  
  2913. /
  2914.  
  2915. /
  2916. 480x320, 3.5", FSMC Stoc
  2917.  
  2918. Di
  2919. play from ET5
  2920. //
  2921. //#define ANET_ET5_TFT35
  2922.  
  2923. //
  2924. //
  2925. 1024x600, 7", RGB Stock
  2926.  
  2927. sp
  2928. ay with Rotary Encoder from BIQU-BX
  2929. //
  2930. //#def
  2931. ne
  2932. BIQU_BX_TFT70
  2933.  
  2934. //
  2935. // 480
  2936.  
  2937. 20
  2938. 3.5", SPI Stock Display with Rotary Encoder from BIQU B1 SE Series
  2939. //
  2940. //#define BTT_TFT35_SPI
  2941.  
  2942. 1_
  2943.  
  2944.  
  2945. //
  2946. // Generic TFT with detailed options
  2947. //
  2948. //#define TFT_GENERIC
  2949. #if ENABLED
  2950. TF
  2951. _GENERIC)
  2952.   // :[ 'AUTO', 'S
  2953.  
  2954. 73
  2955. ', 'ST7789', 'ST7796', 'R61505', 'IL
  2956. 93
  2957. 8', 'ILI9341', 'ILI94
  2958. 8' ]
  2959.   #define TFT_DRIVE
  2960.   UTO
  2961.  
  2962.   // Interface. Enable one of the following options:
  2963.   //#define TFT_INTERFACE_FSM
  2964.   //#define TFT_INTERFAC
  2965.  
  2966.   I
  2967.  
  2968.   // TFT Resolution. Enable one of the followin
  2969.   ptions:
  2970.   //#define TFT_RES_
  2971.   x240
  2972.   //#define TFT_RES_48
  2973.  
  2974.   2
  2975.   //#define TFT_RES_480x320
  2976.   //#define TFT_RES_1024x
  2977.  
  2978. #endif
  2979.  
  2980. /**
  2981.  * TFT UI -
  2982.   r Interface Selection. En
  2983.   e one of the following op
  2984.   ns:
  2985.  *
  2986.  *   TFT_CLASSIC_UI
  2987. - Emul
  2988.  
  2989. /**
  2990.  * TFT UI - User Interface Selection. Enable one of the following options:
  2991.  *
  2992.  *   TFT_CLASSIC_UI - Emulated DOGM - 128x64 Upscaled
  2993.  *   TFT_COLOR_UI   - Marlin Default Menus, Touch Friendly, using full TFT capabilities
  2994.  *   TFT_LVGL_UI    - A Modern UI using LVGL
  2995.  *
  2996.  *   For LVGL_UI also copy the 'asset//#define TFT_CLASSIC_UI
  2997. //#define TFT_COLOR_UI
  2998. //#define TFT_LVGL_UI
  2999. o#if ENABLED(TFT_LVGL_UI)
  3000. fi//#define MKS_WIFI_MODULE  // MKS WiFi module
  3001. #endif
  3002. L/**
  3003.  * TFT Rotation. Set to one of the following values:
  3004.  *
  3005.  *   TFT_ROTATE_90,  TFT_ROTATE_90_MIRROR_X,  TFT_ROTATE_90_MIRROR_Y,
  3006.  *   TFT_ROTATE_180, TFT_ROTATE_180_MIRROR_X, TFT_ROTATE_180_MIRROR_Y,
  3007.  *   TFT_ROTATE_270, TFT_ROTATE_270_MIRROR_X, TFT_ROTATE_270_MIRROR_Y,
  3008.  *   TFT_MIRROR_X, TFT_MIRROR_Y, TFT_NO_ROTATION
  3009.  */T//#define TFT_ROTATION TFT_NO_ROTATION
  3010. A//=============================================================================
  3011. //============================  Other Controllers  ============================
  3012. //=============================================================================
  3013.  //
  3014. // Ender-3 v2 OEM display. A DWIN display with Rotary Encoder.
  3015. //
  3016. //#define DWIN_CREALITY_LCD           // Creality UI
  3017. //#define DWIN_CREALITY_LCD_ENHANCED  // Enhanced UI
  3018. //#define DWIN_CREALITY_LCD_JYERSUI   // Jyers UI by Jacob Myers
  3019. //#define DWIN_MARLINUI_PORTRAIT      // MarlinUI (portrait orientation)
  3020. //#define DWIN_MARLINUI_LANDSCAPE     // MarlinUI (landscape orientation)
  3021.  //
  3022. // Touch Screen Settings
  3023. //
  3024. //#
  3025. efine TOUCH_SCREEN
  3026. #if ENABLED(TOUCH_SCREEN)
  3027.   #define BUTTON_DELAY_EDIT
  3028.  
  3029. 0 // (ms) Button repeat delay for edit screens
  3030. SC#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
  3031. s) //#define TOUCH_IDLE_SLEEP 300 // (secs) Turn off the TFT backlight if set (5mn)
  3032. on #define TOUCH_SCREEN_CALIBRATION
  3033. ne //#define TOUCH_CALIBRATION_X 12316
  3034. of//#define TOUCH_CALIBRATION_Y -8981
  3035.  //#define TOUCH_OFFSET_X      
  3036.  
  3037.   3
  3038.   //#define TOUCH_OFFSET_Y      
  3039.   7
  3040.   //#define TOUCH_ORIENTATION TOU
  3041.   LANDSCAPE
  3042.  
  3043.   #if BOTH(TOUCH_SCREEN_
  3044.   IBRATION, EEPROM_SETTINGS)
  3045.     #def
  3046.   TOUCH_CALIBRATION_AUTO_SAVE // Auto save s
  3047.  
  3048.   ssful calibration values to EEPROM
  3049.   #endif
  3050.  
  3051.   #if
  3052.     ED(TFT_COLOR_UI)
  3053.     //#define SINGLE_TOUCH_NAVIGATION
  3054.   #endif
  3055. #endif
  3056.  
  3057. //
  3058. // RepRapWorl
  3059.   EPRAPW
  3060.  
  3061.   _KEYPAD v1.1
  3062. // https://r
  3063.     world.com/products/electronics/ra
  3064.   /keypa
  3065. _v1_0_
  3066.  
  3067. ll
  3068. _assembled/
  3069. //
  3070. //#define REPRAPWORLD_K
  3071. YPAD
  3072. //#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // (mm) Distance to move per key-
  3073. re
  3074. s
  3075.  
  3076. //
  3077. // EasyThreeD ET-4000+
  3078. with button input and status LED
  3079. //
  3080. //#define EASYTHREED_UI
  3081.  
  3082. //===================
  3083.  
  3084. ==
  3085. =====================================================
  3086. /
  3087. ==
  3088. =======================
  3089.  
  3090. === Extra Features ==============================
  3091. //===========================
  3092. =================================================
  3093.  
  3094. // @section extras
  3095.  
  3096. // Set n
  3097. mber of user-controlled fans. Disable to use all board-defined fans.
  3098. // :[1,2,3
  3099.  
  3100. ,5,6,7,8]
  3101. //#defin
  3102.  
  3103. NUM_M106_FANS 1
  3104.  
  3105. // Use software PWM to drive the fan, as for the heaters. Th
  3106. s uses a very low fre
  3107. uency
  3108. // which is not as
  3109.  
  3110. noying as with the hardware PWM. On the other hand, if this frequency
  3111. // is too low, you
  3112. should also increment SOFT_PWM_SCALE.
  3113. //#define FAN_SOFT_PWM
  3114.  
  3115. // Incrementing this by 1 wi
  3116. l double the software PWM frequency,
  3117. // affecting heater
  3118. , and the fan if FAN_S
  3119.  
  3120. T_PWM is enabled.
  3121. // However, control resolution will be halved f
  3122. r each increment;
  3123. // at zero value, there are 128 effective c
  3124. ntrol positions.
  3125. // :[0,1,2,3,4,5,6,7]
  3126. #define SOFT_PWM_SCALE 0
  3127.  
  3128. // If SOFT_PWM_SCALE is set to a value higher than 0, dithering can
  3129. // be used to mitigate the associated resolution loss. If enabled,
  3130. // some of the PWM cycles are stretched so on average the desired
  3131. // duty cycle is attained.
  3132. //#define SOFT_PWM_DITHER
  3133. f// Temperature status LEDs that display the hotend and bed temperature.
  3134. // If all hotends, bed temperature, and target temperature are under 54C
  3135. // then the BLUE led is on. Otherwise the RED led is on. (1C hysteresis)
  3136. //#define TEMP_STAT_LEDS
  3137. e// Support for the BariCUDA Paste Extruder
  3138. //#define BARICUDA
  3139. s// Support for BlinkM/CyzRgb
  3140. //#define BLINKM
  3141.  
  3142. // Support for PCA9632 PWM LED driver
  3143. //#d
  3144. fine PCA9632
  3145.  
  3146. // S
  3147.  
  3148. port for PCA9533 PWM LED dri
  3149. er
  3150. //#define PCA
  3151.  
  3152. 33
  3153.  
  3154. /**
  3155.  * RGB LED / LED Strip Contro
  3156.  
  3157.  *
  3158.  * Enable sup
  3159.  
  3160. rt for an RGB LED connected to 5V dig
  3161. tal pins, or
  3162.  * a
  3163.  
  3164. /**
  3165.  * RGB LED / LED Strip Control
  3166.  *
  3167.  * Enable support for an RGB LED connected to 5V digital pins, or
  3168.  * an RGB Strip connected to MOSFETs controlled by digital pins.
  3169.  *
  3170.  * Adds the M150 command to set the LED (or LED strip) color.
  3171.  * If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
  3172.  * luminance values can be set from 0 to 255.
  3173.  * For NeoPixel LED an overall brightness parameter is also available.
  3174.  *
  3175.  * *** CAUTION ***
  3176.  *  LED Strips require a MOSFET Chip between PWM lines and LEDs,
  3177.  *  as the Arduino cannot handle the current the LEDs will require.
  3178.  *  Failure to follow this precaution can destroy your Arduino!
  3179.  *  NOTE: A separate 5V power supply is required! The NeoPixel LED needs
  3180.  *  more current than the Arduino 5V linea//#define RGB_LED
  3181. //#define RGBW_LED
  3182. O#if EITHER(RGB_LED, RGBW_LED)
  3183. nl//#define RGB_LED_R_PIN 34
  3184. op//#define RGB_LED_G_PIN 43
  3185. D
  3186. //#define RGB_LED_
  3187.  
  3188. PIN 35
  3189.   //#define RGB_LED_W_
  3190.   -1
  3191. #endif
  3192.  
  3193. // Support for
  3194.   afruit NeoPixel LED driver
  3195. //#define NEOPIXEL_LED
  3196. #if ENABLED(NEOPIXEL_LED)
  3197. W_#define NEOPIXEL_TYPE   NEO_GRBW // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
  3198. PI//#define NEOPIXEL_PIN     4     // LED driving pin
  3199. ee//#define NEOPIXEL2_TYPE NEOPIXEL_TYPE
  3200. it//#define NEOPIXEL2_PIN    5
  3201. IX#define NEOPIXEL_PIXELS 30       // Number of LEDs in the strip. (Longest strip when NEOPIXEL2_SEPARATE is disabled.)
  3202. NE#define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
  3203. S_#define NEOPIXEL_BRIGHTNESS 127  // Initial brightness (0-255)
  3204.  b//#define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
  3205. NES// Support for second Adafruit NeoPixel LED driver controlled with M150 S1 ...
  3206. e //#define NEOPIXEL2_SEPARATE
  3207.  #if ENABLED(NEOPIXEL2_SEPARATE)
  3208.     #define NEOPIXEL2_PIXELS      15  // Num
  3209.   of LEDs in the second strip
  3210.    #define NEOPIXEL2_BRIGHTNESS
  3211.     // Initial brightness (0-255)
  3212.     #define NEOPIXEL2_STARTUP_TEST    //
  3213.     through colors at startup
  3214.   #else
  3215.     //#define NEOPIXEL2_INSE
  3216.         // Default behavior is NeoPixel 2 in parallel
  3217.   #endif
  3218.  
  3219.   // Us
  3220.   ome o
  3221.     NeoPixel LEDs for static (background) lighting
  3222.   //#define NEOPIXEL_BKGD_INDEX
  3223.   RST  0
  3224.  
  3225.            // Index of the first background LED
  3226.   //#define NEOPIX
  3227.   BKGD_INDEX_LAST   5              // Index of the last background LED
  3228.   //#define NEOPIXE
  3229.   KGD_COLOR { 255, 255, 255, 0 }  // R, G, B, W
  3230.   //#define NEOPIXEL_BKGD_ALWAYS_ON      
  3231.            // Keep the backlight on when other NeoPixels are off
  3232. #
  3233.   if
  3234.  
  3235. /**
  3236.  * Printer Event LEDs
  3237.  *
  3238.  * During printing, the LEDs will reflect the printer status:
  3239.  *
  3240.  *  - G
  3241. aduall
  3242.  
  3243. /**
  3244.  * Printer Event LEDs
  3245.  *
  3246.  * During printing, the LEDs will reflect the printer status:
  3247.  *
  3248.  *  - Gradually change from blue to violet as the heated bed gets to target temp
  3249.  *  - Gradually change from violet to red as the hotend gets to temperature
  3250.  *  - Change to white to illuminate work surface
  3251.  *  - Change to g#if ANY(BLINKM, RGB_LED, RGBW_LED, PCA9632, PCA9533, NEOPIXEL_LED)
  3252. is#define PRINTER_EVENT_LEDS
  3253. #endif
  3254. o/**
  3255.  * Number of servos
  3256.  *
  3257.  * For some servo-related options NUM_SERVOS will be set automatically.
  3258.  * Set this manually if there are extra servos needing manual control.
  3259.  * Set to 0 to turn off servo support.
  3260.  */S//#define NUM_SERVOS 3 // Note: Servo index starts with 0 for M280-M282 commands
  3261.  // (ms) Delay before the next move will start, to give the servo time to reach its target angle.
  3262. // 300ms is a good value but you can try less delay.
  3263. // If the servo can't reach the requested position, increase it.
  3264. #define SERVO_DELAY { 300 }
  3265.  // Only power servos during movement, otherwise leave off to prevent jitter
  3266. //#define DEACTIVATE_SERVOS_AFTER_MOVE
  3267. l// Edit servo angles with M281 and save to EEPROM with M500
  3268. //#define EDITABLE_SERVO_ANGLES
  3269. E// Disable servo with M282 to reduce power consumption, noise, and heat when not in use
  3270. //#define SERVO_DETACH_GCODE

Raw Paste

Login or Register to edit or fork this paste. It's free.