Closed
Description
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
Labels
No labels