###########################################################################################################
# Bigtreetech SKR V1.4 configuration file for Smoothiware, see http://smoothieware.org/configuring-smoothie
# NOTE Lines must not exceed 132 characters, and '#' characters mean what follows is ignored
###########################################################################################################
# Target : K40 Laser cutter. 
###########################################################################################################
# Uses :
# - X & Y Motor
# - X & Y Min endstop
# - Laser PWM has to be took from servo (2.0)
# - Laser on/off has to be took from probe (0.10)
# - Reprap discount GLCD adapter,either with foftware modification for Soft SPI support
#   or spectial adapter  wiring SPI0 to both LCD and SDcard (standard Smoothie)
# Please note, if using Cohesion3D Clustering firmware, SD card is not mounted on the computer. You'll have to modify
# config.txt using a attached SDCard reader on the computer.

arm_solution									cartesian	# Selects the linear_delta / cartesian arm solution

# Arm solution configuration : Cartesian robot. Translates mm positions into stepper positions
# See http://smoothieware.org/stepper-motors 157.575?  80 for 1/8e, 160 for 1/16e 320 for 1/32e
alpha_steps_per_mm 							 	157		# Steps per mm for alpha ( X ) stepper and tower
beta_steps_per_mm								157		# Steps per mm for beta  ( Y ) stepper and tower
gamma_steps_per_mm								157		# Steps per mm for gamma ( Z ) stepper and tower


# Stepper module configuration
microseconds_per_step_pulse							1		# Duration of step pulses to stepper drivers, in microseconds
base_stepping_frequency								100000		# Base frequency for stepping : 100 khz

# Cartesian axis speed limits
x_axis_max_speed								25000		# X Maximum speed in mm/min
y_axis_max_speed								25000		# Y Maximum speed in mm/min
z_axis_max_speed								25000		# Z Maximum speed in mm/min

# Basic motion configuration
default_feed_rate								9000		# Default speed (mm/minute) for G1/G2/G3 moves
default_seek_rate								9000		# Default speed (mm/minute) for G0 moves
mm_per_arc_segment								0.0		# Fixed length for line segments that divide arcs, 0 to disable
mm_max_arc_error								0.01		# The maximum error for line segments that divide arcs 0 to disable
                                                            					# note it is invalid for both the above be 0
                                                            					# if both are used, will use largest segment length based on radius
#mm_per_line_segment								5		# Lines can be cut into segments ( not usefull with cartesian
															# coordinates robots ).

# Planner module configuration : Look-ahead and acceleration configuration
# See http://smoothieware.org/motion-control
planner_queue_size								32		# DO NOT CHANGE THIS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING
acceleration									1500		# Acceleration in mm/second/second.
#z_acceleration									500		# Acceleration for Z only moves in mm/s^2, 0 uses acceleration which is the default. DO NOT SET ON A DELTA
junction_deviation								0.05		# See http://smoothieware.org/motion-control#junction-deviation
#z_junction_deviation								0.0		# For Z only moves, -1 uses junction_deviation, zero disables junction_deviation on z moves DO NOT SET ON A DELTA
#minimum_planner_speed								0.0		# sets the minimum planner speed in mm/sec

# Stepper module configuration 
# Pins are defined as  ports, and pin numbers, appending "!" to the number will invert a pin
# See http://smoothieware.org/pin-configuration and http://smoothieware.org/pinout
alpha_step_pin									2.2		# Pin for alpha stepper step signal
alpha_dir_pin									2.6!		# Pin for alpha stepper direction, add '!' to reverse direction
alpha_en_pin									2.1		# Pin for alpha enable pin
alpha_current									0.4		# M1 stepper motor current
alpha_acceleration								1500		# mm/secÂ²
alpha_max_rate									25000		# Maximum rate in mm/min

beta_step_pin									0.19		# Pin for beta stepper step signal
beta_dir_pin									0.20!		# Pin for beta stepper direction, add '!' to reverse direction
beta_en_pin									2.8		# Pin for beta enable
beta_current									0.6		# Y stepper motor current
beta_acceleration								1500		# mm/secÂ²
beta_max_rate                                					25000		# Maxmimum rate in mm/min

