1 #ifndef CONFIGURATION_ADV_H
2 #define CONFIGURATION_ADV_H
8 #ifdef BED_LIMIT_SWITCHING
9 #define BED_HYSTERESIS 2
11 #define BED_CHECK_INTERVAL 5000
22 #define AUTOTEMP_OLDWEIGHT 0.98
32 #define EXTRUDER_RUNOUT_MINTEMP 190
33 #define EXTRUDER_RUNOUT_SECONDS 30.
34 #define EXTRUDER_RUNOUT_ESTEPS 14.
35 #define EXTRUDER_RUNOUT_SPEED 1500.
36 #define EXTRUDER_RUNOUT_EXTRUDE 100
40 #define TEMP_SENSOR_AD595_OFFSET 0.0
41 #define TEMP_SENSOR_AD595_GAIN 1.0
46 #define CONTROLLERFAN_PIN -1
47 #define CONTROLLERFAN_SECS 60
48 #define CONTROLLERFAN_SPEED 255
53 #define FAN_KICKSTART_TIME 800
70 #define M79_TIMEOUT 30 * 1000
73 #define USB_TIMER_TIMEOUT 10 * 1000
79 #define ENDSTOPS_ONLY_FOR_HOMING
84 #ifdef MANUAL_HOME_POSITIONS
85 #define X_HOME_POS MANUAL_X_HOME_POS
86 #define Y_HOME_POS MANUAL_Y_HOME_POS
87 #define Z_HOME_POS MANUAL_Z_HOME_POS
91 #ifdef BED_CENTER_AT_0_0
92 #define X_HOME_POS X_MAX_LENGTH * -0.5
94 #define X_HOME_POS X_MIN_POS
97 #ifdef BED_CENTER_AT_0_0
98 #define X_HOME_POS X_MAX_LENGTH * 0.5
100 #define X_HOME_POS X_MAX_POS
106 #ifdef BED_CENTER_AT_0_0
107 #define Y_HOME_POS Y_MAX_LENGTH * -0.5
109 #define Y_HOME_POS Y_MIN_POS
112 #ifdef BED_CENTER_AT_0_0
113 #define Y_HOME_POS Y_MAX_LENGTH * 0.5
115 #define Y_HOME_POS Y_MAX_POS
121 #define Z_HOME_POS Z_MIN_POS
123 #define Z_HOME_POS Z_MAX_POS
136 #ifdef Z_DUAL_STEPPER_DRIVERS
145 #define INVERT_Y2_VS_Y_DIR 1
147 #ifdef Y_DUAL_STEPPER_DRIVERS
152 #if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS)
153 #error "You cannot have dual drivers for both Y and Z"
157 #define X_HOME_RETRACT_MM 5
158 #define Y_HOME_RETRACT_MM 5
159 #define Z_HOME_RETRACT_MM 2
162 #define MAX_STEP_FREQUENCY 40000
164 #define INVERT_X_STEP_PIN 0
165 #define INVERT_Y_STEP_PIN 0
166 #define INVERT_Z_STEP_PIN 0
167 #define INVERT_E_STEP_PIN 0
170 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
172 #define DEFAULT_MINIMUMFEEDRATE 0.0
173 #define DEFAULT_MINTRAVELFEEDRATE 0.0
179 #define ULTIPANEL_FEEDMULTIPLY
182 #define DEFAULT_MINSEGMENTTIME 20000
188 #define MICROSTEP1 LOW,LOW
189 #define MICROSTEP2 HIGH,LOW
190 #define MICROSTEP4 LOW,HIGH
191 #define MICROSTEP8 HIGH,HIGH
192 #define MICROSTEP16 HIGH,HIGH
195 #define MICROSTEP_MODES {16,16,16,16,16}
203 #define CHDK_DELAY 50
205 #define SD_FINISHED_STEPPERRELEASE 1
206 #define SD_FINISHED_RELEASECOMMAND "M84 X Y Z E"
208 #define SDCARD_RATHERRECENTFIRST
231 #define SDCARD_SORT_ALPHA
234 #ifdef SDCARD_SORT_ALPHA
235 #define SD_SORT_TIME 0
236 #define SD_SORT_ALPHA 1
237 #define SD_SORT_NONE 2
242 #define SDSORT_LIMIT 100
243 #define FOLDER_SORTING -1
246 #if defined(SDCARD_SORT_ALPHA)
247 #define HAS_FOLDER_SORTING (FOLDER_SORTING)
262 #define BABYSTEP_INVERT_Z 0
263 #define BABYSTEP_Z_MULTIPLICATOR 2
266 #error BABYSTEPPING not implemented for COREXY yet.
291 #define LA_LA10_MIN LA_K_MAX
301 const unsigned int dropsegments=5;
307 #define SDCARDDETECTINVERTED
308 #undef SDCARDDETECTINVERTED
313 #define POWER_SUPPLY 1
316 #if (POWER_SUPPLY == 1)
317 #define PS_ON_AWAKE LOW
318 #define PS_ON_ASLEEP HIGH
321 #if (POWER_SUPPLY == 2)
322 #define PS_ON_AWAKE HIGH
323 #define PS_ON_ASLEEP LOW
332 #define CLOCK_INTERVAL_TIME 5
340 #if defined SDSUPPORT
341 #define BLOCK_BUFFER_SIZE 16
343 #define BLOCK_BUFFER_SIZE 16
348 #define MAX_CMD_SIZE 96
355 #define FILAMENT_CHANGE_UNLOAD_FEEDRATE 10.f
356 #define FILAMENT_UNLOAD_FAST_RETRACT_FEEDRATE 86.67f
357 #define FILAMENT_UNLOAD_SLOW_RETRACT_FEEDRATE 16.67f
358 #define FILAMENT_UNLOAD_FAST_RETRACT_LENGTH 45.f
359 #define FILAMENT_UNLOAD_SLOW_RETRACT_LENGTH 35.f
369 #define MIN_RETRACT 0.1
370 #define RETRACT_LENGTH 3
371 #define RETRACT_LENGTH_SWAP 13
372 #define RETRACT_FEEDRATE 45
373 #define RETRACT_ZLIFT 0
374 #define RETRACT_RECOVER_LENGTH 0
375 #define RETRACT_RECOVER_LENGTH_SWAP 0
376 #define RETRACT_RECOVER_FEEDRATE 8
382 #ifdef FILAMENTCHANGEENABLE
383 #ifdef EXTRUDER_RUNOUT_PREVENT
384 #error EXTRUDER_RUNOUT_PREVENT currently incompatible with FILAMENTCHANGE
391 #define EXTENDED_CAPABILITIES_REPORT
403 #if EXTRUDERS > 1 && defined HEATERS_PARALLEL
404 #error "You cannot use HEATERS_PARALLEL if EXTRUDERS > 1"
407 #if TEMP_SENSOR_0 > 0
408 #define THERMISTORHEATER_0 TEMP_SENSOR_0
409 #define HEATER_0_USES_THERMISTOR
411 #if TEMP_SENSOR_BED > 0
412 #define THERMISTORBED TEMP_SENSOR_BED
413 #define BED_USES_THERMISTOR
415 #if TEMP_SENSOR_PINDA > 0
416 #define THERMISTORPINDA TEMP_SENSOR_PINDA
418 #if TEMP_SENSOR_AMBIENT > 0
419 #define THERMISTORAMBIENT TEMP_SENSOR_AMBIENT
421 #if TEMP_SENSOR_0 == -1
422 #define HEATER_0_USES_AD595
424 #if TEMP_SENSOR_BED == -1
425 #define BED_USES_AD595
427 #if TEMP_SENSOR_0 == -2
428 #define HEATER_0_USES_MAX6675
430 #if TEMP_SENSOR_0 == 0
431 #undef HEATER_0_MINTEMP
432 #undef HEATER_0_MAXTEMP
434 #if TEMP_SENSOR_BED == 0
438 #if TEMP_SENSOR_AMBIENT == 0
439 #undef AMBIENT_MINTEMP
440 #undef AMBIENT_MAXTEMP