~ruther/qmk_firmware

ref: 539c8e3b721c82372c39bc49306647f65968fcb9 qmk_firmware/layouts/community/ergodox/yoruian/keymap.c -rw-r--r-- 2.1 KiB
539c8e3b — Ryan jian/rev1: convert to DIP Switch (#22248) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Copyright 2016 Thomas Fitzsimmons <fitzsim@fitzsim.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include "yoruian.h"

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ergodox_YORUIAN
(9,  7,    5,    3,    1,    GRV,  MINS, EQL,  LBRC, 0,    2,    4,    6,    8,
 ES, RBRC, Y,    O,    R,    BSLS, P3,   P3,   J,    V,    D,    F,    W,    Q,
 LC, U,    I,    A,    N,    SCLN,             M,    H,    T,    S,    C,    RC,
 FF, QUOT, COMM, DOT,  SLSH, P0,   LGUI, LGUI, K,    L,    P,    G,    B,    X,
 IN, P1,   NO,   NO,   LALT,                         LALT, NO,   NO,   Z,    PS,
                             BSPC, RALT, P2,   TAB,
                                   NO,   NO,
                       E,    LSFT, NO,   NO,   ENT,  SPC),
[1] = LAYOUT_ergodox_YORUIAN
(TR, TR,   TR,   TR,   TR,   TR,   TR,   TR,   TR,   F5,   F6,   F7,   F8,   F9,
 TR, TR,   TR,   TR,   TR,   TR,   TR,   TR,   TR,   F1,   F2,   F3,   F4,   FT,
 TR, TR,   TR,   TR,   TR,   TR,               PAUS, LEFT, DOWN, UP,   RGHT, FE,
 TR, TR,   TR,   TR,   TR,   TR,   TR,   TR,   TR,   HOME, PGDN, PGUP, END,  FW,
 TR, TR,   TR,   TR,   TR,                           TR,   TR,   TR,   TR,   TR,
                             TR,   TR,   TR,   TR,
                                   TR,   TR,
                       TR,   TR,   TR,   TR,   TR,   TR),
};

void matrix_scan_user(void) {
    ergodox_board_led_off();
    ergodox_right_led_1_off();
    ergodox_right_led_2_off();
    ergodox_right_led_3_off();
};

/*
 * Local Variables:
 * electric-indent-mode: nil
 * End:
 */