Fast traversal / acceleration #37
jmsaltzman
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey @jmsaltzman, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm remaking an old project with from-scratch code, and this has worked well for me: thank you!!
I set a callback to rotate() (below) with setChangedHandler() to let me navigate a larger range of values: bigger steps when turning the encoder quickly. It's pretty simple and abuses resetPosition(), but it has proved reliable :) I tried this first with the setIncrement() function-- setting a larger increment when dialing fast-- but then it would take the bigger step for the next slow click of the dial. It would be cool to have acceleration of some kind in the library, but this does the trick:
I wonder if there's a way to use setIncrement() like this that I couldn't figure out, or if there's a better way to get larger increments with faster turning. Thanks again!
Beta Was this translation helpful? Give feedback.
All reactions