Browse Source

Updated all configuration.h examples

paclema 9 years ago
parent
commit
aedd580911

+ 1
- 1
Marlin/Configuration.h View File

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

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

356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
357
                                  // It is assumed that when logic high = filament available
357
                                  // It is assumed that when logic high = filament available
358
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
366
 //============================ Manual Bed Leveling ==========================
364
 //===========================================================================
367
 //===========================================================================

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

356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
356
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
357
                                  // It is assumed that when logic high = filament available
357
                                  // It is assumed that when logic high = filament available
358
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
366
 //============================ Manual Bed Leveling ==========================
364
 //===========================================================================
367
 //===========================================================================

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

377
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
377
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
378
                                  // It is assumed that when logic high = filament available
378
                                  // It is assumed that when logic high = filament available
379
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
387
 //============================ Manual Bed Leveling ==========================
385
 //===========================================================================
388
 //===========================================================================

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

433
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
433
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
434
                                  // It is assumed that when logic high = filament available
434
                                  // It is assumed that when logic high = filament available
435
                                  //                    when logic  low = filament ran out
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
 //============================ Mesh Bed Leveling ============================
443
 //============================ Mesh Bed Leveling ============================

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

408
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
408
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
409
                                  // It is assumed that when logic high = filament available
409
                                  // It is assumed that when logic high = filament available
410
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
418
 //============================ Manual Bed Leveling ==========================
416
 //===========================================================================
419
 //===========================================================================

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

376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
377
                                  // It is assumed that when logic high = filament available
377
                                  // It is assumed that when logic high = filament available
378
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
386
 //============================ Manual Bed Leveling ==========================
384
 //===========================================================================
387
 //===========================================================================

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

406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
407
                                  // It is assumed that when logic high = filament available
407
                                  // It is assumed that when logic high = filament available
408
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
416
 //============================ Manual Bed Leveling ==========================
414
 //===========================================================================
417
 //===========================================================================

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

406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
406
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
407
                                  // It is assumed that when logic high = filament available
407
                                  // It is assumed that when logic high = filament available
408
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
416
 //============================ Manual Bed Leveling ==========================
414
 //===========================================================================
417
 //===========================================================================

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

376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
376
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
377
                                  // It is assumed that when logic high = filament available
377
                                  // It is assumed that when logic high = filament available
378
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
385
 //============================ Manual Bed Leveling ==========================
384
 //===========================================================================
386
 //===========================================================================

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

378
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
378
                                  // In RAMPS uses servo pin 2. Can be changed in pins file. For other boards pin definition should be made.
379
                                  // It is assumed that when logic high = filament available
379
                                  // It is assumed that when logic high = filament available
380
                                  //                    when logic  low = filament ran out
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
 //============================ Manual Bed Leveling ==========================
388
 //============================ Manual Bed Leveling ==========================

Loading…
Cancel
Save