1 #include QMK_KEYBOARD_H
3 #define FN1_Q LT(1, KC_Q)
5 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
7 [0] = LAYOUT_ortho_3x10(
8 FN1_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
9 KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ESC,
10 KC_Z, KC_X, KC_C, KC_V, KC_BSPC, KC_SPC, KC_B, KC_N, KC_M, KC_ENT
13 [1] = LAYOUT_ortho_3x10(
14 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
15 _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_INC,
16 _______, _______, _______, _______, _______, _______, RESET, _______, _______, BL_DEC
21 void matrix_init_user(void) {
24 void matrix_scan_user(void) {
27 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
31 void led_set_user(uint8_t usb_led) {
33 if (usb_led & (1 << USB_LED_NUM_LOCK)) {
34 DDRD |= (1 << 5); PORTD &= ~(1 << 5);
36 DDRD &= ~(1 << 5); PORTD &= ~(1 << 5);
39 if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
40 DDRB |= (1 << 0); PORTB &= ~(1 << 0);
42 DDRB &= ~(1 << 0); PORTB &= ~(1 << 0);
45 if (usb_led & (1 << USB_LED_SCROLL_LOCK)) {
51 if (usb_led & (1 << USB_LED_COMPOSE)) {
57 if (usb_led & (1 << USB_LED_KANA)) {