1
0
Fork 0

[Keyboard] Misc tidyups for Chidori (#8091)

This commit is contained in:
fauxpark 2020-02-08 13:50:42 +11:00 committed by GitHub
parent 707c04b4ab
commit 3b1f29a5d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 59 additions and 169 deletions

View file

@ -162,15 +162,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
void led_set_user(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
board_set_led_by_index(0, LED_YELLOW, true);
} else {
board_set_led_by_index(0, LED_YELLOW, false);
}
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
board_set_led_by_index(1, LED_YELLOW, true);
} else {
board_set_led_by_index(1, LED_YELLOW, false);
}
bool led_update_user(led_t led_state) {
board_set_led_by_index(0, LED_YELLOW, led_state.caps_lock);
board_set_led_by_index(1, LED_YELLOW, led_state.scroll_lock);
return false;
}