summaryrefslogtreecommitdiff
path: root/keyboards/annepro2/annepro2.c
diff options
context:
space:
mode:
authorFlorian <Metaln00b@web.de>2022-03-18 18:24:43 +0100
committerGitHub <noreply@github.com>2022-03-18 17:24:43 +0000
commit773242503ca7e12f7a77a588789640d0dbde8c04 (patch)
treee6482b814a42ebc117aa7d769c39fd3309fad90e /keyboards/annepro2/annepro2.c
parented773ab73cab83b842dc62ff94ffb337ec66a5f3 (diff)
downloadqmk_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.c9
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();