Loading...
 
Skip to main content

System Workbench for STM32


how to convert stm32f103 usb mouse example to keyboard?

I have stm32 performance stick (stm32f103rbt6 micro-controller) with stm32-IO-board. I want to create a usb hid keyboard with it. But the example code given along with it is for USB mouse.

I know I have to change the HID report descriptors and other descriptors according to keyboard, and I have to write key scan program. Is it enough or do I have make any other changes.

Here is the usb mouse example.usb mouse example

change the usb "HID" descriptor from mouse to keyboard
you may have also to review the usb confg (more than 4 byte per packet)

i did that for Mousse to gaempad and it wasvery easy
But for kayboard it may not be so straigt forward or simple