瀏覽代碼

Pulldown pin mode support (#9701)

Implemented for LPC1768.
Scott Lahteine 7 年之前
父節點
當前提交
ca55f2927a
沒有連結到貢獻者的電子郵件帳戶。
共有 66 個檔案被更改,包括 1182 行新增325 行删除
  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 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 25
- 24
Marlin/src/HAL/HAL_LPC1768/arduino.cpp 查看文件

71
 
71
 
72
 // IO functions
72
 // IO functions
73
 // As defined by Arduino INPUT(0x0), OUPUT(0x1), INPUT_PULLUP(0x2)
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
   if (!VALID_PIN(pin)) return;
75
   if (!VALID_PIN(pin)) return;
76
 
76
 
77
   PINSEL_CFG_Type config = { LPC1768_PIN_PORT(pin),
77
   PINSEL_CFG_Type config = { LPC1768_PIN_PORT(pin),
79
                              PINSEL_FUNC_0,
79
                              PINSEL_FUNC_0,
80
                              PINSEL_PINMODE_TRISTATE,
80
                              PINSEL_PINMODE_TRISTATE,
81
                              PINSEL_PINMODE_NORMAL };
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
 void digitalWrite(pin_t pin, uint8_t pin_status) {
102
 void digitalWrite(pin_t pin, uint8_t pin_status) {
108
 
109
 
109
   pinMode(pin, OUTPUT);  // Set pin mode on every write (Arduino version does this)
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
 bool digitalRead(pin_t pin) {
121
 bool digitalRead(pin_t pin) {

+ 5
- 0
Marlin/src/HAL/HAL_LPC1768/fastio.h 查看文件

85
 /// set pin as input with pullup mode
85
 /// set pin as input with pullup mode
86
 #define _PULLUP(IO, v) (pinMode(IO, (v!=LOW ? INPUT_PULLUP : INPUT)))
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
 // hg42: all pins can be input or output (I hope)
91
 // hg42: all pins can be input or output (I hope)
89
 // hg42: undefined pins create compile error (IO, is no pin)
92
 // hg42: undefined pins create compile error (IO, is no pin)
90
 // hg42: currently not used, but was used by pinsDebug
93
 // hg42: currently not used, but was used by pinsDebug
119
 #define SET_INPUT(IO)  _SET_INPUT(IO)
122
 #define SET_INPUT(IO)  _SET_INPUT(IO)
120
 /// set pin as input with pullup wrapper
123
 /// set pin as input with pullup wrapper
121
 #define SET_INPUT_PULLUP(IO) do{ _SET_INPUT(IO); _PULLUP(IO, HIGH); }while(0)
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
 /// set pin as output wrapper  -  reads the pin and sets the output to that value
127
 /// set pin as output wrapper  -  reads the pin and sets the output to that value
123
 #define SET_OUTPUT(IO)  do{ _WRITE(IO, _READ(IO)); _SET_OUTPUT(IO); }while(0)
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 查看文件

31
 #define HIGH         0x01
31
 #define HIGH         0x01
32
 #define LOW          0x00
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
 #define LSBFIRST     0
39
 #define LSBFIRST     0
39
 #define MSBFIRST     1
40
 #define MSBFIRST     1
104
 uint32_t millis();
105
 uint32_t millis();
105
 
106
 
106
 //IO functions
107
 //IO functions
107
-void pinMode(pin_t, uint8_t);
108
+void pinMode(const pin_t, const uint8_t);
108
 void digitalWrite(pin_t, uint8_t);
109
 void digitalWrite(pin_t, uint8_t);
109
 bool digitalRead(pin_t);
110
 bool digitalRead(pin_t);
110
 void analogWrite(pin_t, int);
111
 void analogWrite(pin_t, int);

+ 3
- 1
Marlin/src/Marlin.cpp 查看文件

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

+ 18
- 5
Marlin/src/config/default/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h 查看文件

520
 //#define USE_YMAX_PLUG
520
 //#define USE_YMAX_PLUG
521
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
527
   //#define ENDSTOPPULLUP_XMAX
529
   //#define ENDSTOPPULLUP_YMAX
528
   //#define ENDSTOPPULLUP_YMAX
530
   //#define ENDSTOPPULLUP_ZMAX
529
   //#define ENDSTOPPULLUP_ZMAX
534
   //#define ENDSTOPPULLUP_ZMIN_PROBE
533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
550
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
539
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
551
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
870
 //#define FILAMENT_RUNOUT_SENSOR
882
 //#define FILAMENT_RUNOUT_SENSOR
871
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
872
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
887
   #define FILAMENT_RUNOUT_SCRIPT "M600"
875
 #endif
888
 #endif
876
 
889
 

+ 18
- 5
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h 查看文件

500
 #define USE_YMAX_PLUG
500
 #define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/Anet/A6/Configuration.h 查看文件

520
 //#define USE_YMAX_PLUG
520
 //#define USE_YMAX_PLUG
521
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
527
   //#define ENDSTOPPULLUP_XMAX
529
   //#define ENDSTOPPULLUP_YMAX
528
   //#define ENDSTOPPULLUP_YMAX
530
   //#define ENDSTOPPULLUP_ZMAX
529
   //#define ENDSTOPPULLUP_ZMAX
534
   //#define ENDSTOPPULLUP_ZMIN_PROBE
533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
550
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
539
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
551
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
960
 //#define FILAMENT_RUNOUT_SENSOR
972
 //#define FILAMENT_RUNOUT_SENSOR
961
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
973
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
962
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
977
   #define FILAMENT_RUNOUT_SCRIPT "M600"
965
 #endif
978
 #endif
966
 
979
 

+ 18
- 5
Marlin/src/config/examples/Anet/A8/Configuration.h 查看文件

507
 //#define USE_YMAX_PLUG
507
 //#define USE_YMAX_PLUG
508
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
514
   //#define ENDSTOPPULLUP_XMAX
516
   //#define ENDSTOPPULLUP_YMAX
515
   //#define ENDSTOPPULLUP_YMAX
517
   //#define ENDSTOPPULLUP_ZMAX
516
   //#define ENDSTOPPULLUP_ZMAX
521
   //#define ENDSTOPPULLUP_ZMIN_PROBE
520
   //#define ENDSTOPPULLUP_ZMIN_PROBE
522
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
536
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
525
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
537
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
526
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
538
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
857
 //#define FILAMENT_RUNOUT_SENSOR
869
 //#define FILAMENT_RUNOUT_SENSOR
858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
874
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862
 #endif
875
 #endif
863
 
876
 

+ 18
- 5
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h 查看文件

500
 #define USE_YMAX_PLUG
500
 #define USE_YMAX_PLUG
501
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h 查看文件

500
 #define USE_YMAX_PLUG
500
 #define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
530
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
519
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
531
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h 查看文件

500
 #define USE_YMAX_PLUG
500
 #define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
530
 const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
519
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
531
 const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/BQ/Hephestos/Configuration.h 查看文件

488
 //#define USE_YMAX_PLUG
488
 //#define USE_YMAX_PLUG
489
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
495
   //#define ENDSTOPPULLUP_XMAX
497
   //#define ENDSTOPPULLUP_YMAX
496
   //#define ENDSTOPPULLUP_YMAX
498
   //#define ENDSTOPPULLUP_ZMAX
497
   //#define ENDSTOPPULLUP_ZMAX
502
   //#define ENDSTOPPULLUP_ZMIN_PROBE
501
   //#define ENDSTOPPULLUP_ZMIN_PROBE
503
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
506
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
507
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
838
 //#define FILAMENT_RUNOUT_SENSOR
850
 //#define FILAMENT_RUNOUT_SENSOR
839
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
840
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
   #define FILAMENT_RUNOUT_SCRIPT "M600"
843
 #endif
856
 #endif
844
 
857
 

+ 18
- 5
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h 查看文件

501
 //#define USE_YMAX_PLUG
501
 //#define USE_YMAX_PLUG
502
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
508
   //#define ENDSTOPPULLUP_XMAX
510
   //#define ENDSTOPPULLUP_YMAX
509
   //#define ENDSTOPPULLUP_YMAX
511
   //#define ENDSTOPPULLUP_ZMAX
510
   //#define ENDSTOPPULLUP_ZMAX
515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
516
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
519
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
520
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
532
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
851
 //#define FILAMENT_RUNOUT_SENSOR
863
 //#define FILAMENT_RUNOUT_SENSOR
852
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856
 #endif
869
 #endif
857
 
870
 

+ 18
- 5
Marlin/src/config/examples/BQ/WITBOX/Configuration.h 查看文件

488
 #define USE_YMAX_PLUG
488
 #define USE_YMAX_PLUG
489
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
495
   //#define ENDSTOPPULLUP_XMAX
497
   //#define ENDSTOPPULLUP_YMAX
496
   //#define ENDSTOPPULLUP_YMAX
498
   //#define ENDSTOPPULLUP_ZMAX
497
   //#define ENDSTOPPULLUP_ZMAX
502
   //#define ENDSTOPPULLUP_ZMIN_PROBE
501
   //#define ENDSTOPPULLUP_ZMIN_PROBE
503
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
506
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
507
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
838
 //#define FILAMENT_RUNOUT_SENSOR
850
 //#define FILAMENT_RUNOUT_SENSOR
839
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
840
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
   #define FILAMENT_RUNOUT_SCRIPT "M600"
843
 #endif
856
 #endif
844
 
857
 

+ 18
- 5
Marlin/src/config/examples/Cartesio/Configuration.h 查看文件

499
 //#define USE_YMAX_PLUG
499
 //#define USE_YMAX_PLUG
500
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
506
   //#define ENDSTOPPULLUP_XMAX
508
   //#define ENDSTOPPULLUP_YMAX
507
   //#define ENDSTOPPULLUP_YMAX
509
   //#define ENDSTOPPULLUP_ZMAX
508
   //#define ENDSTOPPULLUP_ZMAX
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
512
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
528
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
529
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
518
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
530
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
849
 //#define FILAMENT_RUNOUT_SENSOR
861
 //#define FILAMENT_RUNOUT_SENSOR
850
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
866
   #define FILAMENT_RUNOUT_SCRIPT "M600"
854
 #endif
867
 #endif
855
 
868
 

+ 18
- 5
Marlin/src/config/examples/Creality/CR-10/Configuration.h 查看文件

510
 //#define USE_YMAX_PLUG
510
 //#define USE_YMAX_PLUG
511
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
517
   //#define ENDSTOPPULLUP_XMAX
519
   //#define ENDSTOPPULLUP_YMAX
518
   //#define ENDSTOPPULLUP_YMAX
520
   //#define ENDSTOPPULLUP_ZMAX
519
   //#define ENDSTOPPULLUP_ZMAX
524
   //#define ENDSTOPPULLUP_ZMIN_PROBE
523
   //#define ENDSTOPPULLUP_ZMIN_PROBE
525
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
539
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
528
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
540
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
529
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
541
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
860
 //#define FILAMENT_RUNOUT_SENSOR
872
 //#define FILAMENT_RUNOUT_SENSOR
861
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
873
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
862
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
877
   #define FILAMENT_RUNOUT_SCRIPT "M600"
865
 #endif
878
 #endif
866
 
879
 

+ 18
- 5
Marlin/src/config/examples/Creality/CR-10S/Configuration.h 查看文件

491
 //#define USE_YMAX_PLUG
491
 //#define USE_YMAX_PLUG
492
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
498
   //#define ENDSTOPPULLUP_XMAX
500
   //#define ENDSTOPPULLUP_YMAX
499
   //#define ENDSTOPPULLUP_YMAX
501
   //#define ENDSTOPPULLUP_ZMAX
500
   //#define ENDSTOPPULLUP_ZMAX
505
   //#define ENDSTOPPULLUP_ZMIN_PROBE
504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
510
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
522
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
841
 #define FILAMENT_RUNOUT_SENSOR
853
 #define FILAMENT_RUNOUT_SENSOR
842
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843
   #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846
   #define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
859
   #define FIL_RUNOUT_PIN 2 // Creality CR10-S stock sensor
847
 #endif
860
 #endif

+ 18
- 5
Marlin/src/config/examples/Creality/Ender/Configuration.h 查看文件

495
 //#define USE_YMAX_PLUG
495
 //#define USE_YMAX_PLUG
496
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
502
   //#define ENDSTOPPULLUP_XMAX
504
   //#define ENDSTOPPULLUP_YMAX
503
   //#define ENDSTOPPULLUP_YMAX
505
   //#define ENDSTOPPULLUP_ZMAX
504
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMIN_PROBE
508
   //#define ENDSTOPPULLUP_ZMIN_PROBE
510
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
513
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
525
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
514
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
526
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
845
 //#define FILAMENT_RUNOUT_SENSOR
857
 //#define FILAMENT_RUNOUT_SENSOR
846
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
847
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862
   #define FILAMENT_RUNOUT_SCRIPT "M600"
850
 #endif
863
 #endif
851
 
864
 

+ 18
- 5
Marlin/src/config/examples/Felix/Configuration.h 查看文件

481
 //#define USE_YMAX_PLUG
481
 //#define USE_YMAX_PLUG
482
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
488
   //#define ENDSTOPPULLUP_XMAX
490
   //#define ENDSTOPPULLUP_YMAX
489
   //#define ENDSTOPPULLUP_YMAX
491
   //#define ENDSTOPPULLUP_ZMAX
490
   //#define ENDSTOPPULLUP_ZMAX
495
   //#define ENDSTOPPULLUP_ZMIN_PROBE
494
   //#define ENDSTOPPULLUP_ZMIN_PROBE
496
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
510
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
499
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
511
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
500
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
512
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
832
 //#define FILAMENT_RUNOUT_SENSOR
844
 //#define FILAMENT_RUNOUT_SENSOR
833
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
834
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
849
   #define FILAMENT_RUNOUT_SCRIPT "M600"
837
 #endif
850
 #endif
838
 
851
 

+ 18
- 5
Marlin/src/config/examples/Felix/DUAL/Configuration.h 查看文件

481
 //#define USE_YMAX_PLUG
481
 //#define USE_YMAX_PLUG
482
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
488
   //#define ENDSTOPPULLUP_XMAX
490
   //#define ENDSTOPPULLUP_YMAX
489
   //#define ENDSTOPPULLUP_YMAX
491
   //#define ENDSTOPPULLUP_ZMAX
490
   //#define ENDSTOPPULLUP_ZMAX
495
   //#define ENDSTOPPULLUP_ZMIN_PROBE
494
   //#define ENDSTOPPULLUP_ZMIN_PROBE
496
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
510
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
499
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
511
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
500
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
512
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
832
 //#define FILAMENT_RUNOUT_SENSOR
844
 //#define FILAMENT_RUNOUT_SENSOR
833
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
845
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
834
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
849
   #define FILAMENT_RUNOUT_SCRIPT "M600"
837
 #endif
850
 #endif
838
 
851
 

+ 18
- 5
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h 查看文件

506
 //#define USE_YMAX_PLUG
506
 //#define USE_YMAX_PLUG
507
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
513
   //#define ENDSTOPPULLUP_XMAX
515
   //#define ENDSTOPPULLUP_YMAX
514
   //#define ENDSTOPPULLUP_YMAX
516
   //#define ENDSTOPPULLUP_ZMAX
515
   //#define ENDSTOPPULLUP_ZMAX
520
   //#define ENDSTOPPULLUP_ZMIN_PROBE
519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
536
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
525
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
537
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
856
 //#define FILAMENT_RUNOUT_SENSOR
868
 //#define FILAMENT_RUNOUT_SENSOR
857
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
873
   #define FILAMENT_RUNOUT_SCRIPT "M600"
861
 #endif
874
 #endif
862
 
875
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h 查看文件

515
 //#define USE_YMAX_PLUG
515
 //#define USE_YMAX_PLUG
516
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
522
   //#define ENDSTOPPULLUP_XMAX
524
   //#define ENDSTOPPULLUP_YMAX
523
   //#define ENDSTOPPULLUP_YMAX
525
   //#define ENDSTOPPULLUP_ZMAX
524
   //#define ENDSTOPPULLUP_ZMAX
529
   //#define ENDSTOPPULLUP_ZMIN_PROBE
528
   //#define ENDSTOPPULLUP_ZMIN_PROBE
530
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
544
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
533
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
545
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
534
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
546
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
865
 //#define FILAMENT_RUNOUT_SENSOR
877
 //#define FILAMENT_RUNOUT_SENSOR
866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
878
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
882
   #define FILAMENT_RUNOUT_SCRIPT "M600"
870
 #endif
883
 #endif
871
 
884
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h 查看文件

506
 //#define USE_YMAX_PLUG
506
 //#define USE_YMAX_PLUG
507
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
513
   //#define ENDSTOPPULLUP_XMAX
515
   //#define ENDSTOPPULLUP_YMAX
514
   //#define ENDSTOPPULLUP_YMAX
516
   //#define ENDSTOPPULLUP_ZMAX
515
   //#define ENDSTOPPULLUP_ZMAX
520
   //#define ENDSTOPPULLUP_ZMIN_PROBE
519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
536
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
525
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
537
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
857
 //#define FILAMENT_RUNOUT_SENSOR
869
 //#define FILAMENT_RUNOUT_SENSOR
858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
870
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
859
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
874
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862
 #endif
875
 #endif
863
 
876
 

+ 18
- 5
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h 查看文件

506
 //#define USE_YMAX_PLUG
506
 //#define USE_YMAX_PLUG
507
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
513
   //#define ENDSTOPPULLUP_XMAX
515
   //#define ENDSTOPPULLUP_YMAX
514
   //#define ENDSTOPPULLUP_YMAX
516
   //#define ENDSTOPPULLUP_ZMAX
515
   //#define ENDSTOPPULLUP_ZMAX
520
   //#define ENDSTOPPULLUP_ZMIN_PROBE
519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
535
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
524
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
536
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
525
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
537
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
856
 //#define FILAMENT_RUNOUT_SENSOR
868
 //#define FILAMENT_RUNOUT_SENSOR
857
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
869
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
873
   #define FILAMENT_RUNOUT_SCRIPT "M600"
861
 #endif
874
 #endif
862
 
875
 

+ 18
- 5
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h 查看文件

504
 //#define USE_YMAX_PLUG
504
 //#define USE_YMAX_PLUG
505
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
511
   //#define ENDSTOPPULLUP_XMAX
513
   //#define ENDSTOPPULLUP_YMAX
512
   //#define ENDSTOPPULLUP_YMAX
514
   //#define ENDSTOPPULLUP_ZMAX
513
   //#define ENDSTOPPULLUP_ZMAX
518
   //#define ENDSTOPPULLUP_ZMIN_PROBE
517
   //#define ENDSTOPPULLUP_ZMIN_PROBE
519
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
533
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
522
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
534
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
523
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
535
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
854
 //#define FILAMENT_RUNOUT_SENSOR
866
 //#define FILAMENT_RUNOUT_SENSOR
855
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859
 #endif
872
 #endif
860
 
873
 

+ 18
- 5
Marlin/src/config/examples/JGAurora/A5/Configuration.h 查看文件

512
 //#define USE_YMAX_PLUG
512
 //#define USE_YMAX_PLUG
513
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
519
   //#define ENDSTOPPULLUP_XMAX
521
   //#define ENDSTOPPULLUP_YMAX
520
   //#define ENDSTOPPULLUP_YMAX
522
   //#define ENDSTOPPULLUP_ZMAX
521
   //#define ENDSTOPPULLUP_ZMAX
526
   //#define ENDSTOPPULLUP_ZMIN_PROBE
525
   //#define ENDSTOPPULLUP_ZMIN_PROBE
527
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
541
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
542
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
543
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
862
 #define FILAMENT_RUNOUT_SENSOR
874
 #define FILAMENT_RUNOUT_SENSOR
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
879
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
 #endif
880
 #endif
868
 
881
 

+ 18
- 5
Marlin/src/config/examples/MakerParts/Configuration.h 查看文件

520
 //#define USE_YMAX_PLUG
520
 //#define USE_YMAX_PLUG
521
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   #define ENDSTOPPULLUP_XMAX
527
   #define ENDSTOPPULLUP_XMAX
529
   #define ENDSTOPPULLUP_YMAX
528
   #define ENDSTOPPULLUP_YMAX
530
   #define ENDSTOPPULLUP_ZMAX
529
   #define ENDSTOPPULLUP_ZMAX
534
   //#define ENDSTOPPULLUP_ZMIN_PROBE
533
   //#define ENDSTOPPULLUP_ZMIN_PROBE
535
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
549
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
538
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
550
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
539
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
551
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
870
 //#define FILAMENT_RUNOUT_SENSOR
882
 //#define FILAMENT_RUNOUT_SENSOR
871
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
883
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
872
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
887
   #define FILAMENT_RUNOUT_SCRIPT "M600"
875
 #endif
888
 #endif
876
 
889
 

+ 18
- 5
Marlin/src/config/examples/Malyan/M150/Configuration.h 查看文件

508
 //#define USE_YMAX_PLUG
508
 //#define USE_YMAX_PLUG
509
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
515
   //#define ENDSTOPPULLUP_XMAX
517
   //#define ENDSTOPPULLUP_YMAX
516
   //#define ENDSTOPPULLUP_YMAX
518
   //#define ENDSTOPPULLUP_ZMAX
517
   //#define ENDSTOPPULLUP_ZMAX
522
   //#define ENDSTOPPULLUP_ZMIN_PROBE
521
   //#define ENDSTOPPULLUP_ZMIN_PROBE
523
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
537
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
526
 
538
 
527
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
539
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
874
 //#define FILAMENT_RUNOUT_SENSOR
886
 //#define FILAMENT_RUNOUT_SENSOR
875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
887
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
876
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
891
   #define FILAMENT_RUNOUT_SCRIPT "M600"
879
 #endif
892
 #endif
880
 
893
 

+ 18
- 5
Marlin/src/config/examples/Malyan/M200/Configuration.h 查看文件

499
 //#define USE_YMAX_PLUG
499
 //#define USE_YMAX_PLUG
500
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
506
   //#define ENDSTOPPULLUP_XMAX
508
   //#define ENDSTOPPULLUP_YMAX
507
   //#define ENDSTOPPULLUP_YMAX
509
   //#define ENDSTOPPULLUP_ZMAX
508
   //#define ENDSTOPPULLUP_ZMAX
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
512
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
528
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
517
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
529
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
518
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
849
 //#define FILAMENT_RUNOUT_SENSOR
861
 //#define FILAMENT_RUNOUT_SENSOR
850
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
851
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
866
   #define FILAMENT_RUNOUT_SCRIPT "M600"
854
 #endif
867
 #endif
855
 
868
 

+ 18
- 5
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
854
 //#define FILAMENT_RUNOUT_SENSOR
866
 //#define FILAMENT_RUNOUT_SENSOR
855
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859
 #endif
872
 #endif
860
 
873
 

+ 18
- 5
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
854
 //#define FILAMENT_RUNOUT_SENSOR
866
 //#define FILAMENT_RUNOUT_SENSOR
855
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
867
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
856
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
871
   #define FILAMENT_RUNOUT_SCRIPT "M600"
859
 #endif
872
 #endif
860
 
873
 

+ 18
- 5
Marlin/src/config/examples/Mks/Sbase/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/RigidBot/Configuration.h 查看文件

496
 //#define USE_YMAX_PLUG
496
 //#define USE_YMAX_PLUG
497
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
503
   //#define ENDSTOPPULLUP_XMAX
505
   //#define ENDSTOPPULLUP_YMAX
504
   //#define ENDSTOPPULLUP_YMAX
506
   //#define ENDSTOPPULLUP_ZMAX
505
   //#define ENDSTOPPULLUP_ZMAX
510
   //#define ENDSTOPPULLUP_ZMIN_PROBE
509
   //#define ENDSTOPPULLUP_ZMIN_PROBE
511
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
525
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
514
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
526
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
515
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
527
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
848
 //#define FILAMENT_RUNOUT_SENSOR
860
 //#define FILAMENT_RUNOUT_SENSOR
849
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
861
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
850
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
865
   #define FILAMENT_RUNOUT_SCRIPT "M600"
853
 #endif
866
 #endif
854
 
867
 

+ 18
- 5
Marlin/src/config/examples/SCARA/Configuration.h 查看文件

512
 //#define USE_YMAX_PLUG
512
 //#define USE_YMAX_PLUG
513
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
519
   //#define ENDSTOPPULLUP_XMAX
521
   //#define ENDSTOPPULLUP_YMAX
520
   //#define ENDSTOPPULLUP_YMAX
522
   #define ENDSTOPPULLUP_ZMAX  // open pin, inverted
521
   #define ENDSTOPPULLUP_ZMAX  // open pin, inverted
526
   //#define ENDSTOPPULLUP_ZMIN_PROBE
525
   //#define ENDSTOPPULLUP_ZMIN_PROBE
527
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
541
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
542
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
543
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
862
 //#define FILAMENT_RUNOUT_SENSOR
874
 //#define FILAMENT_RUNOUT_SENSOR
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
875
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
879
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
 #endif
880
 #endif
868
 
881
 

+ 18
- 5
Marlin/src/config/examples/STM32F10/Configuration.h 查看文件

502
 //#define USE_YMAX_PLUG
502
 //#define USE_YMAX_PLUG
503
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_XMAX
511
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_YMAX
512
   //#define ENDSTOPPULLUP_ZMAX
511
   //#define ENDSTOPPULLUP_ZMAX
516
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
517
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
531
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
532
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
533
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
853
 //#define FILAMENT_RUNOUT_SENSOR
865
 //#define FILAMENT_RUNOUT_SENSOR
854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
870
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858
 #endif
871
 #endif
859
 
872
 

+ 18
- 5
Marlin/src/config/examples/Sanguinololu/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
881
 //#define FILAMENT_RUNOUT_SENSOR
893
 //#define FILAMENT_RUNOUT_SENSOR
882
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
894
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
883
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
898
   #define FILAMENT_RUNOUT_SCRIPT "M600"
886
 #endif
899
 #endif
887
 
900
 

+ 18
- 5
Marlin/src/config/examples/TheBorg/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/TinyBoy2/Configuration.h 查看文件

551
 //#define USE_YMAX_PLUG
551
 //#define USE_YMAX_PLUG
552
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
558
   //#define ENDSTOPPULLUP_XMAX
560
   //#define ENDSTOPPULLUP_YMAX
559
   //#define ENDSTOPPULLUP_YMAX
561
   //#define ENDSTOPPULLUP_ZMAX
560
   //#define ENDSTOPPULLUP_ZMAX
565
   //#define ENDSTOPPULLUP_ZMIN_PROBE
564
   //#define ENDSTOPPULLUP_ZMIN_PROBE
566
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
580
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
569
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
581
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
570
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
582
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
906
 //#define FILAMENT_RUNOUT_SENSOR
918
 //#define FILAMENT_RUNOUT_SENSOR
907
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
919
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
908
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
923
   #define FILAMENT_RUNOUT_SCRIPT "M600"
911
 #endif
924
 #endif
912
 
925
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/X1/Configuration.h 查看文件

491
 //#define USE_YMAX_PLUG
491
 //#define USE_YMAX_PLUG
492
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
498
   //#define ENDSTOPPULLUP_XMAX
500
   //#define ENDSTOPPULLUP_YMAX
499
   //#define ENDSTOPPULLUP_YMAX
501
   //#define ENDSTOPPULLUP_ZMAX
500
   //#define ENDSTOPPULLUP_ZMAX
505
   //#define ENDSTOPPULLUP_ZMIN_PROBE
504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
521
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
510
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
522
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
841
 //#define FILAMENT_RUNOUT_SENSOR
853
 //#define FILAMENT_RUNOUT_SENSOR
842
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846
 #endif
859
 #endif
847
 
860
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/X5S/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/Tronxy/XY100/Configuration.h 查看文件

511
 //#define USE_YMAX_PLUG
511
 //#define USE_YMAX_PLUG
512
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
518
   //#define ENDSTOPPULLUP_XMAX
520
   //#define ENDSTOPPULLUP_YMAX
519
   //#define ENDSTOPPULLUP_YMAX
521
   //#define ENDSTOPPULLUP_ZMAX
520
   //#define ENDSTOPPULLUP_ZMAX
525
   //#define ENDSTOPPULLUP_ZMIN_PROBE
524
   //#define ENDSTOPPULLUP_ZMIN_PROBE
526
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
540
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
541
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
530
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
542
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
861
 //#define FILAMENT_RUNOUT_SENSOR
873
 //#define FILAMENT_RUNOUT_SENSOR
862
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
874
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
878
   #define FILAMENT_RUNOUT_SCRIPT "M600"
866
 #endif
879
 #endif
867
 
880
 

+ 18
- 5
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h 查看文件

491
 //#define USE_YMAX_PLUG
491
 //#define USE_YMAX_PLUG
492
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
498
   //#define ENDSTOPPULLUP_XMAX
500
   //#define ENDSTOPPULLUP_YMAX
499
   //#define ENDSTOPPULLUP_YMAX
501
   //#define ENDSTOPPULLUP_ZMAX
500
   //#define ENDSTOPPULLUP_ZMAX
505
   //#define ENDSTOPPULLUP_ZMIN_PROBE
504
   //#define ENDSTOPPULLUP_ZMIN_PROBE
506
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
509
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
510
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
522
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
841
 //#define FILAMENT_RUNOUT_SENSOR
853
 //#define FILAMENT_RUNOUT_SENSOR
842
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
843
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858
   #define FILAMENT_RUNOUT_SCRIPT "M600"
846
 #endif
859
 #endif
847
 
860
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8200/Configuration.h 查看文件

530
 //#define USE_YMAX_PLUG
530
 //#define USE_YMAX_PLUG
531
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
537
   //#define ENDSTOPPULLUP_XMAX
539
   //#define ENDSTOPPULLUP_YMAX
538
   //#define ENDSTOPPULLUP_YMAX
540
   //#define ENDSTOPPULLUP_ZMAX
539
   //#define ENDSTOPPULLUP_ZMAX
544
   //#define ENDSTOPPULLUP_ZMIN_PROBE
543
   //#define ENDSTOPPULLUP_ZMIN_PROBE
545
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
559
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
548
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
560
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
549
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
561
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
880
 //#define FILAMENT_RUNOUT_SENSOR
892
 //#define FILAMENT_RUNOUT_SENSOR
881
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
893
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
882
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
897
   #define FILAMENT_RUNOUT_SCRIPT "M600"
885
 #endif
898
 #endif
886
 
899
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8400/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h 查看文件

501
 //#define USE_YMAX_PLUG
501
 //#define USE_YMAX_PLUG
502
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
508
   //#define ENDSTOPPULLUP_XMAX
510
   //#define ENDSTOPPULLUP_YMAX
509
   //#define ENDSTOPPULLUP_YMAX
511
   //#define ENDSTOPPULLUP_ZMAX
510
   //#define ENDSTOPPULLUP_ZMAX
515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
516
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
530
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
519
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
531
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
520
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
532
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
851
 //#define FILAMENT_RUNOUT_SENSOR
863
 //#define FILAMENT_RUNOUT_SENSOR
852
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856
 #endif
869
 #endif
857
 
870
 

+ 18
- 5
Marlin/src/config/examples/adafruit/ST7565/Configuration.h 查看文件

500
 //#define USE_YMAX_PLUG
500
 //#define USE_YMAX_PLUG
501
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
507
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_YMAX
508
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_ZMAX
509
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMIN_PROBE
513
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
529
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
530
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
519
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
531
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
850
 //#define FILAMENT_RUNOUT_SENSOR
862
 //#define FILAMENT_RUNOUT_SENSOR
851
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
863
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
852
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
867
   #define FILAMENT_RUNOUT_SCRIPT "M600"
855
 #endif
868
 #endif
856
 
869
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h 查看文件

579
 #define USE_YMAX_PLUG
579
 #define USE_YMAX_PLUG
580
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
586
   //#define ENDSTOPPULLUP_XMAX
588
   //#define ENDSTOPPULLUP_YMAX
587
   //#define ENDSTOPPULLUP_YMAX
589
   //#define ENDSTOPPULLUP_ZMAX
588
   //#define ENDSTOPPULLUP_ZMAX
593
   //#define ENDSTOPPULLUP_ZMIN_PROBE
592
   //#define ENDSTOPPULLUP_ZMIN_PROBE
594
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
608
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
597
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
609
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
598
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
610
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
980
 //#define FILAMENT_RUNOUT_SENSOR
992
 //#define FILAMENT_RUNOUT_SENSOR
981
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
982
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
985
 #endif
998
 #endif
986
 
999
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h 查看文件

570
 #define USE_YMAX_PLUG
570
 #define USE_YMAX_PLUG
571
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
577
   //#define ENDSTOPPULLUP_XMAX
579
   //#define ENDSTOPPULLUP_YMAX
578
   //#define ENDSTOPPULLUP_YMAX
580
   //#define ENDSTOPPULLUP_ZMAX
579
   //#define ENDSTOPPULLUP_ZMAX
584
   //#define ENDSTOPPULLUP_ZMIN_PROBE
583
   //#define ENDSTOPPULLUP_ZMIN_PROBE
585
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
599
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
588
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
600
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
589
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
601
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
971
 //#define FILAMENT_RUNOUT_SENSOR
983
 //#define FILAMENT_RUNOUT_SENSOR
972
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
984
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
973
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
988
   #define FILAMENT_RUNOUT_SCRIPT "M600"
976
 #endif
989
 #endif
977
 
990
 

+ 18
- 5
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h 查看文件

579
 #define USE_YMAX_PLUG
579
 #define USE_YMAX_PLUG
580
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
586
   //#define ENDSTOPPULLUP_XMAX
588
   //#define ENDSTOPPULLUP_YMAX
587
   //#define ENDSTOPPULLUP_YMAX
589
   //#define ENDSTOPPULLUP_ZMAX
588
   //#define ENDSTOPPULLUP_ZMAX
593
   //#define ENDSTOPPULLUP_ZMIN_PROBE
592
   //#define ENDSTOPPULLUP_ZMIN_PROBE
594
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
608
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
597
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
609
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
598
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
610
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
980
 //#define FILAMENT_RUNOUT_SENSOR
992
 //#define FILAMENT_RUNOUT_SENSOR
981
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
993
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
982
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
997
   #define FILAMENT_RUNOUT_SCRIPT "M600"
985
 #endif
998
 #endif
986
 
999
 

+ 18
- 5
Marlin/src/config/examples/delta/generic/Configuration.h 查看文件

569
 #define USE_YMAX_PLUG
569
 #define USE_YMAX_PLUG
570
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
576
   //#define ENDSTOPPULLUP_XMAX
578
   //#define ENDSTOPPULLUP_YMAX
577
   //#define ENDSTOPPULLUP_YMAX
579
   //#define ENDSTOPPULLUP_ZMAX
578
   //#define ENDSTOPPULLUP_ZMAX
583
   //#define ENDSTOPPULLUP_ZMIN_PROBE
582
   //#define ENDSTOPPULLUP_ZMIN_PROBE
584
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
598
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
587
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
599
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
588
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
600
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
967
 //#define FILAMENT_RUNOUT_SENSOR
979
 //#define FILAMENT_RUNOUT_SENSOR
968
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
980
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
969
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
984
   #define FILAMENT_RUNOUT_SCRIPT "M600"
972
 #endif
985
 #endif
973
 
986
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_mini/Configuration.h 查看文件

569
 #define USE_YMAX_PLUG
569
 #define USE_YMAX_PLUG
570
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
576
   //#define ENDSTOPPULLUP_XMAX
578
   //#define ENDSTOPPULLUP_YMAX
577
   //#define ENDSTOPPULLUP_YMAX
579
   //#define ENDSTOPPULLUP_ZMAX
578
   //#define ENDSTOPPULLUP_ZMAX
583
   //#define ENDSTOPPULLUP_ZMIN_PROBE
582
   //#define ENDSTOPPULLUP_ZMIN_PROBE
584
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
598
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
587
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
599
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
588
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
600
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
970
 //#define FILAMENT_RUNOUT_SENSOR
982
 //#define FILAMENT_RUNOUT_SENSOR
971
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
972
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
987
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975
 #endif
988
 #endif
976
 
989
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_pro/Configuration.h 查看文件

555
 #define USE_YMAX_PLUG
555
 #define USE_YMAX_PLUG
556
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
562
   //#define ENDSTOPPULLUP_XMAX
564
   //#define ENDSTOPPULLUP_YMAX
563
   //#define ENDSTOPPULLUP_YMAX
565
   //#define ENDSTOPPULLUP_ZMAX
564
   //#define ENDSTOPPULLUP_ZMAX
569
   //#define ENDSTOPPULLUP_ZMIN_PROBE
568
   //#define ENDSTOPPULLUP_ZMIN_PROBE
570
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
584
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
573
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
585
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
574
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
586
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
970
 //#define FILAMENT_RUNOUT_SENSOR
982
 //#define FILAMENT_RUNOUT_SENSOR
971
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
983
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
972
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
987
   #define FILAMENT_RUNOUT_SCRIPT "M600"
975
 #endif
988
 #endif
976
 
989
 

+ 18
- 5
Marlin/src/config/examples/delta/kossel_xl/Configuration.h 查看文件

573
 #define USE_YMAX_PLUG
573
 #define USE_YMAX_PLUG
574
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   #define ENDSTOPPULLUP_XMAX
580
   #define ENDSTOPPULLUP_XMAX
582
   #define ENDSTOPPULLUP_YMAX
581
   #define ENDSTOPPULLUP_YMAX
583
   #define ENDSTOPPULLUP_ZMAX
582
   #define ENDSTOPPULLUP_ZMAX
587
   //#define ENDSTOPPULLUP_ZMIN_PROBE
586
   //#define ENDSTOPPULLUP_ZMIN_PROBE
588
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
602
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
591
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
603
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
592
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
604
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
979
 //#define FILAMENT_RUNOUT_SENSOR
991
 //#define FILAMENT_RUNOUT_SENSOR
980
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
992
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
981
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
996
   #define FILAMENT_RUNOUT_SCRIPT "M600"
984
 #endif
997
 #endif
985
 
998
 

+ 18
- 5
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h 查看文件

513
 #define USE_YMAX_PLUG
513
 #define USE_YMAX_PLUG
514
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
520
   //#define ENDSTOPPULLUP_XMAX
522
   //#define ENDSTOPPULLUP_YMAX
521
   //#define ENDSTOPPULLUP_YMAX
523
   //#define ENDSTOPPULLUP_ZMAX
522
   //#define ENDSTOPPULLUP_ZMAX
527
   //#define ENDSTOPPULLUP_ZMIN_PROBE
526
   //#define ENDSTOPPULLUP_ZMIN_PROBE
528
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
542
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
531
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
543
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
532
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
544
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
864
 #define FILAMENT_RUNOUT_SENSOR
876
 #define FILAMENT_RUNOUT_SENSOR
865
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
877
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
866
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
881
   #define FILAMENT_RUNOUT_SCRIPT "M600"
869
 #endif
882
 #endif
870
 
883
 

+ 18
- 5
Marlin/src/config/examples/makibox/Configuration.h 查看文件

503
 //#define USE_YMAX_PLUG
503
 //#define USE_YMAX_PLUG
504
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
510
   //#define ENDSTOPPULLUP_XMAX
512
   //#define ENDSTOPPULLUP_YMAX
511
   //#define ENDSTOPPULLUP_YMAX
513
   //#define ENDSTOPPULLUP_ZMAX
512
   //#define ENDSTOPPULLUP_ZMAX
517
   //#define ENDSTOPPULLUP_ZMIN_PROBE
516
   //#define ENDSTOPPULLUP_ZMIN_PROBE
518
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
532
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
521
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
533
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
522
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
534
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
853
 //#define FILAMENT_RUNOUT_SENSOR
865
 //#define FILAMENT_RUNOUT_SENSOR
854
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
866
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
855
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
870
   #define FILAMENT_RUNOUT_SCRIPT "M600"
858
 #endif
871
 #endif
859
 
872
 

+ 18
- 5
Marlin/src/config/examples/stm32f103ret6/Configuration.h 查看文件

502
 //#define USE_YMAX_PLUG
502
 //#define USE_YMAX_PLUG
503
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
509
   //#define ENDSTOPPULLUP_XMAX
511
   //#define ENDSTOPPULLUP_YMAX
510
   //#define ENDSTOPPULLUP_YMAX
512
   //#define ENDSTOPPULLUP_ZMAX
511
   //#define ENDSTOPPULLUP_ZMAX
516
   //#define ENDSTOPPULLUP_ZMIN_PROBE
515
   //#define ENDSTOPPULLUP_ZMIN_PROBE
517
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
531
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
520
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
532
 #define X_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
521
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
533
 #define Y_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
851
 //#define FILAMENT_RUNOUT_SENSOR
863
 //#define FILAMENT_RUNOUT_SENSOR
852
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
864
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
853
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
868
   #define FILAMENT_RUNOUT_SCRIPT "M600"
856
 #endif
869
 #endif
857
 
870
 

+ 18
- 5
Marlin/src/config/examples/tvrrug/Round2/Configuration.h 查看文件

489
 //#define USE_YMAX_PLUG
489
 //#define USE_YMAX_PLUG
490
 //#define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
496
   //#define ENDSTOPPULLUP_XMAX
498
   //#define ENDSTOPPULLUP_YMAX
497
   //#define ENDSTOPPULLUP_YMAX
499
   //#define ENDSTOPPULLUP_ZMAX
498
   //#define ENDSTOPPULLUP_ZMAX
503
   //#define ENDSTOPPULLUP_ZMIN_PROBE
502
   //#define ENDSTOPPULLUP_ZMIN_PROBE
504
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
518
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
507
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
519
 #define X_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
508
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
520
 #define Y_MIN_ENDSTOP_INVERTING true  // set to true to invert the logic of the endstop.
845
 //#define FILAMENT_RUNOUT_SENSOR
857
 //#define FILAMENT_RUNOUT_SENSOR
846
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
858
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
847
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
862
   #define FILAMENT_RUNOUT_SCRIPT "M600"
850
 #endif
863
 #endif
851
 
864
 

+ 18
- 5
Marlin/src/config/examples/wt150/Configuration.h 查看文件

505
 //#define USE_YMAX_PLUG
505
 //#define USE_YMAX_PLUG
506
 #define USE_ZMAX_PLUG
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
 #if DISABLED(ENDSTOPPULLUPS)
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
   //#define ENDSTOPPULLUP_XMAX
512
   //#define ENDSTOPPULLUP_XMAX
514
   //#define ENDSTOPPULLUP_YMAX
513
   //#define ENDSTOPPULLUP_YMAX
515
   //#define ENDSTOPPULLUP_ZMAX
514
   //#define ENDSTOPPULLUP_ZMAX
519
   //#define ENDSTOPPULLUP_ZMIN_PROBE
518
   //#define ENDSTOPPULLUP_ZMIN_PROBE
520
 #endif
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
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
534
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
523
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
535
 #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
524
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
536
 #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
855
 //#define FILAMENT_RUNOUT_SENSOR
867
 //#define FILAMENT_RUNOUT_SENSOR
856
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
868
 #if ENABLED(FILAMENT_RUNOUT_SENSOR)
857
   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
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
   #define FILAMENT_RUNOUT_SCRIPT "M600"
872
   #define FILAMENT_RUNOUT_SCRIPT "M600"
860
 #endif
873
 #endif
861
 
874
 

+ 24
- 0
Marlin/src/inc/Conditionals_post.h 查看文件

617
 #endif
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
  * Shorthand for pin tests, used wherever needed
644
  * Shorthand for pin tests, used wherever needed
621
  */
645
  */
622
 
646
 

+ 32
- 1
Marlin/src/inc/SanityCheck.h 查看文件

78
 #elif defined(SDEXTRASLOW)
78
 #elif defined(SDEXTRASLOW)
79
   #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
79
   #error "SDEXTRASLOW deprecated. Set SPI_SPEED to SPI_QUARTER_SPEED instead."
80
 #elif defined(FILAMENT_SENSOR)
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
 #elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
84
 #elif defined(DISABLE_MAX_ENDSTOPS) || defined(DISABLE_MIN_ENDSTOPS)
83
   #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
85
   #error "DISABLE_MAX_ENDSTOPS and DISABLE_MIN_ENDSTOPS deprecated. Use individual USE_*_PLUG options instead."
84
 #elif defined(LANGUAGE_INCLUDE)
86
 #elif defined(LANGUAGE_INCLUDE)
323
   #endif
325
   #endif
324
 #endif
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
  * Progress Bar
358
  * Progress Bar
328
  */
359
  */

+ 26
- 0
Marlin/src/module/endstops.cpp 查看文件

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

Loading…
取消
儲存