This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[nRF52840][usbd_hid_composite] How does Windows transmit CAPS LOCK state to the device without output endpoint?

Hello, I am a new bee in using nRF52840. I have looked into the given example in SDK called usbd_hid_composite (infocenter.nordicsemi.com/index.jsp. It worked well in my computer. I can use the four buttons and see the LEDs turning on and off when I press CAPS LOCK. I noticed in the codes two input endpoint are set to transmit the button states, but I did not see any output endpoint from Windows to transmit CAPS LOCK state. Then how does the board know the CAPS LOCK state and reflect it with LEDs?

Also, I want to change the original code later. The default keyboard output letter is "g" when the button 4 is pressed. I want to have a output endpoint from PC and then I can change the letter from the PC side. Is this realizable? Does anyone know how to do that?

Thank you for your support in advance.

Kind regards,

Louis

Related