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
I'd like to detect if 2 or 3 buttons are pressed at the same time.
Is it possible to do that?
With the following code:
@rainbowhat.touch.A.press()defpress(button):
print("A %s B %s C %s"% (rainbowhat.touch.A.pressed, rainbowhat.touch.B.pressed, rainbowhat.touch.C.pressed))
@rainbowhat.touch.B.press()defpress(button):
print("A %s B %s C %s"% (rainbowhat.touch.A.pressed, rainbowhat.touch.B.pressed, rainbowhat.touch.C.pressed))
If I pressed A and B at the same time, it should output:
A True B True C False
But I only have:
A True B False C False
The text was updated successfully, but these errors were encountered:
I'd like to detect if 2 or 3 buttons are pressed at the same time.
Is it possible to do that?
With the following code:
If I pressed A and B at the same time, it should output:
But I only have:
The text was updated successfully, but these errors were encountered: