mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-05-22 07:15:29 -04:00
Get rid of USB_LED_SCROLL_LOCK
(#21405)
This commit is contained in:
parent
6e4b2f9c16
commit
326cac9ef3
1 changed files with 4 additions and 10 deletions
|
@ -85,24 +85,18 @@ void matrix_init_user(void) {
|
||||||
writePinLow(B3);
|
writePinLow(B3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void led_set_user(uint8_t usb_led) {
|
bool led_update_user(led_t led_state) {
|
||||||
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
if (led_state.num_lock) {
|
||||||
writePinHigh(B2);
|
writePinHigh(B2);
|
||||||
} else {
|
} else {
|
||||||
writePinLow(B2);
|
writePinLow(B2);
|
||||||
}
|
}
|
||||||
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
if (led_state.caps_lock) {
|
||||||
writePinHigh(B1);
|
writePinHigh(B1);
|
||||||
} else {
|
} else {
|
||||||
writePinLow(B1);
|
writePinLow(B1);
|
||||||
}
|
}
|
||||||
/*
|
return false;
|
||||||
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
|
|
||||||
writePinHigh(B3);
|
|
||||||
} else {
|
|
||||||
writePinLow(B3);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//function for layer indicator LED
|
//function for layer indicator LED
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue