led fix (#6672)
This commit is contained in:
parent
6d191635d0
commit
12812fa6a4
2 changed files with 14 additions and 15 deletions
|
@ -62,7 +62,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
)
|
||||
};
|
||||
|
||||
|
||||
void keyboard_pre_init_user(void) {
|
||||
// Call the keyboard pre init code.
|
||||
|
||||
|
@ -75,19 +74,19 @@ void keyboard_pre_init_user(void) {
|
|||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
||||
writePinLow(D5);
|
||||
} else {
|
||||
writePinHigh(D5);
|
||||
} else {
|
||||
writePinLow(D5);
|
||||
}
|
||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
||||
writePinLow(D3);
|
||||
} else {
|
||||
writePinHigh(D3);
|
||||
} else {
|
||||
writePinLow(D3);
|
||||
}
|
||||
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
||||
writePinLow(D2);
|
||||
} else {
|
||||
writePinHigh(D2);
|
||||
} else {
|
||||
writePinLow(D2);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,4 +100,4 @@ uint32_t layer_state_set_user(uint32_t state) {
|
|||
break;
|
||||
}
|
||||
return state;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue