Selaa lähdekoodia

Pulldown pin mode support (#9701)

Implemented for LPC1768.
Scott Lahteine 6 vuotta sitten
vanhempi
commit
ca55f2927a
No account linked to committer's email address
66 muutettua tiedostoa jossa 1182 lisäystä ja 325 poistoa
  1. 18
    5
      Marlin/Configuration.h
  2. 25
    24
      Marlin/src/HAL/HAL_LPC1768/arduino.cpp
  3. 5
    0
      Marlin/src/HAL/HAL_LPC1768/fastio.h
  4. 5
    4
      Marlin/src/HAL/HAL_LPC1768/include/Arduino.h
  5. 3
    1
      Marlin/src/Marlin.cpp
  6. 18
    5
      Marlin/src/config/default/Configuration.h
  7. 18
    5
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  8. 18
    5
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  9. 18
    5
      Marlin/src/config/examples/Anet/A6/Configuration.h
  10. 18
    5
      Marlin/src/config/examples/Anet/A8/Configuration.h
  11. 18
    5
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  12. 18
    5
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  13. 18
    5
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  14. 18
    5
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  15. 18
    5
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  16. 18
    5
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  17. 18
    5
      Marlin/src/config/examples/Cartesio/Configuration.h
  18. 18
    5
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  19. 18
    5
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  20. 18
    5
      Marlin/src/config/examples/Creality/Ender/Configuration.h
  21. 18
    5
      Marlin/src/config/examples/Felix/Configuration.h
  22. 18
    5
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  23. 18
    5
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  24. 18
    5
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  25. 18
    5
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  26. 18
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  27. 18
    5
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  28. 18
    5
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  29. 18
    5
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  30. 18
    5
      Marlin/src/config/examples/MakerParts/Configuration.h
  31. 18
    5
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  32. 18
    5
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  33. 18
    5
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  34. 18
    5
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  35. 18
    5
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  36. 18
    5
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  37. 18
    5
      Marlin/src/config/examples/RigidBot/Configuration.h
  38. 18
    5
      Marlin/src/config/examples/SCARA/Configuration.h
  39. 18
    5
      Marlin/src/config/examples/STM32F10/Configuration.h
  40. 18
    5
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  41. 18
    5
      Marlin/src/config/examples/TheBorg/Configuration.h
  42. 18
    5
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  43. 18
    5
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  44. 18
    5
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  45. 18
    5
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  46. 18
    5
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  47. 18
    5
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  48. 18
    5
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  49. 18
    5
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  50. 18
    5
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  51. 18
    5
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  52. 18
    5
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  53. 18
    5
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  54. 18
    5
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  55. 18
    5
      Marlin/src/config/examples/delta/generic/Configuration.h
  56. 18
    5
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  57. 18
    5
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  58. 18
    5
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  59. 18
    5
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  60. 18
    5
      Marlin/src/config/examples/makibox/Configuration.h
  61. 18
    5
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  62. 18
    5
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  63. 18
    5
      Marlin/src/config/examples/wt150/Configuration.h
  64. 24
    0
      Marlin/src/inc/Conditionals_post.h
  65. 32
    1
      Marlin/src/inc/SanityCheck.h
  66. 26
    0
      Marlin/src/module/endstops.cpp

+ 18
- 5
Marlin/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 25
- 24
Marlin/src/HAL/HAL_LPC1768/arduino.cpp Näytä tiedosto

@@ -71,7 +71,7 @@ extern "C" void delay(const int msec) {
71 71
 
72 72
 // IO functions
73 73
 // As defined by Arduino INPUT(0x0), OUPUT(0x1), INPUT_PULLUP(0x2)
74
-void pinMode(pin_t pin, uint8_t mode) {
74
+void pinMode(const pin_t pin, const uint8_t mode) {
75 75
   if (!VALID_PIN(pin)) return;
76 76
 
77 77
   PINSEL_CFG_Type config = { LPC1768_PIN_PORT(pin),
@@ -79,23 +79,24 @@ void pinMode(pin_t pin, uint8_t mode) {
79 79
                              PINSEL_FUNC_0,
80 80
                              PINSEL_PINMODE_TRISTATE,
81 81
                              PINSEL_PINMODE_NORMAL };
82
-  switch(mode) {
83
-  case INPUT:
84
-    LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR &= ~LPC_PIN(LPC1768_PIN_PIN(pin));
85
-    PINSEL_ConfigPin(&config);
86
-    break;
87
-  case OUTPUT:
88
-    LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR |=  LPC_PIN(LPC1768_PIN_PIN(pin));
89
-    PINSEL_ConfigPin(&config);
90
-    break;
91
-  case INPUT_PULLUP:
92
-    LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR &= ~LPC_PIN(LPC1768_PIN_PIN(pin));
93
-    config.Pinmode = PINSEL_PINMODE_PULLUP;
94
-    PINSEL_ConfigPin(&config);
95
-    break;
96
-  default:
97
-    break;
82
+  switch (mode) {
83
+    case INPUT:
84
+      LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR &= ~LPC_PIN(LPC1768_PIN_PIN(pin));
85
+      break;
86
+    case OUTPUT:
87
+      LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR |=  LPC_PIN(LPC1768_PIN_PIN(pin));
88
+      break;
89
+    case INPUT_PULLUP:
90
+      LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR &= ~LPC_PIN(LPC1768_PIN_PIN(pin));
91
+      config.Pinmode = PINSEL_PINMODE_PULLUP;
92
+      break;
93
+    case INPUT_PULLDOWN:
94
+      LPC_GPIO(LPC1768_PIN_PORT(pin))->FIODIR &= ~LPC_PIN(LPC1768_PIN_PIN(pin));
95
+      config.Pinmode = PINSEL_PINMODE_PULLDOWN;
96
+      break;
97
+    default: return;
98 98
   }
99
+  PINSEL_ConfigPin(&config);
99 100
 }
100 101
 
101 102
 void digitalWrite(pin_t pin, uint8_t pin_status) {
@@ -108,13 +109,13 @@ void digitalWrite(pin_t pin, uint8_t pin_status) {
108 109
 
109 110
   pinMode(pin, OUTPUT);  // Set pin mode on every write (Arduino version does this)
110 111
 
111
-    /**
112
-     * Must be done AFTER the output state is set. Doing this before will cause a
113
-     * 2uS glitch if writing a "1".
114
-     *
115
-     * When the Port Direction bit is written to a "1" the output is immediately set
116
-     * to the value of the FIOPIN bit which is "0" because of power up defaults.
117
-     */
112
+  /**
113
+   * Must be done AFTER the output state is set. Doing this before will cause a
114
+   * 2uS glitch if writing a "1".
115
+   *
116
+   * When the Port Direction bit is written to a "1" the output is immediately set
117
+   * to the value of the FIOPIN bit which is "0" because of power up defaults.
118
+   */
118 119
 }
119 120
 
120 121
 bool digitalRead(pin_t pin) {

+ 5
- 0
Marlin/src/HAL/HAL_LPC1768/fastio.h Näytä tiedosto

@@ -85,6 +85,9 @@ bool useable_hardware_PWM(pin_t pin);
85 85
 /// set pin as input with pullup mode
86 86
 #define _PULLUP(IO, v) (pinMode(IO, (v!=LOW ? INPUT_PULLUP : INPUT)))
87 87
 
88
+/// set pin as input with pulldown mode
89
+#define _PULLDOWN(IO, v) (pinMode(IO, (v!=LOW ? INPUT_PULLDOWN : INPUT)))
90
+
88 91
 // hg42: all pins can be input or output (I hope)
89 92
 // hg42: undefined pins create compile error (IO, is no pin)
90 93
 // hg42: currently not used, but was used by pinsDebug
@@ -119,6 +122,8 @@ bool useable_hardware_PWM(pin_t pin);
119 122
 #define SET_INPUT(IO)  _SET_INPUT(IO)
120 123
 /// set pin as input with pullup wrapper
121 124
 #define SET_INPUT_PULLUP(IO) do{ _SET_INPUT(IO); _PULLUP(IO, HIGH); }while(0)
125
+/// set pin as input with pulldown wrapper
126
+#define SET_INPUT_PULLDOWN(IO) do{ _SET_INPUT(IO); _PULLDOWN(IO, HIGH); }while(0)
122 127
 /// set pin as output wrapper  -  reads the pin and sets the output to that value
123 128
 #define SET_OUTPUT(IO)  do{ _WRITE(IO, _READ(IO)); _SET_OUTPUT(IO); }while(0)
124 129
 

+ 5
- 4
Marlin/src/HAL/HAL_LPC1768/include/Arduino.h Näytä tiedosto

@@ -31,9 +31,10 @@
31 31
 #define HIGH         0x01
32 32
 #define LOW          0x00
33 33
 
34
-#define INPUT        0x00
35
-#define OUTPUT       0x01
36
-#define INPUT_PULLUP 0x02
34
+#define INPUT          0x00
35
+#define OUTPUT         0x01
36
+#define INPUT_PULLUP   0x02
37
+#define INPUT_PULLDOWN 0x03
37 38
 
38 39
 #define LSBFIRST     0
39 40
 #define MSBFIRST     1
@@ -104,7 +105,7 @@ void delayMicroseconds(unsigned long);
104 105
 uint32_t millis();
105 106
 
106 107
 //IO functions
107
-void pinMode(pin_t, uint8_t);
108
+void pinMode(const pin_t, const uint8_t);
108 109
 void digitalWrite(pin_t, uint8_t);
109 110
 bool digitalRead(pin_t);
110 111
 void analogWrite(pin_t, int);

+ 3
- 1
Marlin/src/Marlin.cpp Näytä tiedosto

@@ -219,8 +219,10 @@ void setup_killpin() {
219 219
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
220 220
 
221 221
   void setup_filrunoutpin() {
222
-    #if ENABLED(ENDSTOPPULLUP_FIL_RUNOUT)
222
+    #if ENABLED(FIL_RUNOUT_PULLUP)
223 223
       SET_INPUT_PULLUP(FIL_RUNOUT_PIN);
224
+    #elif ENABLED(FIL_RUNOUT_PULLDOWN)
225
+      SET_INPUT_PULLDOWN(FIL_RUNOUT_PIN);
224 226
     #else
225 227
       SET_INPUT(FIL_RUNOUT_PIN);
226 228
     #endif

+ 18
- 5
Marlin/src/config/default/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h Näytä tiedosto

@@ -520,11 +520,10 @@
520 520
 //#define USE_YMAX_PLUG
521 521
 //#define USE_ZMAX_PLUG
522 522
 
523
-// coarse Endstop Settings
524
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
525
-
523
+// Enable pullup for all endstops to prevent a floating state
524
+#define ENDSTOPPULLUPS
526 525
 #if DISABLED(ENDSTOPPULLUPS)
527
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
526
+  // Disable ENDSTOPPULLUPS to set pullups individually
528 527
   //#define ENDSTOPPULLUP_XMAX
529 528
   //#define ENDSTOPPULLUP_YMAX
530 529
   //#define ENDSTOPPULLUP_ZMAX
@@ -534,6 +533,19 @@
534 533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535 534
 #endif
536 535
 
536
+// Enable pulldown for all endstops to prevent a floating state
537
+//#define ENDSTOPPULLDOWNS
538
+#if DISABLED(ENDSTOPPULLDOWNS)
539
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
540
+  //#define ENDSTOPPULLDOWN_XMAX
541
+  //#define ENDSTOPPULLDOWN_YMAX
542
+  //#define ENDSTOPPULLDOWN_ZMAX
543
+  //#define ENDSTOPPULLDOWN_XMIN
544
+  //#define ENDSTOPPULLDOWN_YMIN
545
+  //#define ENDSTOPPULLDOWN_ZMIN
546
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
547
+#endif
548
+
537 549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538 550
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
539 551
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -870,7 +882,8 @@
870 882
 //#define FILAMENT_RUNOUT_SENSOR
871 883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
872 884
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
873
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
885
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
886
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
874 887
   #define FILAMENT_RUNOUT_SCRIPT "M600"
875 888
 #endif
876 889
 

+ 18
- 5
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 #define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/Anet/A6/Configuration.h Näytä tiedosto

@@ -520,11 +520,10 @@
520 520
 //#define USE_YMAX_PLUG
521 521
 //#define USE_ZMAX_PLUG
522 522
 
523
-// coarse Endstop Settings
524
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
525
-
523
+// Enable pullup for all endstops to prevent a floating state
524
+#define ENDSTOPPULLUPS
526 525
 #if DISABLED(ENDSTOPPULLUPS)
527
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
526
+  // Disable ENDSTOPPULLUPS to set pullups individually
528 527
   //#define ENDSTOPPULLUP_XMAX
529 528
   //#define ENDSTOPPULLUP_YMAX
530 529
   //#define ENDSTOPPULLUP_ZMAX
@@ -534,6 +533,19 @@
534 533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535 534
 #endif
536 535
 
536
+// Enable pulldown for all endstops to prevent a floating state
537
+//#define ENDSTOPPULLDOWNS
538
+#if DISABLED(ENDSTOPPULLDOWNS)
539
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
540
+  //#define ENDSTOPPULLDOWN_XMAX
541
+  //#define ENDSTOPPULLDOWN_YMAX
542
+  //#define ENDSTOPPULLDOWN_ZMAX
543
+  //#define ENDSTOPPULLDOWN_XMIN
544
+  //#define ENDSTOPPULLDOWN_YMIN
545
+  //#define ENDSTOPPULLDOWN_ZMIN
546
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
547
+#endif
548
+
537 549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538 550
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
539 551
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -960,7 +972,8 @@
960 972
 //#define FILAMENT_RUNOUT_SENSOR
961 973
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
962 974
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
963
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
975
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
976
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
964 977
   #define FILAMENT_RUNOUT_SCRIPT "M600"
965 978
 #endif
966 979
 

+ 18
- 5
Marlin/src/config/examples/Anet/A8/Configuration.h Näytä tiedosto

@@ -507,11 +507,10 @@
507 507
 //#define USE_YMAX_PLUG
508 508
 //#define USE_ZMAX_PLUG
509 509
 
510
-// coarse Endstop Settings
511
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
512
-
510
+// Enable pullup for all endstops to prevent a floating state
511
+#define ENDSTOPPULLUPS
513 512
 #if DISABLED(ENDSTOPPULLUPS)
514
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
513
+  // Disable ENDSTOPPULLUPS to set pullups individually
515 514
   //#define ENDSTOPPULLUP_XMAX
516 515
   //#define ENDSTOPPULLUP_YMAX
517 516
   //#define ENDSTOPPULLUP_ZMAX
@@ -521,6 +520,19 @@
521 520
   //#define ENDSTOPPULLUP_ZMIN_PROBE
522 521
 #endif
523 522
 
523
+// Enable pulldown for all endstops to prevent a floating state
524
+//#define ENDSTOPPULLDOWNS
525
+#if DISABLED(ENDSTOPPULLDOWNS)
526
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
527
+  //#define ENDSTOPPULLDOWN_XMAX
528
+  //#define ENDSTOPPULLDOWN_YMAX
529
+  //#define ENDSTOPPULLDOWN_ZMAX
530
+  //#define ENDSTOPPULLDOWN_XMIN
531
+  //#define ENDSTOPPULLDOWN_YMIN
532
+  //#define ENDSTOPPULLDOWN_ZMIN
533
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
534
+#endif
535
+
524 536
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
525 537
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
526 538
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -857,7 +869,8 @@
857 869
 //#define FILAMENT_RUNOUT_SENSOR
858 870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859 871
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
860
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
872
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
873
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
861 874
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862 875
 #endif
863 876
 

+ 18
- 5
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 #define USE_YMAX_PLUG
501 501
 #define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 #define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
519 531
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 #define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
519 531
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/BQ/Hephestos/Configuration.h Näytä tiedosto

@@ -488,11 +488,10 @@
488 488
 //#define USE_YMAX_PLUG
489 489
 //#define USE_ZMAX_PLUG
490 490
 
491
-// coarse Endstop Settings
492
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
493
-
491
+// Enable pullup for all endstops to prevent a floating state
492
+#define ENDSTOPPULLUPS
494 493
 #if DISABLED(ENDSTOPPULLUPS)
495
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
494
+  // Disable ENDSTOPPULLUPS to set pullups individually
496 495
   //#define ENDSTOPPULLUP_XMAX
497 496
   //#define ENDSTOPPULLUP_YMAX
498 497
   //#define ENDSTOPPULLUP_ZMAX
@@ -502,6 +501,19 @@
502 501
   //#define ENDSTOPPULLUP_ZMIN_PROBE
503 502
 #endif
504 503
 
504
+// Enable pulldown for all endstops to prevent a floating state
505
+//#define ENDSTOPPULLDOWNS
506
+#if DISABLED(ENDSTOPPULLDOWNS)
507
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
508
+  //#define ENDSTOPPULLDOWN_XMAX
509
+  //#define ENDSTOPPULLDOWN_YMAX
510
+  //#define ENDSTOPPULLDOWN_ZMAX
511
+  //#define ENDSTOPPULLDOWN_XMIN
512
+  //#define ENDSTOPPULLDOWN_YMIN
513
+  //#define ENDSTOPPULLDOWN_ZMIN
514
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
515
+#endif
516
+
505 517
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
506 518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
507 519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -838,7 +850,8 @@
838 850
 //#define FILAMENT_RUNOUT_SENSOR
839 851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
840 852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
841
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
853
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
854
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
842 855
   #define FILAMENT_RUNOUT_SCRIPT "M600"
843 856
 #endif
844 857
 

+ 18
- 5
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h Näytä tiedosto

@@ -501,11 +501,10 @@
501 501
 //#define USE_YMAX_PLUG
502 502
 //#define USE_ZMAX_PLUG
503 503
 
504
-// coarse Endstop Settings
505
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
506
-
504
+// Enable pullup for all endstops to prevent a floating state
505
+#define ENDSTOPPULLUPS
507 506
 #if DISABLED(ENDSTOPPULLUPS)
508
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
507
+  // Disable ENDSTOPPULLUPS to set pullups individually
509 508
   //#define ENDSTOPPULLUP_XMAX
510 509
   //#define ENDSTOPPULLUP_YMAX
511 510
   //#define ENDSTOPPULLUP_ZMAX
@@ -515,6 +514,19 @@
515 514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
516 515
 #endif
517 516
 
517
+// Enable pulldown for all endstops to prevent a floating state
518
+//#define ENDSTOPPULLDOWNS
519
+#if DISABLED(ENDSTOPPULLDOWNS)
520
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
521
+  //#define ENDSTOPPULLDOWN_XMAX
522
+  //#define ENDSTOPPULLDOWN_YMAX
523
+  //#define ENDSTOPPULLDOWN_ZMAX
524
+  //#define ENDSTOPPULLDOWN_XMIN
525
+  //#define ENDSTOPPULLDOWN_YMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN
527
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
528
+#endif
529
+
518 530
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
519 531
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
520 532
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -851,7 +863,8 @@
851 863
 //#define FILAMENT_RUNOUT_SENSOR
852 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
854
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
866
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
855 868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856 869
 #endif
857 870
 

+ 18
- 5
Marlin/src/config/examples/BQ/WITBOX/Configuration.h Näytä tiedosto

@@ -488,11 +488,10 @@
488 488
 #define USE_YMAX_PLUG
489 489
 //#define USE_ZMAX_PLUG
490 490
 
491
-// coarse Endstop Settings
492
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
493
-
491
+// Enable pullup for all endstops to prevent a floating state
492
+#define ENDSTOPPULLUPS
494 493
 #if DISABLED(ENDSTOPPULLUPS)
495
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
494
+  // Disable ENDSTOPPULLUPS to set pullups individually
496 495
   //#define ENDSTOPPULLUP_XMAX
497 496
   //#define ENDSTOPPULLUP_YMAX
498 497
   //#define ENDSTOPPULLUP_ZMAX
@@ -502,6 +501,19 @@
502 501
   //#define ENDSTOPPULLUP_ZMIN_PROBE
503 502
 #endif
504 503
 
504
+// Enable pulldown for all endstops to prevent a floating state
505
+//#define ENDSTOPPULLDOWNS
506
+#if DISABLED(ENDSTOPPULLDOWNS)
507
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
508
+  //#define ENDSTOPPULLDOWN_XMAX
509
+  //#define ENDSTOPPULLDOWN_YMAX
510
+  //#define ENDSTOPPULLDOWN_ZMAX
511
+  //#define ENDSTOPPULLDOWN_XMIN
512
+  //#define ENDSTOPPULLDOWN_YMIN
513
+  //#define ENDSTOPPULLDOWN_ZMIN
514
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
515
+#endif
516
+
505 517
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
506 518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
507 519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -838,7 +850,8 @@
838 850
 //#define FILAMENT_RUNOUT_SENSOR
839 851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
840 852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
841
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
853
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
854
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
842 855
   #define FILAMENT_RUNOUT_SCRIPT "M600"
843 856
 #endif
844 857
 

+ 18
- 5
Marlin/src/config/examples/Cartesio/Configuration.h Näytä tiedosto

@@ -499,11 +499,10 @@
499 499
 //#define USE_YMAX_PLUG
500 500
 //#define USE_ZMAX_PLUG
501 501
 
502
-// coarse Endstop Settings
503
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
504
-
502
+// Enable pullup for all endstops to prevent a floating state
503
+#define ENDSTOPPULLUPS
505 504
 #if DISABLED(ENDSTOPPULLUPS)
506
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
505
+  // Disable ENDSTOPPULLUPS to set pullups individually
507 506
   //#define ENDSTOPPULLUP_XMAX
508 507
   //#define ENDSTOPPULLUP_YMAX
509 508
   //#define ENDSTOPPULLUP_ZMAX
@@ -513,6 +512,19 @@
513 512
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514 513
 #endif
515 514
 
515
+// Enable pulldown for all endstops to prevent a floating state
516
+//#define ENDSTOPPULLDOWNS
517
+#if DISABLED(ENDSTOPPULLDOWNS)
518
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
519
+  //#define ENDSTOPPULLDOWN_XMAX
520
+  //#define ENDSTOPPULLDOWN_YMAX
521
+  //#define ENDSTOPPULLDOWN_ZMAX
522
+  //#define ENDSTOPPULLDOWN_XMIN
523
+  //#define ENDSTOPPULLDOWN_YMIN
524
+  //#define ENDSTOPPULLDOWN_ZMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
526
+#endif
527
+
516 528
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517 529
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
518 530
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -849,7 +861,8 @@
849 861
 //#define FILAMENT_RUNOUT_SENSOR
850 862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851 863
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
852
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
864
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
865
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
853 866
   #define FILAMENT_RUNOUT_SCRIPT "M600"
854 867
 #endif
855 868
 

+ 18
- 5
Marlin/src/config/examples/Creality/CR-10/Configuration.h Näytä tiedosto

@@ -510,11 +510,10 @@
510 510
 //#define USE_YMAX_PLUG
511 511
 //#define USE_ZMAX_PLUG
512 512
 
513
-// coarse Endstop Settings
514
-//#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
515
-
513
+// Enable pullup for all endstops to prevent a floating state
514
+//#define ENDSTOPPULLUPS
516 515
 #if DISABLED(ENDSTOPPULLUPS)
517
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
516
+  // Disable ENDSTOPPULLUPS to set pullups individually
518 517
   //#define ENDSTOPPULLUP_XMAX
519 518
   //#define ENDSTOPPULLUP_YMAX
520 519
   //#define ENDSTOPPULLUP_ZMAX
@@ -524,6 +523,19 @@
524 523
   //#define ENDSTOPPULLUP_ZMIN_PROBE
525 524
 #endif
526 525
 
526
+// Enable pulldown for all endstops to prevent a floating state
527
+//#define ENDSTOPPULLDOWNS
528
+#if DISABLED(ENDSTOPPULLDOWNS)
529
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
530
+  //#define ENDSTOPPULLDOWN_XMAX
531
+  //#define ENDSTOPPULLDOWN_YMAX
532
+  //#define ENDSTOPPULLDOWN_ZMAX
533
+  //#define ENDSTOPPULLDOWN_XMIN
534
+  //#define ENDSTOPPULLDOWN_YMIN
535
+  //#define ENDSTOPPULLDOWN_ZMIN
536
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
537
+#endif
538
+
527 539
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
528 540
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
529 541
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -860,7 +872,8 @@
860 872
 //#define FILAMENT_RUNOUT_SENSOR
861 873
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
862 874
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
863
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
875
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
876
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
864 877
   #define FILAMENT_RUNOUT_SCRIPT "M600"
865 878
 #endif
866 879
 

+ 18
- 5
Marlin/src/config/examples/Creality/CR-10S/Configuration.h Näytä tiedosto

@@ -491,11 +491,10 @@
491 491
 //#define USE_YMAX_PLUG
492 492
 //#define USE_ZMAX_PLUG
493 493
 
494
-// coarse Endstop Settings
495
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
496
-
494
+// Enable pullup for all endstops to prevent a floating state
495
+#define ENDSTOPPULLUPS
497 496
 #if DISABLED(ENDSTOPPULLUPS)
498
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
497
+  // Disable ENDSTOPPULLUPS to set pullups individually
499 498
   //#define ENDSTOPPULLUP_XMAX
500 499
   //#define ENDSTOPPULLUP_YMAX
501 500
   //#define ENDSTOPPULLUP_ZMAX
@@ -505,6 +504,19 @@
505 504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506 505
 #endif
507 506
 
507
+// Enable pulldown for all endstops to prevent a floating state
508
+//#define ENDSTOPPULLDOWNS
509
+#if DISABLED(ENDSTOPPULLDOWNS)
510
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
511
+  //#define ENDSTOPPULLDOWN_XMAX
512
+  //#define ENDSTOPPULLDOWN_YMAX
513
+  //#define ENDSTOPPULLDOWN_ZMAX
514
+  //#define ENDSTOPPULLDOWN_XMIN
515
+  //#define ENDSTOPPULLDOWN_YMIN
516
+  //#define ENDSTOPPULLDOWN_ZMIN
517
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
518
+#endif
519
+
508 520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509 521
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
510 522
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -841,7 +853,8 @@
841 853
 #define FILAMENT_RUNOUT_SENSOR
842 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843 855
   #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
844
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
856
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
845 858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846 859
   #define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
847 860
 #endif

+ 18
- 5
Marlin/src/config/examples/Creality/Ender/Configuration.h Näytä tiedosto

@@ -495,11 +495,10 @@
495 495
 //#define USE_YMAX_PLUG
496 496
 //#define USE_ZMAX_PLUG
497 497
 
498
-// coarse Endstop Settings
499
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
500
-
498
+// Enable pullup for all endstops to prevent a floating state
499
+#define ENDSTOPPULLUPS
501 500
 #if DISABLED(ENDSTOPPULLUPS)
502
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
501
+  // Disable ENDSTOPPULLUPS to set pullups individually
503 502
   //#define ENDSTOPPULLUP_XMAX
504 503
   //#define ENDSTOPPULLUP_YMAX
505 504
   //#define ENDSTOPPULLUP_ZMAX
@@ -509,6 +508,19 @@
509 508
   //#define ENDSTOPPULLUP_ZMIN_PROBE
510 509
 #endif
511 510
 
511
+// Enable pulldown for all endstops to prevent a floating state
512
+//#define ENDSTOPPULLDOWNS
513
+#if DISABLED(ENDSTOPPULLDOWNS)
514
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
515
+  //#define ENDSTOPPULLDOWN_XMAX
516
+  //#define ENDSTOPPULLDOWN_YMAX
517
+  //#define ENDSTOPPULLDOWN_ZMAX
518
+  //#define ENDSTOPPULLDOWN_XMIN
519
+  //#define ENDSTOPPULLDOWN_YMIN
520
+  //#define ENDSTOPPULLDOWN_ZMIN
521
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
522
+#endif
523
+
512 524
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
513 525
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
514 526
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -845,7 +857,8 @@
845 857
 //#define FILAMENT_RUNOUT_SENSOR
846 858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
847 859
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
848
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
860
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
861
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
849 862
   #define FILAMENT_RUNOUT_SCRIPT "M600"
850 863
 #endif
851 864
 

+ 18
- 5
Marlin/src/config/examples/Felix/Configuration.h Näytä tiedosto

@@ -481,11 +481,10 @@
481 481
 //#define USE_YMAX_PLUG
482 482
 //#define USE_ZMAX_PLUG
483 483
 
484
-// coarse Endstop Settings
485
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
486
-
484
+// Enable pullup for all endstops to prevent a floating state
485
+#define ENDSTOPPULLUPS
487 486
 #if DISABLED(ENDSTOPPULLUPS)
488
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
487
+  // Disable ENDSTOPPULLUPS to set pullups individually
489 488
   //#define ENDSTOPPULLUP_XMAX
490 489
   //#define ENDSTOPPULLUP_YMAX
491 490
   //#define ENDSTOPPULLUP_ZMAX
@@ -495,6 +494,19 @@
495 494
   //#define ENDSTOPPULLUP_ZMIN_PROBE
496 495
 #endif
497 496
 
497
+// Enable pulldown for all endstops to prevent a floating state
498
+//#define ENDSTOPPULLDOWNS
499
+#if DISABLED(ENDSTOPPULLDOWNS)
500
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
501
+  //#define ENDSTOPPULLDOWN_XMAX
502
+  //#define ENDSTOPPULLDOWN_YMAX
503
+  //#define ENDSTOPPULLDOWN_ZMAX
504
+  //#define ENDSTOPPULLDOWN_XMIN
505
+  //#define ENDSTOPPULLDOWN_YMIN
506
+  //#define ENDSTOPPULLDOWN_ZMIN
507
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
508
+#endif
509
+
498 510
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
499 511
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
500 512
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -832,7 +844,8 @@
832 844
 //#define FILAMENT_RUNOUT_SENSOR
833 845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
834 846
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
835
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
847
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
848
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
836 849
   #define FILAMENT_RUNOUT_SCRIPT "M600"
837 850
 #endif
838 851
 

+ 18
- 5
Marlin/src/config/examples/Felix/DUAL/Configuration.h Näytä tiedosto

@@ -481,11 +481,10 @@
481 481
 //#define USE_YMAX_PLUG
482 482
 //#define USE_ZMAX_PLUG
483 483
 
484
-// coarse Endstop Settings
485
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
486
-
484
+// Enable pullup for all endstops to prevent a floating state
485
+#define ENDSTOPPULLUPS
487 486
 #if DISABLED(ENDSTOPPULLUPS)
488
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
487
+  // Disable ENDSTOPPULLUPS to set pullups individually
489 488
   //#define ENDSTOPPULLUP_XMAX
490 489
   //#define ENDSTOPPULLUP_YMAX
491 490
   //#define ENDSTOPPULLUP_ZMAX
@@ -495,6 +494,19 @@
495 494
   //#define ENDSTOPPULLUP_ZMIN_PROBE
496 495
 #endif
497 496
 
497
+// Enable pulldown for all endstops to prevent a floating state
498
+//#define ENDSTOPPULLDOWNS
499
+#if DISABLED(ENDSTOPPULLDOWNS)
500
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
501
+  //#define ENDSTOPPULLDOWN_XMAX
502
+  //#define ENDSTOPPULLDOWN_YMAX
503
+  //#define ENDSTOPPULLDOWN_ZMAX
504
+  //#define ENDSTOPPULLDOWN_XMIN
505
+  //#define ENDSTOPPULLDOWN_YMIN
506
+  //#define ENDSTOPPULLDOWN_ZMIN
507
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
508
+#endif
509
+
498 510
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
499 511
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
500 512
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -832,7 +844,8 @@
832 844
 //#define FILAMENT_RUNOUT_SENSOR
833 845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
834 846
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
835
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
847
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
848
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
836 849
   #define FILAMENT_RUNOUT_SCRIPT "M600"
837 850
 #endif
838 851
 

+ 18
- 5
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h Näytä tiedosto

@@ -506,11 +506,10 @@
506 506
 //#define USE_YMAX_PLUG
507 507
 //#define USE_ZMAX_PLUG
508 508
 
509
-// coarse Endstop Settings
510
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
511
-
509
+// Enable pullup for all endstops to prevent a floating state
510
+#define ENDSTOPPULLUPS
512 511
 #if DISABLED(ENDSTOPPULLUPS)
513
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
512
+  // Disable ENDSTOPPULLUPS to set pullups individually
514 513
   //#define ENDSTOPPULLUP_XMAX
515 514
   //#define ENDSTOPPULLUP_YMAX
516 515
   //#define ENDSTOPPULLUP_ZMAX
@@ -520,6 +519,19 @@
520 519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521 520
 #endif
522 521
 
522
+// Enable pulldown for all endstops to prevent a floating state
523
+//#define ENDSTOPPULLDOWNS
524
+#if DISABLED(ENDSTOPPULLDOWNS)
525
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
526
+  //#define ENDSTOPPULLDOWN_XMAX
527
+  //#define ENDSTOPPULLDOWN_YMAX
528
+  //#define ENDSTOPPULLDOWN_ZMAX
529
+  //#define ENDSTOPPULLDOWN_XMIN
530
+  //#define ENDSTOPPULLDOWN_YMIN
531
+  //#define ENDSTOPPULLDOWN_ZMIN
532
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
533
+#endif
534
+
523 535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524 536
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
525 537
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -856,7 +868,8 @@
856 868
 //#define FILAMENT_RUNOUT_SENSOR
857 869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858 870
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
859
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
871
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
872
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
860 873
   #define FILAMENT_RUNOUT_SCRIPT "M600"
861 874
 #endif
862 875
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h Näytä tiedosto

@@ -515,11 +515,10 @@
515 515
 //#define USE_YMAX_PLUG
516 516
 //#define USE_ZMAX_PLUG
517 517
 
518
-// coarse Endstop Settings
519
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
520
-
518
+// Enable pullup for all endstops to prevent a floating state
519
+#define ENDSTOPPULLUPS
521 520
 #if DISABLED(ENDSTOPPULLUPS)
522
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
521
+  // Disable ENDSTOPPULLUPS to set pullups individually
523 522
   //#define ENDSTOPPULLUP_XMAX
524 523
   //#define ENDSTOPPULLUP_YMAX
525 524
   //#define ENDSTOPPULLUP_ZMAX
@@ -529,6 +528,19 @@
529 528
   //#define ENDSTOPPULLUP_ZMIN_PROBE
530 529
 #endif
531 530
 
531
+// Enable pulldown for all endstops to prevent a floating state
532
+//#define ENDSTOPPULLDOWNS
533
+#if DISABLED(ENDSTOPPULLDOWNS)
534
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
535
+  //#define ENDSTOPPULLDOWN_XMAX
536
+  //#define ENDSTOPPULLDOWN_YMAX
537
+  //#define ENDSTOPPULLDOWN_ZMAX
538
+  //#define ENDSTOPPULLDOWN_XMIN
539
+  //#define ENDSTOPPULLDOWN_YMIN
540
+  //#define ENDSTOPPULLDOWN_ZMIN
541
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
542
+#endif
543
+
532 544
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
533 545
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
534 546
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -865,7 +877,8 @@
865 877
 //#define FILAMENT_RUNOUT_SENSOR
866 878
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867 879
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
868
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
880
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
881
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
869 882
   #define FILAMENT_RUNOUT_SCRIPT "M600"
870 883
 #endif
871 884
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h Näytä tiedosto

@@ -506,11 +506,10 @@
506 506
 //#define USE_YMAX_PLUG
507 507
 #define USE_ZMAX_PLUG
508 508
 
509
-// coarse Endstop Settings
510
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
511
-
509
+// Enable pullup for all endstops to prevent a floating state
510
+#define ENDSTOPPULLUPS
512 511
 #if DISABLED(ENDSTOPPULLUPS)
513
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
512
+  // Disable ENDSTOPPULLUPS to set pullups individually
514 513
   //#define ENDSTOPPULLUP_XMAX
515 514
   //#define ENDSTOPPULLUP_YMAX
516 515
   //#define ENDSTOPPULLUP_ZMAX
@@ -520,6 +519,19 @@
520 519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521 520
 #endif
522 521
 
522
+// Enable pulldown for all endstops to prevent a floating state
523
+//#define ENDSTOPPULLDOWNS
524
+#if DISABLED(ENDSTOPPULLDOWNS)
525
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
526
+  //#define ENDSTOPPULLDOWN_XMAX
527
+  //#define ENDSTOPPULLDOWN_YMAX
528
+  //#define ENDSTOPPULLDOWN_ZMAX
529
+  //#define ENDSTOPPULLDOWN_XMIN
530
+  //#define ENDSTOPPULLDOWN_YMIN
531
+  //#define ENDSTOPPULLDOWN_ZMIN
532
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
533
+#endif
534
+
523 535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524 536
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
525 537
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -857,7 +869,8 @@
857 869
 //#define FILAMENT_RUNOUT_SENSOR
858 870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859 871
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
860
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
872
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
873
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
861 874
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862 875
 #endif
863 876
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h Näytä tiedosto

@@ -506,11 +506,10 @@
506 506
 //#define USE_YMAX_PLUG
507 507
 //#define USE_ZMAX_PLUG
508 508
 
509
-// coarse Endstop Settings
510
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
511
-
509
+// Enable pullup for all endstops to prevent a floating state
510
+#define ENDSTOPPULLUPS
512 511
 #if DISABLED(ENDSTOPPULLUPS)
513
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
512
+  // Disable ENDSTOPPULLUPS to set pullups individually
514 513
   //#define ENDSTOPPULLUP_XMAX
515 514
   //#define ENDSTOPPULLUP_YMAX
516 515
   //#define ENDSTOPPULLUP_ZMAX
@@ -520,6 +519,19 @@
520 519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521 520
 #endif
522 521
 
522
+// Enable pulldown for all endstops to prevent a floating state
523
+//#define ENDSTOPPULLDOWNS
524
+#if DISABLED(ENDSTOPPULLDOWNS)
525
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
526
+  //#define ENDSTOPPULLDOWN_XMAX
527
+  //#define ENDSTOPPULLDOWN_YMAX
528
+  //#define ENDSTOPPULLDOWN_ZMAX
529
+  //#define ENDSTOPPULLDOWN_XMIN
530
+  //#define ENDSTOPPULLDOWN_YMIN
531
+  //#define ENDSTOPPULLDOWN_ZMIN
532
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
533
+#endif
534
+
523 535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524 536
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
525 537
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -856,7 +868,8 @@
856 868
 //#define FILAMENT_RUNOUT_SENSOR
857 869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858 870
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
859
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
871
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
872
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
860 873
   #define FILAMENT_RUNOUT_SCRIPT "M600"
861 874
 #endif
862 875
 

+ 18
- 5
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h Näytä tiedosto

@@ -504,11 +504,10 @@
504 504
 //#define USE_YMAX_PLUG
505 505
 //#define USE_ZMAX_PLUG
506 506
 
507
-// coarse Endstop Settings
508
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
509
-
507
+// Enable pullup for all endstops to prevent a floating state
508
+#define ENDSTOPPULLUPS
510 509
 #if DISABLED(ENDSTOPPULLUPS)
511
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
510
+  // Disable ENDSTOPPULLUPS to set pullups individually
512 511
   //#define ENDSTOPPULLUP_XMAX
513 512
   //#define ENDSTOPPULLUP_YMAX
514 513
   //#define ENDSTOPPULLUP_ZMAX
@@ -518,6 +517,19 @@
518 517
   //#define ENDSTOPPULLUP_ZMIN_PROBE
519 518
 #endif
520 519
 
520
+// Enable pulldown for all endstops to prevent a floating state
521
+//#define ENDSTOPPULLDOWNS
522
+#if DISABLED(ENDSTOPPULLDOWNS)
523
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
524
+  //#define ENDSTOPPULLDOWN_XMAX
525
+  //#define ENDSTOPPULLDOWN_YMAX
526
+  //#define ENDSTOPPULLDOWN_ZMAX
527
+  //#define ENDSTOPPULLDOWN_XMIN
528
+  //#define ENDSTOPPULLDOWN_YMIN
529
+  //#define ENDSTOPPULLDOWN_ZMIN
530
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
531
+#endif
532
+
521 533
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
522 534
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
523 535
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -854,7 +866,8 @@
854 866
 //#define FILAMENT_RUNOUT_SENSOR
855 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856 868
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
857
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
869
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
858 871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859 872
 #endif
860 873
 

+ 18
- 5
Marlin/src/config/examples/JGAurora/A5/Configuration.h Näytä tiedosto

@@ -512,11 +512,10 @@
512 512
 //#define USE_YMAX_PLUG
513 513
 //#define USE_ZMAX_PLUG
514 514
 
515
-// coarse Endstop Settings
516
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
517
-
515
+// Enable pullup for all endstops to prevent a floating state
516
+#define ENDSTOPPULLUPS
518 517
 #if DISABLED(ENDSTOPPULLUPS)
519
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
518
+  // Disable ENDSTOPPULLUPS to set pullups individually
520 519
   //#define ENDSTOPPULLUP_XMAX
521 520
   //#define ENDSTOPPULLUP_YMAX
522 521
   //#define ENDSTOPPULLUP_ZMAX
@@ -526,6 +525,19 @@
526 525
   //#define ENDSTOPPULLUP_ZMIN_PROBE
527 526
 #endif
528 527
 
528
+// Enable pulldown for all endstops to prevent a floating state
529
+//#define ENDSTOPPULLDOWNS
530
+#if DISABLED(ENDSTOPPULLDOWNS)
531
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
532
+  //#define ENDSTOPPULLDOWN_XMAX
533
+  //#define ENDSTOPPULLDOWN_YMAX
534
+  //#define ENDSTOPPULLDOWN_ZMAX
535
+  //#define ENDSTOPPULLDOWN_XMIN
536
+  //#define ENDSTOPPULLDOWN_YMIN
537
+  //#define ENDSTOPPULLDOWN_ZMIN
538
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
539
+#endif
540
+
529 541
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530 542
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531 543
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -862,7 +874,8 @@
862 874
 #define FILAMENT_RUNOUT_SENSOR
863 875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864 876
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
877
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
878
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
866 879
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867 880
 #endif
868 881
 

+ 18
- 5
Marlin/src/config/examples/MakerParts/Configuration.h Näytä tiedosto

@@ -520,11 +520,10 @@
520 520
 //#define USE_YMAX_PLUG
521 521
 //#define USE_ZMAX_PLUG
522 522
 
523
-// coarse Endstop Settings
524
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
525
-
523
+// Enable pullup for all endstops to prevent a floating state
524
+#define ENDSTOPPULLUPS
526 525
 #if DISABLED(ENDSTOPPULLUPS)
527
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
526
+  // Disable ENDSTOPPULLUPS to set pullups individually
528 527
   #define ENDSTOPPULLUP_XMAX
529 528
   #define ENDSTOPPULLUP_YMAX
530 529
   #define ENDSTOPPULLUP_ZMAX
@@ -534,6 +533,19 @@
534 533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535 534
 #endif
536 535
 
536
+// Enable pulldown for all endstops to prevent a floating state
537
+//#define ENDSTOPPULLDOWNS
538
+#if DISABLED(ENDSTOPPULLDOWNS)
539
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
540
+  //#define ENDSTOPPULLDOWN_XMAX
541
+  //#define ENDSTOPPULLDOWN_YMAX
542
+  //#define ENDSTOPPULLDOWN_ZMAX
543
+  //#define ENDSTOPPULLDOWN_XMIN
544
+  //#define ENDSTOPPULLDOWN_YMIN
545
+  //#define ENDSTOPPULLDOWN_ZMIN
546
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
547
+#endif
548
+
537 549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538 550
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
539 551
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -870,7 +882,8 @@
870 882
 //#define FILAMENT_RUNOUT_SENSOR
871 883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
872 884
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
873
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
885
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
886
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
874 887
   #define FILAMENT_RUNOUT_SCRIPT "M600"
875 888
 #endif
876 889
 

+ 18
- 5
Marlin/src/config/examples/Malyan/M150/Configuration.h Näytä tiedosto

@@ -508,11 +508,10 @@
508 508
 //#define USE_YMAX_PLUG
509 509
 //#define USE_ZMAX_PLUG
510 510
 
511
-// coarse Endstop Settings
512
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
513
-
511
+// Enable pullup for all endstops to prevent a floating state
512
+#define ENDSTOPPULLUPS
514 513
 #if DISABLED(ENDSTOPPULLUPS)
515
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
514
+  // Disable ENDSTOPPULLUPS to set pullups individually
516 515
   //#define ENDSTOPPULLUP_XMAX
517 516
   //#define ENDSTOPPULLUP_YMAX
518 517
   //#define ENDSTOPPULLUP_ZMAX
@@ -522,6 +521,19 @@
522 521
   //#define ENDSTOPPULLUP_ZMIN_PROBE
523 522
 #endif
524 523
 
524
+// Enable pulldown for all endstops to prevent a floating state
525
+//#define ENDSTOPPULLDOWNS
526
+#if DISABLED(ENDSTOPPULLDOWNS)
527
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
528
+  //#define ENDSTOPPULLDOWN_XMAX
529
+  //#define ENDSTOPPULLDOWN_YMAX
530
+  //#define ENDSTOPPULLDOWN_ZMAX
531
+  //#define ENDSTOPPULLDOWN_XMIN
532
+  //#define ENDSTOPPULLDOWN_YMIN
533
+  //#define ENDSTOPPULLDOWN_ZMIN
534
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
535
+#endif
536
+
525 537
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
526 538
 
527 539
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -874,7 +886,8 @@
874 886
 //#define FILAMENT_RUNOUT_SENSOR
875 887
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
876 888
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
877
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
889
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
890
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
878 891
   #define FILAMENT_RUNOUT_SCRIPT "M600"
879 892
 #endif
880 893
 

+ 18
- 5
Marlin/src/config/examples/Malyan/M200/Configuration.h Näytä tiedosto

@@ -499,11 +499,10 @@
499 499
 //#define USE_YMAX_PLUG
500 500
 //#define USE_ZMAX_PLUG
501 501
 
502
-// coarse Endstop Settings
503
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
504
-
502
+// Enable pullup for all endstops to prevent a floating state
503
+#define ENDSTOPPULLUPS
505 504
 #if DISABLED(ENDSTOPPULLUPS)
506
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
505
+  // Disable ENDSTOPPULLUPS to set pullups individually
507 506
   //#define ENDSTOPPULLUP_XMAX
508 507
   //#define ENDSTOPPULLUP_YMAX
509 508
   //#define ENDSTOPPULLUP_ZMAX
@@ -513,6 +512,19 @@
513 512
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514 513
 #endif
515 514
 
515
+// Enable pulldown for all endstops to prevent a floating state
516
+//#define ENDSTOPPULLDOWNS
517
+#if DISABLED(ENDSTOPPULLDOWNS)
518
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
519
+  //#define ENDSTOPPULLDOWN_XMAX
520
+  //#define ENDSTOPPULLDOWN_YMAX
521
+  //#define ENDSTOPPULLDOWN_ZMAX
522
+  //#define ENDSTOPPULLDOWN_XMIN
523
+  //#define ENDSTOPPULLDOWN_YMIN
524
+  //#define ENDSTOPPULLDOWN_ZMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
526
+#endif
527
+
516 528
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517 529
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
518 530
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -849,7 +861,8 @@
849 861
 //#define FILAMENT_RUNOUT_SENSOR
850 862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851 863
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
852
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
864
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
865
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
853 866
   #define FILAMENT_RUNOUT_SCRIPT "M600"
854 867
 #endif
855 868
 

+ 18
- 5
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -854,7 +866,8 @@
854 866
 //#define FILAMENT_RUNOUT_SENSOR
855 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856 868
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
857
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
869
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
858 871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859 872
 #endif
860 873
 

+ 18
- 5
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -854,7 +866,8 @@
854 866
 //#define FILAMENT_RUNOUT_SENSOR
855 867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856 868
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
857
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
869
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
870
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
858 871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859 872
 #endif
860 873
 

+ 18
- 5
Marlin/src/config/examples/Mks/Sbase/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/RigidBot/Configuration.h Näytä tiedosto

@@ -496,11 +496,10 @@
496 496
 //#define USE_YMAX_PLUG
497 497
 //#define USE_ZMAX_PLUG
498 498
 
499
-// coarse Endstop Settings
500
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
501
-
499
+// Enable pullup for all endstops to prevent a floating state
500
+#define ENDSTOPPULLUPS
502 501
 #if DISABLED(ENDSTOPPULLUPS)
503
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
502
+  // Disable ENDSTOPPULLUPS to set pullups individually
504 503
   //#define ENDSTOPPULLUP_XMAX
505 504
   //#define ENDSTOPPULLUP_YMAX
506 505
   //#define ENDSTOPPULLUP_ZMAX
@@ -510,6 +509,19 @@
510 509
   //#define ENDSTOPPULLUP_ZMIN_PROBE
511 510
 #endif
512 511
 
512
+// Enable pulldown for all endstops to prevent a floating state
513
+//#define ENDSTOPPULLDOWNS
514
+#if DISABLED(ENDSTOPPULLDOWNS)
515
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
516
+  //#define ENDSTOPPULLDOWN_XMAX
517
+  //#define ENDSTOPPULLDOWN_YMAX
518
+  //#define ENDSTOPPULLDOWN_ZMAX
519
+  //#define ENDSTOPPULLDOWN_XMIN
520
+  //#define ENDSTOPPULLDOWN_YMIN
521
+  //#define ENDSTOPPULLDOWN_ZMIN
522
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
523
+#endif
524
+
513 525
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
514 526
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
515 527
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -848,7 +860,8 @@
848 860
 //#define FILAMENT_RUNOUT_SENSOR
849 861
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
850 862
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
851
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
863
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
864
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
852 865
   #define FILAMENT_RUNOUT_SCRIPT "M600"
853 866
 #endif
854 867
 

+ 18
- 5
Marlin/src/config/examples/SCARA/Configuration.h Näytä tiedosto

@@ -512,11 +512,10 @@
512 512
 //#define USE_YMAX_PLUG
513 513
 //#define USE_ZMAX_PLUG
514 514
 
515
-// coarse Endstop Settings
516
-//#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
517
-
515
+// Enable pullup for all endstops to prevent a floating state
516
+//#define ENDSTOPPULLUPS
518 517
 #if DISABLED(ENDSTOPPULLUPS)
519
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
518
+  // Disable ENDSTOPPULLUPS to set pullups individually
520 519
   //#define ENDSTOPPULLUP_XMAX
521 520
   //#define ENDSTOPPULLUP_YMAX
522 521
   #define ENDSTOPPULLUP_ZMAX  // open pin, inverted
@@ -526,6 +525,19 @@
526 525
   //#define ENDSTOPPULLUP_ZMIN_PROBE
527 526
 #endif
528 527
 
528
+// Enable pulldown for all endstops to prevent a floating state
529
+//#define ENDSTOPPULLDOWNS
530
+#if DISABLED(ENDSTOPPULLDOWNS)
531
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
532
+  //#define ENDSTOPPULLDOWN_XMAX
533
+  //#define ENDSTOPPULLDOWN_YMAX
534
+  //#define ENDSTOPPULLDOWN_ZMAX
535
+  //#define ENDSTOPPULLDOWN_XMIN
536
+  //#define ENDSTOPPULLDOWN_YMIN
537
+  //#define ENDSTOPPULLDOWN_ZMIN
538
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
539
+#endif
540
+
529 541
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530 542
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531 543
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -862,7 +874,8 @@
862 874
 //#define FILAMENT_RUNOUT_SENSOR
863 875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864 876
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
865
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
877
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
878
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
866 879
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867 880
 #endif
868 881
 

+ 18
- 5
Marlin/src/config/examples/STM32F10/Configuration.h Näytä tiedosto

@@ -502,11 +502,10 @@
502 502
 //#define USE_YMAX_PLUG
503 503
 //#define USE_ZMAX_PLUG
504 504
 
505
-// coarse Endstop Settings
506
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
507
-
505
+// Enable pullup for all endstops to prevent a floating state
506
+#define ENDSTOPPULLUPS
508 507
 #if DISABLED(ENDSTOPPULLUPS)
509
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
508
+  // Disable ENDSTOPPULLUPS to set pullups individually
510 509
   //#define ENDSTOPPULLUP_XMAX
511 510
   //#define ENDSTOPPULLUP_YMAX
512 511
   //#define ENDSTOPPULLUP_ZMAX
@@ -516,6 +515,19 @@
516 515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
517 516
 #endif
518 517
 
518
+// Enable pulldown for all endstops to prevent a floating state
519
+//#define ENDSTOPPULLDOWNS
520
+#if DISABLED(ENDSTOPPULLDOWNS)
521
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
522
+  //#define ENDSTOPPULLDOWN_XMAX
523
+  //#define ENDSTOPPULLDOWN_YMAX
524
+  //#define ENDSTOPPULLDOWN_ZMAX
525
+  //#define ENDSTOPPULLDOWN_XMIN
526
+  //#define ENDSTOPPULLDOWN_YMIN
527
+  //#define ENDSTOPPULLDOWN_ZMIN
528
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
529
+#endif
530
+
519 531
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520 532
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521 533
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -853,7 +865,8 @@
853 865
 //#define FILAMENT_RUNOUT_SENSOR
854 866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855 867
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
856
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
868
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
869
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
857 870
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858 871
 #endif
859 872
 

+ 18
- 5
Marlin/src/config/examples/Sanguinololu/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -881,7 +893,8 @@
881 893
 //#define FILAMENT_RUNOUT_SENSOR
882 894
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
883 895
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
884
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
896
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
897
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
885 898
   #define FILAMENT_RUNOUT_SCRIPT "M600"
886 899
 #endif
887 900
 

+ 18
- 5
Marlin/src/config/examples/TheBorg/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/TinyBoy2/Configuration.h Näytä tiedosto

@@ -551,11 +551,10 @@
551 551
 //#define USE_YMAX_PLUG
552 552
 //#define USE_ZMAX_PLUG
553 553
 
554
-// coarse Endstop Settings
555
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
556
-
554
+// Enable pullup for all endstops to prevent a floating state
555
+#define ENDSTOPPULLUPS
557 556
 #if DISABLED(ENDSTOPPULLUPS)
558
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
557
+  // Disable ENDSTOPPULLUPS to set pullups individually
559 558
   //#define ENDSTOPPULLUP_XMAX
560 559
   //#define ENDSTOPPULLUP_YMAX
561 560
   //#define ENDSTOPPULLUP_ZMAX
@@ -565,6 +564,19 @@
565 564
   //#define ENDSTOPPULLUP_ZMIN_PROBE
566 565
 #endif
567 566
 
567
+// Enable pulldown for all endstops to prevent a floating state
568
+//#define ENDSTOPPULLDOWNS
569
+#if DISABLED(ENDSTOPPULLDOWNS)
570
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
571
+  //#define ENDSTOPPULLDOWN_XMAX
572
+  //#define ENDSTOPPULLDOWN_YMAX
573
+  //#define ENDSTOPPULLDOWN_ZMAX
574
+  //#define ENDSTOPPULLDOWN_XMIN
575
+  //#define ENDSTOPPULLDOWN_YMIN
576
+  //#define ENDSTOPPULLDOWN_ZMIN
577
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
578
+#endif
579
+
568 580
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
569 581
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
570 582
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -906,7 +918,8 @@
906 918
 //#define FILAMENT_RUNOUT_SENSOR
907 919
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
908 920
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
909
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
921
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
922
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
910 923
   #define FILAMENT_RUNOUT_SCRIPT "M600"
911 924
 #endif
912 925
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/X1/Configuration.h Näytä tiedosto

@@ -491,11 +491,10 @@
491 491
 //#define USE_YMAX_PLUG
492 492
 //#define USE_ZMAX_PLUG
493 493
 
494
-// coarse Endstop Settings
495
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
496
-
494
+// Enable pullup for all endstops to prevent a floating state
495
+#define ENDSTOPPULLUPS
497 496
 #if DISABLED(ENDSTOPPULLUPS)
498
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
497
+  // Disable ENDSTOPPULLUPS to set pullups individually
499 498
   //#define ENDSTOPPULLUP_XMAX
500 499
   //#define ENDSTOPPULLUP_YMAX
501 500
   //#define ENDSTOPPULLUP_ZMAX
@@ -505,6 +504,19 @@
505 504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506 505
 #endif
507 506
 
507
+// Enable pulldown for all endstops to prevent a floating state
508
+//#define ENDSTOPPULLDOWNS
509
+#if DISABLED(ENDSTOPPULLDOWNS)
510
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
511
+  //#define ENDSTOPPULLDOWN_XMAX
512
+  //#define ENDSTOPPULLDOWN_YMAX
513
+  //#define ENDSTOPPULLDOWN_ZMAX
514
+  //#define ENDSTOPPULLDOWN_XMIN
515
+  //#define ENDSTOPPULLDOWN_YMIN
516
+  //#define ENDSTOPPULLDOWN_ZMIN
517
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
518
+#endif
519
+
508 520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509 521
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
510 522
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -841,7 +853,8 @@
841 853
 //#define FILAMENT_RUNOUT_SENSOR
842 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843 855
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
844
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
856
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
845 858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846 859
 #endif
847 860
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/X5S/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/XY100/Configuration.h Näytä tiedosto

@@ -511,11 +511,10 @@
511 511
 //#define USE_YMAX_PLUG
512 512
 //#define USE_ZMAX_PLUG
513 513
 
514
-// coarse Endstop Settings
515
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
516
-
514
+// Enable pullup for all endstops to prevent a floating state
515
+#define ENDSTOPPULLUPS
517 516
 #if DISABLED(ENDSTOPPULLUPS)
518
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
517
+  // Disable ENDSTOPPULLUPS to set pullups individually
519 518
   //#define ENDSTOPPULLUP_XMAX
520 519
   //#define ENDSTOPPULLUP_YMAX
521 520
   //#define ENDSTOPPULLUP_ZMAX
@@ -525,6 +524,19 @@
525 524
   //#define ENDSTOPPULLUP_ZMIN_PROBE
526 525
 #endif
527 526
 
527
+// Enable pulldown for all endstops to prevent a floating state
528
+//#define ENDSTOPPULLDOWNS
529
+#if DISABLED(ENDSTOPPULLDOWNS)
530
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
531
+  //#define ENDSTOPPULLDOWN_XMAX
532
+  //#define ENDSTOPPULLDOWN_YMAX
533
+  //#define ENDSTOPPULLDOWN_ZMAX
534
+  //#define ENDSTOPPULLDOWN_XMIN
535
+  //#define ENDSTOPPULLDOWN_YMIN
536
+  //#define ENDSTOPPULLDOWN_ZMIN
537
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
538
+#endif
539
+
528 540
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529 541
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530 542
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -861,7 +873,8 @@
861 873
 //#define FILAMENT_RUNOUT_SENSOR
862 874
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863 875
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
864
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
876
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
877
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
865 878
   #define FILAMENT_RUNOUT_SCRIPT "M600"
866 879
 #endif
867 880
 

+ 18
- 5
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h Näytä tiedosto

@@ -491,11 +491,10 @@
491 491
 //#define USE_YMAX_PLUG
492 492
 //#define USE_ZMAX_PLUG
493 493
 
494
-// coarse Endstop Settings
495
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
496
-
494
+// Enable pullup for all endstops to prevent a floating state
495
+#define ENDSTOPPULLUPS
497 496
 #if DISABLED(ENDSTOPPULLUPS)
498
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
497
+  // Disable ENDSTOPPULLUPS to set pullups individually
499 498
   //#define ENDSTOPPULLUP_XMAX
500 499
   //#define ENDSTOPPULLUP_YMAX
501 500
   //#define ENDSTOPPULLUP_ZMAX
@@ -505,6 +504,19 @@
505 504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506 505
 #endif
507 506
 
507
+// Enable pulldown for all endstops to prevent a floating state
508
+//#define ENDSTOPPULLDOWNS
509
+#if DISABLED(ENDSTOPPULLDOWNS)
510
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
511
+  //#define ENDSTOPPULLDOWN_XMAX
512
+  //#define ENDSTOPPULLDOWN_YMAX
513
+  //#define ENDSTOPPULLDOWN_ZMAX
514
+  //#define ENDSTOPPULLDOWN_XMIN
515
+  //#define ENDSTOPPULLDOWN_YMIN
516
+  //#define ENDSTOPPULLDOWN_ZMIN
517
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
518
+#endif
519
+
508 520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509 521
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
510 522
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -841,7 +853,8 @@
841 853
 //#define FILAMENT_RUNOUT_SENSOR
842 854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843 855
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
844
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
856
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
857
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
845 858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846 859
 #endif
847 860
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8200/Configuration.h Näytä tiedosto

@@ -530,11 +530,10 @@
530 530
 //#define USE_YMAX_PLUG
531 531
 //#define USE_ZMAX_PLUG
532 532
 
533
-// coarse Endstop Settings
534
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
535
-
533
+// Enable pullup for all endstops to prevent a floating state
534
+#define ENDSTOPPULLUPS
536 535
 #if DISABLED(ENDSTOPPULLUPS)
537
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
536
+  // Disable ENDSTOPPULLUPS to set pullups individually
538 537
   //#define ENDSTOPPULLUP_XMAX
539 538
   //#define ENDSTOPPULLUP_YMAX
540 539
   //#define ENDSTOPPULLUP_ZMAX
@@ -544,6 +543,19 @@
544 543
   //#define ENDSTOPPULLUP_ZMIN_PROBE
545 544
 #endif
546 545
 
546
+// Enable pulldown for all endstops to prevent a floating state
547
+//#define ENDSTOPPULLDOWNS
548
+#if DISABLED(ENDSTOPPULLDOWNS)
549
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
550
+  //#define ENDSTOPPULLDOWN_XMAX
551
+  //#define ENDSTOPPULLDOWN_YMAX
552
+  //#define ENDSTOPPULLDOWN_ZMAX
553
+  //#define ENDSTOPPULLDOWN_XMIN
554
+  //#define ENDSTOPPULLDOWN_YMIN
555
+  //#define ENDSTOPPULLDOWN_ZMIN
556
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
557
+#endif
558
+
547 559
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
548 560
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
549 561
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -880,7 +892,8 @@
880 892
 //#define FILAMENT_RUNOUT_SENSOR
881 893
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
882 894
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
883
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
895
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
896
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
884 897
   #define FILAMENT_RUNOUT_SCRIPT "M600"
885 898
 #endif
886 899
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8400/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h Näytä tiedosto

@@ -501,11 +501,10 @@
501 501
 //#define USE_YMAX_PLUG
502 502
 //#define USE_ZMAX_PLUG
503 503
 
504
-// coarse Endstop Settings
505
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
506
-
504
+// Enable pullup for all endstops to prevent a floating state
505
+#define ENDSTOPPULLUPS
507 506
 #if DISABLED(ENDSTOPPULLUPS)
508
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
507
+  // Disable ENDSTOPPULLUPS to set pullups individually
509 508
   //#define ENDSTOPPULLUP_XMAX
510 509
   //#define ENDSTOPPULLUP_YMAX
511 510
   //#define ENDSTOPPULLUP_ZMAX
@@ -515,6 +514,19 @@
515 514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
516 515
 #endif
517 516
 
517
+// Enable pulldown for all endstops to prevent a floating state
518
+//#define ENDSTOPPULLDOWNS
519
+#if DISABLED(ENDSTOPPULLDOWNS)
520
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
521
+  //#define ENDSTOPPULLDOWN_XMAX
522
+  //#define ENDSTOPPULLDOWN_YMAX
523
+  //#define ENDSTOPPULLDOWN_ZMAX
524
+  //#define ENDSTOPPULLDOWN_XMIN
525
+  //#define ENDSTOPPULLDOWN_YMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN
527
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
528
+#endif
529
+
518 530
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
519 531
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
520 532
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -851,7 +863,8 @@
851 863
 //#define FILAMENT_RUNOUT_SENSOR
852 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
854
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
866
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
855 868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856 869
 #endif
857 870
 

+ 18
- 5
Marlin/src/config/examples/adafruit/ST7565/Configuration.h Näytä tiedosto

@@ -500,11 +500,10 @@
500 500
 //#define USE_YMAX_PLUG
501 501
 //#define USE_ZMAX_PLUG
502 502
 
503
-// coarse Endstop Settings
504
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
505
-
503
+// Enable pullup for all endstops to prevent a floating state
504
+#define ENDSTOPPULLUPS
506 505
 #if DISABLED(ENDSTOPPULLUPS)
507
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
506
+  // Disable ENDSTOPPULLUPS to set pullups individually
508 507
   //#define ENDSTOPPULLUP_XMAX
509 508
   //#define ENDSTOPPULLUP_YMAX
510 509
   //#define ENDSTOPPULLUP_ZMAX
@@ -514,6 +513,19 @@
514 513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515 514
 #endif
516 515
 
516
+// Enable pulldown for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLDOWNS
518
+#if DISABLED(ENDSTOPPULLDOWNS)
519
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
520
+  //#define ENDSTOPPULLDOWN_XMAX
521
+  //#define ENDSTOPPULLDOWN_YMAX
522
+  //#define ENDSTOPPULLDOWN_ZMAX
523
+  //#define ENDSTOPPULLDOWN_XMIN
524
+  //#define ENDSTOPPULLDOWN_YMIN
525
+  //#define ENDSTOPPULLDOWN_ZMIN
526
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
527
+#endif
528
+
517 529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518 530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519 531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -850,7 +862,8 @@
850 862
 //#define FILAMENT_RUNOUT_SENSOR
851 863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852 864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
853
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
865
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
866
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
854 867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855 868
 #endif
856 869
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h Näytä tiedosto

@@ -579,11 +579,10 @@
579 579
 #define USE_YMAX_PLUG
580 580
 #define USE_ZMAX_PLUG
581 581
 
582
-// coarse Endstop Settings
583
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
584
-
582
+// Enable pullup for all endstops to prevent a floating state
583
+#define ENDSTOPPULLUPS
585 584
 #if DISABLED(ENDSTOPPULLUPS)
586
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
585
+  // Disable ENDSTOPPULLUPS to set pullups individually
587 586
   //#define ENDSTOPPULLUP_XMAX
588 587
   //#define ENDSTOPPULLUP_YMAX
589 588
   //#define ENDSTOPPULLUP_ZMAX
@@ -593,6 +592,19 @@
593 592
   //#define ENDSTOPPULLUP_ZMIN_PROBE
594 593
 #endif
595 594
 
595
+// Enable pulldown for all endstops to prevent a floating state
596
+//#define ENDSTOPPULLDOWNS
597
+#if DISABLED(ENDSTOPPULLDOWNS)
598
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
599
+  //#define ENDSTOPPULLDOWN_XMAX
600
+  //#define ENDSTOPPULLDOWN_YMAX
601
+  //#define ENDSTOPPULLDOWN_ZMAX
602
+  //#define ENDSTOPPULLDOWN_XMIN
603
+  //#define ENDSTOPPULLDOWN_YMIN
604
+  //#define ENDSTOPPULLDOWN_ZMIN
605
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
606
+#endif
607
+
596 608
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
597 609
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
598 610
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -980,7 +992,8 @@
980 992
 //#define FILAMENT_RUNOUT_SENSOR
981 993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
982 994
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
983
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
995
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
996
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
984 997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
985 998
 #endif
986 999
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h Näytä tiedosto

@@ -570,11 +570,10 @@
570 570
 #define USE_YMAX_PLUG
571 571
 #define USE_ZMAX_PLUG
572 572
 
573
-// coarse Endstop Settings
574
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
575
-
573
+// Enable pullup for all endstops to prevent a floating state
574
+#define ENDSTOPPULLUPS
576 575
 #if DISABLED(ENDSTOPPULLUPS)
577
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
576
+  // Disable ENDSTOPPULLUPS to set pullups individually
578 577
   //#define ENDSTOPPULLUP_XMAX
579 578
   //#define ENDSTOPPULLUP_YMAX
580 579
   //#define ENDSTOPPULLUP_ZMAX
@@ -584,6 +583,19 @@
584 583
   //#define ENDSTOPPULLUP_ZMIN_PROBE
585 584
 #endif
586 585
 
586
+// Enable pulldown for all endstops to prevent a floating state
587
+//#define ENDSTOPPULLDOWNS
588
+#if DISABLED(ENDSTOPPULLDOWNS)
589
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
590
+  //#define ENDSTOPPULLDOWN_XMAX
591
+  //#define ENDSTOPPULLDOWN_YMAX
592
+  //#define ENDSTOPPULLDOWN_ZMAX
593
+  //#define ENDSTOPPULLDOWN_XMIN
594
+  //#define ENDSTOPPULLDOWN_YMIN
595
+  //#define ENDSTOPPULLDOWN_ZMIN
596
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
597
+#endif
598
+
587 599
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
588 600
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
589 601
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -971,7 +983,8 @@
971 983
 //#define FILAMENT_RUNOUT_SENSOR
972 984
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
973 985
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
974
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
986
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
987
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
975 988
   #define FILAMENT_RUNOUT_SCRIPT "M600"
976 989
 #endif
977 990
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h Näytä tiedosto

@@ -579,11 +579,10 @@
579 579
 #define USE_YMAX_PLUG
580 580
 #define USE_ZMAX_PLUG
581 581
 
582
-// coarse Endstop Settings
583
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
584
-
582
+// Enable pullup for all endstops to prevent a floating state
583
+#define ENDSTOPPULLUPS
585 584
 #if DISABLED(ENDSTOPPULLUPS)
586
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
585
+  // Disable ENDSTOPPULLUPS to set pullups individually
587 586
   //#define ENDSTOPPULLUP_XMAX
588 587
   //#define ENDSTOPPULLUP_YMAX
589 588
   //#define ENDSTOPPULLUP_ZMAX
@@ -593,6 +592,19 @@
593 592
   //#define ENDSTOPPULLUP_ZMIN_PROBE
594 593
 #endif
595 594
 
595
+// Enable pulldown for all endstops to prevent a floating state
596
+//#define ENDSTOPPULLDOWNS
597
+#if DISABLED(ENDSTOPPULLDOWNS)
598
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
599
+  //#define ENDSTOPPULLDOWN_XMAX
600
+  //#define ENDSTOPPULLDOWN_YMAX
601
+  //#define ENDSTOPPULLDOWN_ZMAX
602
+  //#define ENDSTOPPULLDOWN_XMIN
603
+  //#define ENDSTOPPULLDOWN_YMIN
604
+  //#define ENDSTOPPULLDOWN_ZMIN
605
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
606
+#endif
607
+
596 608
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
597 609
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
598 610
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -980,7 +992,8 @@
980 992
 //#define FILAMENT_RUNOUT_SENSOR
981 993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
982 994
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
983
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
995
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
996
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
984 997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
985 998
 #endif
986 999
 

+ 18
- 5
Marlin/src/config/examples/delta/generic/Configuration.h Näytä tiedosto

@@ -569,11 +569,10 @@
569 569
 #define USE_YMAX_PLUG
570 570
 #define USE_ZMAX_PLUG
571 571
 
572
-// coarse Endstop Settings
573
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
574
-
572
+// Enable pullup for all endstops to prevent a floating state
573
+#define ENDSTOPPULLUPS
575 574
 #if DISABLED(ENDSTOPPULLUPS)
576
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
575
+  // Disable ENDSTOPPULLUPS to set pullups individually
577 576
   //#define ENDSTOPPULLUP_XMAX
578 577
   //#define ENDSTOPPULLUP_YMAX
579 578
   //#define ENDSTOPPULLUP_ZMAX
@@ -583,6 +582,19 @@
583 582
   //#define ENDSTOPPULLUP_ZMIN_PROBE
584 583
 #endif
585 584
 
585
+// Enable pulldown for all endstops to prevent a floating state
586
+//#define ENDSTOPPULLDOWNS
587
+#if DISABLED(ENDSTOPPULLDOWNS)
588
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
589
+  //#define ENDSTOPPULLDOWN_XMAX
590
+  //#define ENDSTOPPULLDOWN_YMAX
591
+  //#define ENDSTOPPULLDOWN_ZMAX
592
+  //#define ENDSTOPPULLDOWN_XMIN
593
+  //#define ENDSTOPPULLDOWN_YMIN
594
+  //#define ENDSTOPPULLDOWN_ZMIN
595
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
596
+#endif
597
+
586 598
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
587 599
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
588 600
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -967,7 +979,8 @@
967 979
 //#define FILAMENT_RUNOUT_SENSOR
968 980
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
969 981
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
970
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
982
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
983
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
971 984
   #define FILAMENT_RUNOUT_SCRIPT "M600"
972 985
 #endif
973 986
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_mini/Configuration.h Näytä tiedosto

@@ -569,11 +569,10 @@
569 569
 #define USE_YMAX_PLUG
570 570
 #define USE_ZMAX_PLUG
571 571
 
572
-// coarse Endstop Settings
573
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
574
-
572
+// Enable pullup for all endstops to prevent a floating state
573
+#define ENDSTOPPULLUPS
575 574
 #if DISABLED(ENDSTOPPULLUPS)
576
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
575
+  // Disable ENDSTOPPULLUPS to set pullups individually
577 576
   //#define ENDSTOPPULLUP_XMAX
578 577
   //#define ENDSTOPPULLUP_YMAX
579 578
   //#define ENDSTOPPULLUP_ZMAX
@@ -583,6 +582,19 @@
583 582
   //#define ENDSTOPPULLUP_ZMIN_PROBE
584 583
 #endif
585 584
 
585
+// Enable pulldown for all endstops to prevent a floating state
586
+//#define ENDSTOPPULLDOWNS
587
+#if DISABLED(ENDSTOPPULLDOWNS)
588
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
589
+  //#define ENDSTOPPULLDOWN_XMAX
590
+  //#define ENDSTOPPULLDOWN_YMAX
591
+  //#define ENDSTOPPULLDOWN_ZMAX
592
+  //#define ENDSTOPPULLDOWN_XMIN
593
+  //#define ENDSTOPPULLDOWN_YMIN
594
+  //#define ENDSTOPPULLDOWN_ZMIN
595
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
596
+#endif
597
+
586 598
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
587 599
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
588 600
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -970,7 +982,8 @@
970 982
 //#define FILAMENT_RUNOUT_SENSOR
971 983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
972 984
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
973
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
985
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
986
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
974 987
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975 988
 #endif
976 989
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_pro/Configuration.h Näytä tiedosto

@@ -555,11 +555,10 @@
555 555
 #define USE_YMAX_PLUG
556 556
 #define USE_ZMAX_PLUG
557 557
 
558
-// coarse Endstop Settings
559
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
560
-
558
+// Enable pullup for all endstops to prevent a floating state
559
+#define ENDSTOPPULLUPS
561 560
 #if DISABLED(ENDSTOPPULLUPS)
562
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
561
+  // Disable ENDSTOPPULLUPS to set pullups individually
563 562
   //#define ENDSTOPPULLUP_XMAX
564 563
   //#define ENDSTOPPULLUP_YMAX
565 564
   //#define ENDSTOPPULLUP_ZMAX
@@ -569,6 +568,19 @@
569 568
   //#define ENDSTOPPULLUP_ZMIN_PROBE
570 569
 #endif
571 570
 
571
+// Enable pulldown for all endstops to prevent a floating state
572
+//#define ENDSTOPPULLDOWNS
573
+#if DISABLED(ENDSTOPPULLDOWNS)
574
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
575
+  //#define ENDSTOPPULLDOWN_XMAX
576
+  //#define ENDSTOPPULLDOWN_YMAX
577
+  //#define ENDSTOPPULLDOWN_ZMAX
578
+  //#define ENDSTOPPULLDOWN_XMIN
579
+  //#define ENDSTOPPULLDOWN_YMIN
580
+  //#define ENDSTOPPULLDOWN_ZMIN
581
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
582
+#endif
583
+
572 584
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
573 585
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
574 586
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -970,7 +982,8 @@
970 982
 //#define FILAMENT_RUNOUT_SENSOR
971 983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
972 984
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
973
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
985
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
986
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
974 987
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975 988
 #endif
976 989
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_xl/Configuration.h Näytä tiedosto

@@ -573,11 +573,10 @@
573 573
 #define USE_YMAX_PLUG
574 574
 #define USE_ZMAX_PLUG
575 575
 
576
-// coarse Endstop Settings
577
-//#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
578
-
576
+// Enable pullup for all endstops to prevent a floating state
577
+//#define ENDSTOPPULLUPS
579 578
 #if DISABLED(ENDSTOPPULLUPS)
580
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
579
+  // Disable ENDSTOPPULLUPS to set pullups individually
581 580
   #define ENDSTOPPULLUP_XMAX
582 581
   #define ENDSTOPPULLUP_YMAX
583 582
   #define ENDSTOPPULLUP_ZMAX
@@ -587,6 +586,19 @@
587 586
   //#define ENDSTOPPULLUP_ZMIN_PROBE
588 587
 #endif
589 588
 
589
+// Enable pulldown for all endstops to prevent a floating state
590
+//#define ENDSTOPPULLDOWNS
591
+#if DISABLED(ENDSTOPPULLDOWNS)
592
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
593
+  //#define ENDSTOPPULLDOWN_XMAX
594
+  //#define ENDSTOPPULLDOWN_YMAX
595
+  //#define ENDSTOPPULLDOWN_ZMAX
596
+  //#define ENDSTOPPULLDOWN_XMIN
597
+  //#define ENDSTOPPULLDOWN_YMIN
598
+  //#define ENDSTOPPULLDOWN_ZMIN
599
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
600
+#endif
601
+
590 602
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
591 603
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
592 604
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -979,7 +991,8 @@
979 991
 //#define FILAMENT_RUNOUT_SENSOR
980 992
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
981 993
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
982
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
994
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
995
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
983 996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
984 997
 #endif
985 998
 

+ 18
- 5
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h Näytä tiedosto

@@ -513,11 +513,10 @@
513 513
 #define USE_YMAX_PLUG
514 514
 //#define USE_ZMAX_PLUG
515 515
 
516
-// coarse Endstop Settings
517
-//#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
518
-
516
+// Enable pullup for all endstops to prevent a floating state
517
+//#define ENDSTOPPULLUPS
519 518
 #if DISABLED(ENDSTOPPULLUPS)
520
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
519
+  // Disable ENDSTOPPULLUPS to set pullups individually
521 520
   //#define ENDSTOPPULLUP_XMAX
522 521
   //#define ENDSTOPPULLUP_YMAX
523 522
   //#define ENDSTOPPULLUP_ZMAX
@@ -527,6 +526,19 @@
527 526
   //#define ENDSTOPPULLUP_ZMIN_PROBE
528 527
 #endif
529 528
 
529
+// Enable pulldown for all endstops to prevent a floating state
530
+//#define ENDSTOPPULLDOWNS
531
+#if DISABLED(ENDSTOPPULLDOWNS)
532
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
533
+  //#define ENDSTOPPULLDOWN_XMAX
534
+  //#define ENDSTOPPULLDOWN_YMAX
535
+  //#define ENDSTOPPULLDOWN_ZMAX
536
+  //#define ENDSTOPPULLDOWN_XMIN
537
+  //#define ENDSTOPPULLDOWN_YMIN
538
+  //#define ENDSTOPPULLDOWN_ZMIN
539
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
540
+#endif
541
+
530 542
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
531 543
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
532 544
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -864,7 +876,8 @@
864 876
 #define FILAMENT_RUNOUT_SENSOR
865 877
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
866 878
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
867
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
879
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
880
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
868 881
   #define FILAMENT_RUNOUT_SCRIPT "M600"
869 882
 #endif
870 883
 

+ 18
- 5
Marlin/src/config/examples/makibox/Configuration.h Näytä tiedosto

@@ -503,11 +503,10 @@
503 503
 //#define USE_YMAX_PLUG
504 504
 //#define USE_ZMAX_PLUG
505 505
 
506
-// coarse Endstop Settings
507
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
508
-
506
+// Enable pullup for all endstops to prevent a floating state
507
+#define ENDSTOPPULLUPS
509 508
 #if DISABLED(ENDSTOPPULLUPS)
510
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
509
+  // Disable ENDSTOPPULLUPS to set pullups individually
511 510
   //#define ENDSTOPPULLUP_XMAX
512 511
   //#define ENDSTOPPULLUP_YMAX
513 512
   //#define ENDSTOPPULLUP_ZMAX
@@ -517,6 +516,19 @@
517 516
   //#define ENDSTOPPULLUP_ZMIN_PROBE
518 517
 #endif
519 518
 
519
+// Enable pulldown for all endstops to prevent a floating state
520
+//#define ENDSTOPPULLDOWNS
521
+#if DISABLED(ENDSTOPPULLDOWNS)
522
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
523
+  //#define ENDSTOPPULLDOWN_XMAX
524
+  //#define ENDSTOPPULLDOWN_YMAX
525
+  //#define ENDSTOPPULLDOWN_ZMAX
526
+  //#define ENDSTOPPULLDOWN_XMIN
527
+  //#define ENDSTOPPULLDOWN_YMIN
528
+  //#define ENDSTOPPULLDOWN_ZMIN
529
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
530
+#endif
531
+
520 532
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
521 533
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
522 534
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -853,7 +865,8 @@
853 865
 //#define FILAMENT_RUNOUT_SENSOR
854 866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855 867
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
856
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
868
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
869
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
857 870
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858 871
 #endif
859 872
 

+ 18
- 5
Marlin/src/config/examples/stm32f103ret6/Configuration.h Näytä tiedosto

@@ -502,11 +502,10 @@
502 502
 //#define USE_YMAX_PLUG
503 503
 //#define USE_ZMAX_PLUG
504 504
 
505
-// coarse Endstop Settings
506
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
507
-
505
+// Enable pullup for all endstops to prevent a floating state
506
+#define ENDSTOPPULLUPS
508 507
 #if DISABLED(ENDSTOPPULLUPS)
509
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
508
+  // Disable ENDSTOPPULLUPS to set pullups individually
510 509
   //#define ENDSTOPPULLUP_XMAX
511 510
   //#define ENDSTOPPULLUP_YMAX
512 511
   //#define ENDSTOPPULLUP_ZMAX
@@ -516,6 +515,19 @@
516 515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
517 516
 #endif
518 517
 
518
+// Enable pulldown for all endstops to prevent a floating state
519
+//#define ENDSTOPPULLDOWNS
520
+#if DISABLED(ENDSTOPPULLDOWNS)
521
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
522
+  //#define ENDSTOPPULLDOWN_XMAX
523
+  //#define ENDSTOPPULLDOWN_YMAX
524
+  //#define ENDSTOPPULLDOWN_ZMAX
525
+  //#define ENDSTOPPULLDOWN_XMIN
526
+  //#define ENDSTOPPULLDOWN_YMIN
527
+  //#define ENDSTOPPULLDOWN_ZMIN
528
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
529
+#endif
530
+
519 531
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520 532
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521 533
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
@@ -851,7 +863,8 @@
851 863
 //#define FILAMENT_RUNOUT_SENSOR
852 864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853 865
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
854
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
866
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
867
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
855 868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856 869
 #endif
857 870
 

+ 18
- 5
Marlin/src/config/examples/tvrrug/Round2/Configuration.h Näytä tiedosto

@@ -489,11 +489,10 @@
489 489
 //#define USE_YMAX_PLUG
490 490
 //#define USE_ZMAX_PLUG
491 491
 
492
-// coarse Endstop Settings
493
-#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
494
-
492
+// Enable pullup for all endstops to prevent a floating state
493
+#define ENDSTOPPULLUPS
495 494
 #if DISABLED(ENDSTOPPULLUPS)
496
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
495
+  // Disable ENDSTOPPULLUPS to set pullups individually
497 496
   //#define ENDSTOPPULLUP_XMAX
498 497
   //#define ENDSTOPPULLUP_YMAX
499 498
   //#define ENDSTOPPULLUP_ZMAX
@@ -503,6 +502,19 @@
503 502
   //#define ENDSTOPPULLUP_ZMIN_PROBE
504 503
 #endif
505 504
 
505
+// Enable pulldown for all endstops to prevent a floating state
506
+//#define ENDSTOPPULLDOWNS
507
+#if DISABLED(ENDSTOPPULLDOWNS)
508
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
509
+  //#define ENDSTOPPULLDOWN_XMAX
510
+  //#define ENDSTOPPULLDOWN_YMAX
511
+  //#define ENDSTOPPULLDOWN_ZMAX
512
+  //#define ENDSTOPPULLDOWN_XMIN
513
+  //#define ENDSTOPPULLDOWN_YMIN
514
+  //#define ENDSTOPPULLDOWN_ZMIN
515
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
516
+#endif
517
+
506 518
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
507 519
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
508 520
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
@@ -845,7 +857,8 @@
845 857
 //#define FILAMENT_RUNOUT_SENSOR
846 858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
847 859
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
848
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
860
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
861
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
849 862
   #define FILAMENT_RUNOUT_SCRIPT "M600"
850 863
 #endif
851 864
 

+ 18
- 5
Marlin/src/config/examples/wt150/Configuration.h Näytä tiedosto

@@ -505,11 +505,10 @@
505 505
 //#define USE_YMAX_PLUG
506 506
 #define USE_ZMAX_PLUG
507 507
 
508
-// coarse Endstop Settings
509
-//#define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
510
-
508
+// Enable pullup for all endstops to prevent a floating state
509
+#define ENDSTOPPULLUPS
511 510
 #if DISABLED(ENDSTOPPULLUPS)
512
-  // fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined
511
+  // Disable ENDSTOPPULLUPS to set pullups individually
513 512
   //#define ENDSTOPPULLUP_XMAX
514 513
   //#define ENDSTOPPULLUP_YMAX
515 514
   //#define ENDSTOPPULLUP_ZMAX
@@ -519,6 +518,19 @@
519 518
   //#define ENDSTOPPULLUP_ZMIN_PROBE
520 519
 #endif
521 520
 
521
+// Enable pulldown for all endstops to prevent a floating state
522
+//#define ENDSTOPPULLDOWNS
523
+#if DISABLED(ENDSTOPPULLDOWNS)
524
+  // Disable ENDSTOPPULLDOWNS to set pulldowns individually
525
+  //#define ENDSTOPPULLDOWN_XMAX
526
+  //#define ENDSTOPPULLDOWN_YMAX
527
+  //#define ENDSTOPPULLDOWN_ZMAX
528
+  //#define ENDSTOPPULLDOWN_XMIN
529
+  //#define ENDSTOPPULLDOWN_YMIN
530
+  //#define ENDSTOPPULLDOWN_ZMIN
531
+  //#define ENDSTOPPULLDOWN_ZMIN_PROBE
532
+#endif
533
+
522 534
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
523 535
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
524 536
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
@@ -855,7 +867,8 @@
855 867
 //#define FILAMENT_RUNOUT_SENSOR
856 868
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
857 869
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
858
-  #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
870
+  #define FIL_RUNOUT_PULLUP          // Use internal pullup for filament runout pins.
871
+  //#define FIL_RUNOUT_PULLDOWN      // Use internal pulldown for filament runout pins.
859 872
   #define FILAMENT_RUNOUT_SCRIPT "M600"
860 873
 #endif
861 874
 

+ 24
- 0
Marlin/src/inc/Conditionals_post.h Näytä tiedosto

@@ -617,6 +617,30 @@
617 617
 #endif
618 618
 
619 619
 /**
620
+ * Set ENDSTOPPULLDOWNS for active endstop switches
621
+ */
622
+#if ENABLED(ENDSTOPPULLDOWNS)
623
+  #if ENABLED(USE_XMAX_PLUG)
624
+    #define ENDSTOPPULLDOWN_XMAX
625
+  #endif
626
+  #if ENABLED(USE_YMAX_PLUG)
627
+    #define ENDSTOPPULLDOWN_YMAX
628
+  #endif
629
+  #if ENABLED(USE_ZMAX_PLUG)
630
+    #define ENDSTOPPULLDOWN_ZMAX
631
+  #endif
632
+  #if ENABLED(USE_XMIN_PLUG)
633
+    #define ENDSTOPPULLDOWN_XMIN
634
+  #endif
635
+  #if ENABLED(USE_YMIN_PLUG)
636
+    #define ENDSTOPPULLDOWN_YMIN
637
+  #endif
638
+  #if ENABLED(USE_ZMIN_PLUG)
639
+    #define ENDSTOPPULLDOWN_ZMIN
640
+  #endif
641
+#endif
642
+
643
+/**
620 644
  * Shorthand for pin tests, used wherever needed
621 645
  */
622 646
 

+ 32
- 1
Marlin/src/inc/SanityCheck.h Näytä tiedosto

@@ -78,7 +78,9 @@
78 78
 #elif defined(SDEXTRASLOW)
79 79
   #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
80 80
 #elif defined(FILAMENT_SENSOR)
81
-  #error "FILAMENT_SENSOR is deprecated. Use FILAMENT_WIDTH_SENSOR instead."
81
+  #error "FILAMENT_SENSOR is now FILAMENT_WIDTH_SENSOR. Please update your configuration."
82
+#elif defined(ENDSTOPPULLUP_FIL_RUNOUT)
83
+  #error "ENDSTOPPULLUP_FIL_RUNOUT is now FIL_RUNOUT_PULLUP. Please update your configuration."
82 84
 #elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
83 85
   #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
84 86
 #elif defined(LANGUAGE_INCLUDE)
@@ -323,6 +325,35 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
323 325
   #endif
324 326
 #endif
325 327
 
328
+#if !defined(TARGET_LPC1768) && ( \
329
+     ENABLED(ENDSTOPPULLDOWNS) \
330
+  || ENABLED(ENDSTOPPULLDOWN_XMAX) \
331
+  || ENABLED(ENDSTOPPULLDOWN_YMAX) \
332
+  || ENABLED(ENDSTOPPULLDOWN_ZMAX) \
333
+  || ENABLED(ENDSTOPPULLDOWN_XMIN) \
334
+  || ENABLED(ENDSTOPPULLDOWN_YMIN) \
335
+  || ENABLED(ENDSTOPPULLDOWN_ZMIN) )
336
+  #error "PULLDOWN pin mode is not available on the selected board."
337
+#endif
338
+
339
+#if ENABLED(ENDSTOPPULLUPS) && ENABLED(ENDSTOPPULLDOWNS)
340
+  #error "Enable only one of ENDSTOPPULLUPS or ENDSTOPPULLDOWNS."
341
+#elif ENABLED(FIL_RUNOUT_PULLUP) && ENABLED(FIL_RUNOUT_PULLDOWN)
342
+  #error "Enable only one of FIL_RUNOUT_PULLUP or FIL_RUNOUT_PULLDOWN."
343
+#elif ENABLED(ENDSTOPPULLUP_XMAX) && ENABLED(ENDSTOPPULLDOWN_XMAX)
344
+  #error "Enable only one of ENDSTOPPULLUP_X_MAX or ENDSTOPPULLDOWN_X_MAX."
345
+#elif ENABLED(ENDSTOPPULLUP_YMAX) && ENABLED(ENDSTOPPULLDOWN_YMAX)
346
+  #error "Enable only one of ENDSTOPPULLUP_Y_MAX or ENDSTOPPULLDOWN_Y_MAX."
347
+#elif ENABLED(ENDSTOPPULLUP_ZMAX) && ENABLED(ENDSTOPPULLDOWN_ZMAX)
348
+  #error "Enable only one of ENDSTOPPULLUP_Z_MAX or ENDSTOPPULLDOWN_Z_MAX."
349
+#elif ENABLED(ENDSTOPPULLUP_XMIN) && ENABLED(ENDSTOPPULLDOWN_XMIN)
350
+  #error "Enable only one of ENDSTOPPULLUP_X_MIN or ENDSTOPPULLDOWN_X_MIN."
351
+#elif ENABLED(ENDSTOPPULLUP_YMIN) && ENABLED(ENDSTOPPULLDOWN_YMIN)
352
+  #error "Enable only one of ENDSTOPPULLUP_Y_MIN or ENDSTOPPULLDOWN_Y_MIN."
353
+#elif ENABLED(ENDSTOPPULLUP_ZMIN) && ENABLED(ENDSTOPPULLDOWN_ZMIN)
354
+  #error "Enable only one of ENDSTOPPULLUP_Z_MIN or ENDSTOPPULLDOWN_Z_MIN."
355
+#endif
356
+
326 357
 /**
327 358
  * Progress Bar
328 359
  */

+ 26
- 0
Marlin/src/module/endstops.cpp Näytä tiedosto

@@ -73,6 +73,8 @@ void Endstops::init() {
73 73
   #if HAS_X_MIN
74 74
     #if ENABLED(ENDSTOPPULLUP_XMIN)
75 75
       SET_INPUT_PULLUP(X_MIN_PIN);
76
+    #elif ENABLED(ENDSTOPPULLDOWN_XMIN)
77
+      SET_INPUT_PULLDOWN(X_MIN_PIN);
76 78
     #else
77 79
       SET_INPUT(X_MIN_PIN);
78 80
     #endif
@@ -81,6 +83,8 @@ void Endstops::init() {
81 83
   #if HAS_X2_MIN
82 84
     #if ENABLED(ENDSTOPPULLUP_XMIN)
83 85
       SET_INPUT_PULLUP(X2_MIN_PIN);
86
+    #elif ENABLED(ENDSTOPPULLDOWN_XMIN)
87
+      SET_INPUT_PULLDOWN(X2_MIN_PIN);
84 88
     #else
85 89
       SET_INPUT(X2_MIN_PIN);
86 90
     #endif
@@ -89,6 +93,8 @@ void Endstops::init() {
89 93
   #if HAS_Y_MIN
90 94
     #if ENABLED(ENDSTOPPULLUP_YMIN)
91 95
       SET_INPUT_PULLUP(Y_MIN_PIN);
96
+    #elif ENABLED(ENDSTOPPULLDOWN_YMIN)
97
+      SET_INPUT_PULLDOWN(Y_MIN_PIN);
92 98
     #else
93 99
       SET_INPUT(Y_MIN_PIN);
94 100
     #endif
@@ -97,6 +103,8 @@ void Endstops::init() {
97 103
   #if HAS_Y2_MIN
98 104
     #if ENABLED(ENDSTOPPULLUP_YMIN)
99 105
       SET_INPUT_PULLUP(Y2_MIN_PIN);
106
+    #elif ENABLED(ENDSTOPPULLDOWN_YMIN)
107
+      SET_INPUT_PULLDOWN(Y2_MIN_PIN);
100 108
     #else
101 109
       SET_INPUT(Y2_MIN_PIN);
102 110
     #endif
@@ -105,6 +113,8 @@ void Endstops::init() {
105 113
   #if HAS_Z_MIN
106 114
     #if ENABLED(ENDSTOPPULLUP_ZMIN)
107 115
       SET_INPUT_PULLUP(Z_MIN_PIN);
116
+    #elif ENABLED(ENDSTOPPULLDOWN_ZMIN)
117
+      SET_INPUT_PULLDOWN(Z_MIN_PIN);
108 118
     #else
109 119
       SET_INPUT(Z_MIN_PIN);
110 120
     #endif
@@ -113,6 +123,8 @@ void Endstops::init() {
113 123
   #if HAS_Z2_MIN
114 124
     #if ENABLED(ENDSTOPPULLUP_ZMIN)
115 125
       SET_INPUT_PULLUP(Z2_MIN_PIN);
126
+    #elif ENABLED(ENDSTOPPULLDOWN_ZMIN)
127
+      SET_INPUT_PULLDOWN(Z2_MIN_PIN);
116 128
     #else
117 129
       SET_INPUT(Z2_MIN_PIN);
118 130
     #endif
@@ -121,6 +133,8 @@ void Endstops::init() {
121 133
   #if HAS_X_MAX
122 134
     #if ENABLED(ENDSTOPPULLUP_XMAX)
123 135
       SET_INPUT_PULLUP(X_MAX_PIN);
136
+    #elif ENABLED(ENDSTOPPULLDOWN_XMAX)
137
+      SET_INPUT_PULLDOWN(X_MAX_PIN);
124 138
     #else
125 139
       SET_INPUT(X_MAX_PIN);
126 140
     #endif
@@ -129,6 +143,8 @@ void Endstops::init() {
129 143
   #if HAS_X2_MAX
130 144
     #if ENABLED(ENDSTOPPULLUP_XMAX)
131 145
       SET_INPUT_PULLUP(X2_MAX_PIN);
146
+    #elif ENABLED(ENDSTOPPULLDOWN_XMAX)
147
+      SET_INPUT_PULLDOWN(X2_MAX_PIN);
132 148
     #else
133 149
       SET_INPUT(X2_MAX_PIN);
134 150
     #endif
@@ -137,6 +153,8 @@ void Endstops::init() {
137 153
   #if HAS_Y_MAX
138 154
     #if ENABLED(ENDSTOPPULLUP_YMAX)
139 155
       SET_INPUT_PULLUP(Y_MAX_PIN);
156
+    #elif ENABLED(ENDSTOPPULLDOWN_YMAX)
157
+      SET_INPUT_PULLDOWN(Y_MAX_PIN);
140 158
     #else
141 159
       SET_INPUT(Y_MAX_PIN);
142 160
     #endif
@@ -145,6 +163,8 @@ void Endstops::init() {
145 163
   #if HAS_Y2_MAX
146 164
     #if ENABLED(ENDSTOPPULLUP_YMAX)
147 165
       SET_INPUT_PULLUP(Y2_MAX_PIN);
166
+    #elif ENABLED(ENDSTOPPULLDOWN_YMAX)
167
+      SET_INPUT_PULLDOWN(Y2_MAX_PIN);
148 168
     #else
149 169
       SET_INPUT(Y2_MAX_PIN);
150 170
     #endif
@@ -153,6 +173,8 @@ void Endstops::init() {
153 173
   #if HAS_Z_MAX
154 174
     #if ENABLED(ENDSTOPPULLUP_ZMAX)
155 175
       SET_INPUT_PULLUP(Z_MAX_PIN);
176
+    #elif ENABLED(ENDSTOPPULLDOWN_ZMAX)
177
+      SET_INPUT_PULLDOWN(Z_MAX_PIN);
156 178
     #else
157 179
       SET_INPUT(Z_MAX_PIN);
158 180
     #endif
@@ -161,6 +183,8 @@ void Endstops::init() {
161 183
   #if HAS_Z2_MAX
162 184
     #if ENABLED(ENDSTOPPULLUP_ZMAX)
163 185
       SET_INPUT_PULLUP(Z2_MAX_PIN);
186
+    #elif ENABLED(ENDSTOPPULLDOWN_ZMAX)
187
+      SET_INPUT_PULLDOWN(Z2_MAX_PIN);
164 188
     #else
165 189
       SET_INPUT(Z2_MAX_PIN);
166 190
     #endif
@@ -169,6 +193,8 @@ void Endstops::init() {
169 193
   #if ENABLED(Z_MIN_PROBE_ENDSTOP)
170 194
     #if ENABLED(ENDSTOPPULLUP_ZMIN_PROBE)
171 195
       SET_INPUT_PULLUP(Z_MIN_PROBE_PIN);
196
+    #elif ENABLED(ENDSTOPPULLDOWN_ZMIN_PROBE)
197
+      SET_INPUT_PULLDOWN(Z_MIN_PROBE_PIN);
172 198
     #else
173 199
       SET_INPUT(Z_MIN_PROBE_PIN);
174 200
     #endif

Loading…
Peruuta
Tallenna