You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The way python does this is sense.stick.direction_up = my_move_up_fn, in that the framework does the work of despatching on event types. This is the kind of API pioneered in Ben's GPIOZero, which allows writing code like button.when_pressed = led.on which I find very easy to reason about.
Currently, the recommended way to define a callback is via:
setcallback(foo)
.cc: @aviks
The text was updated successfully, but these errors were encountered: