From b336a21fe7361c4a0ff177a99e046472dfe0e96b Mon Sep 17 00:00:00 2001 From: Rufo Sanchez Date: Sun, 12 Sep 2021 16:59:15 -0500 Subject: button: Support half-stepping encoders Adds support for half-stepping encoders (encoders that only emit two steps per detent, instead of four). Incorporates the feedback from @susisstrolch's PR: https://github.com/KevinOConnor/klipper/pull/4202 , which was itself built upon a previous PR from @nickbrennan01: https://github.com/KevinOConnor/klipper/pull/730 Uses the table from the Rotary Arduino library linked in buttons.py: https://github.com/brianlow/Rotary/blob/6b784cca67c5f1ce5e11d757a540fc4c0311efca/Rotary.cpp#L21-L40 Signed-off-by: Rufo Sanchez --- docs/Config_Reference.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/Config_Reference.md') diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index 1ae5a5c6..b8dd356e 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -3240,6 +3240,11 @@ lcd_type: #encoder_pins: # The pins connected to encoder. 2 pins must be provided when using # encoder. This parameter must be provided when using menu. +#encoder_steps_per_detent: +# How many steps the encoder emits per detent ("click"). If the +# encoder takes two detents to move between entries or moves two +# entries from one detent, try changing this. Allowed values are 2 +# (half-stepping) or 4 (full-stepping). The default is 4. #click_pin: # The pin connected to 'enter' button or encoder 'click'. This # parameter must be provided when using menu. The presence of an -- cgit v1.2.3-70-g09d2