From da7c6e552eca6e7a0e26b422decb47c938b1a659 Mon Sep 17 00:00:00 2001 From: vitvlkv Date: Fri, 10 Sep 2021 00:47:13 +0300 Subject: [PATCH] Uncommented some code regarding the ProMicro LEDs --- .../avalanche/keymaps/default_v1/keymap.c | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/keyboards/avalanche/keymaps/default_v1/keymap.c b/keyboards/avalanche/keymaps/default_v1/keymap.c index 5d024b9914d..cfeae62fffe 100644 --- a/keyboards/avalanche/keymaps/default_v1/keymap.c +++ b/keyboards/avalanche/keymaps/default_v1/keymap.c @@ -38,20 +38,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), }; -// void matrix_init_kb(void) { -// led_init_ports(); -// } +void matrix_init_kb(void) { + led_init_ports(); +} -// void led_init_ports(void) { -// setPinOutput(B0); -// writePinLow(B0); -// } +void led_init_ports(void) { + setPinOutput(B0); + writePinLow(B0); +} -// void led_set_kb(uint8_t usb_led) { -// if (usb_led & (1 << USB_LED_CAPS_LOCK)) { -// writePinLow(B0); -// } else { -// writePinHigh(B0); -// } -// led_set_user(usb_led); -// } +void led_set_kb(uint8_t usb_led) { + if (usb_led & (1 << USB_LED_CAPS_LOCK)) { + writePinLow(B0); + } else { + writePinHigh(B0); + } + led_set_user(usb_led); +}