Transfer data from PC to STM32 using USB HID
Hi there,
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?
Peace
#keil-uvision5 #stm32f103c8t6 #stm32cubemx #usb-hid #stm-32 #custom-usb-hid-device #usb-hid-mouse-device #stm32cubemx(hal)