]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Remove lock LED example in quantum.c (#5636)
authorfauxpark <fauxpark@gmail.com>
Tue, 16 Jul 2019 06:05:07 +0000 (16:05 +1000)
committerskullydazed <skullydazed@users.noreply.github.com>
Tue, 16 Jul 2019 06:05:07 +0000 (23:05 -0700)
* Use GPIO helper defines in backlighting

* While I'm here, fix up the lock LED example too

* Remove the example altogether, it's already documented

quantum/quantum.c

index 6530738b71d38c10eca656d97e1f98c3ed58e133..44635fe3e17fb4ec1c7a432e9266ec4d297b9ef8 100644 (file)
@@ -1581,23 +1581,6 @@ void led_init_ports(void)
 __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))
-    // {
-    //     // Output high.
-    //     DDRE |= (1<<6);
-    //     PORTE |= (1<<6);
-    // }
-    // else
-    // {
-    //     // Output low.
-    //     DDRE &= ~(1<<6);
-    //     PORTE &= ~(1<<6);
-    // }
-
 #if defined(BACKLIGHT_CAPS_LOCK) && defined(BACKLIGHT_ENABLE)
   // Use backlight as Caps Lock indicator
   uint8_t bl_toggle_lvl = 0;