Browse Source

Uncommented some code regarding the ProMicro LEDs

pull/14366/head
vitvlkv 2 years ago
parent
commit
da7c6e552e
1 changed files with 15 additions and 15 deletions
  1. +15
    -15
      keyboards/avalanche/keymaps/default_v1/keymap.c

+ 15
- 15
keyboards/avalanche/keymaps/default_v1/keymap.c View File

@ -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);
}

Loading…
Cancel
Save