aboutsummaryrefslogtreecommitdiff
path: root/keyboards/v4n4g0rth0n
diff options
context:
space:
mode:
authorjpuerto96 <jpuerto96@hotmail.com>2021-08-26 13:45:48 -0400
committerGitHub <noreply@github.com>2021-08-26 18:45:48 +0100
commit3fce5e6912d78ec9fff4124b6952e3b8a0d4d3ae (patch)
tree0840b9a0e4c0bce2c6e1635edb21eb6f2a354123 /keyboards/v4n4g0rth0n
parentedf35615cf4052e94024101e1f4ccb3ed838ce47 (diff)
downloadqmk_firmware-3fce5e6912d78ec9fff4124b6952e3b8a0d4d3ae.tar.gz
qmk_firmware-3fce5e6912d78ec9fff4124b6952e3b8a0d4d3ae.zip
New Keyboard - V4n4g0rth0n (#14152)
* General: Initial commit for v4n4g0rth0n * Remove unecessary things| * General: Fix info.json * Finalize changes * Update keyboards/v4n4g0rth0n/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/v4n4g0rth0n/v1/rules.mk Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/v4n4g0rth0n/v4n4g0rth0n.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/v4n4g0rth0n/v4n4g0rth0n.h Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/v4n4g0rth0n/v2/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/v4n4g0rth0n/v1/keymaps/default/keymap.c Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/v4n4g0rth0n')
-rw-r--r--keyboards/v4n4g0rth0n/config.h46
-rw-r--r--keyboards/v4n4g0rth0n/info.json66
-rw-r--r--keyboards/v4n4g0rth0n/readme.md17
-rw-r--r--keyboards/v4n4g0rth0n/v1/config.h23
-rw-r--r--keyboards/v4n4g0rth0n/v1/keymaps/default/keymap.c48
-rw-r--r--keyboards/v4n4g0rth0n/v1/readme.md1
-rw-r--r--keyboards/v4n4g0rth0n/v1/rules.mk22
-rw-r--r--keyboards/v4n4g0rth0n/v2/config.h23
-rw-r--r--keyboards/v4n4g0rth0n/v2/keymaps/default/keymap.c86
-rw-r--r--keyboards/v4n4g0rth0n/v2/readme.md1
-rw-r--r--keyboards/v4n4g0rth0n/v2/rules.mk25
-rw-r--r--keyboards/v4n4g0rth0n/v4n4g0rth0n.c17
-rw-r--r--keyboards/v4n4g0rth0n/v4n4g0rth0n.h43
13 files changed, 418 insertions, 0 deletions
diff --git a/keyboards/v4n4g0rth0n/config.h b/keyboards/v4n4g0rth0n/config.h
new file mode 100644
index 000000000..e023875fe
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/config.h
@@ -0,0 +1,46 @@
1/*
2Copyright 2021 jpuerto
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 0xB33F
24#define PRODUCT_ID 0x58E4
25#define MANUFACTURER s8erdude
26#define PRODUCT v4n4g0rth0n
27
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 12
31
32/* COL2ROW, ROW2COL */
33#define DIODE_DIRECTION COL2ROW
34
35/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
36#define DEBOUNCE 5
37
38/* disable these deprecated features by default */
39#define NO_ACTION_MACRO
40#define NO_ACTION_FUNCTION
41
42// TOP, MID, BOT
43// B4, D7, D6
44#define LED_NUM_LOCK_PIN B4
45#define LED_CAPS_LOCK_PIN D7
46#define LED_SCROLL_LOCK_PIN D6
diff --git a/keyboards/v4n4g0rth0n/info.json b/keyboards/v4n4g0rth0n/info.json
new file mode 100644
index 000000000..2be13c39e
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/info.json
@@ -0,0 +1,66 @@
1{
2 "keyboard_name": "v4n4g0rth0n",
3 "url": "https://github.com/jpuerto96/v4n4g0rth0n",
4 "maintainer": "jpuerto96 (s8erdude)",
5 "width": 12.75,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"1", "x":0.5, "y":0},
11 {"label":"2", "x":1.5, "y":0},
12 {"label":"3", "x":2.5, "y":0},
13 {"label":"4", "x":3.5, "y":0},
14 {"label":"5", "x":4.5, "y":0},
15 {"label":"6", "x":5.5, "y":0},
16 {"label":"Tab", "x":0, "y":1},
17
18 {"label":"Q", "x":1, "y":1},
19 {"label":"W", "x":2, "y":1},
20 {"label":"E", "x":3, "y":1},
21 {"label":"R", "x":4, "y":1},
22 {"label":"T", "x":5, "y":1},
23 {"label":"Y", "x":6.75, "y":1},
24 {"label":"U", "x":7.75, "y":1},
25 {"label":"I", "x":8.75, "y":1},
26 {"label":"O", "x":9.75, "y":1},
27 {"label":"P", "x":10.75, "y":1},
28 {"label":"Back Space", "x":11.75, "y":1},
29
30 {"label":"Esc", "x":0, "y":2},
31 {"label":"A", "x":1, "y":2},
32 {"label":"S", "x":2, "y":2},
33 {"label":"D", "x":3, "y":2},
34 {"label":"F", "x":4, "y":2},
35 {"label":"G", "x":5, "y":2},
36 {"label":"H", "x":6.75, "y":2},
37 {"label":"J", "x":7.75, "y":2},
38 {"label":"K", "x":8.75, "y":2},
39 {"label":"L", "x":9.75, "y":2},
40 {"label":";", "x":10.75, "y":2},
41 {"label":"'", "x":11.75, "y":2},
42
43 {"label":"Shift", "x":0, "y":3},
44 {"label":"Z", "x":1, "y":3},
45 {"label":"X", "x":2, "y":3},
46 {"label":"C", "x":3, "y":3},
47 {"label":"V", "x":4, "y":3},
48 {"label":"B", "x":5, "y":3},
49 {"label":"N", "x":6.75, "y":3},
50 {"label":"M", "x":7.75, "y":3},
51 {"label":",", "x":8.75, "y":3},
52 {"label":".", "x":9.75, "y":3},
53 {"label":"&uarr;", "x":10.75, "y":3},
54 {"label":"Return", "x":11.75, "y":3},
55
56 {"label":"Gui", "x":0, "y":4},
57 {"label":"Ctrl", "x":1, "y":4},
58 {"label":"Alt", "x":2, "y":4},
59 {"label":"Space", "x":3, "y":4, "w":3},
60 {"label":"Enter", "x":6.75, "y":4, "w":3},
61 {"label":"&larr;", "x":9.75, "y":4},
62 {"label":"&darr;", "x":10.75, "y":4},
63 {"label":"&rarr;", "x":11.75, "y":4}]
64 }
65 }
66}
diff --git a/keyboards/v4n4g0rth0n/readme.md b/keyboards/v4n4g0rth0n/readme.md
new file mode 100644
index 000000000..dd44c95e8
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/readme.md
@@ -0,0 +1,17 @@
1# v4n4g0rth0n
2
3Drop in ortholinear PCB replacement for V4N4G0N
4
5* Keyboard Maintainer: [jpuerto](https://github.com/jpuerto96)
6* Hardware Supported: Only supports v4n4g0rth0n PCB
7* Hardware Availability: [GitHub](https://github.com/jpuerto96/v4n4g0rth0n)
8
9Make example for this keyboard (after setting up your build environment):
10
11 make v4n4g0rth0n/v1:default
12
13Flashing example for this keyboard:
14
15 make v4n4g0rth0n/v1:default:flash
16
17See 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/v4n4g0rth0n/v1/config.h b/keyboards/v4n4g0rth0n/v1/config.h
new file mode 100644
index 000000000..dd72cf650
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v1/config.h
@@ -0,0 +1,23 @@
1/*
2Copyright 2021 jpuerto
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#define DEVICE_VER 0x0001
21
22#define MATRIX_ROW_PINS { C7, C6, B6, B5, B7}
23#define MATRIX_COL_PINS { D3, D2, D1, D0, D5, F7, F6, E6, F5, F4, F1, F0}
diff --git a/keyboards/v4n4g0rth0n/v1/keymaps/default/keymap.c b/keyboards/v4n4g0rth0n/v1/keymaps/default/keymap.c
new file mode 100644
index 000000000..a1c547e88
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v1/keymaps/default/keymap.c
@@ -0,0 +1,48 @@
1/* Copyright 2021 jpuerto
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// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _BASE,
21 _NUM,
22 _FN
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 /* Base */
27 [_BASE] = LAYOUT(
28 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
29 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
30 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
31 KC_LCAP, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
32 KC_LGUI, MO(_NUM), MO(_FN), KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
33 ),
34 [_NUM] = LAYOUT(
35 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
36 KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
37 KC_LCTL, RESET, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
38 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
39 RESET, KC_TRNS, KC_TRNS, KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
40 ),
41 [_FN] = LAYOUT(
42 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
43 KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
44 KC_LCTL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV,
45 KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS, KC_TILD,
46 RESET, KC_TRNS, KC_TRNS, KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
47 )
48};
diff --git a/keyboards/v4n4g0rth0n/v1/readme.md b/keyboards/v4n4g0rth0n/v1/readme.md
new file mode 100644
index 000000000..957511705
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v1/readme.md
@@ -0,0 +1 @@
Revision 1 of this PCB that does not support a slider.
diff --git a/keyboards/v4n4g0rth0n/v1/rules.mk b/keyboards/v4n4g0rth0n/v1/rules.mk
new file mode 100644
index 000000000..cb9faecf7
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v1/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 = yes # 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/v4n4g0rth0n/v2/config.h b/keyboards/v4n4g0rth0n/v2/config.h
new file mode 100644
index 000000000..6e78e7357
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v2/config.h
@@ -0,0 +1,23 @@
1/*
2Copyright 2021 jpuerto
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#define DEVICE_VER 0x0002
21
22#define MATRIX_ROW_PINS { C7, C6, B6, B5, B7}
23#define MATRIX_COL_PINS { D3, D2, D1, D0, D5, F7, F6, E6, F5, F4, F1, B0}
diff --git a/keyboards/v4n4g0rth0n/v2/keymaps/default/keymap.c b/keyboards/v4n4g0rth0n/v2/keymaps/default/keymap.c
new file mode 100644
index 000000000..11616b2e7
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v2/keymaps/default/keymap.c
@@ -0,0 +1,86 @@
1/* Copyright 2021 jpuerto
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#include "analog.h"
18int16_t max_pot_val = 1023;
19int16_t max_ticks = 20;
20int16_t pot_oldVal = 0;
21int16_t pot_val = 0;
22bool moving = false;
23#define POT_TOLERANCE 50
24#define POT_PIN F0
25#include "print.h"
26
27
28void matrix_init_user(void) {
29 analogReference(ADC_REF_POWER);
30}
31
32void matrix_scan_user(void){
33 pot_val = (analogReadPin(POT_PIN));
34
35 // If there is a big enough change, then we need to do something
36 if (abs(pot_val - pot_oldVal) > POT_TOLERANCE) {
37 moving = true;
38 pot_oldVal = pot_val;
39 }
40 else{
41 if (moving){
42 // Do some fancy conversion to get 'absolute' position to num tap_codes to send
43 // Reset moving to 0 so that we don't get multiple attempts to do this
44 int num_ticks = ((float)pot_val/max_pot_val)*max_ticks;
45 for (int i = 0; i<max_ticks;++i){
46 tap_code(KC__VOLDOWN);
47 }
48 for (int i = 0; i<num_ticks;++i){
49 tap_code(KC__VOLUP);
50 }
51 moving = false;
52 }
53 }
54}
55
56// Defines names for use in layer keycodes and the keymap
57enum layer_names {
58 _BASE,
59 _NUM,
60 _FN
61};
62
63const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
64 /* Base */
65 [_BASE] = LAYOUT(
66 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
67 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
68 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
69 KC_LCAP, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
70 KC_LGUI, MO(_NUM), MO(_FN), KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
71 ),
72 [_NUM] = LAYOUT(
73 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
74 KC_TAB, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
75 KC_LCTL, RESET, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
76 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
77 RESET, KC_TRNS, KC_TRNS, KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
78 ),
79 [_FN] = LAYOUT(
80 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
81 KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC,
82 KC_LCTL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_MINS, KC_EQL, KC_LCBR, KC_RCBR, KC_PIPE, KC_GRV,
83 KC_LSFT, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_BSLS, KC_TILD,
84 RESET, KC_TRNS, KC_TRNS, KC_SPC, KC_ENT, KC_LEFT, KC_DOWN, KC_RIGHT
85 )
86};
diff --git a/keyboards/v4n4g0rth0n/v2/readme.md b/keyboards/v4n4g0rth0n/v2/readme.md
new file mode 100644
index 000000000..d6ecd7576
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v2/readme.md
@@ -0,0 +1 @@
PCB with slider support.
diff --git a/keyboards/v4n4g0rth0n/v2/rules.mk b/keyboards/v4n4g0rth0n/v2/rules.mk
new file mode 100644
index 000000000..2a569001f
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v2/rules.mk
@@ -0,0 +1,25 @@
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 = yes # 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
23
24SRC += analog.c
25
diff --git a/keyboards/v4n4g0rth0n/v4n4g0rth0n.c b/keyboards/v4n4g0rth0n/v4n4g0rth0n.c
new file mode 100644
index 000000000..983bd7878
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v4n4g0rth0n.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 jpuerto
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 "v4n4g0rth0n.h"
diff --git a/keyboards/v4n4g0rth0n/v4n4g0rth0n.h b/keyboards/v4n4g0rth0n/v4n4g0rth0n.h
new file mode 100644
index 000000000..7c8edfeb1
--- /dev/null
+++ b/keyboards/v4n4g0rth0n/v4n4g0rth0n.h
@@ -0,0 +1,43 @@
1/* Copyright 2021 jpuerto
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#define XXX KC_NO
22
23/* This is a shortcut to help you visually see your layout.
24 *
25 * The first section contains all of the arguments representing the physical
26 * layout of the board and position of the keys.
27 *
28 * The second converts the arguments into a two-dimensional array which
29 * represents the switch matrix.
30 */
31#define LAYOUT( \
32 k00, k01, k02, k03, k04, k05, \
33 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, \
34 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, \
35 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, \
36 k40, k41, k42, k44, k47, k49, k4A, k4B \
37) { \
38 { k00, k01, k02, k03, k04, k05, XXX, XXX, XXX, XXX, XXX, XXX }, \
39 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B }, \
40 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B }, \
41 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B }, \
42 { k40, k41, k42, XXX, k44, XXX, XXX, k47, XXX, k49, k4A, k4B } \
43}