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 am trying to make a piece of code where I want any button press to interrupt the loop. I am doing so exactly as the examples do, and the documentation suggests:
btn = Button()
while not btn.any():
[Insert code here]
However, it seems that this doesn't work and the loop never initiates. I checked the buttons_pressed and it shows all buttons pressed, but none of them have been pressed at all. Any idea why, or how I solve this?
Activity
ddemidov commentedon Apr 17, 2017
This might be related to #286, #288. That is, you might have ev3dev kernel and the python library out of sync.
WasabiFan commentedon Apr 17, 2017
This is why we ask for specific version numbers 😉 You need to tell us the version number of both ev3dev and python-ev3dev.
pipothy commentedon Apr 17, 2017
Hi all, thanks a lot!
Kernel version is 4.4.32-17-ev3dev-ev3
python-ev3dev is 0.8.1.
I assume I need to do an upgrade...
ddemidov commentedon Apr 17, 2017
Yes, the inverted buttons issue was fixed in 18-ev3dev kernel.
ensonic commentedon May 2, 2017
Close issue?
pipothy commentedon May 2, 2017
This did indeed fix it so yes, this can be closed