aboutsummaryrefslogtreecommitdiff
path: root/keyboards/projectcain
diff options
context:
space:
mode:
authorprojectcain <71684775+projectcain@users.noreply.github.com>2021-07-20 00:28:32 -0500
committerGitHub <noreply@github.com>2021-07-19 22:28:32 -0700
commit815c17b726918bdb4ebff2877d83bff72d81c443 (patch)
tree75459832f5f85b6ca771ec7f69959933f4c390db /keyboards/projectcain
parentb887a1b9957664200363fc8feeb2865464c468a2 (diff)
downloadqmk_firmware-815c17b726918bdb4ebff2877d83bff72d81c443.tar.gz
qmk_firmware-815c17b726918bdb4ebff2877d83bff72d81c443.zip
[Keyboard] Add vault45 (#13119)
* adding my keymap * Update keyboards/projectcain/vault45/keymaps/default/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/projectcain/vault45/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/projectcain/vault45/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/projectcain/vault45/vault45.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/projectcain/vault45/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * Update readme.md * Update keyboards/projectcain/vault45/keymaps/default/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keymap.c * Update keyboards/projectcain/vault45/keymaps/default/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> * Update keyboards/projectcain/vault45/readme.md Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> * Update info.json * Update keyboards/projectcain/vault45/vault45.c Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> * Update keyboards/projectcain/vault45/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/projectcain/vault45/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/projectcain/vault45/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/projectcain')
-rw-r--r--keyboards/projectcain/vault45/config.h152
-rw-r--r--keyboards/projectcain/vault45/info.json60
-rw-r--r--keyboards/projectcain/vault45/keymaps/default/config.h24
-rw-r--r--keyboards/projectcain/vault45/keymaps/default/keymap.c59
-rw-r--r--keyboards/projectcain/vault45/keymaps/default/readme.md1
-rw-r--r--keyboards/projectcain/vault45/keymaps/default/rules.mk2
-rw-r--r--keyboards/projectcain/vault45/readme.md21
-rw-r--r--keyboards/projectcain/vault45/rules.mk22
-rw-r--r--keyboards/projectcain/vault45/vault45.c35
-rw-r--r--keyboards/projectcain/vault45/vault45.h40
10 files changed, 416 insertions, 0 deletions
diff --git a/keyboards/projectcain/vault45/config.h b/keyboards/projectcain/vault45/config.h
new file mode 100644
index 000000000..2cbf55dd0
--- /dev/null
+++ b/keyboards/projectcain/vault45/config.h
@@ -0,0 +1,152 @@
1/*
2Copyright 2021 projectcain
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 0xFEED
24#define PRODUCT_ID 0x6060
25#define DEVICE_VER 0x0001
26#define MANUFACTURER projectcain
27#define PRODUCT vault45
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 13
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { C6, B6, B5, C7 }
44#define MATRIX_COL_PINS { B0, D5, D4, D6, D7, B4, D3, F0, F1, F4, F5, F6, F7 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55//#define LED_NUM_LOCK_PIN B0
56//#define LED_CAPS_LOCK_PIN B1
57//#define LED_SCROLL_LOCK_PIN B2
58//#define LED_COMPOSE_PIN B3
59//#define LED_KANA_PIN B4
60
61//#define BACKLIGHT_PIN B7
62//#define BACKLIGHT_LEVELS 3
63//#define BACKLIGHT_BREATHING
64
65//#define RGB_DI_PIN E2
66//#ifdef RGB_DI_PIN
67//# define RGBLED_NUM 16
68//# define RGBLIGHT_HUE_STEP 8
69//# define RGBLIGHT_SAT_STEP 8
70//# define RGBLIGHT_VAL_STEP 8
71//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
72//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
73/*== all animations enable ==*/
74//# define RGBLIGHT_ANIMATIONS
75/*== or choose animations ==*/
76//# define RGBLIGHT_EFFECT_BREATHING
77//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
78//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
79//# define RGBLIGHT_EFFECT_SNAKE
80//# define RGBLIGHT_EFFECT_KNIGHT
81//# define RGBLIGHT_EFFECT_CHRISTMAS
82//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
83//# define RGBLIGHT_EFFECT_RGB_TEST
84//# define RGBLIGHT_EFFECT_ALTERNATING
85/*== customize breathing effect ==*/
86/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
87//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
88/*==== use exp() and sin() ====*/
89//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
90//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
91//#endif
92
93/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
94#define DEBOUNCE 5
95
96/* define if matrix has ghost (lacks anti-ghosting diodes) */
97//#define MATRIX_HAS_GHOST
98
99/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
100#define LOCKING_SUPPORT_ENABLE
101/* Locking resynchronize hack */
102#define LOCKING_RESYNC_ENABLE
103
104/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
105 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
106 */
107//#define GRAVE_ESC_CTRL_OVERRIDE
108
109/*
110 * Force NKRO
111 *
112 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
113 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
114 * makefile for this to work.)
115 *
116 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
117 * until the next keyboard reset.
118 *
119 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
120 * fully operational during normal computer usage.
121 *
122 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
123 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
124 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
125 * power-up.
126 *
127 */
128//#define FORCE_NKRO
129
130/*
131 * Feature disable options
132 * These options are also useful to firmware size reduction.
133 */
134
135/* disable debug print */
136//#define NO_DEBUG
137
138/* disable print */
139//#define NO_PRINT
140
141/* disable action features */
142//#define NO_ACTION_LAYER
143//#define NO_ACTION_TAPPING
144//#define NO_ACTION_ONESHOT
145
146/* disable these deprecated features by default */
147#define NO_ACTION_MACRO
148#define NO_ACTION_FUNCTION
149
150/* Bootmagic Lite key configuration */
151//#define BOOTMAGIC_LITE_ROW 0
152//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/projectcain/vault45/info.json b/keyboards/projectcain/vault45/info.json
new file mode 100644
index 000000000..a9627895c
--- /dev/null
+++ b/keyboards/projectcain/vault45/info.json
@@ -0,0 +1,60 @@
1{
2 "keyboard_name": "vault 45",
3 "url": "",
4 "maintainer": "projectcain",
5 "width": 13,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 { "label": "Tab", "x": 0, "y": 0 },
11 { "label": "Q", "x": 1, "y": 0 },
12 { "label": "W", "x": 2, "y": 0 },
13 { "label": "E", "x": 3, "y": 0 },
14 { "label": "R", "x": 4, "y": 0 },
15 { "label": "T", "x": 5, "y": 0 },
16 { "label": "Y", "x": 6, "y": 0 },
17 { "label": "U", "x": 7, "y": 0 },
18 { "label": "I", "x": 8, "y": 0 },
19 { "label": "O", "x": 9, "y": 0 },
20 { "label": "P", "x": 10, "y": 0 },
21 { "label": "Back<br>Space", "x": 11, "y": 0 },
22 { "x": 12, "y": 0 },
23 { "label": "Caps", "x": 0, "y": 1, "w": 1.25 },
24 { "label": "A", "x": 1.25, "y": 1 },
25 { "label": "S", "x": 2.25, "y": 1 },
26 { "label": "D", "x": 3.25, "y": 1 },
27 { "label": "F", "x": 4.25, "y": 1 },
28 { "label": "G", "x": 5.25, "y": 1 },
29 { "label": "H", "x": 6.25, "y": 1 },
30 { "label": "J", "x": 7.25, "y": 1 },
31 { "label": "K", "x": 8.25, "y": 1 },
32 { "label": "L", "x": 9.25, "y": 1 },
33 { "label": ":", "x": 10.25, "y": 1 },
34 { "label": "Enter", "x": 11.25, "y": 1, "w": 1.75 },
35 { "label": "Shift", "x": 0, "y": 2, "w": 1.75 },
36 { "label": "Z", "x": 1.75, "y": 2 },
37 { "label": "X", "x": 2.75, "y": 2 },
38 { "label": "C", "x": 3.75, "y": 2 },
39 { "label": "V", "x": 4.75, "y": 2 },
40 { "label": "B", "x": 5.75, "y": 2 },
41 { "label": "N", "x": 6.75, "y": 2 },
42 { "label": "M", "x": 7.75, "y": 2 },
43 { "label": "<", "x": 8.75, "y": 2 },
44 { "label": ">", "x": 9.75, "y": 2 },
45 { "label": "?", "x": 10.75, "y": 2 },
46 { "label": "Shift", "x": 11.75, "y": 2, "w": 1.25 },
47 { "label": "Hyper", "x": 0, "y": 3, "w": 1.25 },
48 { "label": "Super", "x": 1.25, "y": 3 },
49 { "label": "Meta", "x": 2.25, "y": 3, "w": 1.25 },
50 { "label": "Alt", "x": 3.5, "y": 3, "w": 1.25 },
51 { "x": 4.75, "y": 3, "w": 1.75 },
52 { "x": 6.5, "y": 3, "w": 1.75 },
53 { "label": "Meta", "x": 8.25, "y": 3, "w": 1.25 },
54 { "label": "Super", "x": 9.5, "y": 3, "w": 1.25 },
55 { "label": "Fn2", "x": 10.75, "y": 3 },
56 { "label": "Ctrl", "x": 11.75, "y": 3, "w": 1.25 }
57 ]
58 }
59 }
60}
diff --git a/keyboards/projectcain/vault45/keymaps/default/config.h b/keyboards/projectcain/vault45/keymaps/default/config.h
new file mode 100644
index 000000000..81321715a
--- /dev/null
+++ b/keyboards/projectcain/vault45/keymaps/default/config.h
@@ -0,0 +1,24 @@
1 /* Copyright 2021 projectcain
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#define ENCODERS_PAD_A { B3, D1 }
20#define ENCODERS_PAD_B { B2, D2 }
21#define ENCODER_RESOLUTION 2
22#define COMBO_COUNT 2
23#define COMBO_TERM 50
24#define TAPPING_FORCE_HOLD
diff --git a/keyboards/projectcain/vault45/keymaps/default/keymap.c b/keyboards/projectcain/vault45/keymaps/default/keymap.c
new file mode 100644
index 000000000..930737020
--- /dev/null
+++ b/keyboards/projectcain/vault45/keymaps/default/keymap.c
@@ -0,0 +1,59 @@
1 /* Copyright 2021 projectcain
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
14#include QMK_KEYBOARD_H
15enum layers{
16 BASE,
17 NUM,
18 SYM,
19 META
20};
21
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [BASE] = LAYOUT(
25 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_F5,
26 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOTE, LT(SYM, KC_ENT),
27 RCTL_T(S(KC_9)), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, S(KC_0),
28 LALT(KC_TAB), LALT(KC_TAB), MO(1), SFT_T(KC_BSPC), KC_SPACE, KC_SPACE, MO(2), KC_LGUI, G(KC_TAB)
29 ),
30
31 [NUM] = LAYOUT(
32 KC_TRNS, KC_PGUP, KC_HOME, KC_UP, KC_END, KC_WBAK, KC_PSLS, KC_7, KC_8, KC_9, KC_PMNS, KC_DEL, RESET,
33 KC_TRNS, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_WFWD, KC_PAST, KC_4, KC_5, KC_6, KC_PPLS, KC_TRNS,
34 KC_LBRC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_0, KC_1, KC_2, KC_3, KC_PDOT, KC_RBRC,
35 KC_PSCR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, S(KC_RCTRL), RALT(KC_F4), RALT(KC_F4)
36 ),
37
38 [SYM] = LAYOUT(
39 RGB_TOG, S(KC_GRV), KC_GRV, KC_BSLS, S(KC_BSLS), KC_TRNS, KC_TRNS, S(KC_MINS), KC_EQL, KC_TRNS, C(KC_W), C(KC_T), KC_TRNS,
40 KC_TRNS, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), KC_SCLN, S(KC_SCLN), KC_TRNS,
41 S(KC_LBRC), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, S(KC_RBRC),
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_CAPSLOCK, KC_NUMLOCK, KC_TRNS
43 ),
44
45};
46
47
48enum combos {
49 KL_SLSH,
50 JK_MINUS
51};
52
53const uint16_t PROGMEM kl_combo[] = {KC_K, KC_L, COMBO_END};
54const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};
55
56combo_t key_combos[COMBO_COUNT] = {
57 [KL_SLSH] = COMBO(kl_combo, S(KC_SLSH)),
58 [JK_MINUS] = COMBO(jk_combo, KC_MINUS)
59};
diff --git a/keyboards/projectcain/vault45/keymaps/default/readme.md b/keyboards/projectcain/vault45/keymaps/default/readme.md
new file mode 100644
index 000000000..ce333c3b8
--- /dev/null
+++ b/keyboards/projectcain/vault45/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for vault45
diff --git a/keyboards/projectcain/vault45/keymaps/default/rules.mk b/keyboards/projectcain/vault45/keymaps/default/rules.mk
new file mode 100644
index 000000000..dca6713d4
--- /dev/null
+++ b/keyboards/projectcain/vault45/keymaps/default/rules.mk
@@ -0,0 +1,2 @@
1ENCODER_ENABLE = yes
2COMBO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/projectcain/vault45/readme.md b/keyboards/projectcain/vault45/readme.md
new file mode 100644
index 000000000..a84feaf22
--- /dev/null
+++ b/keyboards/projectcain/vault45/readme.md
@@ -0,0 +1,21 @@
1# vault45
2
3![vault45](https://i.imgur.com/SYrsbQEh.jpeg)
4
5This is a 40% HHKB-style keyboard inspired by the JD45 with updated bottom row options and rotary encoders.
6
7* Keyboard Maintainer: [projectcain](https://github.com/projectcain)
8* Hardware Supported: Vault 45 PCB
9* Hardware Availability: mechvault.net
10
11To reset the keyboard into bootloader mode, short the two pads labeled "Reset" on the left side of the pcb
12
13Make example for this keyboard (after setting up your build environment):
14
15 make projectcain/vault45:default
16
17Flashing example for this keyboard:
18
19 make projectcain/vault45:default:flash
20
21See 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/projectcain/vault45/rules.mk b/keyboards/projectcain/vault45/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/projectcain/vault45/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 = no # 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 = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/projectcain/vault45/vault45.c b/keyboards/projectcain/vault45/vault45.c
new file mode 100644
index 000000000..fa8233549
--- /dev/null
+++ b/keyboards/projectcain/vault45/vault45.c
@@ -0,0 +1,35 @@
1/* Copyright 2021 projectcain
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#include "vault45.h"
18
19bool encoder_update_kb(uint8_t index, bool clockwise) {
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (index == 0) { /* First encoder */
22 if (clockwise) {
23 tap_code(KC_PGDN);
24 } else {
25 tap_code(KC_PGUP);
26 }
27 } else if (index == 1) { /* Second encoder */
28 if (clockwise) {
29 tap_code(KC_DOWN);
30 } else {
31 tap_code(KC_UP);
32 }
33 }
34 return true;
35}
diff --git a/keyboards/projectcain/vault45/vault45.h b/keyboards/projectcain/vault45/vault45.h
new file mode 100644
index 000000000..031de0003
--- /dev/null
+++ b/keyboards/projectcain/vault45/vault45.h
@@ -0,0 +1,40 @@
1/* Copyright 2021 projectcain
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#define LAYOUT( \
30 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, \
31 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K112, \
32 K200, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, \
33 K301, K302, K304, K305, K306, K307, K308, K310, K311 \
34) \
35{ \
36 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012 }, \
37 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, KC_NO, K112 }, \
38 { K200, KC_NO, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212 }, \
39 { KC_NO, K301, K302, KC_NO, K304, K305, K306, K307, K308, KC_NO, K310, K311, KC_NO }, \
40}