|
|
@ -18,46 +18,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void matrix_init_user(void) {
|
|
|
|
void keyboard_pre_init_user(void) {
|
|
|
|
}
|
|
|
|
// Call the keyboard pre init code.
|
|
|
|
|
|
|
|
|
|
|
|
void matrix_scan_user(void) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
|
|
// Set our LED pins as output
|
|
|
|
return true;
|
|
|
|
setPinOutput(D5);
|
|
|
|
|
|
|
|
setPinOutput(B0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void led_set_user(uint8_t usb_led) {
|
|
|
|
void led_set_user(uint8_t usb_led) {
|
|
|
|
|
|
|
|
if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
|
|
|
|
if (usb_led & (1 << USB_LED_NUM_LOCK)) {
|
|
|
|
writePinLow(D5);
|
|
|
|
DDRD |= (1 << 5); PORTD &= ~(1 << 5);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
|
|
|
|
|
|
|
|
DDRB |= (1 << 0); PORTB &= ~(1 << 0);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1 << USB_LED_COMPOSE)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
writePinHigh(D5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (usb_led & (1 << USB_LED_KANA)) {
|
|
|
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
|
|
|
|
|
|
|
writePinLow(B0);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
writePinHigh(B0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|