summaryrefslogtreecommitdiff
path: root/keyboards/annepro2/annepro2.c
diff options
context:
space:
mode:
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();