diff options
author | Florian <Metaln00b@web.de> | 2022-03-18 18:24:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 17:24:43 +0000 |
commit | 773242503ca7e12f7a77a588789640d0dbde8c04 (patch) | |
tree | e6482b814a42ebc117aa7d769c39fd3309fad90e /keyboards/annepro2/annepro2.c | |
parent | ed773ab73cab83b842dc62ff94ffb337ec66a5f3 (diff) | |
download | qmk_firmware-773242503ca7e12f7a77a588789640d0dbde8c04.tar.gz qmk_firmware-773242503ca7e12f7a77a588789640d0dbde8c04.zip |
annepro2: Add more LED functionalities to default-layer-indicators (#16676)
Diffstat (limited to 'keyboards/annepro2/annepro2.c')
-rw-r--r-- | keyboards/annepro2/annepro2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/annepro2/annepro2.c b/keyboards/annepro2/annepro2.c index 8767265315..0f49f93104 100644 --- a/keyboards/annepro2/annepro2.c +++ b/keyboards/annepro2/annepro2.c @@ -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(); |