OpenStickCommunity/GP2040-CE

Issue with rotatory encoders HW-040

asturur opened this issue · 1 comments

Hi Everyone, i recently got the 0.78 update for a rotatory encoder and i noticed it does not work as expected with the encoder i had home, the positive extreme of the rotation flips over to the opposite extreme.

Expected Behavior

I can rotate the encoder and get a mapping on one axis like this

patch.mov

Current Behavior

The encoder reset to -1 after reaching +1

recording078.mov

Context

Rotatory encoder used: hw-40
image

And those are the specs:
https://www.elecom.sk/rotary-encoder-module-with-demo-code-for-uno-r3/

Encoder addon settings in 0.78
image

Steps to Reproduce

Get a rotatry encoder of the same kind
Connect it and configure it as by example or in similar way, try to rotate it on both directions, one direction is flawed

To add, since it was asked in the closed PR. This is what was used to develop the feature.

https://www.sparkfun.com/products/15141

It's fairly similar to what folks use anyway.