gamma_step_pin									0.22		# Pin for gamma stepper step signal
gamma_dir_pin									2.11		# Pin for gamma stepper direction, add '!' to reverse direction
gamma_en_pin									0.21		# Pin for gamma enable
gamma_current									0.6		# Z stepper motor current
gamma_acceleration								2600		# mm/secÂ²
gamma_max_rate									12000		# Maximum rate in mm/min

# A axis
delta_steps_per_mm								100		# may be steps per degree for example
delta_step_pin									2.13		# Pin for delta stepper step signal
delta_dir_pin									0.11		# Pin for delta stepper direction
delta_en_pin									2.12		# Pin for delta enable
delta_current									0.6		# Z stepper motor current
delta_acceleration								1000		# mm/secÂ²
delta_max_rate									12000		# mm/min

# B axis
epsilon_steps_per_mm								100		# may be steps per degree for example
epsilon_step_pin								1.15		# Pin for delta stepper step signal
epsilon_dir_pin									1.14		# Pin for delta stepper direction
epsilon_en_pin									1.16		# Pin for delta enable
epsilon_current									1.5		# Z stepper motor current
epsilon_acceleration								500.0		# mm/secÂ²
epsilon_max_rate								300.0		# mm/min

# C axis
zeta_steps_per_mm								100		# may be steps per degree for example
zeta_step_pin									xx		# Pin for delta stepper step signal
zeta_dir_pin									xx		# Pin for delta stepper direction
zeta_en_pin									xx		# Pin for delta enable
zeta_current									1.5		# Z stepper motor current
zeta_acceleration								500.0		# mm/secÂ²
zeta_max_rate									300.0		# mm/min

# Extruder module configuration
extruder.hotend.enable								false		# Whether to activate the extruder module at all. All configuration is ignored if false
extruder.hotend.steps_per_mm							157.575		# Steps per mm for extruder stepper
extruder.hotend.default_feed_rate						60000		# Default rate ( mm/minute ) for moves where only the extruder moves
extruder.hotend.acceleration							3000		# Acceleration for the stepper motor mm/sec?
extruder.hotend.max_speed							1000		# mm/s

extruder.hotend.step_pin							2.13		# Pin for extruder step signal
extruder.hotend.dir_pin								0.11		# Pin for extruder dir signal
extruder.hotend.en_pin								2.12		# Pin for extruder enable signal

# extruder offset
#extruder.hotend.x_offset							0		# x offset from origin in mm
#extruder.hotend.y_offset							0		# y offset from origin in mm
#extruder.hotend.z_offset							0		# z offset from origin in mm

# firmware retract settings when using G10/G11, these are the defaults if not defined, must be defined for each extruder if not using the defaults
#extruder.hotend.retract_length							3		# retract length in mm
#extruder.hotend.retract_feedrate						45		# retract feedrate in mm/sec
#extruder.hotend.retract_recover_length						0		# additional length for recover
#extruder.hotend.retract_recover_feedrate					8		# recover feedrate in mm/sec (should be less than retract feedrate)
#extruder.hotend.retract_zlift_length						0		# zlift on retract in mm, 0 disables
#extruder.hotend.retract_zlift_feedrate						6000		# zlift feedrate in mm/min (Note mm/min NOT mm/sec)
#delta_current									1.8		# First extruder stepper motor current

# Second extruder module configuration
#extruder.hotend2.enable							true		# Whether to activate the extruder module at all. All configuration is ignored if false
#extruder.hotend2.steps_per_mm							140		# Steps per mm for extruder stepper
#extruder.hotend2.default_feed_rate						600		# Default rate ( mm/minute ) for moves where only the extruder moves
#extruder.hotend2.acceleration							500		# Acceleration for the stepper motor, as of 0.6, arbitrary ratio
#extruder.hotend2.max_speed							50		# mm/s

#extruder.hotend2.step_pin							1.15		# Pin for extruder step signal
#extruder.hotend2.dir_pin							1.14		# Pin for extruder dir signal
#extruder.hotend2.en_pin							1.16		# Pin for extruder enable signal

