summaryrefslogtreecommitdiffstats
path: root/keyboards/jc65/jc65.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jc65/jc65.c')
-rw-r--r--keyboards/jc65/jc65.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/keyboards/jc65/jc65.c b/keyboards/jc65/jc65.c
index 82b1d5741..6f51c0d6e 100644
--- a/keyboards/jc65/jc65.c
+++ b/keyboards/jc65/jc65.c
@@ -23,6 +23,14 @@ 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_CAPS_LOCK)) {
+ // output low
+ DDRB |= (1<<2);
+ PORTB &= ~(1<<2);
+ } else {
+ // Hi-Z
+ DDRB &= ~(1<<2);
+ PORTB &= ~(1<<2);
+ }
led_set_user(usb_led);
}