clst Guest
|
How to get HID-keyboard LED status? |
Posted: Wed Jan 13, 2010 10:04 pm |
|
|
I have a problem with my PIC18F2550 when trying the USB-HID-Keyboard in the ex_usb_kbmouse.c example. I can't get the value of LED status, such as NUM LOCK, CAPS LOCK, etc, from PC.
How to get the value of LED status? (** value of "leds" always ZERO!)
Code: |
//receive NUM LOCK, CAPS LOCK, etc LED status from PC.
//we won't do anything with it.
if (usb_kbhit(2))
{
usb_get_packet(2, &leds, 1);
}
|
What should I do?
Best Regards, |
|