Skip to content

QT Py M0 Haxpress hangs when using HID Library  #57

Closed
@jfurcean

Description

@jfurcean

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions