Replies: 1 comment
-
I like it. This could be a good fit for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(followup to #487)
Since Pybricks is currently poll-based rather than event-based (i.e. we check if a button is currently pressed rather than having button state changed event), it would be useful to have a
OneShot
class to help detect changes in state.it might look something like this:
Beta Was this translation helpful? Give feedback.
All reactions