diff options
Diffstat (limited to 'keyboards/kbd8x/kbd8x.c')
-rw-r--r-- | keyboards/kbd8x/kbd8x.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/keyboards/kbd8x/kbd8x.c b/keyboards/kbd8x/kbd8x.c index 51e7852412..af7ab7a07f 100644 --- a/keyboards/kbd8x/kbd8x.c +++ b/keyboards/kbd8x/kbd8x.c @@ -39,5 +39,26 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { void led_set_kb(uint8_t usb_led) { // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here + if(usb_led & (1<<USB_LED_NUM_LOCK)) + { + num_led_on(); + } else { + num_led_off(); + } + + if(usb_led & (1<<USB_LED_CAPS_LOCK)) + { + caps_led_on(); + } else { + caps_led_off(); + } + + if(usb_led & (1<<USB_LED_SCROLL_LOCK)) + { + scroll_led_on(); + } else { + scroll_led_off(); + } + led_set_user(usb_led); } |