diff options
author | Matthew Dias <matthewdias@me.com> | 2021-07-23 11:10:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 08:10:01 -0700 |
commit | 4a47ee937db397b32387b5d71851569cdfc8a8d2 (patch) | |
tree | 2c03702a9205776e68a1afc730a21075fd4b94df /keyboards/model_v | |
parent | cda1792ece293cbea27c3e3039edd1ae8aada2ca (diff) | |
download | qmk_firmware-4a47ee937db397b32387b5d71851569cdfc8a8d2.tar.gz qmk_firmware-4a47ee937db397b32387b5d71851569cdfc8a8d2.zip |
[Keyboard] Add model-v keyboard (#13643)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/model_v')
-rw-r--r-- | keyboards/model_v/config.h | 62 | ||||
-rw-r--r-- | keyboards/model_v/info.json | 153 | ||||
-rw-r--r-- | keyboards/model_v/keymaps/default/keymap.c | 41 | ||||
-rw-r--r-- | keyboards/model_v/keymaps/via/keymap.c | 48 | ||||
-rw-r--r-- | keyboards/model_v/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/model_v/model_v.c | 18 | ||||
-rw-r--r-- | keyboards/model_v/model_v.h | 61 | ||||
-rw-r--r-- | keyboards/model_v/readme.md | 20 | ||||
-rw-r--r-- | keyboards/model_v/rules.mk | 22 |
9 files changed, 426 insertions, 0 deletions
diff --git a/keyboards/model_v/config.h b/keyboards/model_v/config.h new file mode 100644 index 000000000..847599a36 --- /dev/null +++ b/keyboards/model_v/config.h | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0x6D64 | ||
25 | #define PRODUCT_ID 0x6D76 | ||
26 | #define DEVICE_VER 0x0001 | ||
27 | #define MANUFACTURER Matthew Dias | ||
28 | #define PRODUCT model-v | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 4 | ||
32 | #define MATRIX_COLS 12 | ||
33 | |||
34 | /* model-v PCB default pin-out */ | ||
35 | #define MATRIX_ROW_PINS { D3, D5, D6, D4 } | ||
36 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7, C6, B6, B5, B4, D7 } | ||
37 | |||
38 | /* COL2ROW or ROW2COL */ | ||
39 | #define DIODE_DIRECTION COL2ROW | ||
40 | |||
41 | /* Set 0 if debouncing isn't needed */ | ||
42 | #define DEBOUNCE 5 | ||
43 | |||
44 | /* | ||
45 | * Feature disable options | ||
46 | * These options are also useful to firmware size reduction. | ||
47 | */ | ||
48 | |||
49 | /* disable debug print */ | ||
50 | //#define NO_DEBUG | ||
51 | |||
52 | /* disable print */ | ||
53 | //#define NO_PRINT | ||
54 | |||
55 | /* disable action features */ | ||
56 | //#define NO_ACTION_LAYER | ||
57 | //#define NO_ACTION_TAPPING | ||
58 | //#define NO_ACTION_ONESHOT | ||
59 | |||
60 | /* disable these deprecated features by default */ | ||
61 | #define NO_ACTION_MACRO | ||
62 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/model_v/info.json b/keyboards/model_v/info.json new file mode 100644 index 000000000..1179e3e3d --- /dev/null +++ b/keyboards/model_v/info.json | |||
@@ -0,0 +1,153 @@ | |||
1 | { | ||
2 | "keyboard_name": "model-v", | ||
3 | "maintainer": "matthewdias", | ||
4 | "width": 12.75, | ||
5 | "height": 4, | ||
6 | "layouts": { | ||
7 | "LAYOUT_split": { | ||
8 | "layout": [ | ||
9 | { "label": "Esc", "x": 0, "y": 0 }, | ||
10 | { "label": "Q", "x": 1, "y": 0 }, | ||
11 | { "label": "W", "x": 2, "y": 0 }, | ||
12 | { "label": "E", "x": 3, "y": 0 }, | ||
13 | { "label": "R", "x": 4, "y": 0 }, | ||
14 | { "label": "T", "x": 5, "y": 0 }, | ||
15 | { "label": "Y", "x": 6, "y": 0 }, | ||
16 | { "label": "U", "x": 7, "y": 0 }, | ||
17 | { "label": "I", "x": 8, "y": 0 }, | ||
18 | { "label": "O", "x": 9, "y": 0 }, | ||
19 | { "label": "P", "x": 10, "y": 0 }, | ||
20 | { "label": "Backspace", "x": 11, "y": 0, "w": 1.75 }, | ||
21 | { "label": "Tab", "x": 0, "y": 1, "w": 1.25 }, | ||
22 | { "label": "A", "x": 1.25, "y": 1 }, | ||
23 | { "label": "S", "x": 2.25, "y": 1 }, | ||
24 | { "label": "D", "x": 3.25, "y": 1 }, | ||
25 | { "label": "F", "x": 4.25, "y": 1 }, | ||
26 | { "label": "G", "x": 5.25, "y": 1 }, | ||
27 | { "label": "H", "x": 6.25, "y": 1 }, | ||
28 | { "label": "J", "x": 7.25, "y": 1 }, | ||
29 | { "label": "K", "x": 8.25, "y": 1 }, | ||
30 | { "label": "L", "x": 9.25, "y": 1 }, | ||
31 | { "label": ";", "x": 10.25, "y": 1 }, | ||
32 | { "label": "Enter", "x": 11.25, "y": 1, "w": 1.5 }, | ||
33 | { "label": "Shift", "x": 0, "y": 2, "w": 1.75 }, | ||
34 | { "label": "Z", "x": 1.75, "y": 2 }, | ||
35 | { "label": "X", "x": 2.75, "y": 2 }, | ||
36 | { "label": "C", "x": 3.75, "y": 2 }, | ||
37 | { "label": "V", "x": 4.75, "y": 2 }, | ||
38 | { "label": "B", "x": 5.75, "y": 2 }, | ||
39 | { "label": "N", "x": 6.75, "y": 2 }, | ||
40 | { "label": "M", "x": 7.75, "y": 2 }, | ||
41 | { "label": "<", "x": 8.75, "y": 2 }, | ||
42 | { "label": ">", "x": 9.75, "y": 2 }, | ||
43 | { "label": "/", "x": 10.75, "y": 2 }, | ||
44 | { "label": "Shift", "x": 11.75, "y": 2 }, | ||
45 | { "label": "Ctrl", "x": 0, "y": 3, "w": 1.25 }, | ||
46 | { "label": "Alt", "x": 1.25, "y": 3 }, | ||
47 | { "label": "Meta", "x": 2.25, "y": 3, "w": 1.25 }, | ||
48 | { "label": "Raise", "x": 3.5, "y": 3 }, | ||
49 | { "x": 4.5, "y": 3, "w": 2.25 }, | ||
50 | { "x": 6.75, "y": 3, "w": 2 }, | ||
51 | { "label": "Lower", "x": 8.75, "y": 3 }, | ||
52 | { "label": "Meta", "x": 9.75, "y": 3 }, | ||
53 | { "label": "Alt", "x": 10.75, "y": 3 }, | ||
54 | { "label": "Ctrl", "x": 11.75, "y": 3 } | ||
55 | ] | ||
56 | }, | ||
57 | "LAYOUT_2x3u": { | ||
58 | "layout": [ | ||
59 | { "label": "Esc", "x": 0, "y": 0 }, | ||
60 | { "label": "Q", "x": 1, "y": 0 }, | ||
61 | { "label": "W", "x": 2, "y": 0 }, | ||
62 | { "label": "E", "x": 3, "y": 0 }, | ||
63 | { "label": "R", "x": 4, "y": 0 }, | ||
64 | { "label": "T", "x": 5, "y": 0 }, | ||
65 | { "label": "Y", "x": 6, "y": 0 }, | ||
66 | { "label": "U", "x": 7, "y": 0 }, | ||
67 | { "label": "I", "x": 8, "y": 0 }, | ||
68 | { "label": "O", "x": 9, "y": 0 }, | ||
69 | { "label": "P", "x": 10, "y": 0 }, | ||
70 | { "label": "Backspace", "x": 11, "y": 0, "w": 1.75 }, | ||
71 | { "label": "Tab", "x": 0, "y": 1, "w": 1.25 }, | ||
72 | { "label": "A", "x": 1.25, "y": 1 }, | ||
73 | { "label": "S", "x": 2.25, "y": 1 }, | ||
74 | { "label": "D", "x": 3.25, "y": 1 }, | ||
75 | { "label": "F", "x": 4.25, "y": 1 }, | ||
76 | { "label": "G", "x": 5.25, "y": 1 }, | ||
77 | { "label": "H", "x": 6.25, "y": 1 }, | ||
78 | { "label": "J", "x": 7.25, "y": 1 }, | ||
79 | { "label": "K", "x": 8.25, "y": 1 }, | ||
80 | { "label": "L", "x": 9.25, "y": 1 }, | ||
81 | { "label": ";", "x": 10.25, "y": 1 }, | ||
82 | { "label": "Enter", "x": 11.25, "y": 1, "w": 1.5 }, | ||
83 | { "label": "Shift", "x": 0, "y": 2, "w": 1.75 }, | ||
84 | { "label": "Z", "x": 1.75, "y": 2 }, | ||
85 | { "label": "X", "x": 2.75, "y": 2 }, | ||
86 | { "label": "C", "x": 3.75, "y": 2 }, | ||
87 | { "label": "V", "x": 4.75, "y": 2 }, | ||
88 | { "label": "B", "x": 5.75, "y": 2 }, | ||
89 | { "label": "N", "x": 6.75, "y": 2 }, | ||
90 | { "label": "M", "x": 7.75, "y": 2 }, | ||
91 | { "label": "<", "x": 8.75, "y": 2 }, | ||
92 | { "label": ">", "x": 9.75, "y": 2 }, | ||
93 | { "label": "/", "x": 10.75, "y": 2 }, | ||
94 | { "label": "Shift", "x": 11.75, "y": 2 }, | ||
95 | { "label": "Ctrl", "x": 0, "y": 3, "w": 1.25 }, | ||
96 | { "label": "Alt", "x": 1.25, "y": 3 }, | ||
97 | { "label": "Meta", "x": 2.25, "y": 3, "w": 1.25 }, | ||
98 | { "x": 3.5, "y": 3, "w": 3 }, | ||
99 | { "x": 6.5, "y": 3, "w": 3 }, | ||
100 | { "label": "Meta", "x": 9.5, "y": 3, "w": 1.25 }, | ||
101 | { "label": "Alt", "x": 10.75, "y": 3 }, | ||
102 | { "label": "Ctrl", "x": 11.75, "y": 3 } | ||
103 | ] | ||
104 | }, | ||
105 | "LAYOUT_bigbar": { | ||
106 | "layout": [ | ||
107 | { "label": "Esc", "x": 0, "y": 0 }, | ||
108 | { "label": "Q", "x": 1, "y": 0 }, | ||
109 | { "label": "W", "x": 2, "y": 0 }, | ||
110 | { "label": "E", "x": 3, "y": 0 }, | ||
111 | { "label": "R", "x": 4, "y": 0 }, | ||
112 | { "label": "T", "x": 5, "y": 0 }, | ||
113 | { "label": "Y", "x": 6, "y": 0 }, | ||
114 | { "label": "U", "x": 7, "y": 0 }, | ||
115 | { "label": "I", "x": 8, "y": 0 }, | ||
116 | { "label": "O", "x": 9, "y": 0 }, | ||
117 | { "label": "P", "x": 10, "y": 0 }, | ||
118 | { "label": "Backspace", "x": 11, "y": 0, "w": 1.75 }, | ||
119 | { "label": "Tab", "x": 0, "y": 1, "w": 1.25 }, | ||
120 | { "label": "A", "x": 1.25, "y": 1 }, | ||
121 | { "label": "S", "x": 2.25, "y": 1 }, | ||
122 | { "label": "D", "x": 3.25, "y": 1 }, | ||
123 | { "label": "F", "x": 4.25, "y": 1 }, | ||
124 | { "label": "G", "x": 5.25, "y": 1 }, | ||
125 | { "label": "H", "x": 6.25, "y": 1 }, | ||
126 | { "label": "J", "x": 7.25, "y": 1 }, | ||
127 | { "label": "K", "x": 8.25, "y": 1 }, | ||
128 | { "label": "L", "x": 9.25, "y": 1 }, | ||
129 | { "label": ";", "x": 10.25, "y": 1 }, | ||
130 | { "label": "Enter", "x": 11.25, "y": 1, "w": 1.5 }, | ||
131 | { "label": "Shift", "x": 0, "y": 2, "w": 1.75 }, | ||
132 | { "label": "Z", "x": 1.75, "y": 2 }, | ||
133 | { "label": "X", "x": 2.75, "y": 2 }, | ||
134 | { "label": "C", "x": 3.75, "y": 2 }, | ||
135 | { "label": "V", "x": 4.75, "y": 2 }, | ||
136 | { "label": "B", "x": 5.75, "y": 2 }, | ||
137 | { "label": "N", "x": 6.75, "y": 2 }, | ||
138 | { "label": "M", "x": 7.75, "y": 2 }, | ||
139 | { "label": "<", "x": 8.75, "y": 2 }, | ||
140 | { "label": ">", "x": 9.75, "y": 2 }, | ||
141 | { "label": "/", "x": 10.75, "y": 2 }, | ||
142 | { "label": "Shift", "x": 11.75, "y": 2 }, | ||
143 | { "label": "Ctrl", "x": 0, "y": 3, "w": 1.25 }, | ||
144 | { "label": "Alt", "x": 1.25, "y": 3 }, | ||
145 | { "label": "Meta", "x": 2.25, "y": 3, "w": 1.25 }, | ||
146 | { "x": 3.5, "y": 3, "w": 6.25 }, | ||
147 | { "label": "Meta", "x": 9.75, "y": 3 }, | ||
148 | { "label": "Alt", "x": 10.75, "y": 3 }, | ||
149 | { "label": "Ctrl", "x": 11.75, "y": 3 } | ||
150 | ] | ||
151 | } | ||
152 | } | ||
153 | } | ||
diff --git a/keyboards/model_v/keymaps/default/keymap.c b/keyboards/model_v/keymaps/default/keymap.c new file mode 100644 index 000000000..d64a12b35 --- /dev/null +++ b/keyboards/model_v/keymaps/default/keymap.c | |||
@@ -0,0 +1,41 @@ | |||
1 | /* | ||
2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_split( | ||
22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
23 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
24 | KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, | ||
25 | KC_LCTL, KC_LALT, KC_LGUI, MO(2), KC_SPC, KC_SPC, MO(1), KC_RGUI, KC_RALT, KC_RCTL | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_split( | ||
29 | KC_GRV, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_LBRC, KC_RBRC, KC_TRNS, | ||
30 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_QUOT, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_SLSH, KC_TRNS, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
33 | ), | ||
34 | |||
35 | [2] = LAYOUT_split( | ||
36 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
40 | ) | ||
41 | }; | ||
diff --git a/keyboards/model_v/keymaps/via/keymap.c b/keyboards/model_v/keymaps/via/keymap.c new file mode 100644 index 000000000..ae16e72b2 --- /dev/null +++ b/keyboards/model_v/keymaps/via/keymap.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* | ||
2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_split( | ||
22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
23 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
24 | KC_RSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, | ||
25 | KC_LCTL, KC_LALT, KC_LGUI, MO(2), KC_SPC, KC_SPC, MO(1), KC_RGUI, KC_RALT, KC_RCTL | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_split( | ||
29 | KC_GRV, KC_MPRV, KC_MPLY, KC_MNXT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_LBRC, KC_RBRC, KC_TRNS, | ||
30 | KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_QUOT, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_SLSH, KC_TRNS, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
33 | ), | ||
34 | |||
35 | [2] = LAYOUT_split( | ||
36 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
40 | ), | ||
41 | |||
42 | [3] = LAYOUT_split( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSLS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
47 | ) | ||
48 | }; | ||
diff --git a/keyboards/model_v/keymaps/via/rules.mk b/keyboards/model_v/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/model_v/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/model_v/model_v.c b/keyboards/model_v/model_v.c new file mode 100644 index 000000000..a65738d97 --- /dev/null +++ b/keyboards/model_v/model_v.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include "model_v.h" | ||
diff --git a/keyboards/model_v/model_v.h b/keyboards/model_v/model_v.h new file mode 100644 index 000000000..6f3a96080 --- /dev/null +++ b/keyboards/model_v/model_v.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* | ||
2 | Copyright 2021 Matthew Dias <matthewdias@me.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "quantum.h" | ||
21 | |||
22 | #define XXX KC_NO | ||
23 | |||
24 | #define LAYOUT_split( \ | ||
25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
28 | K30, K31, K32, K33, K35, K37, K38, K39, K3A, K3B \ | ||
29 | ) \ | ||
30 | { \ | ||
31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
33 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
34 | { K30, K31, K32, K33, XXX, K35, XXX, K37, K38, K39, K3A, K3B } \ | ||
35 | } | ||
36 | |||
37 | #define LAYOUT_2x3u( \ | ||
38 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
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, K35, K37, K39, K3A, K3B \ | ||
42 | ) \ | ||
43 | { \ | ||
44 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
45 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
46 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
47 | { K30, K31, K32, XXX, XXX, K35, XXX, K37, XXX, K39, K3A, K3B } \ | ||
48 | } | ||
49 | |||
50 | #define LAYOUT_bigbar( \ | ||
51 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \ | ||
52 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
53 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \ | ||
54 | K30, K31, K32, K35, K39, K3A, K3B \ | ||
55 | ) \ | ||
56 | { \ | ||
57 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \ | ||
58 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \ | ||
59 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \ | ||
60 | { K30, K31, K32, XXX, XXX, K35, XXX, XXX, XXX, K39, K3A, K3B } \ | ||
61 | } | ||
diff --git a/keyboards/model_v/readme.md b/keyboards/model_v/readme.md new file mode 100644 index 000000000..17d12d810 --- /dev/null +++ b/keyboards/model_v/readme.md | |||
@@ -0,0 +1,20 @@ | |||
1 | # model-v | ||
2 | |||
3 |  | ||
4 | |||
5 | A minivan case compatible PCB with flex cuts. | ||
6 | |||
7 | - Keyboard Maintainer: matthewdias | ||
8 | - Hardware Supported: model-v pcb | ||
9 | |||
10 | To reset the keyboard into bootloader mode, press the reset switch on the underside. | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make model_v:default | ||
15 | |||
16 | Flashing example for this keyboard ([using the command line](https://docs.qmk.fm/#/newbs_flashing?id=flash-your-keyboard-from-the-command-line)): | ||
17 | |||
18 | make model_v:default:flash | ||
19 | |||
20 | See 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/model_v/rules.mk b/keyboards/model_v/rules.mk new file mode 100644 index 000000000..32981133b --- /dev/null +++ b/keyboards/model_v/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_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 | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||