Browse Source

[Keyboard] Update space65.c to fix caps lock LED (#6375)

pull/6387/head
trinity1561 4 years ago
committed by Drashna Jaelre
parent
commit
b3cdc7ef70
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      keyboards/gray_studio/space65/space65.c

+ 3
- 2
keyboards/gray_studio/space65/space65.c View 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,9 +40,9 @@ 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)) {
writePinHigh(E6);
} else {
writePinLow(E6);
} else {
writePinHigh(E6);
}
led_set_user(usb_led);


Loading…
Cancel
Save