]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/jc65/jc65.c
ARM audio fixes, stack size increase (#2365)
[qmk_firmware.git] / keyboards / jc65 / jc65.c
index 82b1d57416059f9704066e2a324ec43c1df612cc..6f51c0d6e6a6d6c0d7e71ff030dfaf802fa1b467 100644 (file)
@@ -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);
 }