Open dmcnaugh opened 4 years ago
OK. Feeling a bit proud of what I've been able to do here. I have only been looking into modifying the code for the CH559 and trying to understand the USB HID protocol for a few days now... (never done anything with an 8051 or USB before).
But I have this working! In response to data received over the serial interface the CH559 now sends the correct transaction to the USB keyboard to set the LEDs.
I will spend a bit more time testing it and making it robust. Then I will put together a PR for your consideration.
In the HID specification for keyboards, the keyboard is not responsible for setting its own LEDs for
it is up to the driver on the USB host side to send the command to the keyboard to set/unset these LEDs as required.
With the current implementation is this possible?