3 void led_set_kb(uint8_t usb_led) {
4 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
5 DDRC |= (1 << 6); PORTC &= ~(1 << 6);
7 DDRC &= ~(1 << 6); PORTC &= ~(1 << 6);
10 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
11 DDRC |= (1 << 7); PORTC &= ~(1 << 7);
13 DDRC &= ~(1 << 7); PORTC &= ~(1 << 7);
16 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
17 DDRB |= (1 << 5); PORTB &= ~(1 << 5);
19 DDRB &= ~(1 << 5); PORTB &= ~(1 << 5);
22 led_set_user(usb_led);