#extruder.hotend2.x_offset							0		# x offset from origin in mm
#extruder.hotend2.y_offset							25.0		# y offset from origin in mm
#extruder.hotend2.z_offset							0		# z offset from origin in mm
#epsilon_current								1.5		# Second extruder stepper motor current


## Laser module configuration
laser_module_enable								true		# Whether to activate the laser module at all. All configuration is
															# ignored if false.
# servo pin on skr 1.4
laser_module_pin								2.0		# this pin will be PWMed to control the laser. Servo pin.
															# Only P2.0 - P2.5, P1.18, P1.20, P1.21, P1.23, P1.24, P1.26, P3.25, P3.26
															# can be used since laser requires hardware PWM
laser_module_maximum_power							0.65		# this is the maximum duty cycle that will be applied to the laser
laser_module_minimum_power							0		# This is a value just below the minimum duty cycle that keeps the laser
															# active without actually burning.
laser_module_default_power							0		# This is the default laser power that will be used for cuts if a power has not been specified.
															# The value is a scale between the maximum and minimum power levels specified above
laser_module_maximum_s_value							1		# Sets range for PWM power control - S0 to Snnn (defaut float 1.0f)
# 200us = 5000 hz
laser_module_pwm_period								200		# this sets the pwm frequency as the period in microseconds

switch.laserfire.enable								true
switch.laserfire.output_pin							0.10!		# Probe input reconfugured as inverted output.
switch.laserfire.output_type							digital
switch.laserfire.input_on_command						M3
switch.laserfire.input_off_command						M5

## Temperature control configuration
# See http://smoothieware.org/temperaturecontrol
# First hotend configuration
temperature_control.hotend.enable						false		# Whether to activate this ( "hotend" ) module at all.
temperature_control.hotend.thermistor_pin					0.24		# Pin for the thermistor to read
temperature_control.hotend.heater_pin						2.7			# Pin that controls the heater, set to nc if a readonly thermistor is being defined
temperature_control.hotend.thermistor						EPCOS100K	# See http://smoothieware.org/temperaturecontrol#toc5
#temperature_control.hotend.beta						4066		# Or set the beta value
temperature_control.hotend.set_m_code						104		# M-code to set the temperature for this module
temperature_control.hotend.set_and_wait_m_code					109		# M-code to set-and-wait for this module
temperature_control.hotend.designator						T0		# Designator letter for this module
#temperature_control.hotend.max_temp						300		# Set maximum temperature - Will prevent heating above 300 by default
#temperature_control.hotend.min_temp						0		# Set minimum temperature - Will prevent heating below if set

# Safety control is enabled by default and can be overidden here, the values show the defaults
# See http://smoothieware.org/temperaturecontrol#runaway
#temperature_control.hotend.runaway_heating_timeout 				0		# How long it can take to heat up, max is 2040 seconds.
#temperature_control.hotend.runaway_cooling_timeout 				0		# How long it can take to cool down if temp is set lower, max is 2040 seconds
#temperature_control.hotend.runaway_range					0		# How far from the set temperature it can wander, max setting is 63Â°C

# PID configuration 
# See http://smoothieware.org/temperaturecontrol#pid
#temperature_control.hotend.p_factor						22.2		# P ( proportional ) factor
#temperature_control.hotend.i_factor						1.08		# I ( integral ) factor
#temperature_control.hotend.d_factor						114		# D ( derivative ) factor
#temperature_control.hotend.max_pwm						64		# Max pwm, 64 is a good value if driving a 12v resistor with 24v.

# Second hotend configuration
#temperature_control.hotend2.enable						true		# Whether to activate this ( "hotend" ) module at all.
#temperature_control.hotend2.thermistor_pin					0.23		# Pin for the thermistor to read
#temperature_control.hotend2.heater_pin						2.4		# Pin that controls the heater, set to nc if a readonly thermistor is being defined
#temperature_control.hotend2.thermistor						EPCOS100K	# See http://smoothieware.org/temperaturecontrol#toc5
##temperature_control.hotend2.beta						4066		# Or set the beta value
#temperature_control.hotend2.set_m_code						104		# M-code to set the temperature for this module
#temperature_control.hotend2.set_and_wait_m_code 				109		# M-code to set-and-wait for this module
#temperature_control.hotend2.designator						T1		# Designator letter for this module
##temperature_control.hotend2.max_temp						300		# Set maximum temperature - Will prevent heating above 300 by default
##temperature_control.hotend2.min_temp						0		# Set minimum temperature - Will prevent heating below if set

