mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
Remove lock LED example in quantum.c (#5636)
* 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
This commit is contained in:
parent
f14629ed1c
commit
26bbf6a66a
1 changed files with 0 additions and 17 deletions
|
@ -1581,23 +1581,6 @@ void led_init_ports(void)
|
||||||
__attribute__ ((weak))
|
__attribute__ ((weak))
|
||||||
void led_set(uint8_t usb_led)
|
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)
|
#if defined(BACKLIGHT_CAPS_LOCK) && defined(BACKLIGHT_ENABLE)
|
||||||
// Use backlight as Caps Lock indicator
|
// Use backlight as Caps Lock indicator
|
||||||
uint8_t bl_toggle_lvl = 0;
|
uint8_t bl_toggle_lvl = 0;
|
||||||
|
|
Loading…
Reference in a new issue