aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/viktus/smolka/config.h116
-rw-r--r--keyboards/viktus/smolka/info.json66
-rw-r--r--keyboards/viktus/smolka/keymaps/default/keymap.c43
-rw-r--r--keyboards/viktus/smolka/keymaps/default/readme.md1
-rw-r--r--keyboards/viktus/smolka/keymaps/via/keymap.c58
-rw-r--r--keyboards/viktus/smolka/keymaps/via/readme.md1
-rw-r--r--keyboards/viktus/smolka/keymaps/via/rules.mk1
-rw-r--r--keyboards/viktus/smolka/readme.md30
-rw-r--r--keyboards/viktus/smolka/rules.mk20
-rw-r--r--keyboards/viktus/smolka/smolka.c37
-rw-r--r--keyboards/viktus/smolka/smolka.h47
11 files changed, 420 insertions, 0 deletions
diff --git a/keyboards/viktus/smolka/config.h b/keyboards/viktus/smolka/config.h
new file mode 100644
index 000000000..82acfff21
--- /dev/null
+++ b/keyboards/viktus/smolka/config.h
@@ -0,0 +1,116 @@
1/*
2Copyright 2021 jrfhoutx
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 0x5644 // "VD" = Viktus Design LLC
24#define PRODUCT_ID 0x0010
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Viktus Design LLC
27#define PRODUCT Smolka
28
29/* key matrix size */
30#define MATRIX_ROWS 8
31#define MATRIX_COLS 8
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 { F0, F1, F4, F5, F6, F7, C7, C6 }
44#define MATRIX_COL_PINS { D6, D7, B4, B5, B6, D4, B1, B2 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50
51
52/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
53#define DEBOUNCE 5
54
55/* define if matrix has ghost (lacks anti-ghosting diodes) */
56//#define MATRIX_HAS_GHOST
57
58/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
59#define LOCKING_SUPPORT_ENABLE
60/* Locking resynchronize hack */
61#define LOCKING_RESYNC_ENABLE
62
63#define ENCODERS_PAD_A { D2, D5 }
64#define ENCODERS_PAD_B { D1, D3 }
65
66#define ENCODER_RESOLUTIONS { 4, 2 }
67
68/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
69 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
70 */
71//#define GRAVE_ESC_CTRL_OVERRIDE
72
73/*
74 * Force NKRO
75 *
76 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
77 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
78 * makefile for this to work.)
79 *
80 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
81 * until the next keyboard reset.
82 *
83 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
84 * fully operational during normal computer usage.
85 *
86 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
87 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
88 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
89 * power-up.
90 *
91 */
92//#define FORCE_NKRO
93
94/*
95 * Feature disable options
96 * These options are also useful to firmware size reduction.
97 */
98
99/* disable debug print */
100//#define NO_DEBUG
101
102/* disable print */
103//#define NO_PRINT
104
105/* disable action features */
106//#define NO_ACTION_LAYER
107//#define NO_ACTION_TAPPING
108//#define NO_ACTION_ONESHOT
109
110/* disable these deprecated features by default */
111#define NO_ACTION_MACRO
112#define NO_ACTION_FUNCTION
113
114/* Bootmagic Lite key configuration */
115#define BOOTMAGIC_LITE_ROW 1
116#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/viktus/smolka/info.json b/keyboards/viktus/smolka/info.json
new file mode 100644
index 000000000..8e9fe6fc8
--- /dev/null
+++ b/keyboards/viktus/smolka/info.json
@@ -0,0 +1,66 @@
1{
2 "keyboard_name": "smolka",
3 "url": "",
4 "maintainer": "jrfhoutx",
5 "layouts": {
6 "LAYOUT_all": {
7 "layout": [
8 {"x":0, "y":0},
9 {"x":1.25, "y":0},
10 {"x":2.25, "y":0},
11 {"x":3.25, "y":0},
12 {"x":4.25, "y":0},
13 {"x":5.25, "y":0},
14 {"x":6.25, "y":0},
15 {"x":7.25, "y":0},
16 {"x":8.25, "y":0},
17 {"x":9.25, "y":0},
18 {"x":10.25, "y":0},
19 {"x":11.25, "y":0},
20 {"x":12.25, "y":0},
21 {"x":13.25, "y":0},
22 {"x":14.25, "y":0},
23 {"x":0, "y":1},
24 {"x":1.25, "y":1, "w":1.25},
25 {"x":2.5, "y":1},
26 {"x":3.5, "y":1},
27 {"x":4.5, "y":1},
28 {"x":5.5, "y":1},
29 {"x":6.5, "y":1},
30 {"x":7.5, "y":1},
31 {"x":8.5, "y":1},
32 {"x":9.5, "y":1},
33 {"x":10.5, "y":1},
34 {"x":11.5, "y":1},
35 {"x":12.5, "y":1, "w":1.75},
36 {"x":14.25, "y":1},
37 {"x":0, "y":2},
38 {"x":1.25, "y":2, "w":1.75},
39 {"x":3, "y":2},
40 {"x":4, "y":2},
41 {"x":5, "y":2},
42 {"x":6, "y":2},
43 {"x":7, "y":2},
44 {"x":8, "y":2},
45 {"x":9, "y":2},
46 {"x":10, "y":2},
47 {"x":11, "y":2},
48 {"x":12, "y":2, "w":1.25},
49 {"x":13.25, "y":2},
50 {"x":14.25, "y":2},
51 {"x":0, "y":3},
52 {"x":1.25, "y":3, "w":1.25},
53 {"x":2.5, "y":3},
54 {"x":3.5, "y":3, "w":1.25},
55 {"x":4.75, "y":3, "w":3},
56 {"x":7.75, "y":3},
57 {"x":8.75, "y":3, "w":3},
58 {"x":9.75, "y":3},
59 {"x":10.75, "y":3},
60 {"x":12.25, "y":3},
61 {"x":13.25, "y":3},
62 {"x":14.25, "y":3}
63 ]
64 }
65 }
66}
diff --git a/keyboards/viktus/smolka/keymaps/default/keymap.c b/keyboards/viktus/smolka/keymaps/default/keymap.c
new file mode 100644
index 000000000..ed2ee0853
--- /dev/null
+++ b/keyboards/viktus/smolka/keymaps/default/keymap.c
@@ -0,0 +1,43 @@
1/* Copyright 2020 jrfhoutx
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 /* Keymap BASE: (Base Layer) Default Layer
21 * .----.,---------------------------------------------------------------------.
22 * | F1 || Esc | Q| W| E| R| T| Y| U| I| O| P| [ | ] | \ | Del |
23 * |----||---------------------------------------------------------------------|
24 * | F2 || Tab | A| S| D| F| G| H| J| K| L| ;| '| Return | PgUp|
25 * |----||---------------------------------------------------------------------|
26 * | F3 ||Shift | Z| X| C| V| B| N| M| ,| .| /| Shift | Up | PgDn|
27 * |----||---------------------------------------------------------------------|
28 * | F4 ||LCtrl|LGUI | Alt | Space | Space | Alt | | L | Dn | R |
29 * `----'`---------------------------------------------------------------------'
30 */
31[0] = LAYOUT_all( /* Smolka Base */
32 KC_F1, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, KC_DEL,
33 KC_F2, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, KC_HOME,
34 KC_F3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_END,
35 KC_F4, KC_LCTL, MO(1), KC_LALT, KC_SPC, KC_TRNS, KC_SPC, KC_TRNS, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
36 ),
37
38[1] = LAYOUT_all( /* Smolka Base */
39 RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
43 ),
diff --git a/keyboards/viktus/smolka/keymaps/default/readme.md b/keyboards/viktus/smolka/keymaps/default/readme.md
new file mode 100644
index 000000000..e7b2fa9bb
--- /dev/null
+++ b/keyboards/viktus/smolka/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for smolka
diff --git a/keyboards/viktus/smolka/keymaps/via/keymap.c b/keyboards/viktus/smolka/keymaps/via/keymap.c
new file mode 100644
index 000000000..3d1f0a323
--- /dev/null
+++ b/keyboards/viktus/smolka/keymaps/via/keymap.c
@@ -0,0 +1,58 @@
1/* Copyright 2020 jrfhoutx
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 /* Keymap BASE: (Base Layer) Default Layer
21 * .----.,---------------------------------------------------------------------.
22 * | F1 || Esc | Q| W| E| R| T| Y| U| I| O| P| [ | ] | \ | Del |
23 * |----||---------------------------------------------------------------------|
24 * | F2 || Tab | A| S| D| F| G| H| J| K| L| ;| '| Return | PgUp|
25 * |----||---------------------------------------------------------------------|
26 * | F3 ||Shift | Z| X| C| V| B| N| M| ,| .| /| Shift | Up | PgDn|
27 * |----||---------------------------------------------------------------------|
28 * | F4 ||LCtrl|LGUI | Alt | Space | Space | Alt | | L | Dn | R |
29 * `----'`---------------------------------------------------------------------'
30 */
31[0] = LAYOUT_all( /* Smolka Base */
32 KC_F1, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, KC_DEL,
33 KC_F2, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, KC_HOME,
34 KC_F3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_END,
35 KC_F4, KC_LCTL, MO(1), KC_LALT, KC_SPC, KC_TRNS, KC_SPC, KC_TRNS, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
36 ),
37
38[1] = LAYOUT_all( /* Smolka Base */
39 RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
42 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
43 ),
44
45[2] = LAYOUT_all( /* Smolka Base */
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
50 ),
51
52[3] = LAYOUT_all( /* Smolka Base */
53 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
54 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
55 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
56 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
57 ),
58};
diff --git a/keyboards/viktus/smolka/keymaps/via/readme.md b/keyboards/viktus/smolka/keymaps/via/readme.md
new file mode 100644
index 000000000..5a9d11c51
--- /dev/null
+++ b/keyboards/viktus/smolka/keymaps/via/readme.md
@@ -0,0 +1 @@
# The default via keymap for smolka
diff --git a/keyboards/viktus/smolka/keymaps/via/rules.mk b/keyboards/viktus/smolka/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/viktus/smolka/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/viktus/smolka/readme.md b/keyboards/viktus/smolka/readme.md
new file mode 100644
index 000000000..d01a729ef
--- /dev/null
+++ b/keyboards/viktus/smolka/readme.md
@@ -0,0 +1,30 @@
1# smolka
2
3![smolka](https://i.imgur.com/5A84GVJh.png)
4
5Smolka is a "40%" keyboard with a single left-hand macro column, and arrow keys, designed by BlindAssassin111 of Viktus Design.
6
7The Smolka has multiple configurations and can support up to two rotary encoders in the left macro column. The PCB supports multiple bottom row configurations and can also be configured to remove the arrow keys and right column to create a near 60% layout (minus number row).
8
9
10* Keyboard Maintainer: [jrfhoutx](https://github.com/yourusername)
11* Hardware Supported: Viktus Smolka PCB
12* Hardware Availability: Available only through a group buy in the 40% Discord server.
13
14Make example for this keyboard (after setting up your build environment):
15
16 make viktus/smolka:default
17
18Flashing example for this keyboard:
19
20 make viktus/smolka:default:flash
21
22See 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).
23
24## Bootloader
25
26Enter the bootloader in 3 ways:
27
28* **Bootmagic reset**: Hold down the key at (1,0) in the matrix (the top key in the macro column) and plug in the keyboard
29* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
30* **Keycode in layout**: Press the key mapped to `RESET` if it is available
diff --git a/keyboards/viktus/smolka/rules.mk b/keyboards/viktus/smolka/rules.mk
new file mode 100644
index 000000000..04821bd6e
--- /dev/null
+++ b/keyboards/viktus/smolka/rules.mk
@@ -0,0 +1,20 @@
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 = yes # Enable Bootmagic Lite
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# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
16NKRO_ENABLE = yes # USB Nkey Rollover
17BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
18RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
19AUDIO_ENABLE = no # Audio output
20ENCODER_ENABLE = yes
diff --git a/keyboards/viktus/smolka/smolka.c b/keyboards/viktus/smolka/smolka.c
new file mode 100644
index 000000000..e11b80670
--- /dev/null
+++ b/keyboards/viktus/smolka/smolka.c
@@ -0,0 +1,37 @@
1/* Copyright 2021 jrfhoutx
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 "smolka.h"
18
19#ifdef ENCODER_ENABLE
20bool encoder_update_kb(uint8_t index, bool clockwise) {
21 if (!encoder_update_user(index, clockwise)) { return false; }
22 if (index == 0) { /* First encoder */
23 if (clockwise) {
24 tap_code(KC_PGDN);
25 } else {
26 tap_code(KC_PGUP);
27 }
28 } else if (index == 1) { /* Second encoder */
29 if (clockwise) {
30 tap_code(KC_VOLU);
31 } else {
32 tap_code(KC_VOLD);
33 }
34 }
35 return true;
36}
37#endif
diff --git a/keyboards/viktus/smolka/smolka.h b/keyboards/viktus/smolka/smolka.h
new file mode 100644
index 000000000..e602c2271
--- /dev/null
+++ b/keyboards/viktus/smolka/smolka.h
@@ -0,0 +1,47 @@
1/* Copyright 2021 jrfhoutx
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#define ___ KC_NO
21
22/* This is 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
32#define LAYOUT_all( \
33 K10, K11, K01, K02, K12, K13, K03, K04, K14, K15, K05, K06, K16, K17, K07, \
34 K30, K31, K21, K22, K32, K33, K23, K24, K34, K35, K25, K26, K37, K27, \
35 K50, K51, K41, K42, K52, K53, K43, K44, K54, K55, K45, K56, K57, K47, \
36 K70, K71, K61, K62, K73, K63, K74, K75, K65, K76, K77, K67 \
37) \
38{ \
39 { ___, K01, K02, K03, K04, K05, K06, K07, }, \
40 { K10, K11, K12, K13, K14, K15, K16, K17, }, \
41 { ___, K21, K22, K23, K24, K25, K26, K27, }, \
42 { K30, K31, K32, K33, K34, K35, ___, K37, }, \
43 { ___, K41, K42, K43, K44, K45, ___, K47, }, \
44 { K50, K51, K52, K53, K54, K55, K56, K57, }, \
45 { ___, K61, K62, K63, ___, K65, ___, K67, }, \
46 { K70, K71, ___, K73, K74, K75, K76, K77, } \
47}