# Safety control is enabled by default and can be overidden here, the values show the defaults
# See http://smoothieware.org/temperaturecontrol#runaway
#temperature_control.hotend2.runaway_heating_timeout  				0		# How long it can take to heat up, max is 2040 seconds.
#temperature_control.hotend2.runaway_cooling_timeout  				0		# How long it can take to cool down if temp is set lower, max is 2040 seconds
#temperature_control.hotend2.runaway_range					0		# How far from the set temperature it can wander, max setting is 63Â°C

# PID configuration 
# See http://smoothieware.org/temperaturecontrol#pid
#temperature_control.hotend2.p_factor						22.2		# P ( proportional ) factor
#temperature_control.hotend2.i_factor						1.08		# I ( integral ) factor
#temperature_control.hotend2.d_factor						114		# D ( derivative ) factor
#temperature_control.hotend2.max_pwm						64		# Max pwm, 64 is a good value if driving a 12v resistor with 24v.

temperature_control.bed.enable							false		# Whether to activate this ( "hotend" ) module at all.
temperature_control.bed.thermistor_pin						0.25		# Pin for the thermistor to read
temperature_control.bed.heater_pin						2.5		# Pin that controls the heater
temperature_control.bed.thermistor						EPCOS100K	# See http://smoothieware.org/temperaturecontrol#thermistor
#temperature_control.bed.beta							3974		# or set the beta value
temperature_control.bed.set_m_code						140		# M-code to set the temperature for this module
temperature_control.bed.set_and_wait_m_code					190		# M-code to set-and-wait for this module
temperature_control.bed.designator						B		# Designator letter for this module
temperature_control.bed.runaway_heating_timeout					0		# How long it can take to heat up, max is 2040 seconds.
temperature_control.bed.runaway_cooling_timeout					0		# How long it can take to cool down if temp is set lower, max is 2040 seconds
temperature_control.bed.runaway_range						0		# How far from the set temperature it can wander, max setting is 63Â°C

# Bang-bang ( simplified ) control
# See http://smoothieware.org/temperaturecontrol#bang-bang
#temperature_control.bed.bang_bang						false		# Set to true to use bang bang control rather than PID
#temperature_control.bed.hysteresis						2.0		# Set to the temperature in degrees C to use as hysteresis

## Switch modules
# See http://smoothieware.org/switch
# Switch module for fan control
switch.fan.enable								true		# Enable this module
switch.fan.input_on_command							M10		# Command that will turn this switch on
switch.fan.input_off_command							M107		# Command that will turn this switch off
switch.fan.output_pin								2.3		# Pin this module controls
switch.fan.output_type								pwm		# PWM output settable with S parameter in the input_on_comand
switch.fan.max_pwm								255		# Set max pwm for the pin default is 255

# For using E1 FET output as general output. E1 must be disactivated (extruder.hotend2.enable=false)
switch.misc.enable								true		# Enable this module
switch.misc.input_on_command							M42		# Command that will turn this switch on
switch.misc.input_off_command							M43		# Command that will turn this switch off
switch.misc.output_pin								2.4		# Pin this module controls
switch.misc.output_type								digital		# Digital means this is just an on or off pin

# Switch module for spindle control
switch.spindle.enable								false		#

## Temperatureswitch :
# automatically toggle a switch at a specified temperature. 
# Different ones of these may be defined to monitor different temperatures and switch different switches
# useful to turn on a fan or water pump to cool the hotend
#temperatureswitch.hotend.enable						true		#
#temperatureswitch.hotend.designator						T		# first character of the temperature control designator to use as the temperature sensor to monitor
#temperatureswitch.hotend.switch						misc		# select which switch to use, matches the name of the defined switch
#temperatureswitch.hotend.threshold_temp					60.0		# temperature to turn on (if rising) or off the switch
#temperatureswitch.hotend.heatup_poll						15		# poll heatup at 15 sec intervals
#temperatureswitch.hotend.cooldown_poll						60		# poll cooldown at 60 sec intervals


