aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/tkc/tkl_ab87/config.h151
-rw-r--r--keyboards/tkc/tkl_ab87/info.json103
-rw-r--r--keyboards/tkc/tkl_ab87/keymaps/default/keymap.c28
-rw-r--r--keyboards/tkc/tkl_ab87/keymaps/via/keymap.c44
-rw-r--r--keyboards/tkc/tkl_ab87/keymaps/via/rules.mk1
-rw-r--r--keyboards/tkc/tkl_ab87/readme.md27
-rw-r--r--keyboards/tkc/tkl_ab87/rules.mk22
-rw-r--r--keyboards/tkc/tkl_ab87/tkl_ab87.c16
-rw-r--r--keyboards/tkc/tkl_ab87/tkl_ab87.h42
9 files changed, 434 insertions, 0 deletions
diff --git a/keyboards/tkc/tkl_ab87/config.h b/keyboards/tkc/tkl_ab87/config.h
new file mode 100644
index 000000000..71bf94caa
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/config.h
@@ -0,0 +1,151 @@
1/*
2Copyright 2020 Terry Mathews
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x544B //TK
24#define PRODUCT_ID 0x0007
25#define DEVICE_VER 0x0001
26#define MANUFACTURER TKC
27#define PRODUCT TKL A/B87
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 16
32
33#define DYNAMIC_KEYMAP_LAYER_COUNT 2 //Reduced layer count due to memory space considerations
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44*/
45#define MATRIX_ROW_PINS { B1, F5, F7, B0, B2, B3 }
46#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, E6, F6, F4 }
47#define UNUSED_PINS
48
49/* COL2ROW, ROW2COL*/
50#define DIODE_DIRECTION COL2ROW
51
52/*
53 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
54 */
55//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
56#define BACKLIGHT_PIN B7
57#ifdef BACKLIGHT_PIN
58#define BACKLIGHT_BREATHING
59#define BACKLIGHT_LEVELS 3
60#endif
61#define RGB_DI_PIN E2
62#ifdef RGB_DI_PIN
63 #define RGBLED_NUM 22
64 #define RGBLIGHT_HUE_STEP 8
65 #define RGBLIGHT_SAT_STEP 8
66 #define RGBLIGHT_VAL_STEP 8
67 #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */
68 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
69/*== all animations enable ==*/
70 #define RGBLIGHT_ANIMATIONS
71// /*== or choose animations ==*/
72// #define RGBLIGHT_EFFECT_BREATHING
73// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
74// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
75// #define RGBLIGHT_EFFECT_SNAKE
76// #define RGBLIGHT_EFFECT_KNIGHT
77// #define RGBLIGHT_EFFECT_CHRISTMAS
78// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
79// #define RGBLIGHT_EFFECT_RGB_TEST
80// #define RGBLIGHT_EFFECT_ALTERNATING
81// /*== customize breathing effect ==*/
82// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
83// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
84// /*==== use exp() and sin() ====*/
85// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
86// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
87#endif
88
89#define LED_SCROLL_LOCK_PIN F0
90#define LED_CAPS_LOCK_PIN F1
91
92/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
93#define DEBOUNCE 5
94
95/* define if matrix has ghost (lacks anti-ghosting diodes) */
96//#define MATRIX_HAS_GHOST
97
98/* number of backlight levels */
99
100/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
101#define LOCKING_SUPPORT_ENABLE
102/* Locking resynchronize hack */
103#define LOCKING_RESYNC_ENABLE
104
105/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
106 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
107 */
108// #define GRAVE_ESC_CTRL_OVERRIDE
109
110/*
111 * Force NKRO
112 *
113 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
114 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
115 * makefile for this to work.)
116 *
117 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
118 * until the next keyboard reset.
119 *
120 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
121 * fully operational during normal computer usage.
122 *
123 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
124 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
125 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
126 * power-up.
127 *
128 */
129//#define FORCE_NKRO
130
131/*
132 * Feature disable options
133 * These options are also useful to firmware size reduction.
134 */
135
136/* disable debug print */
137//#define NO_DEBUG
138
139/* disable print */
140//#define NO_PRINT
141
142/* disable action features */
143//#define NO_ACTION_LAYER
144//#define NO_ACTION_TAPPING
145//#define NO_ACTION_ONESHOT
146//#define NO_ACTION_MACRO
147//#define NO_ACTION_FUNCTION
148
149/* Bootmagic Lite key configuration */
150// #define BOOTMAGIC_LITE_ROW 0
151// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/tkc/tkl_ab87/info.json b/keyboards/tkc/tkl_ab87/info.json
new file mode 100644
index 000000000..478c064fb
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/info.json
@@ -0,0 +1,103 @@
1{
2 "keyboard_name": "TKC TKL A/B87",
3 "url": "",
4 "maintainer": "TerryMathews",
5 "width": 18.25,
6 "height": 6.5,
7 "layouts": {
8 "LAYOUT_all": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"F1", "x":2, "y":0},
12 {"label":"F2", "x":3, "y":0},
13 {"label":"F3", "x":4, "y":0},
14 {"label":"F4", "x":5, "y":0},
15 {"label":"F5", "x":6.5, "y":0},
16 {"label":"F6", "x":7.5, "y":0},
17 {"label":"F7", "x":8.5, "y":0},
18 {"label":"F8", "x":9.5, "y":0},
19 {"label":"F9", "x":11, "y":0},
20 {"label":"F10", "x":12, "y":0},
21 {"label":"F11", "x":13, "y":0},
22 {"label":"F12", "x":14, "y":0},
23 {"label":"PrtSc", "x":15.25, "y":0},
24 {"label":"Scroll Lock", "x":16.25, "y":0},
25 {"label":"Pause", "x":17.25, "y":0},
26 {"label":"~", "x":0, "y":1.5},
27 {"label":"!", "x":1, "y":1.5},
28 {"label":"@", "x":2, "y":1.5},
29 {"label":"#", "x":3, "y":1.5},
30 {"label":"$", "x":4, "y":1.5},
31 {"label":"%", "x":5, "y":1.5},
32 {"label":"^", "x":6, "y":1.5},
33 {"label":"&", "x":7, "y":1.5},
34 {"label":"*", "x":8, "y":1.5},
35 {"label":"(", "x":9, "y":1.5},
36 {"label":")", "x":10, "y":1.5},
37 {"label":"_", "x":11, "y":1.5},
38 {"label":"+", "x":12, "y":1.5},
39 {"label":"Del", "x":13, "y":1.5},
40 {"label":"Bksp", "x":14, "y":1.5},
41 {"label":"Insert", "x":15.25, "y":1.5},
42 {"label":"Home", "x":16.25, "y":1.5},
43 {"label":"PgUp", "x":17.25, "y":1.5},
44 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
45 {"label":"Q", "x":1.5, "y":2.5},
46 {"label":"W", "x":2.5, "y":2.5},
47 {"label":"E", "x":3.5, "y":2.5},
48 {"label":"R", "x":4.5, "y":2.5},
49 {"label":"T", "x":5.5, "y":2.5},
50 {"label":"Y", "x":6.5, "y":2.5},
51 {"label":"U", "x":7.5, "y":2.5},
52 {"label":"I", "x":8.5, "y":2.5},
53 {"label":"O", "x":9.5, "y":2.5},
54 {"label":"P", "x":10.5, "y":2.5},
55 {"label":"{", "x":11.5, "y":2.5},
56 {"label":"}", "x":12.5, "y":2.5},
57 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
58 {"label":"Delete", "x":15.25, "y":2.5},
59 {"label":"End", "x":16.25, "y":2.5},
60 {"label":"PgDn", "x":17.25, "y":2.5},
61 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
62 {"label":"A", "x":1.75, "y":3.5},
63 {"label":"S", "x":2.75, "y":3.5},
64 {"label":"D", "x":3.75, "y":3.5},
65 {"label":"F", "x":4.75, "y":3.5},
66 {"label":"G", "x":5.75, "y":3.5},
67 {"label":"H", "x":6.75, "y":3.5},
68 {"label":"J", "x":7.75, "y":3.5},
69 {"label":"K", "x":8.75, "y":3.5},
70 {"label":"L", "x":9.75, "y":3.5},
71 {"label":":", "x":10.75, "y":3.5},
72 {"label":"\"", "x":11.75, "y":3.5},
73 {"label":"Nuhs", "x":12.75, "y":3.5},
74 {"label":"Enter", "x":13.75, "y":3.5, "w":1.25},
75 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
76 {"label":"Nubs", "x":1.25, "y":4.5},
77 {"label":"Z", "x":2.25, "y":4.5},
78 {"label":"X", "x":3.25, "y":4.5},
79 {"label":"C", "x":4.25, "y":4.5},
80 {"label":"V", "x":5.25, "y":4.5},
81 {"label":"B", "x":6.25, "y":4.5},
82 {"label":"N", "x":7.25, "y":4.5},
83 {"label":"M", "x":8.25, "y":4.5},
84 {"label":"<", "x":9.25, "y":4.5},
85 {"label":">", "x":10.25, "y":4.5},
86 {"label":"?", "x":11.25, "y":4.5},
87 {"label":"Shift", "x":12.25, "y":4.5, "w":1.75},
88 {"label":"Del", "x":14, "y":4.5},
89 {"label":"\u2191", "x":16.25, "y":4.5},
90 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
91 {"label":"Win", "x":1.25, "y":5.5, "w":1.25},
92 {"label":"Alt", "x":2.5, "y":5.5, "w":1.25},
93 {"x":3.75, "y":5.5, "w":6.25},
94 {"label":"Alt", "x":10, "y":5.5, "w":1.25},
95 {"label":"Win", "x":11.25, "y":5.5, "w":1.25},
96 {"label":"Menu", "x":12.5, "y":5.5, "w":1.25},
97 {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25},
98 {"label":"\u2190", "x":15.25, "y":5.5},
99 {"label":"\u2193", "x":16.25, "y":5.5},
100 {"label":"\u2192", "x":17.25, "y":5.5}]
101 }
102 }
103} \ No newline at end of file
diff --git a/keyboards/tkc/tkl_ab87/keymaps/default/keymap.c b/keyboards/tkc/tkl_ab87/keymaps/default/keymap.c
new file mode 100644
index 000000000..0213499e3
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
1/* Copyright 2020 Terry Mathews
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#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_all( /* Base */
20
21 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
22 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
23 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
24 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
25 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL, KC_UP,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
27 ),
28};
diff --git a/keyboards/tkc/tkl_ab87/keymaps/via/keymap.c b/keyboards/tkc/tkl_ab87/keymaps/via/keymap.c
new file mode 100644
index 000000000..f3b011f05
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/keymaps/via/keymap.c
@@ -0,0 +1,44 @@
1/* Copyright 2020 Terry Mathews
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#include QMK_KEYBOARD_H
17
18//Layers
19
20enum {
21 BASE = 0,
22 FUNCTION,
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [BASE] = LAYOUT_all( /* Base */
27
28 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS,
29 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
30 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
31 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT,
32 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_DEL, KC_UP,
33 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
34 ),
35 [FUNCTION] = LAYOUT_all( /* Function */
36
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
43 ),
44};
diff --git a/keyboards/tkc/tkl_ab87/keymaps/via/rules.mk b/keyboards/tkc/tkl_ab87/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/tkc/tkl_ab87/readme.md b/keyboards/tkc/tkl_ab87/readme.md
new file mode 100644
index 000000000..e91380cab
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/readme.md
@@ -0,0 +1,27 @@
1# TKC TKL A/B87
2
3![Photo](https://i.imgur.com/BRHfEbHl.jpg)
4
5A fairly typical TKL
6
7* Keyboard Maintainer: [TerryMathews](https://github.com/TerryMathews)
8* Hardware Supported: TKC TKL A/B87 PCB
9* Hardware Availability: TBA
10
11
12Reset board in one of two ways:
13
14 1) Short reset header to right of up arrow key
15![Photo](https://i.imgur.com/S01CTTGl.jpg)
16
17 2) Hold down Esc key while plugging in USB-C
18
19Make example for this keyboard (after setting up your build environment):
20
21 make tkc/tkl_ab87:default
22
23Flashing example for this keyboard:
24
25 make tkc/tkl_ab87:default:flash
26
27See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/tkc/tkl_ab87/rules.mk b/keyboards/tkc/tkl_ab87/rules.mk
new file mode 100644
index 000000000..1d60cf3c2
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/tkc/tkl_ab87/tkl_ab87.c b/keyboards/tkc/tkl_ab87/tkl_ab87.c
new file mode 100644
index 000000000..5d1b2d98a
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/tkl_ab87.c
@@ -0,0 +1,16 @@
1/* Copyright 2020 Terry Mathews
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#include "tkl_ab87.h"
diff --git a/keyboards/tkc/tkl_ab87/tkl_ab87.h b/keyboards/tkc/tkl_ab87/tkl_ab87.h
new file mode 100644
index 000000000..3d831bb7f
--- /dev/null
+++ b/keyboards/tkc/tkl_ab87/tkl_ab87.h
@@ -0,0 +1,42 @@
1/* Copyright 2020 Terry Mathews
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#pragma once
17
18#include "quantum.h"
19
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28#define LAYOUT_all( \
29 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0E, K0F, K56, \
30 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K0D, K1D, K1E, K1F, K55, \
31 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K54, \
32 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
33 K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4F, \
34 K50, K51, K52, K57, K5A, K5B, K5C, K5D, K5E, K5F, K53 \
35) { \
36 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F }, \
37 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F }, \
38 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F }, \
39 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D,KC_NO,KC_NO }, \
40 { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D,KC_NO,K4F }, \
41 { K50, K51, K52, K53, K54, K55, K56, K57, KC_NO,KC_NO,K5A, K5B, K5C, K5D, K5E, K5F }, \
42}