1
0
Fork 0

annepro2: Add more LED functionalities to default-layer-indicators (#16676)

This commit is contained in:
Florian 2022-03-18 18:24:43 +01:00 committed by GitHub
parent ed773ab73c
commit 773242503c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -192,6 +192,15 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
ap2_led_reset_foreground_color();
break;
case KC_AP_LED_TOG:
if (ap2_led_status.matrix_enabled) {
ap2_led_disable();
} else {
ap2_led_enable();
ap2_led_reset_foreground_color();
}
break;
case KC_AP_LED_NEXT_PROFILE:
ap2_led_next_profile();
ap2_led_reset_foreground_color();