through_hole firmware variant renamed to universal
[jackhill/qmk/firmware.git] / keyboards / xwhatsit / ibm / displaywriter / universal / universal.h
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_all( \
31 k_4_0, k_4_1, k_0_10, k_4_10, k_0_11, k_4_11, \
32 k_0_0, k_0_1, k_4_2, k_0_3, k_4_3, k_0_4, k_4_4, k_0_5, k_4_5, k_0_6, k_4_6, k_0_7, k_4_7, k_0_8, k_4_8, k_0_9, k_4_9, k_1_10, k_5_10, k_1_11, k_5_11, \
33 k_5_0, k_5_1, k_5_2, k_1_3, k_5_3, k_1_4, k_5_4, k_1_5, k_5_5, k_1_6, k_5_6, k_1_7, k_5_7, k_1_8, k_5_8, k_1_9, \
34 k_2_0, k_2_1, k_6_2, k_2_3, k_6_3, k_2_4, k_6_4, k_2_5, k_6_5, k_2_6, k_6_6, k_2_7, k_6_7, k_2_8, k_6_8, k_2_10, k_6_10, k_2_11, k_6_11, \
35 k_7_0, k_7_1, k_7_2, k_7_3, k_3_3, k_7_4, k_3_4, k_7_5, k_3_5, k_7_6, k_3_6, k_7_7, k_3_7, k_7_8, k_7_9, k_3_10, k_7_10, k_3_11, k_7_11, \
36 k_3_2, k_3_1, k_3_8 \
37 ) \
38 { \
39 { k_0_0, k_0_1, KC_NO, k_0_3, k_0_4, k_0_5, k_0_6, k_0_7, k_0_8, k_0_9, k_0_10, k_0_11}, \
40 { KC_NO, KC_NO, KC_NO, k_1_3, k_1_4, k_1_5, k_1_6, k_1_7, k_1_8, k_1_9, k_1_10, k_1_11}, \
41 { k_2_0, k_2_1, KC_NO, k_2_3, k_2_4, k_2_5, k_2_6, k_2_7, k_2_8, KC_NO, k_2_10, k_2_11}, \
42 { KC_NO, k_3_1, k_3_2, k_3_3, k_3_4, k_3_5, k_3_6, k_3_7, k_3_8, KC_NO, k_3_10, k_3_11}, \
43 { k_4_0, k_4_1, k_4_2, k_4_3, k_4_4, k_4_5, k_4_6, k_4_7, k_4_8, k_4_9, k_4_10, k_4_11}, \
44 { k_5_0, k_5_1, k_5_2, k_5_3, k_5_4, k_5_5, k_5_6, k_5_7, k_5_8, KC_NO, k_5_10, k_5_11}, \
45 { KC_NO, KC_NO, k_6_2, k_6_3, k_6_4, k_6_5, k_6_6, k_6_7, k_6_8, KC_NO, k_6_10, k_6_11}, \
46 { k_7_0, k_7_1, k_7_2, k_7_3, k_7_4, k_7_5, k_7_6, k_7_7, k_7_8, k_7_9, k_7_10, k_7_11} \
47 }