I've developed a USB HID mouse with the STM32F103C8T6 using STM32CubeMX and Keil uVision 5.
Everything works fine so far (I've used the default mouse descriptor generated by CubeMX).
But now, I've added a LED to the mouse and I'd like to turn it on from my PC.
I've already made a python program that turns a LED on connnected to the STM32 through USB HID.
However, I wasn't able to make a whole program that manages both mouse and LED.
- Do you know how could I make this work?
- How should I define the mouse descriptor to handle the LED?