diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-07-25 12:18:36 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-07-25 12:18:36 -0700 |
commit | 723d338c624015dd68d5e7e7a0f96b3986151285 (patch) | |
tree | 85da600037f7f69617806912a9ea4b3fb0aaa34b /keyboards/e6v2/le/le.c | |
parent | 0fa192091c142a35a166930e63cdaf80bf83a229 (diff) |
Keyboard: E6V2 LE Improvements (#3486)
* fix for that stupid LED
* formatting changes and add firmware flashing warning to readmes
* update readme with more info
* add LAYOUT_60_ansi thanks to help from phlop
* add configurator support for 60_ansi
* add 60_ansi for community layout support
Diffstat (limited to 'keyboards/e6v2/le/le.c')
-rw-r--r-- | keyboards/e6v2/le/le.c | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/keyboards/e6v2/le/le.c b/keyboards/e6v2/le/le.c index b99a57bca8..f27bdc113b 100644 --- a/keyboards/e6v2/le/le.c +++ b/keyboards/e6v2/le/le.c @@ -21,24 +21,13 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { return process_record_user(keycode, record); } -void led_set_kb(uint8_t usb_led) { - // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here - DDRB |= (1<<7); - if (usb_led & (1<<USB_LED_CAPS_LOCK)) { - // output low - DDRB |= (1<<2); - PORTB &= ~(1<<2); - } else { - // Hi-Z - DDRB &= ~(1<<2); - PORTB &= ~(1<<2); - } - if (usb_led == 0){ - PORTB |= (1<<7); +void led_set_user(uint8_t usb_led) { + if (usb_led & (1 << USB_LED_CAPS_LOCK)) { + DDRB |= (1 << 7); + PORTB &= ~(1 << 7); + } else { + DDRB &= ~(1 << 7); + PORTB &= ~(1 << 7); } - else{ - PORTB &= ~(1<<7); - } - - led_set_user(usb_led); } + |