]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
[Keyboard] Added capslock LED support to the Doro67 Multi PCB. (#5875)
authorNicholas Shaff <nick@shadedream.com>
Wed, 15 May 2019 02:31:36 +0000 (21:31 -0500)
committerDrashna Jaelre <drashna@live.com>
Wed, 15 May 2019 02:31:36 +0000 (19:31 -0700)
keyboards/doro67/multi/multi.c

index 477ab245c34b32edcf7a419e8a0aa2b3ede14c10..14e3359c1af6c379453eb1827df23a108e9d6b8f 100644 (file)
@@ -19,6 +19,7 @@ void matrix_init_kb(void) {
        // put your keyboard start-up code here
        // runs once when the firmware starts up
 
+    setPinOutput(E6);
        matrix_init_user();
 }
 
@@ -39,5 +40,11 @@ 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 (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+               writePinLow(E6);
+       } else {
+               writePinHigh(E6);
+       }
+
        led_set_user(usb_led);
 }