/**
* Configuration.h
*
* 基本设置如:
*
* - 电子元器件类型
* - 温度传感器类型
* - 打印机尺寸
* - 限位开关配置
* - 液晶显示控制器
* - 额外功能
*
* 高级设置在 Configuration_adv.h 文件中
*
*/
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#define CONFIGURATION_H_VERSION 010100
//===========================================================================
//============================= 开 始 =============================
//===========================================================================
/**
* Here are some standard links for getting your machine calibrated:
*
* http://reprap.org/wiki/Calibration
* http://youtu.be/wAL9d7FgInk
* http://calculator.josefprusa.cz
* http://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
* http://www.thingiverse.com/thing:5573
* https://sites.google.com/site/repraplogphase/calibration-of-your-reprap
* http://www.thingiverse.com/thing:298812
*/
//===========================================================================
//============================= 三角洲打印机 ===============================
//===========================================================================
// For a Delta printer replace the configuration files with the files in the
// example_configurations/delta directory.
//
//===========================================================================
//============================= SCARA Printer 平面关节型机器人================
//===========================================================================
// For a Scara printer replace the configuration files with the files in the
// example_configurations/SCARA directory.
//
// @section info
// User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
// build by the user have been successfully uploaded into firmware.
#define STRING_CONFIG_H_AUTHOR "(none, default config)" //修改作者.
#define SHOW_BOOTSCREEN
#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // 版本号 将被显示在第一行
#define STRING_SPLASH_LINE2 WEBSITE_URL // 网络地址 将被显示在第二行
//
// *** 供应商请阅读 *****************************************************
/*
// Marlin 现在允许在机器启动显示供应商的启动图像
当show_custom_bootscreen被定义, Marlin 会首先显示自定义的启动图像然后在显示默认开机图像。
我们建议你利用这一新功能来修改开机图像。可参照BQ hephestos 2示例配置文件。
//#define SHOW_CUSTOM_BOOTSCREEN
// @section machine
*/
/**
* 选择一个用于与主机通信的串口
* 这允许使用无线适配器连接(例如)非默认端口
* 无论如何进行设置,串口0 通常作为 Arduino 的程序下载口
*
* :[0, 1, 2, 3, 4, 5, 6, 7]
*/
#define SERIAL_PORT 0
/**
* 此设置确定打印机的通信速度。 波特率设置
*
* 250000 works in most cases, but you might try a lower speed if
* you commonly experience drop-outs during host printing.
*
* :[2400, 9600, 19200, 38400, 57600, 115200, 250000]
*/
#define BAUDRATE 250000
// 在AT90USB设备上启用蓝牙串行接口
//#define BLUETOOTH
// 下面用于定义你所对应的电路板类型
// 请从 boards.h 中选择相对应的名称
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif
// 设置机器名称
// 在液晶显示器中显示“ 3D Printer 准备就绪”的消息
//#define CUSTOM_MACHINE_NAME "3D Printer"
// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
// 使用UUID进行设置机器的唯一标识码
//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
// @section extruder
//===========================================================================
//============================= 挤出机信息设置===============================
//===========================================================================
// 用于定义挤出机的数量
// :[1, 2, 3, 4, 5]
#define EXTRUDERS 1
// 用于定义是否属于“多进一出”
//#define SINGLENOZZLE
// A dual extruder that uses a single stepper motor 双螺杆挤出机,使用一个单一的步进电机
//#define SWITCHING_EXTRUDER
#if ENABLED(SWITCHING_EXTRUDER)
#define SWITCHING_EXTRUDER_SERVO_NR 0
#define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1
#endif
// A dual-nozzle that uses a servomotor to raise/lower one of the nozzles
//双喷嘴,采用伺服电机来提高/降低一个喷嘴
//#define SWITCHING_NOZZLE
#if ENABLED(SWITCHING_NOZZLE)
#define SWITCHING_NOZZLE_SERVO_NR 0
#define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1
//#define HOTEND_OFFSET_Z { 0.0, 0.0 }
#endif
/**
* "混合挤出机"
* - 增加了M165 这么一个新的代码,用于设置当前混合操作。
* - 通过程序控制多个步进电机的运程来调整混合比例。
* - 这个实现只支持单螺杆挤出机。
* - Enable DIRECT_MIXING_IN_G1 for Pia Taubert's reference implementation
*/
//#define MIXING_EXTRUDER 1
#if ENABLED(MIXING_EXTRUDER)
#define MIXING_STEPPERS 2 // 混合挤出机的步进电机数
#define MIXING_VIRTUAL_TOOLS 16 // 利用 M163 和 M164来使用虚拟工具法。
//#define DIRECT_MIXING_IN_G1 // 允许在G1运用命令中使用ABCDHI 混合
#endif
// 挤出机的偏移量设置 (如果使用多个挤出机且在固件位置不同时可取消注释).
// 偏移量 X=0, Y=0 是指 挤出机0的热端位置 (default extruder).
// 对于其他的挤出头的偏移量则是它们到挤出机0之间的距离
//#define HOTEND_OFFSET_X {0.0, 20.00} // (in mm) 每个挤出机,在X轴上的喷头偏移
//#define HOTEND_OFFSET_Y {0.0, 5.00} // (in mm) 每个挤出机,在Y轴上的喷头偏移
//===========================================================================
//============================= 机械信息设置 ===============================
//===========================================================================
// @section machine
/**
* 在这里选择你的电源。如果你没有连接ps_on_pin 则使用0
*
* 0 = No Power Switch 没有电源开关
* 1 = ATX
* 2 = X-Box 360 203Watts ( 蓝线连接PS_ON,红线连接VCC )
*
* :{ 0:'No power switch', 1:'ATX', 2:'X-Box 360' }
*/
#define POWER_SUPPLY 0
#if POWER_SUPPLY > 0
// 让它初始状态为关闭
// 为步进电机和加热器供电则需要使用M80来开启。
//#define PS_DEFAULT_OFF
#endif
//===========================================================================
//============================= 温度信息设置 ===============================
//===========================================================================
// @section temperature
//===========================================================================
//============================= 加热 设置 ============================
//===========================================================================
/**
* --NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table
*
* 温度传感器类型:
*
* -3 : thermocouple with MAX31855 (only for sensor 0)
* -2 : thermocouple with MAX6675 (only for sensor 0)
* -1 : thermocouple with AD595
* 0 : not used
* 1 : 100k thermistor - best choice for EPCOS 100k (4.7k pullup)
* 2 : 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
* 3 : Mendel-parts thermistor (4.7k pullup)
* 4 : 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
* 5 : 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)
* 6 : 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)
* 7 : 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)
* 71 : 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)
* 8 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
* 9 : 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
* 10 : 100k RS thermistor 198-961 (4.7k pullup)
* 11 : 100k beta 3950 1% thermistor (4.7k pullup)
* 12 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)
* 13 : 100k Hisens 3950 1% up to 300°C for hotend "Simple ONE " & "Hotend "All In ONE"
* 20 : the PT100 circuit found in the Ultimainboard V2.x
* 60 : 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
* 66 : 4.7M High Temperature thermistor from Dyze Design
* 70 : the 100K thermistor found in the bq Hephestos 2
* 75 : 100k Generic Silicon Heat Pad with NTC 100K MGB18-104F39050L32 thermistor
*
* 1k ohm pullup tables - This is atypical, and requires changing out the 4.7k pullup for 1k.
* (but gives greater accuracy and more stable PID)
* 51 : 100k thermistor - EPCOS (1k pullup)
* 52 : 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
* 55 : 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)
*
* 1047 : Pt1000 with 4k7 pullup
* 1010 : Pt1000 with 1k pullup (non standard)
* 147 : Pt100 with 4k7 pullup
* 110 : Pt100 with 1k pullup (non standard)
*
* Use these for Testing or Development purposes. NEVER for production machine.
* 998 : Dummy Table that ALWAYS reads 25°C or the temperature defined below.
* 999 : Dummy Table that ALWAYS reads 100°C or the temperature defined below.
*
* :{ '0': "Not used", '1':"100k / 4.7k - EPCOS", '2':"200k / 4.7k - ATC Semitec 204GT-2", '3':"Mendel-parts / 4.7k", '4':"10k !! do not use for a hotend. Bad resolution at high temp. !!", '5':"100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '6':"100k / 4.7k EPCOS - Not as accurate as Table 1", '7':"100k / 4.7k Honeywell 135-104LAG-J01", '8':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT", '9':"100k / 4.7k GE Sensing AL03006-58.2K-97-G1", '10':"100k / 4.7k RS 198-961", '11':"100k / 4.7k beta 3950 1%", '12':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed)", '13':"100k Hisens 3950 1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE'", '20':"PT100 (Ultimainboard V2.x)", '51':"100k / 1k - EPCOS", '52':"200k / 1k - ATC Semitec 204GT-2", '55':"100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '60':"100k Maker's Tool Works Kapton Bed Thermistor beta=3950", '66':"Dyze Design 4.7M High Temperature thermistor", '70':"the 100K thermistor found in the bq Hephestos 2", '71':"100k / 4.7k Honeywell 135-104LAF-J01", '147':"Pt100 / 4.7k", '1047':"Pt1000 / 4.7k", '110':"Pt100 / 1k (non-standard)", '1010':"Pt1000 / 1k (non standard)", '-3':"Thermocouple + MAX31855 (only for sensor 0)", '-2':"Thermocouple + MAX6675 (only for sensor 0)", '-1':"Thermocouple + AD595",'998':"Dummy 1", '999':"Dummy 2" }
*/
#define TEMP_SENSOR_0 1 //表示使用100K电阻的传感器
#define TEMP_SENSOR_1 0 //表示没有使用
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_3 0
#define TEMP_SENSOR_4 0
#define TEMP_SENSOR_BED 0
// 热敏电阻在常温下的读数,用于998和999
#define DUMMY_THERMISTOR_998_VALUE 25
#define DUMMY_THERMISTOR_999_VALUE 100
// 使用温度传感器1作为传感器0的冗余。如果两个读数差别过大则会被放弃。
// from the two sensors differ too much the print will be aborted.
//#define TEMP_SENSOR_1_AS_REDUNDANT
#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
// 挤出机的温度必须接近目标,否则一直等待直到M109返回成功
#define TEMP_RESIDENCY_TIME 10 // (seconds)
#define TEMP_HYSTERESIS 3 // (degC) range of +/- temperatures considered "close" to the target one
#define TEMP_WINDOW 1 // (degC) Window around target to start the residency timer x degC early.
// 热床的温度必须接近目标,否则一直等待直到M109返回成功
#define TEMP_BED_RESIDENCY_TIME 10 // (seconds)
#define TEMP_BED_HYSTERESIS 3 // (degC) range of +/- temperatures considered "close" to the target one
#define TEMP_BED_WINDOW 1 // (degC) Window around target to start the residency timer x degC early.
// 用于设置最低工作温度,若低于该温度 加热器则不工作,其主要用来检测热敏电阻的接线是否出错?
// 否则,这将导致加热器接通电源后一直工作。
#define HEATER_0_MINTEMP 5
#define HEATER_1_MINTEMP 5
#define HEATER_2_MINTEMP 5
#define HEATER_3_MINTEMP 5
#define HEATER_4_MINTEMP 5
#define BED_MINTEMP 5
// 定义最高温度,当温度超过最高温度,加热器将被关闭。
#define HEATER_0_MAXTEMP 275
#define HEATER_1_MAXTEMP 275
#define HEATER_2_MAXTEMP 275
#define HEATER_3_MAXTEMP 275
#define HEATER_4_MAXTEMP 275
#define BED_MAXTEMP 150
//===========================================================================
//============================= PID 比例微分积分控制 设置 ================================
//===========================================================================
// PID Tuning Guide here: http://reprap.org/wiki/PID_Tuning
// Comment the following line to disable PID and enable bang-bang. 注释下列行将禁用PID而开启 bang-bang控制。
#define PIDTEMP
#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
#if ENABLED(PIDTEMP)
//#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
//#define PID_DEBUG // Sends debug data to the serial port.
//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
//#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
//#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders)
// Set/get with gcode: M301 E[extruder number, 0-2]
#define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
// is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
#define K1 0.95 //smoothing factor within the PID
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// Ultimaker
#define DEFAULT_Kp 22.2
#define DEFAULT_Ki 1.08
#define DEFAULT_Kd 114
// MakerGear
//#define DEFAULT_Kp 7.0
//#define DEFAULT_Ki 0.1
//#define DEFAULT_Kd 12
// Mendel Parts V9 on 12V
//#define DEFAULT_Kp 63.0
//#define DEFAULT_Ki 2.25
//#define DEFAULT_Kd 440
#endif // PIDTEMP
//===========================================================================
//============================= PID >热床温度控制 ===============
//===========================================================================
//
// 选择PID or bang-bang 来控制热床温度,如果选用 bang-bang,BED_LIMIT_SWITCHING 将有所迟滞。
// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.
// If your PID_dT is the default, and correct for your hardware/configuration, that means 7.689Hz,
// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.
// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.
// If your configuration is significantly different than this and you don't understand the issues involved, you probably
// shouldn't use bed PID until someone else verifies your hardware works.
// If this is enabled, find your own PID constants below.
//#define PIDTEMPBED
//#define BED_LIMIT_SWITCHING
// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
#if ENABLED(PIDTEMPBED)
//#define PID_BED_DEBUG // 发送数据到串口调试。
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
#define DEFAULT_bedKp 10.00
#define DEFAULT_bedKi .023
#define DEFAULT_bedKd 305.4
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
//from pidautotune
//#define DEFAULT_bedKp 97.1
//#define DEFAULT_bedKi 1.41
//#define DEFAULT_bedKd 1675.16
// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
#endif // PIDTEMPBED
// @挤出机信息
// 此选项可防止挤压如果温度低于extrude_mintemp。
// It also enables the M302 command to set the minimum extrusion temperature
// or to allow moving the extruder regardless of the hotend temperature.
// *** IT IS HIGHLY RECOMMENDED TO LEAVE THIS OPTION ENABLED! ***
#define PREVENT_COLD_EXTRUSION
#define EXTRUDE_MINTEMP 170
// 此选项可防止过小挤出,让单个挤压长度必须长于extrude_maxlength
// Note that for Bowden Extruders a too-small value here may prevent loading.
#define PREVENT_LENGTHY_EXTRUDE
#define EXTRUDE_MAXLENGTH 200
//===========================================================================
//======================== 加热失控保护 =======================
//===========================================================================
/**
* 加热防护主要用于保护您的打印机因热敏电阻脱落或温度传感器失效而造成损坏或起火,
*
* 问题:如果一个热敏电阻脱落或者温度传感器失效,当热敏电阻失效,Marlin将不能有效感知实际温度,从而会认为当前机器处于低温状态而持续加热。
*
* If you get "Thermal Runaway" or "Heating failed" errors the
* details can be tuned in Configuration_adv.h
*/
#define THERMAL_PROTECTION_HOTENDS // 让所有挤出机具备热保护功能
#define THERMAL_PROTECTION_BED // 让热床具备热保护功能
//===========================================================================
//============================= 机械设置 =========================
//===========================================================================
// @机械信息
// 取消下列注释将开启 CoreXY, CoreXZ, or CoreYZ 运动结构
//#define COREXY
//#define COREXZ
//#define COREYZ
//#define COREYX
//#define COREZX
//#define COREZY
//===========================================================================
//============================== 限位开关设置 ===========================
//===========================================================================
// @归零信息
// Specify here all the endstop connectors that are connected to any endstop or probe.
// 在这里指定的所有限位开关连接器包括所有限位开关或探头。
// 几乎打印机的每个轴都要使用一个。探测器将使用一个或多个额外的连接器。
// Almost all printers will be using one per axis. Probes will use one or more of the extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
//#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG
// 粗略的限位开关设置
#define ENDSTOPPULLUPS // 注释上这条将禁用限位开关的使用上拉电阻 (using // at the start of the line)
#if DISABLED(ENDSTOPPULLUPS)
// 限位开关上拉的单独设置:单个电阻。如果定义endstoppullups将忽略
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
// 机械限位开关: COM 接地 、NC接信号 (最常见的设置)。
#define X_MIN_ENDSTOP_INVERTING false // 设为true时逻辑将被翻转.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
// 启动这项功能将启用所有限位开关引脚的中断能力
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
//#define ENDSTOP_INTERRUPTS_FEATURE
//=============================================================================
//============================== 运动设置 ============================
//=============================================================================
// @ 运动信息
/**
* 默认设置
*
* 这些设置可以使用M502重置
*
* 注意,如果EEPROM启用,所保存的值将被覆盖。
*/
/**
* With this option each E stepper can have its own factors for the following movement settings. If fewer factors are given than the total number of extruders, the last value applies to the rest.
*/
//#define DISTINCT_E_FACTORS
/**
* Default Axis Steps Per Unit (steps/mm) 默认每个轴的步进值
* Override with M92
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 4000, 500 }
/**
* 默认最大进给速度 (mm/s)
* Override with M203
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_MAX_FEEDRATE { 300, 300, 5, 25 }
/**
* 默认最大加速度 (change/s) change = mm/s
* (Maximum start speed for accelerated moves)
* Override with M201
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_MAX_ACCELERATION { 3000, 3000, 100, 10000 }
/**
* 默认加速度 (change/s) change = mm/s
* Override with M204
*
* M204 P Acceleration
* M204 R Retract Acceleration
* M204 T Travel Acceleration
*/
#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E 打印加速度
#define DEFAULT_RETRACT_ACCELERATION 3000 // E 回缩加速度
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z 移动加速度(非打印状态)
/**
* Default Jerk (mm/s)
* Override with M205 X Y Z E
*
* "Jerk" 指定的最小速度的变化所需要加速度。
* 当改变速度和方向时, 如果差值小于在这里设置的值,它可能在瞬间发生。
*/
#define DEFAULT_XJERK 20.0
#define DEFAULT_YJERK 20.0
#define DEFAULT_ZJERK 0.4
#define DEFAULT_EJERK 5.0
//===========================================================================
//============================= Z 探头选项 =============================
//===========================================================================
// @section 喷头信息
//
// See http://marlinfw.org/configuration/probes.html
//
/**
* Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
*
* 探头 连接到Z 最小限位开关的引脚
*/
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
/**
* Z_MIN_PROBE_ENDSTOP
*
* 使一个探针连接到任何除 Z-Min引脚以外的任何一个脚
* ( 通常连在Z-Max 限位开关的引脚 .)
* To use a custom Z Probe pin, set Z_MIN_PROBE_PIN below.
*
* - The simplest option is to use a free endstop connector.
* - Use 5V for powered (usually inductive) sensors.
*
* - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
* - For simple switches connect...
* - normally-closed switches to GND and D32.
* - normally-open switches to 5V and D32.
*
* WARNING: Setting the wrong pin may have unexpected and potentially disastrous consequences. Use with caution and do your homework.
* 设置了错误的引脚可能会有意想不到的和潜在的灾难性的后果,请谨慎使用。
*/
//#define Z_MIN_PROBE_ENDSTOP
//#define Z_MIN_PROBE_PIN Z_MAX_PIN
/**
* Probe Type 探针类型
*
* Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc. 点状探针、舵机探针
* 你必须激活 “热床自动调平”功能
*/
/**
* “手动探针”提供了一种无探针条件下热床自动调平的手段。
* Use G29 repeatedly, adjusting the Z height at each point with movement commands 使用G29反复发送指令以调整Z轴与各点之间的高度。
*
*/
//#define PROBE_MANUALLY
/**
* A Fix-Mounted Probe either doesn't deploy or needs manual deployment. 固定式探头
* (e.g., 感应探头或基于喷嘴头开关。)
*/
//#define FIX_MOUNTED_PROBE
/**
* Z 轴舵机探针, 如在一个旋转臂上安装一个限位开关.
*/
//#define Z_ENDSTOP_SERVO_NR 0 // Defaults to SERVO 0 connector. 默认为伺服0连接器。
//#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles Z 舵机部署和收起的角度
/**
* BLTouch 探针, 使用霍尔效应传感器和模拟舵机.
*/
//#define BLTOUCH
#if ENABLED(BLTOUCH)
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
#endif
/**
* 如果探针看起来不太可靠时则需要开启。
加热器和风扇的工作会影响探针的有效探测
- consistent with the options selected below - will be disabled during probing so as to minimize
* potential EM interference by quieting/silencing the source of the 'noise' (the change
* in current flowing through the wires). This is likely most useful to users of the
* BLTouch probe, but may also help those with inductive or other probe types.
*/
//#define PROBING_HEATERS_OFF // 在探针工作中关闭加热器
//#define PROBING_FANS_OFF // 在探针工作中关闭风扇
// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN) 探针的部署和收起主要靠SOL1_PIN 来控制
//#define SOLENOID_PROBE
// A sled-mounted probe like those designed by Charles Bell.
//#define Z_PROBE_SLED
//#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
//
// 对于z_probe_allen_key可参考“三角洲”配置示例。
//
/**
* Z探针相对于喷嘴位置(X,Y )的偏移
* X and Y offsets must be integers.
*
* In the following example the X and Y offsets are both positive:
* #define X_PROBE_OFFSET_FROM_EXTRUDER 10
* #define Y_PROBE_OFFSET_FROM_EXTRUDER 10
*
* +-- BACK ---+
* | |
* L | (+) P | R <-- probe (20,20)
* E | | I
* F | (-) N (+) | G <-- nozzle (10,10)
* T | | H
* | (-) | T
* | |
* O-- FRONT --+
* (0,0)
*/
#define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
#define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
#define Z_PROBE_OFFSET_FROM_EXTRUDER 0 // Z offset: -below +above [the nozzle]
// 在探测时 X and Y轴的移动速度
#define XY_PROBE_SPEED 8000
// Z轴的移动速度 (with PROBE_DOUBLE_TOUCH)
#define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
// 每个点的探测速度
#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
// 使用两次触碰作为探测结果
//#define PROBE_DOUBLE_TOUCH
/**
* 避免探针在探测、收起或探测点之间移动时触碰其他硬件或热床。
* 舵机所安装的探头在旋转时必须保证足够的空间。
* 而感应探针则需要足够的空间来避免过早被碰撞.
*
* 使用这些设置来提高探针在探测移动过程中的距离(或降低热床)
* probe Z Offset set with Z_PROBE_OFFSET_FROM_EXTRUDER, M851, or the LCD.
* Only integer values >= 1 are valid here.
*
* Example: `M851 Z-5` with a CLEARANCE of 4 => 9mm from bed to nozzle.
* But: `M851 Z+1` with a CLEARANCE of 2 => 2mm from bed to nozzle.
*/
#define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow
#define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
//使用 M851 给个范围以调整Z探针偏移
#define Z_PROBE_OFFSET_RANGE_MIN -20
#define Z_PROBE_OFFSET_RANGE_MAX 20
// 可使用 M48 进行重复性测试以测试 探头精度
//#define Z_MIN_PROBE_REPEATABILITY_TEST
// 反转电机的引脚驱动(低电平使能为0、高电平使能为1)
// :{ 0:'Low', 1:'High' }
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders
// 当某个轴上的步进电机不需要使用时可禁用它。
// WARNING: When motors turn off there is a chance of losing position accuracy!
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
// 关于 “精度降低” 的警告显示
//#define DISABLE_REDUCED_ACCURACY_WARNING
// @ 挤出机信息
#define DISABLE_E false // 所有挤出机关闭或开启
#define DISABLE_INACTIVE_EXTRUDER true // Keep only the active extruder enabled. 仅开启活动挤出机
// @机械信息
// 反转步进电机的方向. Change (or reverse the motor connector) if an axis goes the wrong way.
#define INVERT_X_DIR false
#define INVERT_Y_DIR true
#define INVERT_Z_DIR false
// 开启这个选项 将启用 东芝步进电机驱动
//#define CONFIG_STEPPERS_TOSHIBA
// @挤出机信息
// 直接挤出机则设为true,齿轮挤出机则设为false
#define INVERT_E0_DIR false
#define INVERT_E1_DIR false
#define INVERT_E2_DIR false
#define INVERT_E3_DIR false
#define INVERT_E4_DIR false
// @ 归零信息
//#define Z_HOMING_HEIGHT 4 // 在归零时让Z轴抬起的高度
// Be sure you have this distance over your Z_MAX_POS in case.
// 归零时的限位开关方向 ; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
// @ 机械信息
// (units are in mm) 归零后的移动限制
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 200
#define Y_MAX_POS 200
#define Z_MAX_POS 200
// 如果开启,轴的运动最小不小于 MIN_POS //软限位
#define MIN_SOFTWARE_ENDSTOPS
// 如果开启,轴的运动最大不高于 MAX_POS //软限位
#define MAX_SOFTWARE_ENDSTOPS
/**
* Filament Runout Sensor 缺丝检测传感器
* 检测是否缺丝
*
* RAMPS-based boards use SERVO3_PIN.
* For other boards you may need to define FIL_RUNOUT_PIN.
* By default the firmware assumes HIGH = has filament, LOW = ran out 默认 高电平为有丝 ,低电平为 缺丝
*/
//#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
//===========================================================================
//=============================== 热床调平 ==============================
//===========================================================================
// @热床调平信息
/**
* 选择下列选项之一以使用G29来调整热床水平。
G29的参数及运行动作将会随着你所设置的选项而发生改变。
*
*
* 如果使用Z归零探针,请注意开启 Z_SAFE_HOMING
*
* - AUTO_BED_LEVELING_3POINT
* 探测热床上的任意3点(3点不在一条线上)
* 您需要指定3个点的XY坐标。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_LINEAR 线性
* 探测网格中的几个点。
* 您需要指定的矩形以及采样点的密度。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_BILINEAR 双线性
* 探测网格中的几个点。
* 您需要指定的矩形以及采样点的密度。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_UBL (联合热床调平)
* 一个结合了其他系统特点及优势的全面调平系统。
* 全面热床调平 同样包括集成的网格生成,网格验证及网格编辑系统 。
* 当前, UBL是只用于检测笛卡尔坐标系打印机。 其主要用于纠正三角洲打印机的打印质量。
*
* 如果你愿意冒险并且拥有三角洲打印机
* 你需要设定一个降低热床的距离,从而让你有一个矩形区域进行测试。
*
*
* - MESH_BED_LEVELING
* 探测一个手动网格
* 其结果是一个网格,适合大型或凹凸不平的床。 (See BILINEAR.)
* 对于没有探针的机器 , 网床找平提供了一种在台阶上进行水准测量的方法,以便在每个网格点上手动调整z高度。
* 根据LCD控制器的指示一步一步进行调整。
*/
//#define AUTO_BED_LEVELING_3POINT //3点式
//#define AUTO_BED_LEVELING_LINEAR
//#define AUTO_BED_LEVELING_BILINEAR
//#define AUTO_BED_LEVELING_UBL
//#define MESH_BED_LEVELING
/**
* 启用G28, G29, M48运行的详细日志
* 使用'M111 S32'命令来开启
* NOTE: Requires a lot of PROGMEM!
*/
//#define DEBUG_LEVELING_FEATURE
#if ENABLED(MESH_BED_LEVELING) || ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)
// 逐渐进行热床水平修正直到刚刚达到所设置X,Y坐标所对应的高度
// 这个高度可以使用 M420 Z<height> 来进行设置
#define ENABLE_LEVELING_FADE_HEIGHT
#endif
#if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
// 设置每个维度的网格点数。
#define GRID_MAX_POINTS_X 3
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
// 设置探测的边界(where the probe can reach).
#define LEFT_PROBE_BED_POSITION 15 //探针在热床左侧进行探测的位置
#define RIGHT_PROBE_BED_POSITION 170 //探针在热床右侧进行探测的位置
#define FRONT_PROBE_BED_POSITION 20 //探针在热床前端进行探测的位置
#define BACK_PROBE_BED_POSITION 170 //探针在热床后端进行探测的位置
// z探针最小外侧边缘 ( 为了验证G29参数).
#define MIN_PROBE_EDGE 10
// 探针沿着Y轴,不断改变X的值 直到完成每一列的探测
//#define PROBE_Y_FIRST
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
// 在探测网格之外,存在隐含的倾斜?
// 默认保存就近边缘的高度
//#define EXTRAPOLATE_BEYOND_GRID
//
// 通过Catmull-Rom方法细分网格实验。
// 合成中间点以产生更详细的网格。
//
//#define ABL_BILINEAR_SUBDIVISION
#if ENABLED(ABL_BILINEAR_SUBDIVISION)
// 探针点之间的细分数目
#define BILINEAR_SUBDIVISIONS 3
#endif
#endif
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
// 探测3个任意点
// 一个简单的交叉积用来估计床的平面。
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_3_X 170
#define ABL_PROBE_PT_3_Y 20
#elif ENABLED(AUTO_BED_LEVELING_UBL)
//===========================================================================
//========================= 联合热床自动调平 ============================
//===========================================================================
#define UBL_MESH_INSET 1 // 在打印区域插入网格
#define GRID_MAX_POINTS_X 10 // 不要每轴使用超过15个点,在实现上有所限制。
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
#define UBL_PROBE_PT_1_X 39 // 设置3点坐标
#define UBL_PROBE_PT_1_Y 180
#define UBL_PROBE_PT_2_X 39
#define UBL_PROBE_PT_2_Y 20
#define UBL_PROBE_PT_3_X 180
#define UBL_PROBE_PT_3_Y 20
#define UBL_G26_MESH_VALIDATION // 开启G26网格验证
#define UBL_MESH_EDIT_MOVES_Z // 老用户喜欢喷嘴不移动
#elif ENABLED(MESH_BED_LEVELING)
//===========================================================================
//=================================== 网格 ==================================
//===========================================================================
#define MESH_INSET 10 // 在打印区域插入网格
#define GRID_MAX_POINTS_X 3 // 不要每轴使用超过7个点,实现限制。
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
//#define MESH_G28_REST_ORIGIN // 在所有轴归零后 ('G28' or 'G28 XYZ') 让Z轴重设在 Z_MIN_POS 的位置
#endif // BED_LEVELING
/**
* 使用液晶控制器进行床层平整
* 要求 MESH_BED_LEVELING or PROBE_MANUALLY
*/
//#define LCD_BED_LEVELING
#if ENABLED(LCD_BED_LEVELING)
#define MBL_Z_STEP 0.025 // 手动探测过程中Z轴的移动步长
#define LCD_PROBE_Z_RANGE 4 // 使用LCD来进行控制时 Z轴的移动范围(从Z_MIN_POS )
#endif
/**
* 用于执行 G29 探测命令。
* 用于缩回或移动Z探头非常有用
*/
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
// @ 归零信息
// 热床中心(X=0, Y=0)
//#define BED_CENTER_AT_0_0
// 手动设置零位
//#define MANUAL_X_HOME_POS 0
//#define MANUAL_Y_HOME_POS 0
//#define MANUAL_Z_HOME_POS 0
// 使用“Z安全归零”,避免在归零操作是Z探针在床区外
// 启用此功能:
// With this feature enabled:
//
// -
// - 如果步进驱动器超时, 它将需要X和Y重新归位然后再让Z归位。
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - 保护Z探头 。
//#define Z_SAFE_HOMING
#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
#endif
// 归零速度(mm/m)
#define HOMING_FEEDRATE_XY (50*60)
#define HOMING_FEEDRATE_Z (4*60)
//=============================================================================
//============================= 附加特性 ===========================
//=============================================================================
// @ 附加信息
//
// EEPROM 存储器;
//
/ 微控制器可以在EEPROM中存储相关设置。, e.g. max velocity...
// M500 - 在 EEPROM 中存储参数
// M501 - 从 EEPROM 读取参数
// M502 - 恢复出厂设置。
//define this to enable EEPROM support
//#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS)
// 禁止 EEPROM 串口响应及减少程序占用空间,请注释下列行:
#define EEPROM_CHITCHAT // Please keep turned on if you can.
#endif
//
// 主机保持活跃状态
//
//
// 当启用时,Marlin在无法接受命令时,其将每隔几秒钟就会发送一个繁忙的状态信息给主机。
//
#define HOST_KEEPALIVE_FEATURE // 禁用此条语句,如果不喜欢主机接受保持活跃状态的消息
#define DEFAULT_KEEPALIVE_INTERVAL 2 // “繁忙”消息之间的间隔秒数,使用M113进行设置.
//
// M100 自由内存监视器
//
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose 取消注释,将为调试时添加M100自由内存监视器
//
// G20/G21 寸模式支持
//
//#define INCH_MODE_SUPPORT
//
// M149 支持设置温度单位
//
//#define TEMPERATURE_UNITS_SUPPORT
// @温度信息
// 预热常数
#define PREHEAT_1_TEMP_HOTEND 180
#define PREHEAT_1_TEMP_BED 70
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
#define PREHEAT_2_TEMP_HOTEND 240
#define PREHEAT_2_TEMP_BED 110
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
/**
* 喷嘴 -- 实验性的
*
* 在空闲时将喷嘴置于给定的XYZ位置 or G27.
*
* “p”参数控制应用于z轴的操作。:
*
* P0 (Default) 如果当前z的位置低于 z 停驻位置,将抬起喷嘴。
* P1 总是提高喷嘴到 z 停驻位置的高度 。
* P2 总是提高喷嘴到 z 停驻位置的高度, 同时也受限于 Z_MAX_POS.
*/
//#define NOZZLE_PARK_FEATURE
#if ENABLED(NOZZLE_PARK_FEATURE)
// 指定停驻位置{ X, Y, Z }
#define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
#endif
/**
* 清洁喷嘴的参数 -- 实验性的
*
* 添加G12命令用于执行喷嘴清洗工作。
*
* 参数:
* P 模式
* S Strokes / Repetitions
* T 三角形 (P1 only)
*
* 模式:
* P0 直线(默认). .这个过程需要在热床的指定位置上使用海绵状材料。
* "S" 指定开始和结束的点 .
*
*
* P1 在 (X0, Y0)与(X1, Y1) 之间呈锯齿形图案, "T" 主要指定锯齿数量. "S" 定义笔画数.
* For example, "G12 P1 S1 T3" will execute:
*
* --
* | (X0, Y1) | /\ /\ /\ | (X1, Y1)
* | | / \ / \ / \ |
* A | | / \ / \ / \ |
* | | / \ / \ / \ |
* | (X0, Y0) | / \/ \/ \ | (X1, Y0)
* -- +--------------------------------+
* |________|_________|_________|
* T1 T2 T3
*
* P2 以NOZZLE_CLEAN_CIRCLE_MIDDLE为中心的圆.
* "R"指定半径. "S"指定划数.
* 启动前,喷嘴移动到 NOZZLE_CLEAN_START_POINT 点的位置.
*
* 注意事项:结束Z应该与启动Z相同。
*
*
*/
//#define NOZZLE_CLEAN_FEATURE
#if ENABLED(NOZZLE_CLEAN_FEATURE)
// 模式重复的默认数目
#define NOZZLE_CLEAN_STROKES 12
// 默认三角形数
#define NOZZLE_CLEAN_TRIANGLES 3
// 指定的位置{ X, Y, Z }
#define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
#define NOZZLE_CLEAN_END_POINT {100, 60, (Z_MIN_POS + 1)}
// 圆半径
#define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
//圆型圆碎片数
#define NOZZLE_CLEAN_CIRCLE_FN 10
//圆中心点
#define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
//将喷嘴移动到初始位置。
#define NOZZLE_CLEAN_GOBACK
#endif
/**
* 打印作业的定时器
*
* 自动启动和停止打印作业计时器 M104/M109/M190.
*
* M104 (hotend, no wait) - high temp = none, low temp = stop timer
* M109 (hotend, wait) - high temp = start timer, low temp = stop timer
* M190 (bed, wait) - high temp = start timer, low temp = none
*
* 计时器也可以用以下命令来控制:
*
* M75 - 启动打印作业计时器
* M76 - 暂停打印作业计时器
* M77 - 停止打印作业计时器
*/
#define PRINTJOB_TIMER_AUTOSTART
/**
* 设置打印计数器
*
* 跟踪统计数据,例如:
*
* - 总打印作业数
* - 总成功打印作业数
* - 总失败打印作业数
* - 总打印时长
*
* 使用M78查看当前统计数据 。
*/
//#define PRINTCOUNTER
//=============================================================================
//============================= 液晶显示器和SD卡支持============================
//=============================================================================
// @液晶显示器信息
/**
* LCD语言
*
* Select the language to display on the LCD. These languages are available:
*
* en, an, bg, ca, cn, cz, de, el, el-gr, es, eu, fi, fr, gl, hr, it,
* kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk, test
*
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'tr':'Turkish', 'uk':'Ukrainian', 'test':'TEST' }
*/
#define LCD_LANGUAGE en
/**
* LCD字符集
*
* Note: 此选项不适用于图形显示。
*
* All character-based LCDs provide ASCII plus one of these
* language extensions:
*
* - JAPANESE ... the most common
* - WESTERN ... with more accented characters
* - CYRILLIC ... for the Russian language
*
* 确定控制器上安装的语言扩展名:
*
* - Compile and upload with LCD_LANGUAGE set to 'test'
* - Click the controller to view the LCD menu
* - The LCD will display Japanese, Western, or Cyrillic text
*
* See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
*
* :['JAPANESE', 'WESTERN', 'CYRILLIC']
*/
#define DISPLAY_CHARSET_HD44780 JAPANESE
/**
* 液晶屏类型
*
* Enable ULTRA_LCD for a 16x2, 16x4, 20x2, or 20x4 character-based LCD.
* Enable DOGLCD for a 128x64 (ST7565R) Full Graphical Display.
* (These options will be enabled automatically for most displays.)
*
* IMPORTANT: The U8glib library is required for Full Graphic Display!
* https://github.com/olikraus/U8glib_Arduino
*/
//#define ULTRA_LCD // 基于特征字
//#define DOGLCD // 全图形显示
/**
* 记忆卡
*
* 默认情况下禁用SD卡支持。如果你的控制器有一个sd插槽,
* 你必须取消下列注释,否则将不能工作.
*
*/
//#define SDSUPPORT
/**
* SD卡:SPI速度
*
* 启用下列项目之一来降低SPI传输速度。
* 这可用于解决“卷初始化”错误。
*/
//#define SPI_SPEED SPI_HALF_SPEED
//#define SPI_SPEED SPI_QUARTER_SPEED
//#define SPI_SPEED SPI_EIGHTH_SPEED
/**
* SD卡:启用CRC
*
* 采用CRC校验和重试 SD的通讯。
*/
//#define SD_CHECK_AND_RETRY
//
//编码器的设置
//
//此选项覆盖了生成一步所需的编码器脉冲的默认数目。 应增加高分辨率编码器。
//
//
//#define ENCODER_PULSES_PER_STEP 1
//
// 使用此选项来覆盖要求下/上一个菜单项之间移动一步的信号数。
//
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
/**
* 编码器方向选择
*
* 首先测试编码器的行为,同时禁用两个选项。
*
* Reversed Value Edit and Menu Nav? Enable REVERSE_ENCODER_DIRECTION.
* Reversed Menu Navigation only? Enable REVERSE_MENU_DIRECTION.
* Reversed Value Editing only? Enable BOTH options.
*/
//
//此选项颠倒编码器方向。
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// 此选项用于反转lcd导航菜单的编码器方向。
//
// If CLOCKWISE normally moves DOWN this makes it go UP.
// If CLOCKWISE normally moves UP this makes it go DOWN.
//
//#define REVERSE_MENU_DIRECTION
//
// 单轴的归零
//
// 在LCD菜单上增加单轴归零选项 (Home X, Home Y, and Home Z) to the LCD menu.
//
//#define INDIVIDUAL_AXIS_HOMING_MENU
//
//扬声器/蜂鸣器
//
// 如果你有一个能产生音调的扬声器,在这里启用它。
// 默认情况下,MARLIN 假设你有一个固定频率的蜂鸣器。
//
//#define SPEAKER
//
// UI反馈声音的持续时间和频率。
// Set these to 0 to disable audio feedback in the LCD menus.
//
// Note: Test audio output with the G-Code:
// M300 S<frequency Hz> P<duration ms>
//
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000
//
// 控制器类型:标准
//
// Marlin 支持多种控制器。
// Enable one of the following options to specify your controller.
//
//
// Ultimaker控制器。
//
//#define ULTIMAKERCONTROLLER
//
// ULTIPANEL as seen on Thingiverse.
//
//#define ULTIPANEL
//
// Cartesio UI
// http://mauk.cc/webshop/cartesio-shop/electronics/user-interface
//
//#define CARTESIO_UI
//
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
// http://reprap.org/wiki/PanelOne
//
//#define PANEL_ONE
//
// MaKr3d Makr-Panel with graphic controller and SD support.
// http://reprap.org/wiki/MaKr3d_MaKrPanel
//
//#define MAKRPANEL
//
// ReprapWorld Graphical LCD
// https://reprapworld.com/?products_details&products_id/1218
//
//#define REPRAPWORLD_GRAPHICAL_LCD
//
// Activate one of these if you have a Panucatt Devices
// Viki 2.0 or mini Viki with Graphic LCD
// http://panucatt.com
//
//#define VIKI2
//#define miniVIKI
//
// Adafruit ST7565 Full Graphic Controller.
// https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
//
//#define ELB_FULL_GRAPHIC_CONTROLLER
//
// RepRapDiscount Smart Controller.
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
//
// Note: Usually sold with a white PCB.
//
//#define REPRAP_DISCOUNT_SMART_CONTROLLER
//
// GADGETS3D G3D LCD/SD Controller
// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
//
// Note: Usually sold with a blue PCB.
//
//#define G3D_PANEL
//
// RepRapDiscount FULL GRAPHIC Smart Controller
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
//
// MakerLab Mini Panel with graphic
// controller and SD support - http://reprap.org/wiki/Mini_panel
//
//#define MINIPANEL
//
// RepRapWorld REPRAPWORLD_KEYPAD v1.1
// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
//
// REPRAPWORLD_KEYPAD_MOVE_STEP sets how much should the robot move when a key
// is pressed, a value of 10.0 means 10mm per click.
//
//#define REPRAPWORLD_KEYPAD
//#define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
//
// RigidBot Panel V1.0
// http://www.inventapart.com/
//
//#define RIGIDBOT_PANEL
//
// BQ LCD Smart Controller shipped by
// default with the BQ Hephestos 2 and Witbox 2.
//
//#define BQ_LCD_SMART_CONTROLLER
//
// CONTROLLER TYPE: I2C
//
// Note: These controllers require the installation of Arduino's LiquidCrystal_I2C
// library. For more info: https://github.com/kiyoshigawa/LiquidCrystal_I2C
//
//
// Elefu RA Board Control Panel
// http://www.elefu.com/index.php?route=product/product&product_id=53
//
//#define RA_CONTROL_PANEL
//
// Sainsmart YW Robot (LCM1602) LCD Display
//
//#define LCD_I2C_SAINSMART_YWROBOT
//
// Generic LCM1602 LCD adapter
//
//#define LCM1602
//
// PANELOLU2 LCD with status LEDs,
// separate encoder and click inputs.
//
// Note: This controller requires Arduino's LiquidTWI2 library v1.2.3 or later.
// For more info: https://github.com/lincomatic/LiquidTWI2
//
// Note: The PANELOLU2 encoder click input can either be directly connected to
// a pin (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
//
//#define LCD_I2C_PANELOLU2
//
// Panucatt VIKI LCD with status LEDs,
// integrated click & L/R/U/D buttons, separate encoder inputs.
//
//#define LCD_I2C_VIKI
//
// SSD1306 OLED full graphics generic display
//
//#define U8GLIB_SSD1306
//
// SAV OLEd LCD module support using either SSD1306 or SH1106 based LCD modules
//
//#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
//#define U8GLIB_SSD1306
#define U8GLIB_SH1106
#endif
//
// 控制器类型:移位寄存器面板
//
// 2 wire Non-latching LCD SR from https://goo.gl/aJJ4sH
// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
//
//#define SAV_3DLCD
//
// TinyBoy2 128x64 OLED / Encoder Panel
//
//#define OLED_PANEL_TINYBOY2
//=============================================================================
//=============================== 额外功能 ==============================
//=============================================================================
// @额外信息
// 增加风扇pwm频率。消除PWM噪声但增加FET / Arduino加热
//#define FAST_PWM_FAN
// 使用软件PWM驱动风扇,如加热器。 这使用一个非常低的频率,不像硬件PWM那样令人讨厌。
// 另一方面,如果这个频率太低了,你还可以适当增加 SOFT_PWM_SCALE.。
//
//#define FAN_SOFT_PWM
// 增加1将使软PWM频率翻倍。 0对应128.
#define SOFT_PWM_SCALE 0
// 如果SOFT_PWM_SCALE 设置的值大于0, 抖动可以用来减轻相关的分辨率损失。
//
// 如果开启,有些PWM周期被拉长,因此平均所需的占空比达到。
//
//#define SOFT_PWM_DITHER
//用LED显示温度状态。
// 如果所有的hotends,床层温度和目标温度均低于54。,蓝色LED灯亮,反之红灯亮。
//
//#define TEMP_STAT_LEDS
// M240触发相机佳能1远程仿真
// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
//#define PHOTOGRAPH_PIN 23
// skeinforge发出错误的弧G代码时使用电弧点圆角程序
//#define SF_ARC_FIX
//为baricuda膏挤出机支持。
//#define BARICUDA
//支持BlinkM/CyzRgb
//#define BLINKM
/**
* 彩色LED / LED条控制
*
* Enable support for an RGB LED connected to 5V digital pins, or
* an RGB Strip connected to MOSFETs controlled by digital pins.
*
* Adds the M150 command to set the LED (or LED strip) color.
* If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
* luminance values can be set from 0 to 255.
*
* *** CAUTION ***
* LED Strips require a MOFSET Chip between PWM lines and LEDs,
* as the Arduino cannot handle the current the LEDs will require.
* Failure to follow this precaution can destroy your Arduino!
* *** CAUTION ***
*
*/
//#define RGB_LED
//#define RGBW_LED
#if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#define RGB_LED_R_PIN 34
#define RGB_LED_G_PIN 43
#define RGB_LED_B_PIN 35
#define RGB_LED_W_PIN -1
#endif
/**
* 打印事件的LED状态
*
* 在打印过程中,LED将反映打印机状态:
*
* - 当加热床到达目标温度时,逐渐由蓝色变为紫色。
* - 当hotend到达温度时, 逐渐从紫到红 。
* - 变白以照亮工作面
* - 打印完成后改为绿色
* - 当打印完成后并用户按下按钮时,将关闭,
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#define PRINTER_EVENT_LEDS
#endif
/*********************************************************************\
* R/C 舵机支持
* Sponsored by TrinityLabs, Reworked by codexmas
**********************************************************************/
//舵机数量
//
// 如果您选择下面的配置,不需要进行手动控制。
//
// leaving it undefined or defining as 0 will disable the servo subsystem
// If unsure, leave commented / disabled
//
//#define NUM_SERVOS 3 // 使用 M280 进行控制,舵机顺序由0开始。
// 在下一步开始之前,延迟(毫秒),使伺服时间达到目标角。
// 300ms是一个很好的值,但是你可以试着减少延迟。
// 如果伺服不能达到所要求的位置,增加它。
#define SERVO_DELAY 300
// 舵机去活化
//
// 让舵机在运动时供电,不需要运动时断电,以防止其出现意外抖动。
//#define DEACTIVATE_SERVOS_AFTER_MOVE
/**
* 纤维宽度传感器
*
* 实时测量打印丝的宽度,调整流量以补偿任何不规则现象。
*
*
* Also allows the measured filament diameter to set the
* extrusion rate, so the slicer only has to specify the
* volume.
*
* Only a single extruder is supported at this time.
*
* 34 RAMPS_14 : Analog input 5 on the AUX2 connector
* 81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
* 301 RAMBO : Analog input 3
*
* Note: May require analog pins to be defined for other boards.
*/
//#define FILAMENT_WIDTH_SENSOR
#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00 // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
#if ENABLED(FILAMENT_WIDTH_SENSOR)
#define FILAMENT_SENSOR_EXTRUDER_NUM 0 // Index of the extruder that has the filament sensor (0,1,2,3)
#define MEASUREMENT_DELAY_CM 14 // (cm) The distance from the filament sensor to the melting chamber
#define MEASURED_UPPER_LIMIT 3.30 // (mm) Upper limit used to validate sensor reading
#define MEASURED_LOWER_LIMIT 1.90 // (mm) Lower limit used to validate sensor reading
#define MAX_MEASUREMENT_DELAY 20 // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
#define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
// Display filament width on the LCD status line. Status messages will expire after 5 seconds.
//#define FILAMENT_LCD_DISPLAY
#endif
#endif // CONFIGURATION_H
* Configuration.h
*
* 基本设置如:
*
* - 电子元器件类型
* - 温度传感器类型
* - 打印机尺寸
* - 限位开关配置
* - 液晶显示控制器
* - 额外功能
*
* 高级设置在 Configuration_adv.h 文件中
*
*/
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#define CONFIGURATION_H_VERSION 010100
//===========================================================================
//============================= 开 始 =============================
//===========================================================================
/**
* Here are some standard links for getting your machine calibrated:
*
* http://reprap.org/wiki/Calibration
* http://youtu.be/wAL9d7FgInk
* http://calculator.josefprusa.cz
* http://reprap.org/wiki/Triffid_Hunter%27s_Calibration_Guide
* http://www.thingiverse.com/thing:5573
* https://sites.google.com/site/repraplogphase/calibration-of-your-reprap
* http://www.thingiverse.com/thing:298812
*/
//===========================================================================
//============================= 三角洲打印机 ===============================
//===========================================================================
// For a Delta printer replace the configuration files with the files in the
// example_configurations/delta directory.
//
//===========================================================================
//============================= SCARA Printer 平面关节型机器人================
//===========================================================================
// For a Scara printer replace the configuration files with the files in the
// example_configurations/SCARA directory.
//
// @section info
// User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
// build by the user have been successfully uploaded into firmware.
#define STRING_CONFIG_H_AUTHOR "(none, default config)" //修改作者.
#define SHOW_BOOTSCREEN
#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // 版本号 将被显示在第一行
#define STRING_SPLASH_LINE2 WEBSITE_URL // 网络地址 将被显示在第二行
//
// *** 供应商请阅读 *****************************************************
/*
// Marlin 现在允许在机器启动显示供应商的启动图像
当show_custom_bootscreen被定义, Marlin 会首先显示自定义的启动图像然后在显示默认开机图像。
我们建议你利用这一新功能来修改开机图像。可参照BQ hephestos 2示例配置文件。
//#define SHOW_CUSTOM_BOOTSCREEN
// @section machine
*/
/**
* 选择一个用于与主机通信的串口
* 这允许使用无线适配器连接(例如)非默认端口
* 无论如何进行设置,串口0 通常作为 Arduino 的程序下载口
*
* :[0, 1, 2, 3, 4, 5, 6, 7]
*/
#define SERIAL_PORT 0
/**
* 此设置确定打印机的通信速度。 波特率设置
*
* 250000 works in most cases, but you might try a lower speed if
* you commonly experience drop-outs during host printing.
*
* :[2400, 9600, 19200, 38400, 57600, 115200, 250000]
*/
#define BAUDRATE 250000
// 在AT90USB设备上启用蓝牙串行接口
//#define BLUETOOTH
// 下面用于定义你所对应的电路板类型
// 请从 boards.h 中选择相对应的名称
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif
// 设置机器名称
// 在液晶显示器中显示“ 3D Printer 准备就绪”的消息
//#define CUSTOM_MACHINE_NAME "3D Printer"
// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)
// 使用UUID进行设置机器的唯一标识码
//#define MACHINE_UUID "00000000-0000-0000-0000-000000000000"
// @section extruder
//===========================================================================
//============================= 挤出机信息设置===============================
//===========================================================================
// 用于定义挤出机的数量
// :[1, 2, 3, 4, 5]
#define EXTRUDERS 1
// 用于定义是否属于“多进一出”
//#define SINGLENOZZLE
// A dual extruder that uses a single stepper motor 双螺杆挤出机,使用一个单一的步进电机
//#define SWITCHING_EXTRUDER
#if ENABLED(SWITCHING_EXTRUDER)
#define SWITCHING_EXTRUDER_SERVO_NR 0
#define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1
#endif
// A dual-nozzle that uses a servomotor to raise/lower one of the nozzles
//双喷嘴,采用伺服电机来提高/降低一个喷嘴
//#define SWITCHING_NOZZLE
#if ENABLED(SWITCHING_NOZZLE)
#define SWITCHING_NOZZLE_SERVO_NR 0
#define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 } // Angles for E0, E1
//#define HOTEND_OFFSET_Z { 0.0, 0.0 }
#endif
/**
* "混合挤出机"
* - 增加了M165 这么一个新的代码,用于设置当前混合操作。
* - 通过程序控制多个步进电机的运程来调整混合比例。
* - 这个实现只支持单螺杆挤出机。
* - Enable DIRECT_MIXING_IN_G1 for Pia Taubert's reference implementation
*/
//#define MIXING_EXTRUDER 1
#if ENABLED(MIXING_EXTRUDER)
#define MIXING_STEPPERS 2 // 混合挤出机的步进电机数
#define MIXING_VIRTUAL_TOOLS 16 // 利用 M163 和 M164来使用虚拟工具法。
//#define DIRECT_MIXING_IN_G1 // 允许在G1运用命令中使用ABCDHI 混合
#endif
// 挤出机的偏移量设置 (如果使用多个挤出机且在固件位置不同时可取消注释).
// 偏移量 X=0, Y=0 是指 挤出机0的热端位置 (default extruder).
// 对于其他的挤出头的偏移量则是它们到挤出机0之间的距离
//#define HOTEND_OFFSET_X {0.0, 20.00} // (in mm) 每个挤出机,在X轴上的喷头偏移
//#define HOTEND_OFFSET_Y {0.0, 5.00} // (in mm) 每个挤出机,在Y轴上的喷头偏移
//===========================================================================
//============================= 机械信息设置 ===============================
//===========================================================================
// @section machine
/**
* 在这里选择你的电源。如果你没有连接ps_on_pin 则使用0
*
* 0 = No Power Switch 没有电源开关
* 1 = ATX
* 2 = X-Box 360 203Watts ( 蓝线连接PS_ON,红线连接VCC )
*
* :{ 0:'No power switch', 1:'ATX', 2:'X-Box 360' }
*/
#define POWER_SUPPLY 0
#if POWER_SUPPLY > 0
// 让它初始状态为关闭
// 为步进电机和加热器供电则需要使用M80来开启。
//#define PS_DEFAULT_OFF
#endif
//===========================================================================
//============================= 温度信息设置 ===============================
//===========================================================================
// @section temperature
//===========================================================================
//============================= 加热 设置 ============================
//===========================================================================
/**
* --NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table
*
* 温度传感器类型:
*
* -3 : thermocouple with MAX31855 (only for sensor 0)
* -2 : thermocouple with MAX6675 (only for sensor 0)
* -1 : thermocouple with AD595
* 0 : not used
* 1 : 100k thermistor - best choice for EPCOS 100k (4.7k pullup)
* 2 : 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)
* 3 : Mendel-parts thermistor (4.7k pullup)
* 4 : 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
* 5 : 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)
* 6 : 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)
* 7 : 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)
* 71 : 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)
* 8 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)
* 9 : 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)
* 10 : 100k RS thermistor 198-961 (4.7k pullup)
* 11 : 100k beta 3950 1% thermistor (4.7k pullup)
* 12 : 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)
* 13 : 100k Hisens 3950 1% up to 300°C for hotend "Simple ONE " & "Hotend "All In ONE"
* 20 : the PT100 circuit found in the Ultimainboard V2.x
* 60 : 100k Maker's Tool Works Kapton Bed Thermistor beta=3950
* 66 : 4.7M High Temperature thermistor from Dyze Design
* 70 : the 100K thermistor found in the bq Hephestos 2
* 75 : 100k Generic Silicon Heat Pad with NTC 100K MGB18-104F39050L32 thermistor
*
* 1k ohm pullup tables - This is atypical, and requires changing out the 4.7k pullup for 1k.
* (but gives greater accuracy and more stable PID)
* 51 : 100k thermistor - EPCOS (1k pullup)
* 52 : 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
* 55 : 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)
*
* 1047 : Pt1000 with 4k7 pullup
* 1010 : Pt1000 with 1k pullup (non standard)
* 147 : Pt100 with 4k7 pullup
* 110 : Pt100 with 1k pullup (non standard)
*
* Use these for Testing or Development purposes. NEVER for production machine.
* 998 : Dummy Table that ALWAYS reads 25°C or the temperature defined below.
* 999 : Dummy Table that ALWAYS reads 100°C or the temperature defined below.
*
* :{ '0': "Not used", '1':"100k / 4.7k - EPCOS", '2':"200k / 4.7k - ATC Semitec 204GT-2", '3':"Mendel-parts / 4.7k", '4':"10k !! do not use for a hotend. Bad resolution at high temp. !!", '5':"100K / 4.7k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '6':"100k / 4.7k EPCOS - Not as accurate as Table 1", '7':"100k / 4.7k Honeywell 135-104LAG-J01", '8':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT", '9':"100k / 4.7k GE Sensing AL03006-58.2K-97-G1", '10':"100k / 4.7k RS 198-961", '11':"100k / 4.7k beta 3950 1%", '12':"100k / 4.7k 0603 SMD Vishay NTCS0603E3104FXT (calibrated for Makibox hot bed)", '13':"100k Hisens 3950 1% up to 300°C for hotend 'Simple ONE ' & hotend 'All In ONE'", '20':"PT100 (Ultimainboard V2.x)", '51':"100k / 1k - EPCOS", '52':"200k / 1k - ATC Semitec 204GT-2", '55':"100k / 1k - ATC Semitec 104GT-2 (Used in ParCan & J-Head)", '60':"100k Maker's Tool Works Kapton Bed Thermistor beta=3950", '66':"Dyze Design 4.7M High Temperature thermistor", '70':"the 100K thermistor found in the bq Hephestos 2", '71':"100k / 4.7k Honeywell 135-104LAF-J01", '147':"Pt100 / 4.7k", '1047':"Pt1000 / 4.7k", '110':"Pt100 / 1k (non-standard)", '1010':"Pt1000 / 1k (non standard)", '-3':"Thermocouple + MAX31855 (only for sensor 0)", '-2':"Thermocouple + MAX6675 (only for sensor 0)", '-1':"Thermocouple + AD595",'998':"Dummy 1", '999':"Dummy 2" }
*/
#define TEMP_SENSOR_0 1 //表示使用100K电阻的传感器
#define TEMP_SENSOR_1 0 //表示没有使用
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_3 0
#define TEMP_SENSOR_4 0
#define TEMP_SENSOR_BED 0
// 热敏电阻在常温下的读数,用于998和999
#define DUMMY_THERMISTOR_998_VALUE 25
#define DUMMY_THERMISTOR_999_VALUE 100
// 使用温度传感器1作为传感器0的冗余。如果两个读数差别过大则会被放弃。
// from the two sensors differ too much the print will be aborted.
//#define TEMP_SENSOR_1_AS_REDUNDANT
#define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
// 挤出机的温度必须接近目标,否则一直等待直到M109返回成功
#define TEMP_RESIDENCY_TIME 10 // (seconds)
#define TEMP_HYSTERESIS 3 // (degC) range of +/- temperatures considered "close" to the target one
#define TEMP_WINDOW 1 // (degC) Window around target to start the residency timer x degC early.
// 热床的温度必须接近目标,否则一直等待直到M109返回成功
#define TEMP_BED_RESIDENCY_TIME 10 // (seconds)
#define TEMP_BED_HYSTERESIS 3 // (degC) range of +/- temperatures considered "close" to the target one
#define TEMP_BED_WINDOW 1 // (degC) Window around target to start the residency timer x degC early.
// 用于设置最低工作温度,若低于该温度 加热器则不工作,其主要用来检测热敏电阻的接线是否出错?
// 否则,这将导致加热器接通电源后一直工作。
#define HEATER_0_MINTEMP 5
#define HEATER_1_MINTEMP 5
#define HEATER_2_MINTEMP 5
#define HEATER_3_MINTEMP 5
#define HEATER_4_MINTEMP 5
#define BED_MINTEMP 5
// 定义最高温度,当温度超过最高温度,加热器将被关闭。
#define HEATER_0_MAXTEMP 275
#define HEATER_1_MAXTEMP 275
#define HEATER_2_MAXTEMP 275
#define HEATER_3_MAXTEMP 275
#define HEATER_4_MAXTEMP 275
#define BED_MAXTEMP 150
//===========================================================================
//============================= PID 比例微分积分控制 设置 ================================
//===========================================================================
// PID Tuning Guide here: http://reprap.org/wiki/PID_Tuning
// Comment the following line to disable PID and enable bang-bang. 注释下列行将禁用PID而开启 bang-bang控制。
#define PIDTEMP
#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
#if ENABLED(PIDTEMP)
//#define PID_AUTOTUNE_MENU // Add PID Autotune to the LCD "Temperature" menu to run M303 and apply the result.
//#define PID_DEBUG // Sends debug data to the serial port.
//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
//#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
//#define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders)
// Set/get with gcode: M301 E[extruder number, 0-2]
#define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
// is more than PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
#define K1 0.95 //smoothing factor within the PID
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// Ultimaker
#define DEFAULT_Kp 22.2
#define DEFAULT_Ki 1.08
#define DEFAULT_Kd 114
// MakerGear
//#define DEFAULT_Kp 7.0
//#define DEFAULT_Ki 0.1
//#define DEFAULT_Kd 12
// Mendel Parts V9 on 12V
//#define DEFAULT_Kp 63.0
//#define DEFAULT_Ki 2.25
//#define DEFAULT_Kd 440
#endif // PIDTEMP
//===========================================================================
//============================= PID >热床温度控制 ===============
//===========================================================================
//
// 选择PID or bang-bang 来控制热床温度,如果选用 bang-bang,BED_LIMIT_SWITCHING 将有所迟滞。
// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.
// If your PID_dT is the default, and correct for your hardware/configuration, that means 7.689Hz,
// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.
// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.
// If your configuration is significantly different than this and you don't understand the issues involved, you probably
// shouldn't use bed PID until someone else verifies your hardware works.
// If this is enabled, find your own PID constants below.
//#define PIDTEMPBED
//#define BED_LIMIT_SWITCHING
// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
#if ENABLED(PIDTEMPBED)
//#define PID_BED_DEBUG // 发送数据到串口调试。
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)
#define DEFAULT_bedKp 10.00
#define DEFAULT_bedKi .023
#define DEFAULT_bedKd 305.4
//120V 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
//from pidautotune
//#define DEFAULT_bedKp 97.1
//#define DEFAULT_bedKi 1.41
//#define DEFAULT_bedKd 1675.16
// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
#endif // PIDTEMPBED
// @挤出机信息
// 此选项可防止挤压如果温度低于extrude_mintemp。
// It also enables the M302 command to set the minimum extrusion temperature
// or to allow moving the extruder regardless of the hotend temperature.
// *** IT IS HIGHLY RECOMMENDED TO LEAVE THIS OPTION ENABLED! ***
#define PREVENT_COLD_EXTRUSION
#define EXTRUDE_MINTEMP 170
// 此选项可防止过小挤出,让单个挤压长度必须长于extrude_maxlength
// Note that for Bowden Extruders a too-small value here may prevent loading.
#define PREVENT_LENGTHY_EXTRUDE
#define EXTRUDE_MAXLENGTH 200
//===========================================================================
//======================== 加热失控保护 =======================
//===========================================================================
/**
* 加热防护主要用于保护您的打印机因热敏电阻脱落或温度传感器失效而造成损坏或起火,
*
* 问题:如果一个热敏电阻脱落或者温度传感器失效,当热敏电阻失效,Marlin将不能有效感知实际温度,从而会认为当前机器处于低温状态而持续加热。
*
* If you get "Thermal Runaway" or "Heating failed" errors the
* details can be tuned in Configuration_adv.h
*/
#define THERMAL_PROTECTION_HOTENDS // 让所有挤出机具备热保护功能
#define THERMAL_PROTECTION_BED // 让热床具备热保护功能
//===========================================================================
//============================= 机械设置 =========================
//===========================================================================
// @机械信息
// 取消下列注释将开启 CoreXY, CoreXZ, or CoreYZ 运动结构
//#define COREXY
//#define COREXZ
//#define COREYZ
//#define COREYX
//#define COREZX
//#define COREZY
//===========================================================================
//============================== 限位开关设置 ===========================
//===========================================================================
// @归零信息
// Specify here all the endstop connectors that are connected to any endstop or probe.
// 在这里指定的所有限位开关连接器包括所有限位开关或探头。
// 几乎打印机的每个轴都要使用一个。探测器将使用一个或多个额外的连接器。
// Almost all printers will be using one per axis. Probes will use one or more of the extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
#define USE_XMIN_PLUG
#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
//#define USE_XMAX_PLUG
//#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG
// 粗略的限位开关设置
#define ENDSTOPPULLUPS // 注释上这条将禁用限位开关的使用上拉电阻 (using // at the start of the line)
#if DISABLED(ENDSTOPPULLUPS)
// 限位开关上拉的单独设置:单个电阻。如果定义endstoppullups将忽略
//#define ENDSTOPPULLUP_XMAX
//#define ENDSTOPPULLUP_YMAX
//#define ENDSTOPPULLUP_ZMAX
//#define ENDSTOPPULLUP_XMIN
//#define ENDSTOPPULLUP_YMIN
//#define ENDSTOPPULLUP_ZMIN
//#define ENDSTOPPULLUP_ZMIN_PROBE
#endif
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
// 机械限位开关: COM 接地 、NC接信号 (最常见的设置)。
#define X_MIN_ENDSTOP_INVERTING false // 设为true时逻辑将被翻转.
#define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
// 启动这项功能将启用所有限位开关引脚的中断能力
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
//#define ENDSTOP_INTERRUPTS_FEATURE
//=============================================================================
//============================== 运动设置 ============================
//=============================================================================
// @ 运动信息
/**
* 默认设置
*
* 这些设置可以使用M502重置
*
* 注意,如果EEPROM启用,所保存的值将被覆盖。
*/
/**
* With this option each E stepper can have its own factors for the following movement settings. If fewer factors are given than the total number of extruders, the last value applies to the rest.
*/
//#define DISTINCT_E_FACTORS
/**
* Default Axis Steps Per Unit (steps/mm) 默认每个轴的步进值
* Override with M92
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_AXIS_STEPS_PER_UNIT { 80, 80, 4000, 500 }
/**
* 默认最大进给速度 (mm/s)
* Override with M203
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_MAX_FEEDRATE { 300, 300, 5, 25 }
/**
* 默认最大加速度 (change/s) change = mm/s
* (Maximum start speed for accelerated moves)
* Override with M201
* X, Y, Z, E0 [, E1[, E2[, E3[, E4]]]]
*/
#define DEFAULT_MAX_ACCELERATION { 3000, 3000, 100, 10000 }
/**
* 默认加速度 (change/s) change = mm/s
* Override with M204
*
* M204 P Acceleration
* M204 R Retract Acceleration
* M204 T Travel Acceleration
*/
#define DEFAULT_ACCELERATION 3000 // X, Y, Z and E 打印加速度
#define DEFAULT_RETRACT_ACCELERATION 3000 // E 回缩加速度
#define DEFAULT_TRAVEL_ACCELERATION 3000 // X, Y, Z 移动加速度(非打印状态)
/**
* Default Jerk (mm/s)
* Override with M205 X Y Z E
*
* "Jerk" 指定的最小速度的变化所需要加速度。
* 当改变速度和方向时, 如果差值小于在这里设置的值,它可能在瞬间发生。
*/
#define DEFAULT_XJERK 20.0
#define DEFAULT_YJERK 20.0
#define DEFAULT_ZJERK 0.4
#define DEFAULT_EJERK 5.0
//===========================================================================
//============================= Z 探头选项 =============================
//===========================================================================
// @section 喷头信息
//
// See http://marlinfw.org/configuration/probes.html
//
/**
* Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
*
* 探头 连接到Z 最小限位开关的引脚
*/
#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
/**
* Z_MIN_PROBE_ENDSTOP
*
* 使一个探针连接到任何除 Z-Min引脚以外的任何一个脚
* ( 通常连在Z-Max 限位开关的引脚 .)
* To use a custom Z Probe pin, set Z_MIN_PROBE_PIN below.
*
* - The simplest option is to use a free endstop connector.
* - Use 5V for powered (usually inductive) sensors.
*
* - RAMPS 1.3/1.4 boards may use the 5V, GND, and Aux4->D32 pin:
* - For simple switches connect...
* - normally-closed switches to GND and D32.
* - normally-open switches to 5V and D32.
*
* WARNING: Setting the wrong pin may have unexpected and potentially disastrous consequences. Use with caution and do your homework.
* 设置了错误的引脚可能会有意想不到的和潜在的灾难性的后果,请谨慎使用。
*/
//#define Z_MIN_PROBE_ENDSTOP
//#define Z_MIN_PROBE_PIN Z_MAX_PIN
/**
* Probe Type 探针类型
*
* Allen Key Probes, Servo Probes, Z-Sled Probes, FIX_MOUNTED_PROBE, etc. 点状探针、舵机探针
* 你必须激活 “热床自动调平”功能
*/
/**
* “手动探针”提供了一种无探针条件下热床自动调平的手段。
* Use G29 repeatedly, adjusting the Z height at each point with movement commands 使用G29反复发送指令以调整Z轴与各点之间的高度。
*
*/
//#define PROBE_MANUALLY
/**
* A Fix-Mounted Probe either doesn't deploy or needs manual deployment. 固定式探头
* (e.g., 感应探头或基于喷嘴头开关。)
*/
//#define FIX_MOUNTED_PROBE
/**
* Z 轴舵机探针, 如在一个旋转臂上安装一个限位开关.
*/
//#define Z_ENDSTOP_SERVO_NR 0 // Defaults to SERVO 0 connector. 默认为伺服0连接器。
//#define Z_SERVO_ANGLES {70,0} // Z Servo Deploy and Stow angles Z 舵机部署和收起的角度
/**
* BLTouch 探针, 使用霍尔效应传感器和模拟舵机.
*/
//#define BLTOUCH
#if ENABLED(BLTOUCH)
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
#endif
/**
* 如果探针看起来不太可靠时则需要开启。
加热器和风扇的工作会影响探针的有效探测
- consistent with the options selected below - will be disabled during probing so as to minimize
* potential EM interference by quieting/silencing the source of the 'noise' (the change
* in current flowing through the wires). This is likely most useful to users of the
* BLTouch probe, but may also help those with inductive or other probe types.
*/
//#define PROBING_HEATERS_OFF // 在探针工作中关闭加热器
//#define PROBING_FANS_OFF // 在探针工作中关闭风扇
// A probe that is deployed and stowed with a solenoid pin (SOL1_PIN) 探针的部署和收起主要靠SOL1_PIN 来控制
//#define SOLENOID_PROBE
// A sled-mounted probe like those designed by Charles Bell.
//#define Z_PROBE_SLED
//#define SLED_DOCKING_OFFSET 5 // The extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
//
// 对于z_probe_allen_key可参考“三角洲”配置示例。
//
/**
* Z探针相对于喷嘴位置(X,Y )的偏移
* X and Y offsets must be integers.
*
* In the following example the X and Y offsets are both positive:
* #define X_PROBE_OFFSET_FROM_EXTRUDER 10
* #define Y_PROBE_OFFSET_FROM_EXTRUDER 10
*
* +-- BACK ---+
* | |
* L | (+) P | R <-- probe (20,20)
* E | | I
* F | (-) N (+) | G <-- nozzle (10,10)
* T | | H
* | (-) | T
* | |
* O-- FRONT --+
* (0,0)
*/
#define X_PROBE_OFFSET_FROM_EXTRUDER 10 // X offset: -left +right [of the nozzle]
#define Y_PROBE_OFFSET_FROM_EXTRUDER 10 // Y offset: -front +behind [the nozzle]
#define Z_PROBE_OFFSET_FROM_EXTRUDER 0 // Z offset: -below +above [the nozzle]
// 在探测时 X and Y轴的移动速度
#define XY_PROBE_SPEED 8000
// Z轴的移动速度 (with PROBE_DOUBLE_TOUCH)
#define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
// 每个点的探测速度
#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
// 使用两次触碰作为探测结果
//#define PROBE_DOUBLE_TOUCH
/**
* 避免探针在探测、收起或探测点之间移动时触碰其他硬件或热床。
* 舵机所安装的探头在旋转时必须保证足够的空间。
* 而感应探针则需要足够的空间来避免过早被碰撞.
*
* 使用这些设置来提高探针在探测移动过程中的距离(或降低热床)
* probe Z Offset set with Z_PROBE_OFFSET_FROM_EXTRUDER, M851, or the LCD.
* Only integer values >= 1 are valid here.
*
* Example: `M851 Z-5` with a CLEARANCE of 4 => 9mm from bed to nozzle.
* But: `M851 Z+1` with a CLEARANCE of 2 => 2mm from bed to nozzle.
*/
#define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow
#define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
//使用 M851 给个范围以调整Z探针偏移
#define Z_PROBE_OFFSET_RANGE_MIN -20
#define Z_PROBE_OFFSET_RANGE_MAX 20
// 可使用 M48 进行重复性测试以测试 探头精度
//#define Z_MIN_PROBE_REPEATABILITY_TEST
// 反转电机的引脚驱动(低电平使能为0、高电平使能为1)
// :{ 0:'Low', 1:'High' }
#define X_ENABLE_ON 0
#define Y_ENABLE_ON 0
#define Z_ENABLE_ON 0
#define E_ENABLE_ON 0 // For all extruders
// 当某个轴上的步进电机不需要使用时可禁用它。
// WARNING: When motors turn off there is a chance of losing position accuracy!
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
// 关于 “精度降低” 的警告显示
//#define DISABLE_REDUCED_ACCURACY_WARNING
// @ 挤出机信息
#define DISABLE_E false // 所有挤出机关闭或开启
#define DISABLE_INACTIVE_EXTRUDER true // Keep only the active extruder enabled. 仅开启活动挤出机
// @机械信息
// 反转步进电机的方向. Change (or reverse the motor connector) if an axis goes the wrong way.
#define INVERT_X_DIR false
#define INVERT_Y_DIR true
#define INVERT_Z_DIR false
// 开启这个选项 将启用 东芝步进电机驱动
//#define CONFIG_STEPPERS_TOSHIBA
// @挤出机信息
// 直接挤出机则设为true,齿轮挤出机则设为false
#define INVERT_E0_DIR false
#define INVERT_E1_DIR false
#define INVERT_E2_DIR false
#define INVERT_E3_DIR false
#define INVERT_E4_DIR false
// @ 归零信息
//#define Z_HOMING_HEIGHT 4 // 在归零时让Z轴抬起的高度
// Be sure you have this distance over your Z_MAX_POS in case.
// 归零时的限位开关方向 ; 1=MAX, -1=MIN
// :[-1,1]
#define X_HOME_DIR -1
#define Y_HOME_DIR -1
#define Z_HOME_DIR -1
// @ 机械信息
// (units are in mm) 归零后的移动限制
#define X_MIN_POS 0
#define Y_MIN_POS 0
#define Z_MIN_POS 0
#define X_MAX_POS 200
#define Y_MAX_POS 200
#define Z_MAX_POS 200
// 如果开启,轴的运动最小不小于 MIN_POS //软限位
#define MIN_SOFTWARE_ENDSTOPS
// 如果开启,轴的运动最大不高于 MAX_POS //软限位
#define MAX_SOFTWARE_ENDSTOPS
/**
* Filament Runout Sensor 缺丝检测传感器
* 检测是否缺丝
*
* RAMPS-based boards use SERVO3_PIN.
* For other boards you may need to define FIL_RUNOUT_PIN.
* By default the firmware assumes HIGH = has filament, LOW = ran out 默认 高电平为有丝 ,低电平为 缺丝
*/
//#define FILAMENT_RUNOUT_SENSOR
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
//===========================================================================
//=============================== 热床调平 ==============================
//===========================================================================
// @热床调平信息
/**
* 选择下列选项之一以使用G29来调整热床水平。
G29的参数及运行动作将会随着你所设置的选项而发生改变。
*
*
* 如果使用Z归零探针,请注意开启 Z_SAFE_HOMING
*
* - AUTO_BED_LEVELING_3POINT
* 探测热床上的任意3点(3点不在一条线上)
* 您需要指定3个点的XY坐标。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_LINEAR 线性
* 探测网格中的几个点。
* 您需要指定的矩形以及采样点的密度。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_BILINEAR 双线性
* 探测网格中的几个点。
* 您需要指定的矩形以及采样点的密度。
* 结果是一个倾斜的平面。最好是个平板。
*
* - AUTO_BED_LEVELING_UBL (联合热床调平)
* 一个结合了其他系统特点及优势的全面调平系统。
* 全面热床调平 同样包括集成的网格生成,网格验证及网格编辑系统 。
* 当前, UBL是只用于检测笛卡尔坐标系打印机。 其主要用于纠正三角洲打印机的打印质量。
*
* 如果你愿意冒险并且拥有三角洲打印机
* 你需要设定一个降低热床的距离,从而让你有一个矩形区域进行测试。
*
*
* - MESH_BED_LEVELING
* 探测一个手动网格
* 其结果是一个网格,适合大型或凹凸不平的床。 (See BILINEAR.)
* 对于没有探针的机器 , 网床找平提供了一种在台阶上进行水准测量的方法,以便在每个网格点上手动调整z高度。
* 根据LCD控制器的指示一步一步进行调整。
*/
//#define AUTO_BED_LEVELING_3POINT //3点式
//#define AUTO_BED_LEVELING_LINEAR
//#define AUTO_BED_LEVELING_BILINEAR
//#define AUTO_BED_LEVELING_UBL
//#define MESH_BED_LEVELING
/**
* 启用G28, G29, M48运行的详细日志
* 使用'M111 S32'命令来开启
* NOTE: Requires a lot of PROGMEM!
*/
//#define DEBUG_LEVELING_FEATURE
#if ENABLED(MESH_BED_LEVELING) || ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)
// 逐渐进行热床水平修正直到刚刚达到所设置X,Y坐标所对应的高度
// 这个高度可以使用 M420 Z<height> 来进行设置
#define ENABLE_LEVELING_FADE_HEIGHT
#endif
#if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
// 设置每个维度的网格点数。
#define GRID_MAX_POINTS_X 3
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
// 设置探测的边界(where the probe can reach).
#define LEFT_PROBE_BED_POSITION 15 //探针在热床左侧进行探测的位置
#define RIGHT_PROBE_BED_POSITION 170 //探针在热床右侧进行探测的位置
#define FRONT_PROBE_BED_POSITION 20 //探针在热床前端进行探测的位置
#define BACK_PROBE_BED_POSITION 170 //探针在热床后端进行探测的位置
// z探针最小外侧边缘 ( 为了验证G29参数).
#define MIN_PROBE_EDGE 10
// 探针沿着Y轴,不断改变X的值 直到完成每一列的探测
//#define PROBE_Y_FIRST
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
// 在探测网格之外,存在隐含的倾斜?
// 默认保存就近边缘的高度
//#define EXTRAPOLATE_BEYOND_GRID
//
// 通过Catmull-Rom方法细分网格实验。
// 合成中间点以产生更详细的网格。
//
//#define ABL_BILINEAR_SUBDIVISION
#if ENABLED(ABL_BILINEAR_SUBDIVISION)
// 探针点之间的细分数目
#define BILINEAR_SUBDIVISIONS 3
#endif
#endif
#elif ENABLED(AUTO_BED_LEVELING_3POINT)
// 探测3个任意点
// 一个简单的交叉积用来估计床的平面。
#define ABL_PROBE_PT_1_X 15
#define ABL_PROBE_PT_1_Y 180
#define ABL_PROBE_PT_2_X 15
#define ABL_PROBE_PT_2_Y 20
#define ABL_PROBE_PT_3_X 170
#define ABL_PROBE_PT_3_Y 20
#elif ENABLED(AUTO_BED_LEVELING_UBL)
//===========================================================================
//========================= 联合热床自动调平 ============================
//===========================================================================
#define UBL_MESH_INSET 1 // 在打印区域插入网格
#define GRID_MAX_POINTS_X 10 // 不要每轴使用超过15个点,在实现上有所限制。
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
#define UBL_PROBE_PT_1_X 39 // 设置3点坐标
#define UBL_PROBE_PT_1_Y 180
#define UBL_PROBE_PT_2_X 39
#define UBL_PROBE_PT_2_Y 20
#define UBL_PROBE_PT_3_X 180
#define UBL_PROBE_PT_3_Y 20
#define UBL_G26_MESH_VALIDATION // 开启G26网格验证
#define UBL_MESH_EDIT_MOVES_Z // 老用户喜欢喷嘴不移动
#elif ENABLED(MESH_BED_LEVELING)
//===========================================================================
//=================================== 网格 ==================================
//===========================================================================
#define MESH_INSET 10 // 在打印区域插入网格
#define GRID_MAX_POINTS_X 3 // 不要每轴使用超过7个点,实现限制。
#define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
//#define MESH_G28_REST_ORIGIN // 在所有轴归零后 ('G28' or 'G28 XYZ') 让Z轴重设在 Z_MIN_POS 的位置
#endif // BED_LEVELING
/**
* 使用液晶控制器进行床层平整
* 要求 MESH_BED_LEVELING or PROBE_MANUALLY
*/
//#define LCD_BED_LEVELING
#if ENABLED(LCD_BED_LEVELING)
#define MBL_Z_STEP 0.025 // 手动探测过程中Z轴的移动步长
#define LCD_PROBE_Z_RANGE 4 // 使用LCD来进行控制时 Z轴的移动范围(从Z_MIN_POS )
#endif
/**
* 用于执行 G29 探测命令。
* 用于缩回或移动Z探头非常有用
*/
//#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10"
// @ 归零信息
// 热床中心(X=0, Y=0)
//#define BED_CENTER_AT_0_0
// 手动设置零位
//#define MANUAL_X_HOME_POS 0
//#define MANUAL_Y_HOME_POS 0
//#define MANUAL_Z_HOME_POS 0
// 使用“Z安全归零”,避免在归零操作是Z探针在床区外
// 启用此功能:
// With this feature enabled:
//
// -
// - 如果步进驱动器超时, 它将需要X和Y重新归位然后再让Z归位。
// - Move the Z probe (or nozzle) to a defined XY point before Z Homing when homing all axes (G28).
// - 保护Z探头 。
//#define Z_SAFE_HOMING
#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2) // X point for Z homing when homing all axis (G28).
#define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2) // Y point for Z homing when homing all axis (G28).
#endif
// 归零速度(mm/m)
#define HOMING_FEEDRATE_XY (50*60)
#define HOMING_FEEDRATE_Z (4*60)
//=============================================================================
//============================= 附加特性 ===========================
//=============================================================================
// @ 附加信息
//
// EEPROM 存储器;
//
/ 微控制器可以在EEPROM中存储相关设置。, e.g. max velocity...
// M500 - 在 EEPROM 中存储参数
// M501 - 从 EEPROM 读取参数
// M502 - 恢复出厂设置。
//define this to enable EEPROM support
//#define EEPROM_SETTINGS
#if ENABLED(EEPROM_SETTINGS)
// 禁止 EEPROM 串口响应及减少程序占用空间,请注释下列行:
#define EEPROM_CHITCHAT // Please keep turned on if you can.
#endif
//
// 主机保持活跃状态
//
//
// 当启用时,Marlin在无法接受命令时,其将每隔几秒钟就会发送一个繁忙的状态信息给主机。
//
#define HOST_KEEPALIVE_FEATURE // 禁用此条语句,如果不喜欢主机接受保持活跃状态的消息
#define DEFAULT_KEEPALIVE_INTERVAL 2 // “繁忙”消息之间的间隔秒数,使用M113进行设置.
//
// M100 自由内存监视器
//
//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose 取消注释,将为调试时添加M100自由内存监视器
//
// G20/G21 寸模式支持
//
//#define INCH_MODE_SUPPORT
//
// M149 支持设置温度单位
//
//#define TEMPERATURE_UNITS_SUPPORT
// @温度信息
// 预热常数
#define PREHEAT_1_TEMP_HOTEND 180
#define PREHEAT_1_TEMP_BED 70
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
#define PREHEAT_2_TEMP_HOTEND 240
#define PREHEAT_2_TEMP_BED 110
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
/**
* 喷嘴 -- 实验性的
*
* 在空闲时将喷嘴置于给定的XYZ位置 or G27.
*
* “p”参数控制应用于z轴的操作。:
*
* P0 (Default) 如果当前z的位置低于 z 停驻位置,将抬起喷嘴。
* P1 总是提高喷嘴到 z 停驻位置的高度 。
* P2 总是提高喷嘴到 z 停驻位置的高度, 同时也受限于 Z_MAX_POS.
*/
//#define NOZZLE_PARK_FEATURE
#if ENABLED(NOZZLE_PARK_FEATURE)
// 指定停驻位置{ X, Y, Z }
#define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
#endif
/**
* 清洁喷嘴的参数 -- 实验性的
*
* 添加G12命令用于执行喷嘴清洗工作。
*
* 参数:
* P 模式
* S Strokes / Repetitions
* T 三角形 (P1 only)
*
* 模式:
* P0 直线(默认). .这个过程需要在热床的指定位置上使用海绵状材料。
* "S" 指定开始和结束的点 .
*
*
* P1 在 (X0, Y0)与(X1, Y1) 之间呈锯齿形图案, "T" 主要指定锯齿数量. "S" 定义笔画数.
* For example, "G12 P1 S1 T3" will execute:
*
* --
* | (X0, Y1) | /\ /\ /\ | (X1, Y1)
* | | / \ / \ / \ |
* A | | / \ / \ / \ |
* | | / \ / \ / \ |
* | (X0, Y0) | / \/ \/ \ | (X1, Y0)
* -- +--------------------------------+
* |________|_________|_________|
* T1 T2 T3
*
* P2 以NOZZLE_CLEAN_CIRCLE_MIDDLE为中心的圆.
* "R"指定半径. "S"指定划数.
* 启动前,喷嘴移动到 NOZZLE_CLEAN_START_POINT 点的位置.
*
* 注意事项:结束Z应该与启动Z相同。
*
*
*/
//#define NOZZLE_CLEAN_FEATURE
#if ENABLED(NOZZLE_CLEAN_FEATURE)
// 模式重复的默认数目
#define NOZZLE_CLEAN_STROKES 12
// 默认三角形数
#define NOZZLE_CLEAN_TRIANGLES 3
// 指定的位置{ X, Y, Z }
#define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
#define NOZZLE_CLEAN_END_POINT {100, 60, (Z_MIN_POS + 1)}
// 圆半径
#define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
//圆型圆碎片数
#define NOZZLE_CLEAN_CIRCLE_FN 10
//圆中心点
#define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
//将喷嘴移动到初始位置。
#define NOZZLE_CLEAN_GOBACK
#endif
/**
* 打印作业的定时器
*
* 自动启动和停止打印作业计时器 M104/M109/M190.
*
* M104 (hotend, no wait) - high temp = none, low temp = stop timer
* M109 (hotend, wait) - high temp = start timer, low temp = stop timer
* M190 (bed, wait) - high temp = start timer, low temp = none
*
* 计时器也可以用以下命令来控制:
*
* M75 - 启动打印作业计时器
* M76 - 暂停打印作业计时器
* M77 - 停止打印作业计时器
*/
#define PRINTJOB_TIMER_AUTOSTART
/**
* 设置打印计数器
*
* 跟踪统计数据,例如:
*
* - 总打印作业数
* - 总成功打印作业数
* - 总失败打印作业数
* - 总打印时长
*
* 使用M78查看当前统计数据 。
*/
//#define PRINTCOUNTER
//=============================================================================
//============================= 液晶显示器和SD卡支持============================
//=============================================================================
// @液晶显示器信息
/**
* LCD语言
*
* Select the language to display on the LCD. These languages are available:
*
* en, an, bg, ca, cn, cz, de, el, el-gr, es, eu, fi, fr, gl, hr, it,
* kana, kana_utf8, nl, pl, pt, pt_utf8, pt-br, pt-br_utf8, ru, tr, uk, test
*
* :{ 'en':'English', 'an':'Aragonese', 'bg':'Bulgarian', 'ca':'Catalan', 'cn':'Chinese', 'cz':'Czech', 'de':'German', 'el':'Greek', 'el-gr':'Greek (Greece)', 'es':'Spanish', 'eu':'Basque-Euskera', 'fi':'Finnish', 'fr':'French', 'gl':'Galician', 'hr':'Croatian', 'it':'Italian', 'kana':'Japanese', 'kana_utf8':'Japanese (UTF8)', 'nl':'Dutch', 'pl':'Polish', 'pt':'Portuguese', 'pt-br':'Portuguese (Brazilian)', 'pt-br_utf8':'Portuguese (Brazilian UTF8)', 'pt_utf8':'Portuguese (UTF8)', 'ru':'Russian', 'tr':'Turkish', 'uk':'Ukrainian', 'test':'TEST' }
*/
#define LCD_LANGUAGE en
/**
* LCD字符集
*
* Note: 此选项不适用于图形显示。
*
* All character-based LCDs provide ASCII plus one of these
* language extensions:
*
* - JAPANESE ... the most common
* - WESTERN ... with more accented characters
* - CYRILLIC ... for the Russian language
*
* 确定控制器上安装的语言扩展名:
*
* - Compile and upload with LCD_LANGUAGE set to 'test'
* - Click the controller to view the LCD menu
* - The LCD will display Japanese, Western, or Cyrillic text
*
* See https://github.com/MarlinFirmware/Marlin/wiki/LCD-Language
*
* :['JAPANESE', 'WESTERN', 'CYRILLIC']
*/
#define DISPLAY_CHARSET_HD44780 JAPANESE
/**
* 液晶屏类型
*
* Enable ULTRA_LCD for a 16x2, 16x4, 20x2, or 20x4 character-based LCD.
* Enable DOGLCD for a 128x64 (ST7565R) Full Graphical Display.
* (These options will be enabled automatically for most displays.)
*
* IMPORTANT: The U8glib library is required for Full Graphic Display!
* https://github.com/olikraus/U8glib_Arduino
*/
//#define ULTRA_LCD // 基于特征字
//#define DOGLCD // 全图形显示
/**
* 记忆卡
*
* 默认情况下禁用SD卡支持。如果你的控制器有一个sd插槽,
* 你必须取消下列注释,否则将不能工作.
*
*/
//#define SDSUPPORT
/**
* SD卡:SPI速度
*
* 启用下列项目之一来降低SPI传输速度。
* 这可用于解决“卷初始化”错误。
*/
//#define SPI_SPEED SPI_HALF_SPEED
//#define SPI_SPEED SPI_QUARTER_SPEED
//#define SPI_SPEED SPI_EIGHTH_SPEED
/**
* SD卡:启用CRC
*
* 采用CRC校验和重试 SD的通讯。
*/
//#define SD_CHECK_AND_RETRY
//
//编码器的设置
//
//此选项覆盖了生成一步所需的编码器脉冲的默认数目。 应增加高分辨率编码器。
//
//
//#define ENCODER_PULSES_PER_STEP 1
//
// 使用此选项来覆盖要求下/上一个菜单项之间移动一步的信号数。
//
//
//#define ENCODER_STEPS_PER_MENU_ITEM 5
/**
* 编码器方向选择
*
* 首先测试编码器的行为,同时禁用两个选项。
*
* Reversed Value Edit and Menu Nav? Enable REVERSE_ENCODER_DIRECTION.
* Reversed Menu Navigation only? Enable REVERSE_MENU_DIRECTION.
* Reversed Value Editing only? Enable BOTH options.
*/
//
//此选项颠倒编码器方向。
//
// Set this option if CLOCKWISE causes values to DECREASE
//
//#define REVERSE_ENCODER_DIRECTION
//
// 此选项用于反转lcd导航菜单的编码器方向。
//
// If CLOCKWISE normally moves DOWN this makes it go UP.
// If CLOCKWISE normally moves UP this makes it go DOWN.
//
//#define REVERSE_MENU_DIRECTION
//
// 单轴的归零
//
// 在LCD菜单上增加单轴归零选项 (Home X, Home Y, and Home Z) to the LCD menu.
//
//#define INDIVIDUAL_AXIS_HOMING_MENU
//
//扬声器/蜂鸣器
//
// 如果你有一个能产生音调的扬声器,在这里启用它。
// 默认情况下,MARLIN 假设你有一个固定频率的蜂鸣器。
//
//#define SPEAKER
//
// UI反馈声音的持续时间和频率。
// Set these to 0 to disable audio feedback in the LCD menus.
//
// Note: Test audio output with the G-Code:
// M300 S<frequency Hz> P<duration ms>
//
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000
//
// 控制器类型:标准
//
// Marlin 支持多种控制器。
// Enable one of the following options to specify your controller.
//
//
// Ultimaker控制器。
//
//#define ULTIMAKERCONTROLLER
//
// ULTIPANEL as seen on Thingiverse.
//
//#define ULTIPANEL
//
// Cartesio UI
// http://mauk.cc/webshop/cartesio-shop/electronics/user-interface
//
//#define CARTESIO_UI
//
// PanelOne from T3P3 (via RAMPS 1.4 AUX2/AUX3)
// http://reprap.org/wiki/PanelOne
//
//#define PANEL_ONE
//
// MaKr3d Makr-Panel with graphic controller and SD support.
// http://reprap.org/wiki/MaKr3d_MaKrPanel
//
//#define MAKRPANEL
//
// ReprapWorld Graphical LCD
// https://reprapworld.com/?products_details&products_id/1218
//
//#define REPRAPWORLD_GRAPHICAL_LCD
//
// Activate one of these if you have a Panucatt Devices
// Viki 2.0 or mini Viki with Graphic LCD
// http://panucatt.com
//
//#define VIKI2
//#define miniVIKI
//
// Adafruit ST7565 Full Graphic Controller.
// https://github.com/eboston/Adafruit-ST7565-Full-Graphic-Controller/
//
//#define ELB_FULL_GRAPHIC_CONTROLLER
//
// RepRapDiscount Smart Controller.
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller
//
// Note: Usually sold with a white PCB.
//
//#define REPRAP_DISCOUNT_SMART_CONTROLLER
//
// GADGETS3D G3D LCD/SD Controller
// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
//
// Note: Usually sold with a blue PCB.
//
//#define G3D_PANEL
//
// RepRapDiscount FULL GRAPHIC Smart Controller
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
//
// MakerLab Mini Panel with graphic
// controller and SD support - http://reprap.org/wiki/Mini_panel
//
//#define MINIPANEL
//
// RepRapWorld REPRAPWORLD_KEYPAD v1.1
// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
//
// REPRAPWORLD_KEYPAD_MOVE_STEP sets how much should the robot move when a key
// is pressed, a value of 10.0 means 10mm per click.
//
//#define REPRAPWORLD_KEYPAD
//#define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
//
// RigidBot Panel V1.0
// http://www.inventapart.com/
//
//#define RIGIDBOT_PANEL
//
// BQ LCD Smart Controller shipped by
// default with the BQ Hephestos 2 and Witbox 2.
//
//#define BQ_LCD_SMART_CONTROLLER
//
// CONTROLLER TYPE: I2C
//
// Note: These controllers require the installation of Arduino's LiquidCrystal_I2C
// library. For more info: https://github.com/kiyoshigawa/LiquidCrystal_I2C
//
//
// Elefu RA Board Control Panel
// http://www.elefu.com/index.php?route=product/product&product_id=53
//
//#define RA_CONTROL_PANEL
//
// Sainsmart YW Robot (LCM1602) LCD Display
//
//#define LCD_I2C_SAINSMART_YWROBOT
//
// Generic LCM1602 LCD adapter
//
//#define LCM1602
//
// PANELOLU2 LCD with status LEDs,
// separate encoder and click inputs.
//
// Note: This controller requires Arduino's LiquidTWI2 library v1.2.3 or later.
// For more info: https://github.com/lincomatic/LiquidTWI2
//
// Note: The PANELOLU2 encoder click input can either be directly connected to
// a pin (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
//
//#define LCD_I2C_PANELOLU2
//
// Panucatt VIKI LCD with status LEDs,
// integrated click & L/R/U/D buttons, separate encoder inputs.
//
//#define LCD_I2C_VIKI
//
// SSD1306 OLED full graphics generic display
//
//#define U8GLIB_SSD1306
//
// SAV OLEd LCD module support using either SSD1306 or SH1106 based LCD modules
//
//#define SAV_3DGLCD
#if ENABLED(SAV_3DGLCD)
//#define U8GLIB_SSD1306
#define U8GLIB_SH1106
#endif
//
// 控制器类型:移位寄存器面板
//
// 2 wire Non-latching LCD SR from https://goo.gl/aJJ4sH
// LCD configuration: http://reprap.org/wiki/SAV_3D_LCD
//
//#define SAV_3DLCD
//
// TinyBoy2 128x64 OLED / Encoder Panel
//
//#define OLED_PANEL_TINYBOY2
//=============================================================================
//=============================== 额外功能 ==============================
//=============================================================================
// @额外信息
// 增加风扇pwm频率。消除PWM噪声但增加FET / Arduino加热
//#define FAST_PWM_FAN
// 使用软件PWM驱动风扇,如加热器。 这使用一个非常低的频率,不像硬件PWM那样令人讨厌。
// 另一方面,如果这个频率太低了,你还可以适当增加 SOFT_PWM_SCALE.。
//
//#define FAN_SOFT_PWM
// 增加1将使软PWM频率翻倍。 0对应128.
#define SOFT_PWM_SCALE 0
// 如果SOFT_PWM_SCALE 设置的值大于0, 抖动可以用来减轻相关的分辨率损失。
//
// 如果开启,有些PWM周期被拉长,因此平均所需的占空比达到。
//
//#define SOFT_PWM_DITHER
//用LED显示温度状态。
// 如果所有的hotends,床层温度和目标温度均低于54。,蓝色LED灯亮,反之红灯亮。
//
//#define TEMP_STAT_LEDS
// M240触发相机佳能1远程仿真
// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
//#define PHOTOGRAPH_PIN 23
// skeinforge发出错误的弧G代码时使用电弧点圆角程序
//#define SF_ARC_FIX
//为baricuda膏挤出机支持。
//#define BARICUDA
//支持BlinkM/CyzRgb
//#define BLINKM
/**
* 彩色LED / LED条控制
*
* Enable support for an RGB LED connected to 5V digital pins, or
* an RGB Strip connected to MOSFETs controlled by digital pins.
*
* Adds the M150 command to set the LED (or LED strip) color.
* If pins are PWM capable (e.g., 4, 5, 6, 11) then a range of
* luminance values can be set from 0 to 255.
*
* *** CAUTION ***
* LED Strips require a MOFSET Chip between PWM lines and LEDs,
* as the Arduino cannot handle the current the LEDs will require.
* Failure to follow this precaution can destroy your Arduino!
* *** CAUTION ***
*
*/
//#define RGB_LED
//#define RGBW_LED
#if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#define RGB_LED_R_PIN 34
#define RGB_LED_G_PIN 43
#define RGB_LED_B_PIN 35
#define RGB_LED_W_PIN -1
#endif
/**
* 打印事件的LED状态
*
* 在打印过程中,LED将反映打印机状态:
*
* - 当加热床到达目标温度时,逐渐由蓝色变为紫色。
* - 当hotend到达温度时, 逐渐从紫到红 。
* - 变白以照亮工作面
* - 打印完成后改为绿色
* - 当打印完成后并用户按下按钮时,将关闭,
*/
#if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED)
#define PRINTER_EVENT_LEDS
#endif
/*********************************************************************\
* R/C 舵机支持
* Sponsored by TrinityLabs, Reworked by codexmas
**********************************************************************/
//舵机数量
//
// 如果您选择下面的配置,不需要进行手动控制。
//
// leaving it undefined or defining as 0 will disable the servo subsystem
// If unsure, leave commented / disabled
//
//#define NUM_SERVOS 3 // 使用 M280 进行控制,舵机顺序由0开始。
// 在下一步开始之前,延迟(毫秒),使伺服时间达到目标角。
// 300ms是一个很好的值,但是你可以试着减少延迟。
// 如果伺服不能达到所要求的位置,增加它。
#define SERVO_DELAY 300
// 舵机去活化
//
// 让舵机在运动时供电,不需要运动时断电,以防止其出现意外抖动。
//#define DEACTIVATE_SERVOS_AFTER_MOVE
/**
* 纤维宽度传感器
*
* 实时测量打印丝的宽度,调整流量以补偿任何不规则现象。
*
*
* Also allows the measured filament diameter to set the
* extrusion rate, so the slicer only has to specify the
* volume.
*
* Only a single extruder is supported at this time.
*
* 34 RAMPS_14 : Analog input 5 on the AUX2 connector
* 81 PRINTRBOARD : Analog input 2 on the Exp1 connector (version B,C,D,E)
* 301 RAMBO : Analog input 3
*
* Note: May require analog pins to be defined for other boards.
*/
//#define FILAMENT_WIDTH_SENSOR
#define DEFAULT_NOMINAL_FILAMENT_DIA 3.00 // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
#if ENABLED(FILAMENT_WIDTH_SENSOR)
#define FILAMENT_SENSOR_EXTRUDER_NUM 0 // Index of the extruder that has the filament sensor (0,1,2,3)
#define MEASUREMENT_DELAY_CM 14 // (cm) The distance from the filament sensor to the melting chamber
#define MEASURED_UPPER_LIMIT 3.30 // (mm) Upper limit used to validate sensor reading
#define MEASURED_LOWER_LIMIT 1.90 // (mm) Lower limit used to validate sensor reading
#define MAX_MEASUREMENT_DELAY 20 // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
#define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
// Display filament width on the LCD status line. Status messages will expire after 5 seconds.
//#define FILAMENT_LCD_DISPLAY
#endif
#endif // CONFIGURATION_H