diff options
author | Joel Challis <git@zvecr.com> | 2020-11-21 19:11:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-21 19:11:24 +0000 |
commit | 23222625c201cd960a5b4a99ee52e74d4c13bba9 (patch) | |
tree | 0fc0f24d2a60fb9e327debaca0b9fac72716487a /keyboards/al1/al1.c | |
parent | 4368611bfd87a544689ed10bb4450a39314bf1a1 (diff) |
Refactor to use led config - Part 5 (#10975)
* Refactor to use led config
* Refactor to use led config
* Refactor to use led config
Diffstat (limited to 'keyboards/al1/al1.c')
-rw-r--r-- | keyboards/al1/al1.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/keyboards/al1/al1.c b/keyboards/al1/al1.c index e50a6373b4..460a7620cf 100644 --- a/keyboards/al1/al1.c +++ b/keyboards/al1/al1.c @@ -14,27 +14,3 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "al1.h" - -bool process_record_kb(uint16_t keycode, keyrecord_t *record) { - return process_record_user(keycode, record); -} - -void led_set_kb(uint8_t usb_led) { - CONFIG_LED_IO; - print_dec(usb_led); - if (usb_led & (1<<USB_LED_CAPS_LOCK)) - PORTB &= ~(1<<7); - else - PORTB |= (1<<7); - - if (usb_led & (1<<USB_LED_NUM_LOCK)) - PORTD &= ~(1<<0); - else - PORTD |= (1<<0); - - if (usb_led & (1<<USB_LED_SCROLL_LOCK)) - PORTD &= ~(1<<1); - else - PORTD |= (1<<1); - led_set_user(usb_led); -} |