In my case, the data switch and lights rotate in the same direction. Only the address switch and lights rotate in opposite directions.
Now you mention it, the upper rotary on my PiDP exhibits the "wrong way" behavior. I never noticed before.
Bill,I'm away from home but if your rotary knob dials the wrong way around, then this is the fix:
Dennis Williamson said only one of his switches was operating backwards, I don't think this fix will work for him.
On Sun, 12 May 2019, 'emt377' via [PiDP-11] wrote:
> As a bemused software guy, I ask: are there data sheets for these specific
> devices, explaining (a) what they say to software, and (b) the differences
> between the two models?
I wonder the same.
I haven't looked at this at all, but is it possible to mount the switch
in two ways, which might make it "appear" to work one way or the other?
I mean, the obvious thing is if it just indicates the direction with two
lines, then if those two lines are swapped, it will appear to rotate in
the opposite direction.
And the obvious answer if this is somewhat random from one panel to the
next is to have a configuration command or file, telling for each rotary
in which direction it goes.
The pi keeps various configuration settings on the boot disk in a text file, perhaps this would be a suitable place to override the default encoder action. Alternatively an environment variable could be used.
Hth David.