rp-hal: rp-pico pico_usb_twitchy_mouse not working
Hi all
I am trying to build a custom USB HAL device for my rp-pico device. When I try using the pico_usb_twitchy_mouse example, I can see the USB device through lsusb, but using hidviz I am unable to see any HID devices.
For reference
- My host machine is an M1 based Mac
- I am using probe-run
output from lsusb is:
Bus 002 Device 005: ID 16c0:27da 16c0 Twitchy Mousey Serial: TEST
Regards Matt
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (9 by maintainers)
Commits related to this issue
- Set device_class of twitchy_mouse example to 0 This fixes the mouse on Mac. Closes #327 — committed to jannic/rp-hal by jannic 5 years ago
- Set device_class of twitchy_mouse example to 0 This fixes the mouse on Mac. Closes #327 — committed to rp-rs/rp-hal by jannic 5 years ago
Hey @jannic - great spot, I changed the device_class to ‘0’ and it is now working on my mac.
@m5p3nc3r could you try changing the device_class from
0xEFto0in line 116 ofpico_usb_twitchy_mouse.rs?I don’t know much about USB so I might be completely wrong, but the description of
0xEFat https://www.usb.org/defined-class-codes#anchor_BaseClassFEh doesn’t seem to fit for a mouse device, and my “real” mouse uses a device_class of 0. Perhaps that’s what makes your mac reject the device?