]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/e6v2/le/le.c
Keyboard: E6V2 LE Improvements (#3486)
[qmk_firmware.git] / keyboards / e6v2 / le / le.c
index b99a57bca89dc2826d1e025ea8de0922e0b70920..f27bdc113b78cb817d239764db39f6c08f6a13e2 100644 (file)
@@ -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);
 }
+