From 773242503ca7e12f7a77a588789640d0dbde8c04 Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 18 Mar 2022 18:24:43 +0100 Subject: annepro2: Add more LED functionalities to default-layer-indicators (#16676) --- keyboards/annepro2/annepro2.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'keyboards/annepro2/annepro2.c') 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(); -- cgit v1.2.1