micropython-rotary icon indicating copy to clipboard operation
micropython-rotary copied to clipboard

Can not detect the initial state of half step rotary encoder correctly

Open scarrrr316 opened this issue 1 year ago • 0 comments

The problem is that the code is unable to detect the initial state correctly, causing fail detection of the first half-step.

The way I solved the problem was to add this line:

self._process_rotary_pins(None)

to the end of the __init__ function of the RotaryIRQ class.

I don't know how it works, but it works.

scarrrr316 avatar Jun 14 '24 15:06 scarrrr316