Browse Source

Updated all configuration.h examples

paclema 9 years ago
parent
commit
aedd580911

+ 1
- 1
Marlin/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+f#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"

+ 6
- 3
Marlin/example_configurations/Felix/Configuration.h View File

@@ -356,9 +356,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
356 356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
357 357
                                  // It is assumed that when logic high = filament available
358 358
                                  //                    when logic  low = filament ran out
359
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
360
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
361
-
359
+#ifdef FILAMENT_RUNOUT_SENSOR
360
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
361
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
362
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
363
+#endif 
364
+  
362 365
 //===========================================================================
363 366
 //============================ Manual Bed Leveling ==========================
364 367
 //===========================================================================

+ 6
- 3
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

@@ -356,9 +356,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
356 356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
357 357
                                  // It is assumed that when logic high = filament available
358 358
                                  //                    when logic  low = filament ran out
359
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
360
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
361
-
359
+#ifdef FILAMENT_RUNOUT_SENSOR
360
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
361
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
362
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
363
+#endif 
364
+  
362 365
 //===========================================================================
363 366
 //============================ Manual Bed Leveling ==========================
364 367
 //===========================================================================

+ 6
- 3
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -377,9 +377,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
377 377
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
378 378
                                  // It is assumed that when logic high = filament available
379 379
                                  //                    when logic  low = filament ran out
380
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
381
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
382
-
380
+#ifdef FILAMENT_RUNOUT_SENSOR
381
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
382
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
383
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
384
+#endif 
385
+  
383 386
 //===========================================================================
384 387
 //============================ Manual Bed Leveling ==========================
385 388
 //===========================================================================

+ 5
- 2
Marlin/example_configurations/K8200/Configuration.h View File

@@ -433,8 +433,11 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
433 433
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
434 434
                                  // It is assumed that when logic high = filament available
435 435
                                  //                    when logic  low = filament ran out
436
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
437
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
436
+#ifdef FILAMENT_RUNOUT_SENSOR
437
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
438
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
439
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
440
+#endif 
438 441
 
439 442
 //===========================================================================
440 443
 //============================ Mesh Bed Leveling ============================

+ 6
- 3
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -408,9 +408,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
408 408
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
409 409
                                  // It is assumed that when logic high = filament available
410 410
                                  //                    when logic  low = filament ran out
411
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
412
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
413
-
411
+#ifdef FILAMENT_RUNOUT_SENSOR
412
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
413
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
414
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
415
+#endif 
416
+  
414 417
 //===========================================================================
415 418
 //============================ Manual Bed Leveling ==========================
416 419
 //===========================================================================

+ 6
- 3
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -376,9 +376,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
376 376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
377 377
                                  // It is assumed that when logic high = filament available
378 378
                                  //                    when logic  low = filament ran out
379
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
380
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
381
-
379
+#ifdef FILAMENT_RUNOUT_SENSOR
380
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
381
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
382
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
383
+#endif 
384
+  
382 385
 //===========================================================================
383 386
 //============================ Manual Bed Leveling ==========================
384 387
 //===========================================================================

+ 6
- 3
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -406,9 +406,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
406 406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
407 407
                                  // It is assumed that when logic high = filament available
408 408
                                  //                    when logic  low = filament ran out
409
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
410
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
411
-
409
+#ifdef FILAMENT_RUNOUT_SENSOR
410
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
411
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
412
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
413
+#endif 
414
+  
412 415
 //===========================================================================
413 416
 //============================ Manual Bed Leveling ==========================
414 417
 //===========================================================================

+ 6
- 3
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -406,9 +406,12 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
406 406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
407 407
                                  // It is assumed that when logic high = filament available
408 408
                                  //                    when logic  low = filament ran out
409
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
410
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
411
-
409
+#ifdef FILAMENT_RUNOUT_SENSOR
410
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
411
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
412
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
413
+#endif 
414
+  
412 415
 //===========================================================================
413 416
 //============================ Manual Bed Leveling ==========================
414 417
 //===========================================================================

+ 5
- 3
Marlin/example_configurations/makibox/Configuration.h View File

@@ -376,9 +376,11 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
376 376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
377 377
                                  // It is assumed that when logic high = filament available
378 378
                                  //                    when logic  low = filament ran out
379
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
380
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
381
-
379
+#ifdef FILAMENT_RUNOUT_SENSOR
380
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
381
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
382
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
383
+#endif 
382 384
 //===========================================================================
383 385
 //============================ Manual Bed Leveling ==========================
384 386
 //===========================================================================

+ 5
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -378,8 +378,11 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
378 378
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
379 379
                                  // It is assumed that when logic high = filament available
380 380
                                  //                    when logic  low = filament ran out
381
-//const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
382
-//#define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
381
+#ifdef FILAMENT_RUNOUT_SENSOR
382
+  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
383
+  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
384
+  #define FILAMENT_RUNOUT_SCRIPT "M600"
385
+#endif 
383 386
 
384 387
 //===========================================================================
385 388
 //============================ Manual Bed Leveling ==========================

Loading…
Cancel
Save