-
Hi all, this is my first USB project and I've got a descriptor set up and my computer is seeing my device as a USB joystick. the only issue I have is, I don't know how to send the data (button presses and axis info) to the host, I've searched, but all I can find is mouse and keyboard examples. so I've no idea what function or how to structure the data needed. any help would be grateful. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
All depends how is descriptor prepared. Maybe here you can find inspiration: |
Beta Was this translation helpful? Give feedback.
-
thank you, I actually started down that road by guesswork. i guess I found the issue, tud_hid_ready() always returns false. any idea what could cause this? Thanks again. |
Beta Was this translation helpful? Give feedback.
-
have you try one of the stock hid example such as hid_composite (with/wihtout freertos), try to see if that works for you and start there. Also, when asking for advice, you should provide more about your set up (OS, mcu, board, toolchain IDE etc ...). That will save time for people from doing guessing and generic answer. |
Beta Was this translation helpful? Give feedback.
have you try one of the stock hid example such as hid_composite (with/wihtout freertos), try to see if that works for you and start there. Also, when asking for advice, you should provide more about your set up (OS, mcu, board, toolchain IDE etc ...). That will save time for people from doing guessing and generic answer.