Browse Source

Merge pull request #4097 from thinkyhead/rc_fil_runout_cleanup

FIL_RUNOUT_INVERTING false by default
Scott Lahteine 8 years ago
parent
commit
9beb3f2f5e

+ 1
- 1
Marlin/Conditionals.h View File

643
   #define HAS_SERVO_2 (PIN_EXISTS(SERVO2))
643
   #define HAS_SERVO_2 (PIN_EXISTS(SERVO2))
644
   #define HAS_SERVO_3 (PIN_EXISTS(SERVO3))
644
   #define HAS_SERVO_3 (PIN_EXISTS(SERVO3))
645
   #define HAS_FILAMENT_WIDTH_SENSOR (PIN_EXISTS(FILWIDTH))
645
   #define HAS_FILAMENT_WIDTH_SENSOR (PIN_EXISTS(FILWIDTH))
646
-  #define HAS_FILRUNOUT (PIN_EXISTS(FILRUNOUT))
646
+  #define HAS_FIL_RUNOUT (PIN_EXISTS(FIL_RUNOUT))
647
   #define HAS_HOME (PIN_EXISTS(HOME))
647
   #define HAS_HOME (PIN_EXISTS(HOME))
648
   #define HAS_KILL (PIN_EXISTS(KILL))
648
   #define HAS_KILL (PIN_EXISTS(KILL))
649
   #define HAS_SUICIDE (PIN_EXISTS(SUICIDE))
649
   #define HAS_SUICIDE (PIN_EXISTS(SUICIDE))

+ 1
- 1
Marlin/Configuration.h View File

585
                                  // It is assumed that when logic high = filament available
585
                                  // It is assumed that when logic high = filament available
586
                                  //                    when logic  low = filament ran out
586
                                  //                    when logic  low = filament ran out
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591
 #endif
591
 #endif

+ 3
- 3
Marlin/Marlin_main.cpp View File

689
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
689
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
690
 
690
 
691
   void setup_filrunoutpin() {
691
   void setup_filrunoutpin() {
692
-    pinMode(FILRUNOUT_PIN, INPUT);
692
+    pinMode(FIL_RUNOUT_PIN, INPUT);
693
     #if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
693
     #if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
694
-      WRITE(FILRUNOUT_PIN, HIGH);
694
+      WRITE(FIL_RUNOUT_PIN, HIGH);
695
     #endif
695
     #endif
696
   }
696
   }
697
 
697
 
8167
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
8167
 void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
8168
 
8168
 
8169
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
8169
   #if ENABLED(FILAMENT_RUNOUT_SENSOR)
8170
-    if (IS_SD_PRINTING && !(READ(FILRUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
8170
+    if (IS_SD_PRINTING && !(READ(FIL_RUNOUT_PIN) ^ FIL_RUNOUT_INVERTING))
8171
       handle_filament_runout();
8171
       handle_filament_runout();
8172
   #endif
8172
   #endif
8173
 
8173
 

+ 2
- 2
Marlin/SanityCheck.h View File

128
  * Filament Runout needs a pin and SD Support
128
  * Filament Runout needs a pin and SD Support
129
  */
129
  */
130
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
130
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
131
-  #if !HAS_FILRUNOUT
132
-    #error "FILAMENT_RUNOUT_SENSOR requires FILRUNOUT_PIN."
131
+  #if !HAS_FIL_RUNOUT
132
+    #error "FILAMENT_RUNOUT_SENSOR requires FIL_RUNOUT_PIN."
133
   #elif DISABLED(SDSUPPORT)
133
   #elif DISABLED(SDSUPPORT)
134
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT."
134
     #error "FILAMENT_RUNOUT_SENSOR requires SDSUPPORT."
135
   #endif
135
   #endif

+ 1
- 1
Marlin/example_configurations/Cartesio/Configuration.h View File

584
                                  // It is assumed that when logic high = filament available
584
                                  // It is assumed that when logic high = filament available
585
                                  //                    when logic  low = filament ran out
585
                                  //                    when logic  low = filament ran out
586
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
586
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
587
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
587
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
588
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
588
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
589
   #define FILAMENT_RUNOUT_SCRIPT "M600"
589
   #define FILAMENT_RUNOUT_SCRIPT "M600"
590
 #endif
590
 #endif

+ 1
- 1
Marlin/example_configurations/Felix/Configuration.h View File

567
                                  // It is assumed that when logic high = filament available
567
                                  // It is assumed that when logic high = filament available
568
                                  //                    when logic  low = filament ran out
568
                                  //                    when logic  low = filament ran out
569
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
569
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
570
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
570
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
571
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
571
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
572
   #define FILAMENT_RUNOUT_SCRIPT "M600"
572
   #define FILAMENT_RUNOUT_SCRIPT "M600"
573
 #endif
573
 #endif

+ 1
- 1
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

565
                                  // It is assumed that when logic high = filament available
565
                                  // It is assumed that when logic high = filament available
566
                                  //                    when logic  low = filament ran out
566
                                  //                    when logic  low = filament ran out
567
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
567
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
568
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
568
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
569
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
569
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
570
   #define FILAMENT_RUNOUT_SCRIPT "M600"
570
   #define FILAMENT_RUNOUT_SCRIPT "M600"
571
 #endif
571
 #endif

+ 1
- 1
Marlin/example_configurations/Hephestos/Configuration.h View File

577
                                  // It is assumed that when logic high = filament available
577
                                  // It is assumed that when logic high = filament available
578
                                  //                    when logic  low = filament ran out
578
                                  //                    when logic  low = filament ran out
579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
580
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
580
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
583
 #endif
583
 #endif

+ 1
- 1
Marlin/example_configurations/Hephestos_2/Configuration.h View File

579
                                  // It is assumed that when logic high = filament available
579
                                  // It is assumed that when logic high = filament available
580
                                  //                    when logic  low = filament ran out
580
                                  //                    when logic  low = filament ran out
581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
582
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
582
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
585
 #endif
585
 #endif

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h View File

602
                                  // It is assumed that when logic high = filament available
602
                                  // It is assumed that when logic high = filament available
603
                                  //                    when logic  low = filament ran out
603
                                  //                    when logic  low = filament ran out
604
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
604
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
605
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
605
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
606
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
606
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
607
   #define FILAMENT_RUNOUT_SCRIPT "M600"
607
   #define FILAMENT_RUNOUT_SCRIPT "M600"
608
 #endif
608
 #endif

+ 1
- 1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

585
                                  // It is assumed that when logic high = filament available
585
                                  // It is assumed that when logic high = filament available
586
                                  //                    when logic  low = filament ran out
586
                                  //                    when logic  low = filament ran out
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591
 #endif
591
 #endif

+ 1
- 1
Marlin/example_configurations/RigidBot/Configuration.h View File

579
                                  // It is assumed that when logic high = filament available
579
                                  // It is assumed that when logic high = filament available
580
                                  //                    when logic  low = filament ran out
580
                                  //                    when logic  low = filament ran out
581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
581
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
582
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
582
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
583
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
584
   #define FILAMENT_RUNOUT_SCRIPT "M600"
585
 #endif
585
 #endif

+ 1
- 1
Marlin/example_configurations/SCARA/Configuration.h View File

593
                                  // It is assumed that when logic high = filament available
593
                                  // It is assumed that when logic high = filament available
594
                                  //                    when logic  low = filament ran out
594
                                  //                    when logic  low = filament ran out
595
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
595
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
596
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
596
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
597
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
597
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
598
   #define FILAMENT_RUNOUT_SCRIPT "M600"
598
   #define FILAMENT_RUNOUT_SCRIPT "M600"
599
 #endif
599
 #endif

+ 1
- 1
Marlin/example_configurations/TAZ4/Configuration.h View File

606
                                  // It is assumed that when logic high = filament available
606
                                  // It is assumed that when logic high = filament available
607
                                  //                    when logic  low = filament ran out
607
                                  //                    when logic  low = filament ran out
608
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
608
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
609
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
609
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
610
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
610
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
611
   #define FILAMENT_RUNOUT_SCRIPT "M600"
611
   #define FILAMENT_RUNOUT_SCRIPT "M600"
612
 #endif
612
 #endif

+ 1
- 1
Marlin/example_configurations/WITBOX/Configuration.h View File

577
                                  // It is assumed that when logic high = filament available
577
                                  // It is assumed that when logic high = filament available
578
                                  //                    when logic  low = filament ran out
578
                                  //                    when logic  low = filament ran out
579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
579
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
580
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
580
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
581
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
582
   #define FILAMENT_RUNOUT_SCRIPT "M600"
583
 #endif
583
 #endif

+ 1
- 1
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

585
                                  // It is assumed that when logic high = filament available
585
                                  // It is assumed that when logic high = filament available
586
                                  //                    when logic  low = filament ran out
586
                                  //                    when logic  low = filament ran out
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
587
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
588
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
588
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
589
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
590
   #define FILAMENT_RUNOUT_SCRIPT "M600"
591
 #endif
591
 #endif

+ 1
- 1
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

664
                                  // It is assumed that when logic high = filament available
664
                                  // It is assumed that when logic high = filament available
665
                                  //                    when logic  low = filament ran out
665
                                  //                    when logic  low = filament ran out
666
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
666
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
667
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
667
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
668
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
668
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
669
   #define FILAMENT_RUNOUT_SCRIPT "M600"
669
   #define FILAMENT_RUNOUT_SCRIPT "M600"
670
 #endif
670
 #endif

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

658
                                  // It is assumed that when logic high = filament available
658
                                  // It is assumed that when logic high = filament available
659
                                  //                    when logic  low = filament ran out
659
                                  //                    when logic  low = filament ran out
660
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
660
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
661
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
661
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
662
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
662
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
663
   #define FILAMENT_RUNOUT_SCRIPT "M600"
663
   #define FILAMENT_RUNOUT_SCRIPT "M600"
664
 #endif
664
 #endif

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

661
                                  // It is assumed that when logic high = filament available
661
                                  // It is assumed that when logic high = filament available
662
                                  //                    when logic  low = filament ran out
662
                                  //                    when logic  low = filament ran out
663
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
663
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
664
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
664
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
665
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
665
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
666
   #define FILAMENT_RUNOUT_SCRIPT "M600"
666
   #define FILAMENT_RUNOUT_SCRIPT "M600"
667
 #endif
667
 #endif

+ 1
- 1
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

655
                                  // It is assumed that when logic high = filament available
655
                                  // It is assumed that when logic high = filament available
656
                                  //                    when logic  low = filament ran out
656
                                  //                    when logic  low = filament ran out
657
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
657
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
658
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
658
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
659
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
659
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
660
   #define FILAMENT_RUNOUT_SCRIPT "M600"
660
   #define FILAMENT_RUNOUT_SCRIPT "M600"
661
 #endif
661
 #endif

+ 1
- 1
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

656
                                  // It is assumed that when logic high = filament available
656
                                  // It is assumed that when logic high = filament available
657
                                  //                    when logic  low = filament ran out
657
                                  //                    when logic  low = filament ran out
658
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
658
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
659
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
659
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
660
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
660
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
661
   #define FILAMENT_RUNOUT_SCRIPT "M600"
661
   #define FILAMENT_RUNOUT_SCRIPT "M600"
662
 #endif
662
 #endif

+ 1
- 1
Marlin/example_configurations/makibox/Configuration.h View File

588
                                  // It is assumed that when logic high = filament available
588
                                  // It is assumed that when logic high = filament available
589
                                  //                    when logic  low = filament ran out
589
                                  //                    when logic  low = filament ran out
590
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
590
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
591
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
591
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
592
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
592
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
593
   #define FILAMENT_RUNOUT_SCRIPT "M600"
593
   #define FILAMENT_RUNOUT_SCRIPT "M600"
594
 #endif
594
 #endif

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

575
                                  // It is assumed that when logic high = filament available
575
                                  // It is assumed that when logic high = filament available
576
                                  //                    when logic  low = filament ran out
576
                                  //                    when logic  low = filament ran out
577
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
577
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
578
-  const bool FIL_RUNOUT_INVERTING = true;  // Should be uncommented and true or false should assigned
578
+  const bool FIL_RUNOUT_INVERTING = false; // set to true to invert the logic of the sensor.
579
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
579
   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
580
   #define FILAMENT_RUNOUT_SCRIPT "M600"
580
   #define FILAMENT_RUNOUT_SCRIPT "M600"
581
 #endif
581
 #endif

+ 1
- 1
Marlin/pins_CNCONTROLS_12.h View File

67
 //common I/O
67
 //common I/O
68
 
68
 
69
  //#define TEMP_CHAMBER_PIN        13  // ANALOG INPUT !!
69
  //#define TEMP_CHAMBER_PIN        13  // ANALOG INPUT !!
70
- #define FILRUNOUT_PIN             18
70
+ #define FIL_RUNOUT_PIN            18
71
  //#define PWM_1_PIN               12
71
  //#define PWM_1_PIN               12
72
  //#define PWM_2_PIN               13 
72
  //#define PWM_2_PIN               13 
73
  //#define SPARE_IO                17  
73
  //#define SPARE_IO                17  

+ 1
- 1
Marlin/pins_RAMPS_14.h View File

99
 #endif
99
 #endif
100
 
100
 
101
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
101
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
102
-#define FILRUNOUT_PIN       4
102
+#define FIL_RUNOUT_PIN      4
103
 
103
 
104
 #if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB)
104
 #if MB(RAMPS_14_EFF) || MB(RAMPS_13_EFF) || ENABLED(IS_RAMPS_EFB)
105
   #define FAN_PIN           9 // (Sprinter config)
105
   #define FAN_PIN           9 // (Sprinter config)

Loading…
Cancel
Save