|
|
@ -22,7 +22,25 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
|
|
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
|
|
|
|
DDRB |= (1<<7);
|
|
|
|
|
|
|
|
DDRC |= (1<<5) | (1<<6);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print_dec(usb_led);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1<<USB_LED_CAPS_LOCK))
|
|
|
|
|
|
|
|
PORTC &= ~(1<<5);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
PORTC |= (1<<5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1<<USB_LED_NUM_LOCK))
|
|
|
|
|
|
|
|
PORTB &= ~(1<<7);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
PORTB |= (1<<7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1<<USB_LED_SCROLL_LOCK))
|
|
|
|
|
|
|
|
PORTC &= ~(1<<6);
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
PORTC |= (1<<6);
|
|
|
|
|
|
|
|
|
|
|
|
led_set_user(usb_led);
|
|
|
|
led_set_user(usb_led);
|
|
|
|
}
|
|
|
|
}
|
|
|
|