aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/example.cfg12
-rw-r--r--klippy/pins.py2
2 files changed, 8 insertions, 6 deletions
diff --git a/config/example.cfg b/config/example.cfg
index 3468caeb..a692a6f6 100644
--- a/config/example.cfg
+++ b/config/example.cfg
@@ -11,11 +11,13 @@
# A note on pin names: pins may be configured with a hardware name
# (such as "PA4") or with an Arduino alias name (such as "ar29" or
# "analog3"). In order to use Arduino names, the pin_map variable in
-# the mcu section must be present and have a value of "arduino".
-# Pin names may be preceded by an '!' to indicate that a reverse
-# polarity should be used (eg, trigger on low instead of high). Input
-# pins may be preceded by a '^' to indicate that a hardware pull-up
-# resistor should be enabled for the pin.
+# the mcu section must be present and have a value of "arduino". Pin
+# names may be preceded by an '!' to indicate that a reverse polarity
+# should be used (eg, trigger on low instead of high). Input pins may
+# be preceded by a '^' to indicate that a hardware pull-up resistor
+# should be enabled for the pin. If the micro-controller supports
+# pull-down resistors then an input pin may alternatively be preceded
+# by a '~'.
# The stepper_x section is used to describe the stepper controlling
diff --git a/klippy/pins.py b/klippy/pins.py
index 683285f7..f764b414 100644
--- a/klippy/pins.py
+++ b/klippy/pins.py
@@ -183,7 +183,7 @@ class PrinterPins:
if [c for c in '^~!: ' if c in pin]:
format = ""
if can_pullup:
- format += "[^] "
+ format += "[^~] "
if can_invert:
format += "[!] "
raise error("Invalid pin description '%s'\n"