## Endstops
# See http://smoothieware.org/endstops
endstops_enable									true		# The endstop module is disabled by default and must be enabled here
#corexy_homing									false		# Set to true if homing on a hbot or corexy (G28)
#delta_homing									false		# Forces all three axis to home a the same time regardless of what is specified in G28
cartesian_homing								true		# Set to true if homing on a cartesian bot (G28)
alpha_min_endstop								1.29^		# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
alpha_max_endstop								1.26^		# Pin to read max endstop, uncomment this and comment the above if using max endstops
alpha_homing_direction								home_to_min	# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
alpha_min									0
alpha_max									330		# This gets loaded as the current position after homing when home_to_max is set
beta_max_endstop								1.28^		# Pin to read max endstop, uncomment this and comment the above if using max endstops
#beta_min_endstop								1.28^		# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
#beta_max_endstop								1.25^		# Pin to read max endstop, uncomment this and comment the above if using max endstops
beta_homing_direction								home_to_max	# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
beta_min									0
beta_max									210		# This gets loaded as the current position after homing when home_to_max is set
gamma_min_endstop								1.27^		# Pin to read min endstop, add a ! to invert if endstop is NO connected to ground
gamma_max_endstop								1.0^		# Pin to read max endstop, uncomment this and comment the above if using max endstops
gamma_homing_direction								home_to_min	# Or set to home_to_max and set alpha_max and uncomment the alpha_max_endstop
gamma_min									0      
gamma_max									500

alpha_max_travel								500		# Max travel in mm for alpha/X axis when homing
beta_max_travel									500		# Max travel in mm for beta/Y axis when homing
gamma_max_travel								500		# Max travel in mm for gamma/Z axis when homing

# optional order in which axis will home, default is they all home at the same time,
# if this is set it will force each axis to home one at a time in the specified order
#homing_order									XYZ		# x axis followed by y then z last
#move_to_origin_after_home							false		# move XY to 0,0 after homing

# optional enable limit switches, actions will stop if any enabled limit switch is triggered
#alpha_limit_enable								false		# set to true to enable X min and max limit switches
#beta_limit_enable								false		# set to true to enable Y min and max limit switches
#gamma_limit_enable								false		# set to true to enable Z min and max limit switches

# Endstops home at their fast feedrate first, then once the endstop is found they home again at their slow feedrate for accuracy
alpha_fast_homing_rate_mm_s							50		# Alpha tower fast homing feedrate in mm/second
alpha_slow_homing_rate_mm_s							25		# Alpha tower slow homing feedrate in mm/second
beta_fast_homing_rate_mm_s							50		# Beta  tower fast homing feedrate in mm/second
beta_slow_homing_rate_mm_s							25		# Beta  tower slow homing feedrate in mm/second
gamma_fast_homing_rate_mm_s							4		# Gamma tower fast homing feedrate in mm/second
gamma_slow_homing_rate_mm_s							2		# Gamma tower slow homing feedrate in mm/second
alpha_homing_retract_mm								5		# Distance to retract from the endstop after it is hit for alpha/X
beta_homing_retract_mm								5		# Distance to retract from the endstop after it is hit for beta/Y
gamma_homing_retract_mm								1		# Distance to retract from the endstop after it is hit for gamma/Z

# Endstop debouncing options
endstop_debounce_count								100		# Uncomment if you get noise on your endstops, default is 100
endstop_debounce_ms								1		# Uncomment if you get noise on your endstops, default is 1 millisecond debounce

# Endstop trim options
alpha_trim									0		# Software trim for alpha stepper endstop (in mm)
beta_trim									0		# Software trim for beta stepper endstop (in mm)
gamma_trim									0		# Software trim for gamma stepper endstop (in mm)

## Z-probe
# See http://smoothieware.org/zprobe
zprobe.enable									false		# Set to true to enable a zprobe
#zprobe.probe_pin								0.10!^		# Pin probe is attached to, if NC remove the !
#zprobe.slow_feedrate								5		# Mm/sec probe feed rate

