-
Notifications
You must be signed in to change notification settings - Fork 4
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
No provision for exiting the watch() loop #13
Comments
Can you please elaborate a bit more. |
The watch() method is nothing but an infinite sleep loop. I'm proposing making the loop conditional on a Boolean variable that can be set with a separate method, e.g. stop_watch(). |
The watch() method was only left in the code for backward compatibility. Since the rotary now relies completely on pigpio triggered callback no watch at all is needed to operate the rotary. Watch will be gone in the next version. |
I think what is missing is a method to reset the interrupt bindings, |
The watch() loop should examine the value of a variable that tells it when to exit. The variable would be set in one of the callbacks.
The text was updated successfully, but these errors were encountered: