Commit | Line | Data |
---|---|---|
9cc1b8ed PA |
1 | /* Copyright 2020 Purdea Andrei |
2 | * | |
3 | * This program is free software: you can redistribute it and/or modify | |
4 | * it under the terms of the GNU General Public License as published by | |
5 | * the Free Software Foundation, either version 2 of the License, or | |
6 | * (at your option) any later version. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License | |
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
15 | */ | |
16 | ||
17 | #pragma once | |
18 | ||
19 | #include "quantum.h" | |
20 | ||
21 | /* This is a shortcut to help you visually see your layout. | |
22 | * | |
23 | * The first section contains all of the arguments representing the physical | |
24 | * layout of the board and position of the keys. | |
25 | * | |
26 | * The second converts the arguments into a two-dimensional array which | |
27 | * represents the switch matrix. | |
28 | */ | |
29 | ||
30 | #define LAYOUT( \ | |
31 | k31, k_1 , k_2, k_3, k_4, k_5, k_6, k_7, k_8, k_9, k_0, k_minus, k_equals, k_backspace, k_dup, k_fieldmark, \ | |
32 | k32, k_tab, k_q, k_w, k_e, k_r, k_t, k_y, k_u, k_i, k_o, k_p, k_squarebrop, k_squarebrcl, k_ins, k_del, \ | |
33 | k33, k_caps, k_a, k_s, k_d, k_f, k_g, k_h, k_j, k_k, k_l, k_semicolon, k_singlequote, k_return, k_up, k_down, \ | |
34 | k34, k_lshift, k_z, k_x, k_c, k_v, k_b, k_n, k_m, k_cm,k_period, k_fwslash, k_rshift, k_left, k_right, \ | |
35 | k_lreset, k_space, k_rctrl \ | |
36 | ) \ | |
37 | { \ | |
38 | { k31, KC_NO, k_1, k_2, k_3, k_4, k_5, k_6, k_7, k_8, k_9, k_0, k_minus, k_equals, k_backspace, k_dup, k_fieldmark },\ | |
39 | { k32, k_tab, k_q, k_w, k_e, k_r, k_t, k_y, k_u, k_i, k_o, k_p, k_squarebrop, k_squarebrcl, k_return, k_ins, k_del },\ | |
40 | { k33, k_lshift, k_caps, k_a, k_s, k_d, k_f, k_g, k_h, k_j, k_k, k_l, k_semicolon, k_singlequote, k_rshift, k_up, k_down },\ | |
41 | { k34, k_lreset, KC_NO, k_z, k_x, k_c, k_v, k_b, k_n, k_m, k_cm, k_period, k_fwslash, k_space, k_rctrl, k_left, k_right }\ | |
42 | } | |
43 | ||
44 | // Note: | |
45 | // * real columns 1..5, 14 are not in use. (and also in position 15 there is a skipped pin, like for all beam springs) | |
46 | // * column 7, row 1 (which is encoded as column 1, row 0 in qmk) is a calibration pad) | |
47 | // * column 8, row 4 (which is encoded as column 2, row 3 in qmk) is a calibration pad) |