Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
scarrrr316 opened this issue Jun 14, 2024 · 0 comments
Open

Comments

@scarrrr316
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant