forked from mirrors/qmk_userspace
Get rid of USB_LED_NUM_LOCK
(#21424)
This commit is contained in:
parent
7ff80a57cb
commit
9ab16e62f7
25 changed files with 91 additions and 133 deletions
|
@ -36,11 +36,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
|
||||
};
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
|
||||
bool led_update_user(led_t led_state) {
|
||||
if (led_state.num_lock) {
|
||||
// Illuminate the LED under the Num Lock key
|
||||
rgblight_sethsv_at(0, 0, 127, 1);
|
||||
} else {
|
||||
rgblight_sethsv_at(0, 0, 0, 1);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue