Skip to content

How to create a specific HID input device (for Windows) with Arduino-Pico? #1931

Answered by earlephilhower
FerGT50 asked this question in Q&A
Discussion options

You must be logged in to vote

You're going to need to make a compound USB device. One HID node with 1 joystick report, and one CDC node. The CDC stuff is not part of the HID report structure/etc.

See how the combined USB descriptor is made in the core. You then service the CDC callbacks and the HID callbacks separately.

You might also get a better response posting this question in the Adafruit TinyUSB repo since I'm pretty sure you're not the first person to try this. :)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@FerGT50
Comment options

Comment options

You must be logged in to vote
2 replies
@earlephilhower
Comment options

Answer selected by FerGT50
@FerGT50
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants