Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3755

Troubleshooting • Re: Raspberry Pi 5 - USB Gadget Mode

$
0
0
I've never used g_hid. On the occasions I have used the HID gadget I've used the libcomposite/configfs approach.

Older but working code here: https://github.com/thagrol/pwdgen

You also don't need two hid devices (does g_hid create more than one without being told to do so anyway?) you can use two HID reports descriptors (one for mouse and a second for keyboard) instead. That's how Pimoroni do it in their various keybow products.

Statistics: Posted by thagrol — Wed Oct 02, 2024 2:38 pm



Viewing all articles
Browse latest Browse all 3755

Trending Articles