Rufo Sanchez
|
b336a21fe7
|
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:
6b784cca67/Rotary.cpp (L21-L40)
Signed-off-by: Rufo Sanchez <rufo@rufosanchez.com>
|
2021-10-11 11:29:53 -04:00 |
Kevin O'Connor
|
58dedb6b16
|
menu_keys: Use config.getfloatlist() for analog_range_ config options
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
2021-08-21 18:08:11 -04:00 |
Kevin O'Connor
|
65ae08ef21
|
menu_keys: Add a register_button() helper method
Use a helper method to register each button handler.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
2020-06-15 17:23:34 -04:00 |
Kevin O'Connor
|
8d9566b945
|
menu_keys: Reschedule long-click timer on each click
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
2020-06-15 17:23:34 -04:00 |
Kevin O'Connor
|
7d8ade74e8
|
menu_keys: Move button handling from menu.py to new file menu_keys.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
|
2020-06-15 17:23:34 -04:00 |