From 707d449ba0f69acbc0580e6f898fa2203ec992ba Mon Sep 17 00:00:00 2001 From: Sid Carter Date: Fri, 13 Dec 2019 12:14:11 -0500 Subject: Project Keyboard Alice PCB - Indicator LEDs and keymap update (#7442) * allow main functions to be overridden * update keymap to toggle keys and cleanup a bit * allow main functions to be overridden * update keymap to toggle keys and cleanup a bit * get them lights working with the new setup * disable console on my keymap, cause ARM and Linux, for now * update keymap * add home and end to the navigation * thought this was redundant - update keyboards/projectkb/alice/alice.c Co-Authored-By: fauxpark --- keyboards/projectkb/alice/alice.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'keyboards/projectkb/alice/alice.c') diff --git a/keyboards/projectkb/alice/alice.c b/keyboards/projectkb/alice/alice.c index fada436811..ca0c7da2be 100644 --- a/keyboards/projectkb/alice/alice.c +++ b/keyboards/projectkb/alice/alice.c @@ -6,22 +6,12 @@ void matrix_init_board(void){ setPinOutput(A2); } - -void led_set_kb(uint8_t usb_led) { - if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { - writePinLow(A0); - } else { - writePinHigh(A0); - } - if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { - writePinLow(A1); - } else { - writePinHigh(A1); - } - if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { - writePinLow(A2); - } else { - writePinHigh(A2); +bool led_update_kb(led_t led_state) { + bool runDefault = led_update_user(led_state); + if (runDefault) { + writePin(A0, !led_state.num_lock); + writePin(A1, !led_state.caps_lock); + writePin(A2, !led_state.scroll_lock); } - led_set_user(usb_led); + return runDefault; } -- cgit v1.2.3