You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
657 B

  1. #include "xd60.h"
  2. extern inline void xd60_caps_led_on(void);
  3. extern inline void xd60_bl_led_on(void);
  4. extern inline void xd60_caps_led_off(void);
  5. extern inline void xd60_bl_led_off(void);
  6. void led_set_kb(uint8_t usb_led) {
  7. // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
  8. if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
  9. xd60_caps_led_on();
  10. } else {
  11. xd60_caps_led_off();
  12. }
  13. // if (usb_led & (1<<USB_LED_NUM_LOCK)) {
  14. // xd60_esc_led_on();
  15. // } else {
  16. // xd60_esc_led_off();
  17. // }
  18. // if (usb_led & (1<<USB_LED_SCROLL_LOCK)) {
  19. // xd60_fn_led_on();
  20. // } else {
  21. // xd60_fn_led_off();
  22. // }
  23. led_set_user(usb_led);
  24. }