#zprobe.debounce_count								100		# Set if noisy
#zprobe.fast_feedrate								100		# Move feedrate mm/sec
#zprobe.probe_height								5		# How much above bed to start probe
#gamma_min_endstop								nc		# Normally 1.28. Change to nc to prevent conflict,

# Levelling strategy
# Example for the delta calibration strategy
#leveling-strategy.delta-calibration.enable					true		# Enable basic delta calibration
#leveling-strategy.delta-calibration.radius					120		# the probe radius
# Example for the delta grid leveling strategy

# leveling-strategy.delta-grid.enable						false		# Enable grid leveling
# leveling-strategy.delta-grid.radius						100		# Grid radius in millimeters
# leveling-strategy.delta-grid.size						5		# Grid size, must be an odd number
# leveling-strategy.delta-grid.probe_offsets					0,0,-0.2	# 
# leveling-strategy.delta-grid.save						true		# Whether to automatically save the grid
# leveling-strategy.delta-grid.initial_height					10		# Height at which to start probling

#leveling-strategy.three-point-leveling.enable					true		# Set to true to enable the leveling strategy that probes three points to define 
												# a plane and then keeps the Z parallel to that plane. 
												# This is useful if your Z plate/bed is not perfectly aligned with your XY gantry	
#leveling-strategy.three-point-leveling.point1					100.0,0.0	# The first probe point (X, Y)	
#leveling-strategy.three-point-leveling.point2					200.0,200.0	# The second probe point (X, Y)	
#leveling-strategy.three-point-leveling.point3					0.0,200.0	# The third probe point (X, Y)	
#leveling-strategy.three-point-leveling.home_first				true		# Home the X and Y axes before probing	
#leveling-strategy.three-point-leveling.tolerance				0.03		# The probe tolerance in millimetres, anything less that this will be ignored, default is 0.03mm	
#leveling-strategy.three-point-leveling.probe_offsets 				0,0,0		# The probe offset from nozzle, must be X,Y,Z (Z should always be 0), default is no offset. 
															# This is used if your nozzle is not exactly at the same position as where your tool would be.	
#leveling-strategy.three-point-leveling.save_plane 				false		# set to true to allow the bed plane to be saved with M500 default is false

## Panel
# See http://smoothieware.org/panel
###################################################################################
# EXP 1 & 2 Reprapdicount GLCD Wiring
#              _____                                             _____
#          NC |10 9 | GND                                    5V |10 9 | GND
#       RESET | Â· Â· | 1.31(SD_DETECT)             (LCD_D7) 1.23 | Â· Â· | 1.22 (LCD_D6)
#  (MOSI)0.18 | Â· Â· | 3.25(BTN_EN2)               (LCD_D5) 1.21 | Â· Â· | 1.20 (LCD_D4)
# (SD_SS)0.16 | Â· Â· | 3.26(BTN_EN1)               (LCD_RS) 1.19 | Â· Â· | 1.18 (LCD_EN)
#   (SCK)0.15 | 2 1 | 0.17(MISO)                 (BTN_ENC) 0.28 | 2 1 | 1.30 (BEEPER)
#              -----                                             -----
#              EXP2                                              EXP1
#
# Wiring RRDGLCD  : function			Pin on SKR 1.4	Pin on Smoothieware
###################################################################################
# GLCD EXP1 pin 1 : Beeper				1.30			1.31
# GLCD EXP1 pin 2 : ENC BTN				0.28			1.30 
# GLCD EXP1 pin 3 : LCD MOSI (LCD E)	1.18			0.18 spi0mosi
# GLCD EXP1 pin 4 : LCD CS (LCD RS)		1.19			0.16 spi0ssel
# GLCD EXP1 pin 5 : LCD SCK (LCD D4)	1.20			0.15 spi0sck
# GLCD EXP1 pin 6 : (LCD D5)			1.21			nc
# GLCD EXP1 pin 7 : (LCD D6)			1.22			nc
# GLCD EXP1 pin 8 : (LCD D7)			1.23			nc
# GLCD EXP1 pin 9 : GND					GND				GND	
# GLCD EXP1 pin 10: VCC					+5V				+5V
# GLCD EXP2 pin 1 : SD MISO				0.17 spi0miso	nc ou 0.8 spi1miso
# GLCD EXP2 pin 2 : SD SCK				0.15 spi0sck	nc ou 0.7 spi1sck
# GLCD EXP2 pin 3 : ENC BTN EN2			3.26			3.25
# GLCD EXP2 pin 4 : SD SSEL				0.16 spi0ssel	nc ou 0.28
# GLCD EXP2 pin 5 : ENC BTN EN1 		3.25			3.26
# GLCD EXP2 pin 6 : SD MOSI				0.18 spi0mosi	nc ou 0.9 spi1mosi
# GLCD EXP2 pin 7 : SD Card Detect		1.31 			nc ou 0.27
# GLCD EXP2 pin 8 : RESET				RESET			2.11
# GLCD EXP2 pin 9 : GND 				GND				nc
# GLCD EXP2 pin 10: KILL				NC				nc
###################################################################################
#
# SPI 0 processor Pins 
# On SKR 1.4, wired to RRDGLCD SDcard. On smoothieboard, wired to RRDGLCD LCD.
#	P0.15	spi0 sck	User spi port. used for rrd glcd 
#	P0.16	spi0 ssel	User spi port. used for rrd glcd cs 
#	P0.17	spi0 miso	User spi port. not used for glcd
#	P0.18	spi0 mosi	User spi port. used for rrd glcd 
	
