tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Representing a rotary encoder input device
On Tue, Sep 21, 2021 at 17:53 Jason Thorpe <thorpej%me.com@localhost> wrote:
> Hey folks...
>
> As part of a long-running hardware project I have been playing with, I'm
> experimenting with using a rotary encoder for input. For reference, here
> is the Devicetree binding for rotary encoders:
>
>
> https://github.com/devicetree-org/devicetree-source/blob/master/Bindings/input/rotary-encoder.txt
>
> Rotary encoders come in a bunch of different forms, of course... ranging
> from simple knobs with detents to devices similar to the original iPod
> click wheel. Some include built-in push buttons (that signal a separate
> GPIO from the two GPIOs used to signal the rotary control itself).
>
> Trying to think about the best way to represent such a device, I guess
> within wscons (they almost seem sort of like a 1-axis mouse, but I could be
> convinced otherwise).
>
> Personally I'm seeing my use cases teetering towards using relative events
> (value selection that from 0-9 that wraps around back to 0, and also volume
> control that simply saturates at 0 or 100). But I want to make sure I
> cover the absolute cases, as well.
>
Hey Jason - sounds interesting. Do you think this covers a simple case of
“is moving clockwise”, or “is moving counter-clockwise”, w or w/o velocity?
-bch
> Thoughts?
>
> -- thorpej
>
>
Home |
Main Index |
Thread Index |
Old Index