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

QT Py M0 Haxpress hangs when using HID Library #57

Closed
jfurcean opened this issue Jan 28, 2021 · 1 comment
Closed

QT Py M0 Haxpress hangs when using HID Library #57

jfurcean opened this issue Jan 28, 2021 · 1 comment

Comments

@jfurcean
Copy link
Contributor

jfurcean commented Jan 28, 2021

Program hangs when using the adafruit_hid library on the QT Py M0 Haxpress. I could not replicate the issue on either the plain QT Py M0 or the Feather M4 Express. See the below example code. The mouse moves for a few seconds and then hangs. This issue occurs when the reset button is press or the board is unplugged and plugged back in. It does not occur when code.py is saved to the board.

import time
import usb_hid
from adafruit_hid.mouse import Mouse

m = Mouse(usb_hid.devices)

while True:
    m.move(10, 0, 0)
    time.sleep(.05)
    m.move(-10,0,0)
    time.sleep(.05)

The issue was originally raised in adafruit_nunchuk library: adafruit/Adafruit_CircuitPython_Nunchuk#22

Edit: this occurs on MacOS and couldn't be duplicated on Linux or Windows.

@dhalbert
Copy link
Collaborator

dhalbert commented May 4, 2021

This was a CircuitPython problem (Gamepad HID device in wrong order for MacOS) and should have been fixed by adafruit/circuitpython#4558. If it still happens, please open an issue in https://github.com/adafruit/circuitpython.

@dhalbert dhalbert closed this as completed May 4, 2021
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