# SPI 1 processor Pins, used by onboard SD port on Smothieboard & SKR 1.4.
# On SKR 1.4, wired only to internal SDcard. On smoothieboard, wired also to RRDGLCD SD
#	P0.6	spi1 ssel	sdcard 	
#	P0.7	spi1 sck	sdcard 	
#	P0.8	spi1 miso	sdcard 	
#	P0.9	spi1 mosi	sdcard 

panel.enable					true						# Set to true to enable the panel code
panel.lcd						reprap_discount_glcd		#
############################################
# On SKR 1.4 lcd is wired to a software SPI, 
# Don't works on stock Smoothieware, only on marlin! 
# To make RRD GLCD works on skr 1.4, it needs either :
############################################
# - A special adapter / cable where hardware spi 0 (sd spi on skr) is wired to both devices.
# SKR 1.4				RRDGLCD		signal
# EXP2.pin6 --------- EXP2.pin6 	mosi sd card
#               |---- EXP1.pin3 	mosi lcd
# EXP2.pin2 --------- EXP2.pin2 	sck sd card
#               |---- EXP1.pin5 	sck sd card
# EXP1.pin1 --------- EXP1.pin1		Beeper
# EXP1.pin2 --------- EXP1.pin2		ENC BTN
# EXP1.pin3			  nc
# EXP1.pin4 --------- EXP1.pin4		LCD CS (LCD RS)
# EXP1.pin5			  nc
# EXP1.pin6			  nc
# EXP1.pin7			  nc
# EXP1.pin8			  nc
# EXP1.pin9 --------- EXP1.pin9 	GND	
# EXP1.pin10 -------- EXP1.pin10	VCC
# EXP2.pin1 --------- EXP2.pin1		SD MISO
# EXP2.pin3 --------- EXP2.pin3		ENC BTN EN2
# EXP2.pin4 --------- EXP2.pin4		SD SSEL
# EXP2.pin5 --------- EXP2.pin5		ENC BTN EN1
# EXP2.pin7 --------- EXP2.pin7		SD Card Detect
# EXP2.pin8 --------- EXP2.pin8		RESET
# EXP2.pin9 --------- EXP2.pin9		GND
# EXP2.pin10		  nc

############################################
# - A hack on Smoothieware to make software 
#   spi works on LCD with native SKR 1.4 pin
#   (unsupported on stock smoothie)
############################################
# For SPI0 hardwired to lcd via a custom adapter
panel.spi_channel							0				# Spi on Hardware channel 0
panel.spi_cs_pin							1.19			# SPI chip select     ; GLCD EXP1 Pin 4
panel.spi_frequency							1000000 		        # Needs to reduce spi frequency for emulated rrdglcd
															# default : 1 000 000 Hz
