Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ev3 Buttons wait_for_bump #407

Closed
dickric opened this issue Dec 19, 2018 · 2 comments
Closed

ev3 Buttons wait_for_bump #407

dickric opened this issue Dec 19, 2018 · 2 comments

Comments

@dickric
Copy link

dickric commented Dec 19, 2018

Hello,

how can I use the Objekt "wait_for_bump" in the Button Class.
I become the following Errormessage.

Wait for Bump
Traceback (most recent call last):
File "test.py", line 22, in
btnb.wait_for_bump(left, 500)
File "/usr/lib/python3/dist-packages/ev3dev2/button.py", line 203, in wait_for_bump
if self.wait_for_pressed(buttons, timeout_ms):
File "/usr/lib/python3/dist-packages/ev3dev2/button.py", line 191, in wait_for_pressed
return self._wait(buttons, [], timeout_ms)
File "/usr/lib/python3/dist-packages/ev3dev2/button.py", line 168, in _wait
for event in self.evdev_device.read_loop():
File "/usr/lib/python3/dist-packages/ev3dev2/button.py", line 122, in evdev_device
if device.name == self.evdev_device_name:
AttributeError: 'ButtonBase' object has no attribute 'evdev_device_name'

@WasabiFan
Copy link
Member

This repository is for the ev3dev.org website, but I think your issue is about the Python library. Please open an issue there instead: https://github.com/ev3dev/ev3dev-lang-python/issues

@WasabiFan
Copy link
Member

closed in favor of ev3dev/ev3dev-lang-python#584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants