]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/led.c
readme added
[qmk_firmware.git] / quantum / led.c
index 2c05746607df349b6e9c99bcabf527c5b5584aa2..208e348f345dac623a27bec31eb31894304b6901 100644 (file)
@@ -19,9 +19,17 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "stdint.h"
 #include "led.h"
 
+__attribute__ ((weak))
+void led_set_kb(uint8_t usb_led) {
 
+}
+
+__attribute__ ((weak))
 void led_set(uint8_t usb_led)
 {
+
+       // Example LED Code
+       //
     // // Using PE6 Caps Lock LED
     // if (usb_led & (1<<USB_LED_CAPS_LOCK))
     // {
@@ -35,4 +43,6 @@ void led_set(uint8_t usb_led)
     //     DDRE &= ~(1<<6);
     //     PORTE &= ~(1<<6);
     // }
+
+       led_set_kb(usb_led);
 }