3 void led_set_user(uint8_t usb_led) {
5 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
6 DDRC |= (1 << 6); PORTC &= ~(1 << 6);
8 DDRC &= ~(1 << 6); PORTC &= ~(1 << 6);
11 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
12 DDRC |= (1 << 7); PORTC &= ~(1 << 7);
14 DDRC &= ~(1 << 7); PORTC &= ~(1 << 7);
17 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
18 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
20 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);