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

Most upvoted comments

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 0xEF to 0 in line 116 of pico_usb_twitchy_mouse.rs?

I don’t know much about USB so I might be completely wrong, but the description of 0xEF at 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?