2022-10-10 01:33 AM
hi,
I need to have a code example for understand how have a keyboard and mouse in one project, can you help me please!
2022-10-10 12:56 PM
Hello @goobinooz and welcome to the Community :)
Which device are you using?
I advise you to check the HID example within STM32Cube MCU package relevant to your device.
Have a look at these resources:
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
2022-10-10 01:12 PM
I use STM32F103C8Tx but your example refer to one interface but me I want two interface and the training not responding to my needed, I want emulate a mouse + a keyboard in my code
2022-10-10 01:59 PM
You'd need to create a CONFIGURATION descriptor describing ALL the HID devices you want
A "Composite" device would be one offering more than one class. That would use a INTERFACE descriptor
On a MSC Class device you'd allow for multiple LUN (Logical Unit Number), and the OS could then Inquire the nature of each, ie name, size (sector, capacity), type (optical, magnetic, etc), using standard SCSI/ATAPI type command set.
2022-10-10 02:09 PM
can I have a exemple of code because my competences are so limited