|
@@ -9,7 +9,7 @@
|
9
|
9
|
//=============================Thermal Settings ============================
|
10
|
10
|
//===========================================================================
|
11
|
11
|
|
12
|
|
-#ifdef BED_LIMIT_SWITCHING
|
|
12
|
+#if ENABLED(BED_LIMIT_SWITCHING)
|
13
|
13
|
#define BED_HYSTERESIS 2 //only disable heating if T>target+BED_HYSTERESIS and enable heating if T>target-BED_HYSTERESIS
|
14
|
14
|
#endif
|
15
|
15
|
#define BED_CHECK_INTERVAL 5000 //ms between checks in bang-bang control
|
|
@@ -17,7 +17,7 @@
|
17
|
17
|
/**
|
18
|
18
|
* Thermal Protection parameters
|
19
|
19
|
*/
|
20
|
|
-#ifdef THERMAL_PROTECTION_HOTENDS
|
|
20
|
+#if ENABLED(THERMAL_PROTECTION_HOTENDS)
|
21
|
21
|
#define THERMAL_PROTECTION_PERIOD 40 // Seconds
|
22
|
22
|
#define THERMAL_PROTECTION_HYSTERESIS 4 // Degrees Celsius
|
23
|
23
|
|
|
@@ -31,16 +31,16 @@
|
31
|
31
|
#define WATCH_TEMP_INCREASE 4 // Degrees Celsius
|
32
|
32
|
#endif
|
33
|
33
|
|
34
|
|
-#ifdef THERMAL_PROTECTION_BED
|
|
34
|
+#if ENABLED(THERMAL_PROTECTION_BED)
|
35
|
35
|
#define THERMAL_PROTECTION_BED_PERIOD 20 // Seconds
|
36
|
36
|
#define THERMAL_PROTECTION_BED_HYSTERESIS 2 // Degrees Celsius
|
37
|
37
|
#endif
|
38
|
38
|
|
39
|
|
-#ifdef PIDTEMP
|
|
39
|
+#if ENABLED(PIDTEMP)
|
40
|
40
|
// this adds an experimental additional term to the heating power, proportional to the extrusion speed.
|
41
|
41
|
// if Kc is chosen well, the additional required power due to increased melting should be compensated.
|
42
|
42
|
#define PID_ADD_EXTRUSION_RATE
|
43
|
|
- #ifdef PID_ADD_EXTRUSION_RATE
|
|
43
|
+ #if ENABLED(PID_ADD_EXTRUSION_RATE)
|
44
|
44
|
#define DEFAULT_Kc (1) //heating power=Kc*(e_speed)
|
45
|
45
|
#endif
|
46
|
46
|
#endif
|
|
@@ -56,7 +56,7 @@
|
56
|
56
|
* On an Ultimaker, some initial testing worked with M109 S215 B260 F1 in the start.gcode
|
57
|
57
|
*/
|
58
|
58
|
#define AUTOTEMP
|
59
|
|
-#ifdef AUTOTEMP
|
|
59
|
+#if ENABLED(AUTOTEMP)
|
60
|
60
|
#define AUTOTEMP_OLDWEIGHT 0.98
|
61
|
61
|
#endif
|
62
|
62
|
|
|
@@ -133,7 +133,7 @@
|
133
|
133
|
// On a RAMPS (or other 5 driver) motherboard, using this feature will limit you to using 1 extruder.
|
134
|
134
|
//#define Z_DUAL_STEPPER_DRIVERS
|
135
|
135
|
|
136
|
|
-#ifdef Z_DUAL_STEPPER_DRIVERS
|
|
136
|
+#if ENABLED(Z_DUAL_STEPPER_DRIVERS)
|
137
|
137
|
|
138
|
138
|
// Z_DUAL_ENDSTOPS is a feature to enable the use of 2 endstops for both Z steppers - Let's call them Z stepper and Z2 stepper.
|
139
|
139
|
// That way the machine is capable to align the bed during home, since both Z steppers are homed.
|
|
@@ -150,7 +150,7 @@
|
150
|
150
|
|
151
|
151
|
// #define Z_DUAL_ENDSTOPS
|
152
|
152
|
|
153
|
|
- #ifdef Z_DUAL_ENDSTOPS
|
|
153
|
+ #if ENABLED(Z_DUAL_ENDSTOPS)
|
154
|
154
|
#define Z2_MAX_PIN 36 //Endstop used for Z2 axis. In this case I'm using XMAX in a Rumba Board (pin 36)
|
155
|
155
|
const bool Z2_MAX_ENDSTOP_INVERTING = false;
|
156
|
156
|
#define DISABLE_XMAX_ENDSTOP //Better to disable the XMAX to avoid conflict. Just rename "XMAX_ENDSTOP" by the endstop you are using for Z2 axis.
|
|
@@ -169,7 +169,7 @@
|
169
|
169
|
// prevents hot-end ooze contaminating the print. It also reduces the weight of each x-carriage
|
170
|
170
|
// allowing faster printing speeds.
|
171
|
171
|
//#define DUAL_X_CARRIAGE
|
172
|
|
-#ifdef DUAL_X_CARRIAGE
|
|
172
|
+#if ENABLED(DUAL_X_CARRIAGE)
|
173
|
173
|
// Configuration for second X-carriage
|
174
|
174
|
// Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
|
175
|
175
|
// the second x-carriage always homes to the maximum endstop.
|
|
@@ -240,7 +240,7 @@
|
240
|
240
|
|
241
|
241
|
// @section lcd
|
242
|
242
|
|
243
|
|
-#ifdef ULTIPANEL
|
|
243
|
+#if ENABLED(ULTIPANEL)
|
244
|
244
|
#define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
|
245
|
245
|
#define ULTIPANEL_FEEDMULTIPLY // Comment to disable setting feedrate multiplier via encoder
|
246
|
246
|
#endif
|
|
@@ -289,7 +289,7 @@
|
289
|
289
|
|
290
|
290
|
// @section lcd
|
291
|
291
|
|
292
|
|
-#ifdef SDSUPPORT
|
|
292
|
+#if ENABLED(SDSUPPORT)
|
293
|
293
|
|
294
|
294
|
// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
|
295
|
295
|
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT
|
|
@@ -310,7 +310,7 @@
|
310
|
310
|
// Show a progress bar on HD44780 LCDs for SD printing
|
311
|
311
|
//#define LCD_PROGRESS_BAR
|
312
|
312
|
|
313
|
|
- #ifdef LCD_PROGRESS_BAR
|
|
313
|
+ #if ENABLED(LCD_PROGRESS_BAR)
|
314
|
314
|
// Amount of time (ms) to show the bar
|
315
|
315
|
#define PROGRESS_BAR_BAR_TIME 2000
|
316
|
316
|
// Amount of time (ms) to show the status message
|
|
@@ -333,7 +333,7 @@
|
333
|
333
|
#endif // SDSUPPORT
|
334
|
334
|
|
335
|
335
|
// for dogm lcd displays you can choose some additional fonts:
|
336
|
|
-#ifdef DOGLCD
|
|
336
|
+#if ENABLED(DOGLCD)
|
337
|
337
|
// save 3120 bytes of PROGMEM by commenting out #define USE_BIG_EDIT_FONT
|
338
|
338
|
// we don't have a big font for Cyrillic, Kana
|
339
|
339
|
//#define USE_BIG_EDIT_FONT
|
|
@@ -348,7 +348,7 @@
|
348
|
348
|
// The hardware watchdog should reset the microcontroller disabling all outputs, in case the firmware gets stuck and doesn't do temperature regulation.
|
349
|
349
|
//#define USE_WATCHDOG
|
350
|
350
|
|
351
|
|
-#ifdef USE_WATCHDOG
|
|
351
|
+#if ENABLED(USE_WATCHDOG)
|
352
|
352
|
// If you have a watchdog reboot in an ArduinoMega2560 then the device will hang forever, as a watchdog reset will leave the watchdog on.
|
353
|
353
|
// The "WATCHDOG_RESET_MANUAL" goes around this by not using the hardware reset.
|
354
|
354
|
// However, THIS FEATURE IS UNSAFE!, as it will only work if interrupts are disabled. And the code could hang in an interrupt routine with interrupts disabled.
|
|
@@ -361,7 +361,7 @@
|
361
|
361
|
// it can e.g. be used to change z-positions in the print startup phase in real-time
|
362
|
362
|
// does not respect endstops!
|
363
|
363
|
//#define BABYSTEPPING
|
364
|
|
-#ifdef BABYSTEPPING
|
|
364
|
+#if ENABLED(BABYSTEPPING)
|
365
|
365
|
#define BABYSTEP_XY //not only z, but also XY in the menu. more clutter, more functions
|
366
|
366
|
#define BABYSTEP_INVERT_Z false //true for inverse movements in Z
|
367
|
367
|
#define BABYSTEP_Z_MULTIPLICATOR 2 //faster z movements
|
|
@@ -378,7 +378,7 @@
|
378
|
378
|
// so: v ^ 2 is proportional to number of steps we advance the extruder
|
379
|
379
|
//#define ADVANCE
|
380
|
380
|
|
381
|
|
-#ifdef ADVANCE
|
|
381
|
+#if ENABLED(ADVANCE)
|
382
|
382
|
#define EXTRUDER_ADVANCE_K .0
|
383
|
383
|
#define D_FILAMENT 2.85
|
384
|
384
|
#define STEPS_MM_E 836
|
|
@@ -405,7 +405,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
|
405
|
405
|
|
406
|
406
|
// The number of linear motions that can be in the plan at any give time.
|
407
|
407
|
// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ring-buffering.
|
408
|
|
-#ifdef SDSUPPORT
|
|
408
|
+#if ENABLED(SDSUPPORT)
|
409
|
409
|
#define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
|
410
|
410
|
#else
|
411
|
411
|
#define BLOCK_BUFFER_SIZE 16 // maximize block buffer
|
|
@@ -435,7 +435,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
|
435
|
435
|
// the moves are than replaced by the firmware controlled ones.
|
436
|
436
|
|
437
|
437
|
// #define FWRETRACT //ONLY PARTIALLY TESTED
|
438
|
|
-#ifdef FWRETRACT
|
|
438
|
+#if ENABLED(FWRETRACT)
|
439
|
439
|
#define MIN_RETRACT 0.1 //minimum extruded mm to accept a automatic gcode retraction attempt
|
440
|
440
|
#define RETRACT_LENGTH 3 //default retract length (positive mm)
|
441
|
441
|
#define RETRACT_LENGTH_SWAP 13 //default swap retract length (positive mm), for extruder change
|
|
@@ -447,9 +447,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
|
447
|
447
|
#endif
|
448
|
448
|
|
449
|
449
|
// Add support for experimental filament exchange support M600; requires display
|
450
|
|
-#ifdef ULTIPANEL
|
|
450
|
+#if ENABLED(ULTIPANEL)
|
451
|
451
|
//#define FILAMENTCHANGEENABLE
|
452
|
|
- #ifdef FILAMENTCHANGEENABLE
|
|
452
|
+ #if ENABLED(FILAMENTCHANGEENABLE)
|
453
|
453
|
#define FILAMENTCHANGE_XPOS 3
|
454
|
454
|
#define FILAMENTCHANGE_YPOS 3
|
455
|
455
|
#define FILAMENTCHANGE_ZADD 10
|
|
@@ -469,7 +469,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
|
469
|
469
|
// @section tmc
|
470
|
470
|
|
471
|
471
|
//#define HAVE_TMCDRIVER
|
472
|
|
-#ifdef HAVE_TMCDRIVER
|
|
472
|
+#if ENABLED(HAVE_TMCDRIVER)
|
473
|
473
|
|
474
|
474
|
// #define X_IS_TMC
|
475
|
475
|
#define X_MAX_CURRENT 1000 //in mA
|
|
@@ -531,7 +531,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
|
531
|
531
|
// @section l6470
|
532
|
532
|
|
533
|
533
|
//#define HAVE_L6470DRIVER
|
534
|
|
-#ifdef HAVE_L6470DRIVER
|
|
534
|
+#if ENABLED(HAVE_L6470DRIVER)
|
535
|
535
|
|
536
|
536
|
// #define X_IS_L6470
|
537
|
537
|
#define X_MICROSTEPS 16 //number of microsteps
|