void led_set(uint8_t usb_led)
{
- // if (usb_led & (1<<USB_LED_FUNCTION)) {
- // // Output high.
- // DDRF |= (1<<0);
- // PORTF |= (1<<0);
- // } else {
- // // Output low.
- // DDRF &= ~(1<<0);
- // PORTF &= ~(1<<0);
- // }
+ // 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);
+ }
}