diff options
author | Janar Sööt <janar.soot@gmail.com> | 2019-04-14 18:18:52 +0300 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-04-14 11:18:52 -0400 |
commit | 0a392b6543e9c0d96c71bddc6965125953e666a7 (patch) | |
tree | 784a9c9794e9b3777acfc3db22c35ec5b7bcfc2f /config/example-extras.cfg | |
parent | d7e1061c63820323dcb68960baf37875ec216fc2 (diff) | |
download | kutter-0a392b6543e9c0d96c71bddc6965125953e666a7.tar.gz kutter-0a392b6543e9c0d96c71bddc6965125953e666a7.tar.xz kutter-0a392b6543e9c0d96c71bddc6965125953e666a7.zip |
menu: initial support for analog buttons (#977)
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
Diffstat (limited to 'config/example-extras.cfg')
-rw-r--r-- | config/example-extras.cfg | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg index a75f8b10..6adf0592 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -1249,19 +1249,46 @@ # using encoder. This parameter must be provided when using menu. #click_pin: # The pin connected to 'enter' button or encoder 'click'. This parameter -# must be provided when using menu. +# must be provided when using menu. The presence of an 'analog_range_click_pin' +# config parameter turns this parameter from digital to analog. #back_pin: # The pin connected to 'back' button. This parameter is optional, menu -# can be used without it. +# can be used without it. The presence of an 'analog_range_back_pin' +# config parameter turns this parameter from digital to analog. #up_pin: # The pin connected to 'up' button. This parameter must be provided -# when using menu without encoder. +# when using menu without encoder. The presence of an 'analog_range_up_pin' +# config parameter turns this parameter from digital to analog. #down_pin: # The pin connected to 'down' button. This parameter must be provided -# when using menu without encoder. +# when using menu without encoder. The presence of an 'analog_range_down_pin' +# config parameter turns this parameter from digital to analog. #kill_pin: -# The pin connected to 'kill' button. This button will call -# emergency stop. +# The pin connected to 'kill' button. This button will call emergency stop. +# The presence of an 'analog_range_kill_pin' config parameter turns this +# parameter from digital to analog. +#analog_pullup_resistor: 4700 +# The resistance (in ohms) of the pullup attached to the analog button. +# The default is 4700 ohms. +#analog_pin_debug: +# When enabled it will output analog (ADC) button readings to the log. +# It's useful for finding analog button resistance range values. +# The default is False (disabled) +#analog_range_click_pin: +# The resistance range for a 'enter' button. Range minimum and maximum +# comma-separated values must be provided when using analog button. +#analog_range_back_pin: +# The resistance range for a 'back' button. Range minimum and maximum +# comma-separated values must be provided when using analog button. +#analog_range_up_pin: +# The resistance range for a 'up' button. Range minimum and maximum +# comma-separated values must be provided when using analog button. +#analog_range_down_pin: +# The resistance range for a 'down' button. Range minimum and maximum +# comma-separated values must be provided when using analog button. +#analog_range_kill_pin: +# The resistance range for a 'kill' button. Range minimum and maximum +# comma-separated values must be provided when using analog button. # Custom thermistors (one may define any number of sections with a |