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?
Using EV3Dev's latest flash file, Python 3.4.2.
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?
Using EV3Dev's latest flash file, Python 3.4.2.