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
Possibly similar to this, but the error looks different.
Traceback (most recent call last):
File "/home/robot/testing/prog.py", line 4, in <module>
btn = ev3.Button()
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 2554, in __init__
self._file_cache[name] = open(name, 'rb', 0)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/input/by-path/platform-gpio-keys.0-event'
#!/usr/bin/env python3
import ev3dev.ev3 as ev3
btn = ev3.Button()
# Is 'Left' button pressed?
print('yes' if btn.left else 'no')
# Check if any buttons are pressed:
print('yes' if btn.any() else 'no')
The text was updated successfully, but these errors were encountered:
It appears that Buttons do not work.
I'm using the latest ev3dev stretch on my ev3, with no modifications/additional installs.
Possibly similar to this, but the error looks different.
Minimum example, copied from here.
The text was updated successfully, but these errors were encountered: