diff options
Diffstat (limited to 'keyboards/cradio/cradio.h')
-rw-r--r-- | keyboards/cradio/cradio.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/cradio/cradio.h b/keyboards/cradio/cradio.h new file mode 100644 index 000000000..29e81ef9b --- /dev/null +++ b/keyboards/cradio/cradio.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* Copyright 2018-2021 | ||
2 | * ENDO Katsuhiro <[email protected]> | ||
3 | * David Philip Barr <@davidphilipbarr> | ||
4 | * Pierre Chevalier <[email protected]> | ||
5 | * | ||
6 | * This program is free software: you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation, either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | /* This a shortcut to help you visually see your layout. | ||
23 | * | ||
24 | * The first section contains all of the arguments representing the physical | ||
25 | * layout of the board and position of the keys. | ||
26 | * | ||
27 | * The second converts the arguments into a two-dimensional array which | ||
28 | * represents the switch matrix. | ||
29 | */ | ||
30 | |||
31 | // readability | ||
32 | #define ___ KC_NO | ||
33 | |||
34 | #define LAYOUT( \ | ||
35 | L01, L02, L03, L04, L05, R01, R02, R03, R04, R05, \ | ||
36 | L06, L07, L08, L09, L10, R06, R07, R08, R09, R10, \ | ||
37 | L11, L12, L13, L14, L15, R11, R12, R13, R14, R15, \ | ||
38 | L16, L17, R16, R17 \ | ||
39 | ) \ | ||
40 | { \ | ||
41 | { L01, L02, L03, L04, L05 }, \ | ||
42 | { L06, L07, L08, L09, L10 }, \ | ||
43 | { L11, L12, L13, L14, L15 }, \ | ||
44 | { L16, L17, ___, ___, ___ }, \ | ||
45 | { R01, R02, R03, R04, R05 }, \ | ||
46 | { R06, R07, R08, R09, R10 }, \ | ||
47 | { R11, R12, R13, R14, R15 }, \ | ||
48 | { R16, R17, ___, ___, ___ } \ | ||
49 | } | ||
50 | |||