diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2020-02-24 12:04:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 12:04:40 -0800 |
commit | ef8878fba5d3786e3f9c66436da63a560cd36ac9 (patch) | |
tree | 43a601cc661445a7389bd0f6125afe93c6f1c6dc /keyboards/hineybush/h87a/keymaps/default | |
parent | f673c965ba79f5354c1634466ef2167304ce9f35 (diff) |
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
Diffstat (limited to 'keyboards/hineybush/h87a/keymaps/default')
-rw-r--r-- | keyboards/hineybush/h87a/keymaps/default/keymap.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/keyboards/hineybush/h87a/keymaps/default/keymap.c b/keyboards/hineybush/h87a/keymaps/default/keymap.c index 8aa116c93e..abca0b199c 100644 --- a/keyboards/hineybush/h87a/keymaps/default/keymap.c +++ b/keyboards/hineybush/h87a/keymaps/default/keymap.c @@ -46,24 +46,3 @@ void matrix_scan_user(void) { bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; } - -void led_init_ports(void) { - DDRD |= (1<<5); // OUT - DDRE |= (1<<6); // OUT -} - -void led_set_user(uint8_t usb_led) { - - if (usb_led & (1 << USB_LED_CAPS_LOCK)) { - DDRD |= (1 << 5); PORTD &= ~(1 << 5); - } else { - DDRD &= ~(1 << 5); PORTD &= ~(1 << 5); - } - - if (usb_led & (1 << USB_LED_SCROLL_LOCK)) { - DDRE |= (1 << 6); PORTE &= ~(1 << 6); - } else { - DDRE &= ~(1 << 6); PORTE &= ~(1 << 6); - } - -} |