# For Software SPI (unsupported hack on smoothieware)
#panel.spi_channel							-1				# Software spi mosi = P1_18; miso = P1_21; sclk = P1_20;
#panel.spi_cs_pin							1.19			# CS on SKR 1.4
#panel.spi_frequency							1000000			# Needs to reduce spi frequency for emulated rrdglcd
															# default : 1 000 000 Hz

panel.encoder_a_pin							3.25!^			# Encoder pin		; GLCD EXP2 Pin 3
panel.encoder_b_pin							3.26!^			# Encoder pin		; GLCD EXP2 Pin 5
panel.click_button_pin						0.28!^			# Click button		; GLCD EXP1 Pin 2
panel.buzz_pin								1.30			# Pin for buzzer	; GLCD EXP1 Pin 1
#panel.back_button_pin						0.28!^			# Back button		; GLCD EXP2 Pin 8
panel.encoder_resolution					4

panel.external_sd                           true            # set to true if there is an extrernal sdcard on the panel
panel.external_sd.spi_channel               0               # On SKR 1.4, wired to spi0 (free).
panel.external_sd.spi_cs_pin				0.16			# set spi chip select for the sdcard (or any spare pin)
panel.external_sd.sdcd_pin					1.31!^			# sd detect signal (set to nc if no sdcard detect) (or any spare pin)
panel.menu_offset							1				# Some panels will need 1 here
panel.alpha_jog_feedrate					12000			# X jogging feedrate in mm/min
panel.beta_jog_feedrate						12000			# Y jogging feedrate in mm/min
panel.gamma_jog_feedrate					12000			# Z jogging feedrate in mm/min
panel.hotend_temperature					185				# Temp to set hotend when preheat is selected
panel.bed_temperature						60				# Temp to set bed when preheat is selected
## Custom menus : Example of a custom menu entry, which will show up in the Custom entry.
# NOTE _ gets converted to space in the menu and commands, | is used to separate multiple commands
#custom_menu.power_on.enable				true			#
#custom_menu.power_on.name					Power_on		#
#custom_menu.power_on.command				M80				#

#custom_menu.power_off.enable				true			#
#custom_menu.power_off.name					Power_off		#
#custom_menu.power_off.command				M81				#

network.enable								false			# Enable the ethernet network services
#network.webserver.enable					false			# Enable the webserver
#network.telnet.enable						false			# Enable the telnet server
#network.ip_address							auto			# Use dhcp to get ip address
# uncomment the 3 below to manually setup ip address
#network.ip_address							192.168.3.222	# the IP address
#network.ip_mask							255.255.255.0	# the ip mask
#network.ip_gateway							192.168.3.1		# the gateway address
#network.mac_override					xx.xx.xx.xx.xx.xx	# override the mac address, only do this if you have a conflict

## System configuration
# Serial communications configuration ( baud rate defaults to 9600 if undefined )
# For communication over the UART port, *not* the USB/Serial port
uart0.baud_rate								250000			# Baud rate for the default hardware ( UART ) serial port
second_usb_serial_enable					false			# This enables a second USB serial port
currentcontrol_module_enable				false			# Control stepper motor current via the configuration fill

## No leds on SKR 1.4
leds_disable								true			# disable using leds after config loaded
play_led_disable							true			# disable the play led

## No digipot on SKR 1.4
#digipotchip								mcp4451 
#digipot_factor								95.521			# DO NOT CHANGE FOR LASERLASERBOARD 
#digipot_max_current						1.2				# Maximum current (Amps) the digipot will allow for all axis 

# Kill button (used to be called pause) maybe assigned to a different pin, set to the onboard pin by default
# exp2 pin 10 is not connected on skr 1.4
kill_button_enable							false			# set to true to enable a kill button
kill_button_pin								xx				# kill button pin. default is same as pause button 2.12 (2.11 is another good choice)

msd_disable								false			# disable the MSD (USB SDCARD) when set to true (needs special binary)
#dfu_enable								false			# for linux developers, set to true to enable DFU
on_boot_gcode								/sd/On_boot.gcode.txt
#watchdog_timeout							10				# watchdog timeout in seconds, default is 10, set to 0 to disable the watchdog