aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/display/menu_keys.py
Commit message (Collapse)AuthorAgeFilesLines
* button: Support half-stepping encodersRufo Sanchez2021-10-111-1/+4
| | | | | | | | | | | | | 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 <rufo@rufosanchez.com>
* menu_keys: Use config.getfloatlist() for analog_range_ config optionsKevin O'Connor2021-08-211-6/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu_keys: Add a register_button() helper methodKevin O'Connor2020-06-151-128/+62
| | | | | | Use a helper method to register each button handler. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu_keys: Reschedule long-click timer on each clickKevin O'Connor2020-06-151-20/+15
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* menu_keys: Move button handling from menu.py to new file menu_keys.pyKevin O'Connor2020-06-151-0/+180
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>