diff options
Diffstat (limited to 'keyboards/kc60/kc60.c')
-rw-r--r-- | keyboards/kc60/kc60.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/kc60/kc60.c b/keyboards/kc60/kc60.c new file mode 100644 index 0000000000..09b924b286 --- /dev/null +++ b/keyboards/kc60/kc60.c @@ -0,0 +1,16 @@ +#include "kc60.h" + +void led_set_kb(uint8_t usb_led) +{ + if (usb_led & (1<<USB_LED_CAPS_LOCK)) { + // output low + DDRB |= (1<<2); + PORTB &= ~(1<<2); + } else { + // Hi-Z + DDRB &= ~(1<<2); + PORTB &= ~(1<<2); + } + + led_set_user(usb_led); +}
\ No newline at end of file |