Skip to content

usb_hid not working #4724

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

Closed
jerryneedell opened this issue May 7, 2021 · 1 comment · Fixed by #4734
Closed

usb_hid not working #4724

jerryneedell opened this issue May 7, 2021 · 1 comment · Fixed by #4734
Assignees
Milestone

Comments

@jerryneedell
Copy link
Collaborator

jerryneedell commented May 7, 2021

I just built CP forom the tip of main for the neopixel_trinkey_m0
but now usb_hid is not working.
I had the same issue on the neopixel_trinkey_m0 and the pirkey_m0

Edited to add -- I get the same error on a QTPY_RP2040


Adafruit CircuitPython 7.0.0-alpha.1-1088-g2fe1df466 on 2021-05-07; Adafruit NeoPixel Trinkey M0 with samd21e18
>>> import usb_hid
>>> from adafruit_hid.keyboard import Keyboard
>>> keyboard = Keyboard(usb_hid.devices)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "adafruit_hid/keyboard.py", line 65, in __init__
  File "adafruit_hid/keyboard.py", line 113, in release_all
OSError: USB Busy
>>> 
@tannewt tannewt added this to the 7.0.0 milestone May 7, 2021
@chowha
Copy link

chowha commented May 8, 2021

Same with me using the RP Pico using mouse in the latest build (adafruit-circuitpython-raspberry_pi_pico-en_US-20210507-f761292.uf2)

Seems to fail in the same place but in mouse.py when initializing at the section below.

try:
self._send_no_move()
except OSError:
time.sleep(1)
self._send_no_move()

With the error:

Traceback (most recent call last):
File "", line 7, in
File "/lib/adafruit_hid/mouse.py", line 49, in init
File "/lib/adafruit_hid/mouse.py", line 143, in _send_no_move
OSError: USB Busy

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

Successfully merging a pull request may close this issue.

4 participants