Hineybush h87a lock indicators (#8237)

* move lighting code from VIA into the keyboard's .c file so that every keymap can access it

* after some serious conversations with default and wkl, they agreed to let me modify their keymaps. They weren't too happy
This commit is contained in:
MechMerlin
2020-02-24 12:04:40 -08:00
committed by GitHub
parent f673c965ba
commit ef8878fba5
4 changed files with 10 additions and 56 deletions

View File

@@ -46,26 +46,3 @@ void matrix_scan_user(void) {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
void led_init_ports(void) {
setPinOutput(D5);
setPinOutput(E6);
}
void led_set_user(uint8_t usb_led) {
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
setPinOutput(D5);
writePinLow(D5);
} else {
setPinInput(D5);
}
if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
setPinOutput(E6);
writePinLow(E6);
} else {
setPinInput(E6);
}
}