aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/portal_66/config.h109
-rw-r--r--keyboards/portal_66/info.json312
-rw-r--r--keyboards/portal_66/keymaps/default/keymap.c38
-rw-r--r--keyboards/portal_66/keymaps/default/readme.md1
-rw-r--r--keyboards/portal_66/keymaps/via/keymap.c54
-rw-r--r--keyboards/portal_66/keymaps/via/rules.mk1
-rw-r--r--keyboards/portal_66/portal_66.c17
-rw-r--r--keyboards/portal_66/portal_66.h75
-rw-r--r--keyboards/portal_66/readme.md18
-rw-r--r--keyboards/portal_66/rules.mk24
10 files changed, 649 insertions, 0 deletions
diff --git a/keyboards/portal_66/config.h b/keyboards/portal_66/config.h
new file mode 100644
index 000000000..3a3efc80b
--- /dev/null
+++ b/keyboards/portal_66/config.h
@@ -0,0 +1,109 @@
1/*
2Copyright 2021 Matthew Dias
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 0x504C
24#define PRODUCT_ID 0x5066
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Parallel Limited
27#define PRODUCT Portal 66
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 16
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 { E6, B7, F7, F4, F5 }
44#define MATRIX_COL_PINS { F6, B0, F1, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
51#define DEBOUNCE 5
52
53/* define if matrix has ghost (lacks anti-ghosting diodes) */
54//#define MATRIX_HAS_GHOST
55
56/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
57#define LOCKING_SUPPORT_ENABLE
58/* Locking resynchronize hack */
59#define LOCKING_RESYNC_ENABLE
60
61/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
62 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
63 */
64//#define GRAVE_ESC_CTRL_OVERRIDE
65
66/*
67 * Force NKRO
68 *
69 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
70 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
71 * makefile for this to work.)
72 *
73 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
74 * until the next keyboard reset.
75 *
76 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
77 * fully operational during normal computer usage.
78 *
79 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
80 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
81 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
82 * power-up.
83 *
84 */
85//#define FORCE_NKRO
86
87/*
88 * Feature disable options
89 * These options are also useful to firmware size reduction.
90 */
91
92/* disable debug print */
93//#define NO_DEBUG
94
95/* disable print */
96//#define NO_PRINT
97
98/* disable action features */
99//#define NO_ACTION_LAYER
100//#define NO_ACTION_TAPPING
101//#define NO_ACTION_ONESHOT
102
103/* disable these deprecated features by default */
104#define NO_ACTION_MACRO
105#define NO_ACTION_FUNCTION
106
107/* Bootmagic Lite key configuration */
108//#define BOOTMAGIC_LITE_ROW 0
109//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/portal_66/info.json b/keyboards/portal_66/info.json
new file mode 100644
index 000000000..20d7297ca
--- /dev/null
+++ b/keyboards/portal_66/info.json
@@ -0,0 +1,312 @@
1{
2 "keyboard_name": "Portal 66",
3 "maintainer": "matthewdias",
4 "width": 16,
5 "height": 5,
6 "layouts": {
7 "LAYOUT_65_ansi_split_bs": {
8 "layout": [
9 { "x":0, "y":0 },
10 { "x":1, "y":0 },
11 { "x":2, "y":0 },
12 { "x":3, "y":0 },
13 { "x":4, "y":0 },
14 { "x":5, "y":0 },
15 { "x":6, "y":0 },
16 { "x":7, "y":0 },
17 { "x":8, "y":0 },
18 { "x":9, "y":0 },
19 { "x":10, "y":0 },
20 { "x":11, "y":0 },
21 { "x":12, "y":0 },
22 { "x":13, "y":0 },
23 { "x":14, "y":0 },
24 { "x":15, "y":0 },
25
26 { "x":0, "y":1, "w":1.5 },
27 { "x":1.5, "y":1 },
28 { "x":2.5, "y":1 },
29 { "x":3.5, "y":1 },
30 { "x":4.5, "y":1 },
31 { "x":5.5, "y":1 },
32 { "x":6.5, "y":1 },
33 { "x":7.5, "y":1 },
34 { "x":8.5, "y":1 },
35 { "x":9.5, "y":1 },
36 { "x":10.5, "y":1 },
37 { "x":11.5, "y":1 },
38 { "x":12.5, "y":1 },
39 { "x":13.5, "y":1, "w":1.5 },
40 { "x":15, "y":1 },
41
42 { "x":0, "y":2, "w":1.75 },
43 { "x":1.75, "y":2 },
44 { "x":2.75, "y":2 },
45 { "x":3.75, "y":2 },
46 { "x":4.75, "y":2 },
47 { "x":5.75, "y":2 },
48 { "x":6.75, "y":2 },
49 { "x":7.75, "y":2 },
50 { "x":8.75, "y":2 },
51 { "x":9.75, "y":2 },
52 { "x":10.75, "y":2 },
53 { "x":11.75, "y":2 },
54 { "x":12.75, "y":2, "w":2.25 },
55 { "x":15, "y":2 },
56
57 { "x":0, "y":3, "w":2.25 },
58 { "x":2.25, "y":3 },
59 { "x":3.25, "y":3 },
60 { "x":4.25, "y":3 },
61 { "x":5.25, "y":3 },
62 { "x":6.25, "y":3 },
63 { "x":7.25, "y":3 },
64 { "x":8.25, "y":3 },
65 { "x":9.25, "y":3 },
66 { "x":10.25, "y":3 },
67 { "x":11.25, "y":3 },
68 { "x":12.25, "y":3, "w":1.75 },
69 { "x":14, "y":3 },
70 { "x":15, "y":3 },
71
72 { "x":0, "y":4, "w":1.25 },
73 { "x":1.25, "y":4, "w":1.25 },
74 { "x":2.5, "y":4, "w":1.25 },
75 { "x":3.75, "y":4, "w":6.25 },
76 { "x":10, "y":4 },
77 { "x":11, "y":4 },
78 { "x":12, "y":4 },
79 { "x":13, "y":4 },
80 { "x":14, "y":4 },
81 { "x":15, "y":4 }
82 ]
83 },
84 "LAYOUT_65_ansi": {
85 "layout": [
86 { "x":0, "y":0 },
87 { "x":1, "y":0 },
88 { "x":2, "y":0 },
89 { "x":3, "y":0 },
90 { "x":4, "y":0 },
91 { "x":5, "y":0 },
92 { "x":6, "y":0 },
93 { "x":7, "y":0 },
94 { "x":8, "y":0 },
95 { "x":9, "y":0 },
96 { "x":10, "y":0 },
97 { "x":11, "y":0 },
98 { "x":12, "y":0 },
99 { "x":13, "y":0, "w": 2 },
100 { "x":15, "y":0 },
101
102 { "x":0, "y":1, "w":1.5 },
103 { "x":1.5, "y":1 },
104 { "x":2.5, "y":1 },
105 { "x":3.5, "y":1 },
106 { "x":4.5, "y":1 },
107 { "x":5.5, "y":1 },
108 { "x":6.5, "y":1 },
109 { "x":7.5, "y":1 },
110 { "x":8.5, "y":1 },
111 { "x":9.5, "y":1 },
112 { "x":10.5, "y":1 },
113 { "x":11.5, "y":1 },
114 { "x":12.5, "y":1 },
115 { "x":13.5, "y":1, "w":1.5 },
116 { "x":15, "y":1 },
117
118 { "x":0, "y":2, "w":1.75 },
119 { "x":1.75, "y":2 },
120 { "x":2.75, "y":2 },
121 { "x":3.75, "y":2 },
122 { "x":4.75, "y":2 },
123 { "x":5.75, "y":2 },
124 { "x":6.75, "y":2 },
125 { "x":7.75, "y":2 },
126 { "x":8.75, "y":2 },
127 { "x":9.75, "y":2 },
128 { "x":10.75, "y":2 },
129 { "x":11.75, "y":2 },
130 { "x":12.75, "y":2, "w":2.25 },
131 { "x":15, "y":2 },
132
133 { "x":0, "y":3, "w":2.25 },
134 { "x":2.25, "y":3 },
135 { "x":3.25, "y":3 },
136 { "x":4.25, "y":3 },
137 { "x":5.25, "y":3 },
138 { "x":6.25, "y":3 },
139 { "x":7.25, "y":3 },
140 { "x":8.25, "y":3 },
141 { "x":9.25, "y":3 },
142 { "x":10.25, "y":3 },
143 { "x":11.25, "y":3 },
144 { "x":12.25, "y":3, "w":1.75 },
145 { "x":14, "y":3 },
146 { "x":15, "y":3 },
147
148 { "x":0, "y":4, "w":1.25 },
149 { "x":1.25, "y":4, "w":1.25 },
150 { "x":2.5, "y":4, "w":1.25 },
151 { "x":3.75, "y":4, "w":6.25 },
152 { "x":10, "y":4 },
153 { "x":11, "y":4 },
154 { "x":12, "y":4 },
155 { "x":13, "y":4 },
156 { "x":14, "y":4 },
157 { "x":15, "y":4 }
158 ]
159 },
160 "LAYOUT_65_ansi_split_bs_2_right_mods": {
161 "layout": [
162 { "x":0, "y":0 },
163 { "x":1, "y":0 },
164 { "x":2, "y":0 },
165 { "x":3, "y":0 },
166 { "x":4, "y":0 },
167 { "x":5, "y":0 },
168 { "x":6, "y":0 },
169 { "x":7, "y":0 },
170 { "x":8, "y":0 },
171 { "x":9, "y":0 },
172 { "x":10, "y":0 },
173 { "x":11, "y":0 },
174 { "x":12, "y":0 },
175 { "x":13, "y":0 },
176 { "x":14, "y":0 },
177 { "x":15, "y":0 },
178
179 { "x":0, "y":1, "w":1.5 },
180 { "x":1.5, "y":1 },
181 { "x":2.5, "y":1 },
182 { "x":3.5, "y":1 },
183 { "x":4.5, "y":1 },
184 { "x":5.5, "y":1 },
185 { "x":6.5, "y":1 },
186 { "x":7.5, "y":1 },
187 { "x":8.5, "y":1 },
188 { "x":9.5, "y":1 },
189 { "x":10.5, "y":1 },
190 { "x":11.5, "y":1 },
191 { "x":12.5, "y":1 },
192 { "x":13.5, "y":1, "w":1.5 },
193 { "x":15, "y":1 },
194
195 { "x":0, "y":2, "w":1.75 },
196 { "x":1.75, "y":2 },
197 { "x":2.75, "y":2 },
198 { "x":3.75, "y":2 },
199 { "x":4.75, "y":2 },
200 { "x":5.75, "y":2 },
201 { "x":6.75, "y":2 },
202 { "x":7.75, "y":2 },
203 { "x":8.75, "y":2 },
204 { "x":9.75, "y":2 },
205 { "x":10.75, "y":2 },
206 { "x":11.75, "y":2 },
207 { "x":12.75, "y":2, "w":2.25 },
208 { "x":15, "y":2 },
209
210 { "x":0, "y":3, "w":2.25 },
211 { "x":2.25, "y":3 },
212 { "x":3.25, "y":3 },
213 { "x":4.25, "y":3 },
214 { "x":5.25, "y":3 },
215 { "x":6.25, "y":3 },
216 { "x":7.25, "y":3 },
217 { "x":8.25, "y":3 },
218 { "x":9.25, "y":3 },
219 { "x":10.25, "y":3 },
220 { "x":11.25, "y":3 },
221 { "x":12.25, "y":3, "w":1.75 },
222 { "x":14, "y":3 },
223 { "x":15, "y":3 },
224
225 { "x":0, "y":4, "w":1.25 },
226 { "x":1.25, "y":4, "w":1.25 },
227 { "x":2.5, "y":4, "w":1.25 },
228 { "x":3.75, "y":4, "w":6.25 },
229 { "x":10, "y":4, "w":1.5 },
230 { "x":11.5, "y":4, "w":1.5 },
231 { "x":13, "y":4 },
232 { "x":14, "y":4 },
233 { "x":15, "y":4 }
234 ]
235 },
236 "LAYOUT_65_ansi_2_right_mods": {
237 "layout": [
238 { "x":0, "y":0 },
239 { "x":1, "y":0 },
240 { "x":2, "y":0 },
241 { "x":3, "y":0 },
242 { "x":4, "y":0 },
243 { "x":5, "y":0 },
244 { "x":6, "y":0 },
245 { "x":7, "y":0 },
246 { "x":8, "y":0 },
247 { "x":9, "y":0 },
248 { "x":10, "y":0 },
249 { "x":11, "y":0 },
250 { "x":12, "y":0 },
251 { "x":13, "y":0, "w": 2 },
252 { "x":15, "y":0 },
253
254 { "x":0, "y":1, "w":1.5 },
255 { "x":1.5, "y":1 },
256 { "x":2.5, "y":1 },
257 { "x":3.5, "y":1 },
258 { "x":4.5, "y":1 },
259 { "x":5.5, "y":1 },
260 { "x":6.5, "y":1 },
261 { "x":7.5, "y":1 },
262 { "x":8.5, "y":1 },
263 { "x":9.5, "y":1 },
264 { "x":10.5, "y":1 },
265 { "x":11.5, "y":1 },
266 { "x":12.5, "y":1 },
267 { "x":13.5, "y":1, "w":1.5 },
268 { "x":15, "y":1 },
269
270 { "x":0, "y":2, "w":1.75 },
271 { "x":1.75, "y":2 },
272 { "x":2.75, "y":2 },
273 { "x":3.75, "y":2 },
274 { "x":4.75, "y":2 },
275 { "x":5.75, "y":2 },
276 { "x":6.75, "y":2 },
277 { "x":7.75, "y":2 },
278 { "x":8.75, "y":2 },
279 { "x":9.75, "y":2 },
280 { "x":10.75, "y":2 },
281 { "x":11.75, "y":2 },
282 { "x":12.75, "y":2, "w":2.25 },
283 { "x":15, "y":2 },
284
285 { "x":0, "y":3, "w":2.25 },
286 { "x":2.25, "y":3 },
287 { "x":3.25, "y":3 },
288 { "x":4.25, "y":3 },
289 { "x":5.25, "y":3 },
290 { "x":6.25, "y":3 },
291 { "x":7.25, "y":3 },
292 { "x":8.25, "y":3 },
293 { "x":9.25, "y":3 },
294 { "x":10.25, "y":3 },
295 { "x":11.25, "y":3 },
296 { "x":12.25, "y":3, "w":1.75 },
297 { "x":14, "y":3 },
298 { "x":15, "y":3 },
299
300 { "x":0, "y":4, "w":1.25 },
301 { "x":1.25, "y":4, "w":1.25 },
302 { "x":2.5, "y":4, "w":1.25 },
303 { "x":3.75, "y":4, "w":6.25 },
304 { "x":10, "y":4, "w":1.5 },
305 { "x":11.5, "y":4, "w":1.5 },
306 { "x":13, "y":4 },
307 { "x":14, "y":4 },
308 { "x":15, "y":4 }
309 ]
310 }
311 }
312}
diff --git a/keyboards/portal_66/keymaps/default/keymap.c b/keyboards/portal_66/keymaps/default/keymap.c
new file mode 100644
index 000000000..0269d577b
--- /dev/null
+++ b/keyboards/portal_66/keymaps/default/keymap.c
@@ -0,0 +1,38 @@
1/* Copyright 2021 Matthew Dias
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
18enum layer_names {
19 _BASE,
20 _FN
21};
22
23const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
24 [_BASE] = LAYOUT_65_ansi_split_bs(
25 KC_ESC, 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_GRV, KC_BSPC, KC_HOME,
26 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_END,
27 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_ENT, KC_PGUP,
28 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
29 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
30 ),
31 [_FN] = LAYOUT_65_ansi_split_bs(
32 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
37 )
38};
diff --git a/keyboards/portal_66/keymaps/default/readme.md b/keyboards/portal_66/keymaps/default/readme.md
new file mode 100644
index 000000000..5d87fc7fe
--- /dev/null
+++ b/keyboards/portal_66/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for Portal 66
diff --git a/keyboards/portal_66/keymaps/via/keymap.c b/keyboards/portal_66/keymaps/via/keymap.c
new file mode 100644
index 000000000..59e038a54
--- /dev/null
+++ b/keyboards/portal_66/keymaps/via/keymap.c
@@ -0,0 +1,54 @@
1/* Copyright 2021 Matthew Dias
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
18enum layer_names {
19 _L0,
20 _L1,
21 _L2,
22 _L3
23};
24
25const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
26 [_L0] = LAYOUT_65_ansi_split_bs(
27 KC_ESC, 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_GRV, KC_BSPC, KC_HOME,
28 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_END,
29 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_ENT, KC_PGUP,
30 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN,
31 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_L1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
32 ),
33 [_L1] = LAYOUT_65_ansi_split_bs(
34 RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
39 ),
40 [_L2] = LAYOUT_65_ansi_split_bs(
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
46 ),
47 [_L3] = LAYOUT_65_ansi_split_bs(
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
53 )
54};
diff --git a/keyboards/portal_66/keymaps/via/rules.mk b/keyboards/portal_66/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/portal_66/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/portal_66/portal_66.c b/keyboards/portal_66/portal_66.c
new file mode 100644
index 000000000..a53989f94
--- /dev/null
+++ b/keyboards/portal_66/portal_66.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 Matthew Dias
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 "portal_66.h"
diff --git a/keyboards/portal_66/portal_66.h b/keyboards/portal_66/portal_66.h
new file mode 100644
index 000000000..5d3525ae4
--- /dev/null
+++ b/keyboards/portal_66/portal_66.h
@@ -0,0 +1,75 @@
1/* Copyright 2021 Matthew Dias
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 LAYOUT_65_ansi_split_bs( \
22 k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k013, k014, k015, \
23 k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k115, \
24 k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, k215, \
25 k300, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k315, \
26 k400, k401, k402, k406, k409, k410, k411, k412, k413, k415 \
27) { \
28 { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k013, k014, k015 }, \
29 { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, KC_NO, k115 }, \
30 { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, KC_NO, k213, KC_NO, k215 }, \
31 { k300, KC_NO, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, KC_NO, k315 }, \
32 { k400, k401, k402, KC_NO, KC_NO, KC_NO, k406, KC_NO, KC_NO, k409, k410, k411, k412, k413, KC_NO, k415 } \
33}
34
35#define LAYOUT_65_ansi( \
36 k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k014, k015, \
37 k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k115, \
38 k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, k215, \
39 k300, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k315, \
40 k400, k401, k402, k406, k409, k410, k411, k412, k413, k415 \
41) { \
42 { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, KC_NO, k014, k015 }, \
43 { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, KC_NO, k115 }, \
44 { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, KC_NO, k213, KC_NO, k215 }, \
45 { k300, KC_NO, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, KC_NO, k315 }, \
46 { k400, k401, k402, KC_NO, KC_NO, KC_NO, k406, KC_NO, KC_NO, k409, k410, k411, k412, k413, KC_NO, k415 } \
47}
48
49#define LAYOUT_65_ansi_split_bs_2_right_mods( \
50 k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k013, k014, k015, \
51 k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k115, \
52 k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, k215, \
53 k300, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k315, \
54 k400, k401, k402, k406, k409, k411, k412, k413, k415 \
55) { \
56 { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k013, k014, k015 }, \
57 { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, KC_NO, k115 }, \
58 { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, KC_NO, k213, KC_NO, k215 }, \
59 { k300, KC_NO, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, KC_NO, k315 }, \
60 { k400, k401, k402, KC_NO, KC_NO, KC_NO, k406, KC_NO, KC_NO, k409, KC_NO, k411, k412, k413, KC_NO, k415 } \
61}
62
63#define LAYOUT_65_ansi_2_right_mods( \
64 k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, k014, k015, \
65 k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k115, \
66 k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, k215, \
67 k300, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k315, \
68 k400, k401, k402, k406, k409, k411, k412, k413, k415 \
69) { \
70 { k000, k001, k002, k003, k004, k005, k006, k007, k008, k009, k010, k011, k012, KC_NO, k014, k015 }, \
71 { k100, k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, KC_NO, k115 }, \
72 { k200, k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, KC_NO, k213, KC_NO, k215 }, \
73 { k300, KC_NO, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, KC_NO, k315 }, \
74 { k400, k401, k402, KC_NO, KC_NO, KC_NO, k406, KC_NO, KC_NO, k409, KC_NO, k411, k412, k413, KC_NO, k415 } \
75}
diff --git a/keyboards/portal_66/readme.md b/keyboards/portal_66/readme.md
new file mode 100644
index 000000000..b87945af3
--- /dev/null
+++ b/keyboards/portal_66/readme.md
@@ -0,0 +1,18 @@
1# Portal 66
2
3A 65% keyboard
4
5* Keyboard Maintainer: matthewdias
6* Hardware Supported: Portal 66
7
8To reset the keyboard into bootloader mode, press the reset switch on the underside.
9
10Make example for this keyboard (after setting up your build environment):
11
12 make portal_66:default
13
14Flashing example for this keyboard:
15
16 make portal_66:default:flash
17
18See 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/portal_66/rules.mk b/keyboards/portal_66/rules.mk
new file mode 100644
index 000000000..f8a290cad
--- /dev/null
+++ b/keyboards/portal_66/rules.mk
@@ -0,0 +1,24 @@
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
23
24LAYOUTS = 65_ansi