aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rect44
diff options
context:
space:
mode:
authorkoshinoya <moto_yda@icloud.com>2021-01-14 15:40:10 +0900
committerGitHub <noreply@github.com>2021-01-13 22:40:10 -0800
commitd97d4794e050f2b7397e1ff586d91cdfb3c7d02b (patch)
tree68dad26f805a776fb306efe3f1d834fe0910a171 /keyboards/rect44
parentb48a5b573f6be52bfd87f88cd9c8903b2bc0915f (diff)
downloadqmk_firmware-d97d4794e050f2b7397e1ff586d91cdfb3c7d02b.tar.gz
qmk_firmware-d97d4794e050f2b7397e1ff586d91cdfb3c7d02b.zip
[Keyboard] Add Rect44 keyboard (#11484)
* Add Rect44 keyboard * Update keyboards/rect44/readme.md Co-authored-by: Joel Challis <git@zvecr.com> * Delete config.h files in keymaps * Update keyboards/rect44/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/rect44/readme.md Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/rect44/config.h Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/rect44')
-rw-r--r--keyboards/rect44/config.h44
-rw-r--r--keyboards/rect44/info.json171
-rw-r--r--keyboards/rect44/keymaps/ansi_44key/keymap.c49
-rw-r--r--keyboards/rect44/keymaps/ansi_47key/keymap.c50
-rw-r--r--keyboards/rect44/keymaps/default/keymap.c49
-rw-r--r--keyboards/rect44/keymaps/iso_48key/keymap.c49
-rw-r--r--keyboards/rect44/readme.md20
-rw-r--r--keyboards/rect44/rect44.c17
-rw-r--r--keyboards/rect44/rect44.h71
-rw-r--r--keyboards/rect44/rules.mk22
10 files changed, 542 insertions, 0 deletions
diff --git a/keyboards/rect44/config.h b/keyboards/rect44/config.h
new file mode 100644
index 000000000..d76f5f068
--- /dev/null
+++ b/keyboards/rect44/config.h
@@ -0,0 +1,44 @@
1/* Copyright 2020-2021 koshinoya
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 "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x4DD7
24#define DEVICE_VER 0x0001
25#define MANUFACTURER koshinoya
26#define PRODUCT Rect44
27
28/* key matrix size */
29#define MATRIX_ROWS 4
30#define MATRIX_COLS 13
31
32/* Key matrix pins */
33#define MATRIX_ROW_PINS { D3, D2, F5, F4 }
34#define MATRIX_COL_PINS { F6, F7, B1, B3, B2, D1, D0, D4, C6, D7, E6, B4, B5 }
35
36/* COL2ROW, ROW2COL*/
37#define DIODE_DIRECTION COL2ROW
38
39#define RGB_DI_PIN B6
40#define RGBLED_NUM 12
41#define RGBLIGHT_ANIMATIONS
42
43/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
44#define DEBOUNCE 5
diff --git a/keyboards/rect44/info.json b/keyboards/rect44/info.json
new file mode 100644
index 000000000..9bf4b6eb5
--- /dev/null
+++ b/keyboards/rect44/info.json
@@ -0,0 +1,171 @@
1{
2 "keyboard_name": "rect44",
3 "url": "",
4 "maintainer": "koshinoya",
5 "width": 14,
6 "height": 4,
7 "layouts": {
8 "LAYOUT_ansi_47key": {
9 "layout": [
10 {"label":"Esc", "x":0, "y":0},
11 {"label":"Q", "x":1.5, "y":0},
12 {"label":"W", "x":2.5, "y":0},
13 {"label":"E", "x":3.5, "y":0},
14 {"label":"R", "x":4.5, "y":0},
15 {"label":"T", "x":5.5, "y":0},
16 {"label":"Y", "x":6.5, "y":0},
17 {"label":"U", "x":7.5, "y":0},
18 {"label":"I", "x":8.5, "y":0},
19 {"label":"O", "x":9.5, "y":0},
20 {"label":"P", "x":10.5, "y":0},
21 {"label":"-", "x":11.5, "y":0},
22 {"label":"Bs", "x":12.5, "y":0, "w":1.5},
23
24 {"label":"Ctrl", "x":0, "y":1, "w":1.75},
25 {"label":"A", "x":1.75, "y":1},
26 {"label":"S", "x":2.75, "y":1},
27 {"label":"D", "x":3.75, "y":1},
28 {"label":"F", "x":4.75, "y":1},
29 {"label":"G", "x":5.75, "y":1},
30 {"label":"H", "x":6.75, "y":1},
31 {"label":"J", "x":7.75, "y":1},
32 {"label":"K", "x":8.75, "y":1},
33 {"label":"L", "x":9.75, "y":1},
34 {"label":";", "x":10.75, "y":1},
35 {"label":"Enter", "x":11.75, "y":1, "w":2.25},
36
37 {"label":"Shift", "x":0, "y":2, "w":2.25},
38 {"label":"Z", "x":2.25, "y":2},
39 {"label":"X", "x":3.25, "y":2},
40 {"label":"C", "x":4.25, "y":2},
41 {"label":"V", "x":5.25, "y":2},
42 {"label":"B", "x":6.25, "y":2},
43 {"label":"N", "x":7.25, "y":2},
44 {"label":"M", "x":8.25, "y":2},
45 {"label":",", "x":9.25, "y":2},
46 {"label":".", "x":10.25, "y":2},
47 {"label":"/", "x":11.25, "y":2},
48 {"label":"Shift", "x":12.25, "y":2, "w":1.75},
49
50 {"label":"Ctrl", "x":0, "y":3, "w":1.25},
51 {"label":"Gui", "x":1.25, "y":3, "w":1.25},
52 {"label":"Alt", "x":2.5, "y":3, "w":1.25},
53 {"label":"Fn1", "x":3.75, "y":3, "w":2.25},
54 {"label":"Space", "x":6, "y":3, "w":2.75},
55 {"label":"Alt", "x":8.75, "y":3, "w":1.25},
56 {"label":"Fn2", "x":10, "y":3},
57 {"label":"\u2190", "x":11, "y":3},
58 {"label":"\u2193", "x":12, "y":3},
59 {"label":"\u2192", "x":13, "y":3}
60 ]
61 },
62
63 "LAYOUT_ansi_44key": {
64 "layout": [
65 {"label":"Esc", "x":0, "y":0},
66 {"label":"Q", "x":1.5, "y":0},
67 {"label":"W", "x":2.5, "y":0},
68 {"label":"E", "x":3.5, "y":0},
69 {"label":"R", "x":4.5, "y":0},
70 {"label":"T", "x":5.5, "y":0},
71 {"label":"Y", "x":6.5, "y":0},
72 {"label":"U", "x":7.5, "y":0},
73 {"label":"I", "x":8.5, "y":0},
74 {"label":"O", "x":9.5, "y":0},
75 {"label":"P", "x":10.5, "y":0},
76 {"label":"-", "x":11.5, "y":0},
77 {"label":"Bs", "x":12.5, "y":0, "w":1.5},
78
79 {"label":"Ctrl", "x":0, "y":1, "w":1.75},
80 {"label":"A", "x":1.75, "y":1},
81 {"label":"S", "x":2.75, "y":1},
82 {"label":"D", "x":3.75, "y":1},
83 {"label":"F", "x":4.75, "y":1},
84 {"label":"G", "x":5.75, "y":1},
85 {"label":"H", "x":6.75, "y":1},
86 {"label":"J", "x":7.75, "y":1},
87 {"label":"K", "x":8.75, "y":1},
88 {"label":"L", "x":9.75, "y":1},
89 {"label":";", "x":10.75, "y":1},
90 {"label":"Enter", "x":11.75, "y":1, "w":2.25},
91
92 {"label":"Shift", "x":0, "y":2, "w":2.25},
93 {"label":"Z", "x":2.25, "y":2},
94 {"label":"X", "x":3.25, "y":2},
95 {"label":"C", "x":4.25, "y":2},
96 {"label":"V", "x":5.25, "y":2},
97 {"label":"B", "x":6.25, "y":2},
98 {"label":"N", "x":7.25, "y":2},
99 {"label":"M", "x":8.25, "y":2},
100 {"label":",", "x":9.25, "y":2},
101 {"label":".", "x":10.25, "y":2},
102 {"label":"Shift", "x":11.25, "y":2, "w":2.75},
103
104 {"label":"Ctrl", "x":0, "y":3, "w":1.25},
105 {"label":"Gui", "x":1.25, "y":3, "w":1.25},
106 {"label":"Alt", "x":2.5, "y":3, "w":1.25},
107 {"label":"Space", "x":3.75, "y":3, "w":6.25},
108 {"label":"\u2190", "x":10, "y":3},
109 {"label":"\u2193", "x":11, "y":3},
110 {"label":"\u2191", "x":12, "y":3},
111 {"label":"\u2192", "x":13, "y":3}
112 ]
113 },
114
115 "LAYOUT_iso_48key": {
116 "layout": [
117 {"label":"Esc", "x":0, "y":0},
118 {"label":"Q", "x":1.5, "y":0},
119 {"label":"W", "x":2.5, "y":0},
120 {"label":"E", "x":3.5, "y":0},
121 {"label":"R", "x":4.5, "y":0},
122 {"label":"T", "x":5.5, "y":0},
123 {"label":"Y", "x":6.5, "y":0},
124 {"label":"U", "x":7.5, "y":0},
125 {"label":"I", "x":8.5, "y":0},
126 {"label":"O", "x":9.5, "y":0},
127 {"label":"P", "x":10.5, "y":0},
128 {"label":"Bs", "x":11.5, "y":0},
129 {"label":"Enter", "x":12.75, "y":0, "w":1.25, "h":2},
130
131 {"label":"Ctrl", "x":0, "y":1, "w":1.75},
132 {"label":"A", "x":1.75, "y":1},
133 {"label":"S", "x":2.75, "y":1},
134 {"label":"D", "x":3.75, "y":1},
135 {"label":"F", "x":4.75, "y":1},
136 {"label":"G", "x":5.75, "y":1},
137 {"label":"H", "x":6.75, "y":1},
138 {"label":"J", "x":7.75, "y":1},
139 {"label":"K", "x":8.75, "y":1},
140 {"label":"L", "x":9.75, "y":1},
141 {"label":";", "x":10.75, "y":1},
142 {"label":"'", "x":11.75, "y":1},
143
144 {"label":"Shift", "x":0, "y":2, "w":1.25},
145 {"label":"", "x":1.25, "y":2},
146 {"label":"Z", "x":2.25, "y":2},
147 {"label":"X", "x":3.25, "y":2},
148 {"label":"C", "x":4.25, "y":2},
149 {"label":"V", "x":5.25, "y":2},
150 {"label":"B", "x":6.25, "y":2},
151 {"label":"N", "x":7.25, "y":2},
152 {"label":"M", "x":8.25, "y":2},
153 {"label":",", "x":9.25, "y":2},
154 {"label":".", "x":10.25, "y":2},
155 {"label":"/", "x":11.25, "y":2},
156 {"label":"Shift", "x":12.25, "y":2, "w":1.75},
157
158 {"label":"Ctrl", "x":0, "y":3, "w":1.25},
159 {"label":"Gui", "x":1.25, "y":3, "w":1.25},
160 {"label":"Alt", "x":2.5, "y":3, "w":1.25},
161 {"label":"Fn1", "x":3.75, "y":3, "w":2.25},
162 {"label":"Space", "x":6, "y":3, "w":2.75},
163 {"label":"Alt", "x":8.75, "y":3, "w":1.25},
164 {"label":"Fn2", "x":10, "y":3},
165 {"label":"\u2190", "x":11, "y":3},
166 {"label":"\u2193", "x":12, "y":3},
167 {"label":"\u2192", "x":13, "y":3}
168 ]
169 }
170 }
171}
diff --git a/keyboards/rect44/keymaps/ansi_44key/keymap.c b/keyboards/rect44/keymaps/ansi_44key/keymap.c
new file mode 100644
index 000000000..a9dd9aab7
--- /dev/null
+++ b/keyboards/rect44/keymaps/ansi_44key/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2020-2021 koshinoya
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_number {
19 _BASE = 0,
20 _FN1,
21 _FN2
22};
23
24// Aliases
25#define KC_SPFN1 LT(_FN1,KC_SPC)
26#define KC_LCTAB LCTL_T(KC_TAB)
27#define KC_LCDEL LCTL_T(KC_DEL)
28#define KC_RSFSL RSFT_T(KC_SLSH)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [_BASE] = LAYOUT_ansi_44key(
32 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, KC_BSPC,
33 KC_LCTAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
34 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFSL,
35 KC_LCDEL, KC_LGUI, KC_LALT, KC_SPFN1, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
36 ),
37 [_FN1] = LAYOUT_ansi_44key(
38 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
39 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL,
40 KC_TRNS, KC_APP, MO(_FN2), KC_NO, KC_NO, KC_LBRC, KC_RBRC, KC_QUOT, KC_TRNS, KC_TRNS, KC_BSLS,
41 KC_INS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_PGUP, KC_END
42 ),
43 [_FN2] = LAYOUT_ansi_44key(
44 KC_NO, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO,
45 KC_CAPS, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
46 KC_TRNS, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
47 KC_LCTL, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO
48 )
49};
diff --git a/keyboards/rect44/keymaps/ansi_47key/keymap.c b/keyboards/rect44/keymaps/ansi_47key/keymap.c
new file mode 100644
index 000000000..9d11c2b7f
--- /dev/null
+++ b/keyboards/rect44/keymaps/ansi_47key/keymap.c
@@ -0,0 +1,50 @@
1/* Copyright 2020-2021 koshinoya
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_number {
19 _BASE = 0,
20 _FN1,
21 _FN2
22};
23
24// Aliases
25#define KC_SPFN1 LT(_FN1,KC_SPC)
26#define KC_LCTAB LCTL_T(KC_TAB)
27#define KC_LCDEL LCTL_T(KC_DEL)
28#define KC_RSFUP RSFT_T(KC_UP)
29#define KC_RSFSP RSFT_T(KC_SPC)
30
31const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
32 [_BASE] = LAYOUT_ansi_47key(
33 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, KC_BSPC,
34 KC_LCTAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
35 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFUP,
36 KC_LCDEL, KC_LGUI, KC_LALT, KC_SPFN1, KC_RSFSP, KC_RALT, MO(_FN2), KC_LEFT, KC_DOWN, KC_RGHT
37 ),
38 [_FN1] = LAYOUT_ansi_47key(
39 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
40 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_EQL,
41 KC_TRNS, KC_APP, KC_NO, KC_NO, KC_NO, KC_LBRC, KC_RBRC, KC_QUOT, KC_TRNS, KC_TRNS, KC_BSLS, KC_PGUP,
42 KC_INS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_HOME, KC_PGDN, KC_END
43 ),
44 [_FN2] = LAYOUT_ansi_47key(
45 KC_NO, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO,
46 KC_CAPS, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
47 KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
48 KC_LCTL, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO
49 )
50};
diff --git a/keyboards/rect44/keymaps/default/keymap.c b/keyboards/rect44/keymaps/default/keymap.c
new file mode 100644
index 000000000..cc7afe777
--- /dev/null
+++ b/keyboards/rect44/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2020-2021 koshinoya
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_number {
19 _BASE = 0,
20 _FN1,
21 _FN2
22};
23
24// Aliases
25#define KC_SPFN1 LT(_FN1,KC_SPC)
26#define KC_LCTAB LCTL_T(KC_TAB)
27#define KC_RSFSL RSFT_T(KC_SLSH)
28#define KC_RSFSP RSFT_T(KC_SPC)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [_BASE] = LAYOUT_all(
32 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_MINS, KC_BSPC,
33 KC_LCTAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
34 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFSL,
35 KC_LCTL, KC_LGUI, KC_LALT, KC_SPFN1, KC_SPFN1, KC_RSFSP, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
36 ),
37 [_FN1] = LAYOUT_all(
38 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
39 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_EQL,
40 KC_TRNS, KC_F12, KC_APP, MO(_FN2), KC_NO, KC_NO, KC_LBRC, KC_RBRC, KC_QUOT, KC_TRNS, KC_TRNS, KC_BSLS, KC_BSLS,
41 KC_INS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_PGUP, KC_END
42 ),
43 [_FN2] = LAYOUT_all(
44 KC_NO, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO,
45 KC_CAPS, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
46 KC_TRNS, KC_NO, KC_NO, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
47 KC_LCTL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
48 )
49};
diff --git a/keyboards/rect44/keymaps/iso_48key/keymap.c b/keyboards/rect44/keymaps/iso_48key/keymap.c
new file mode 100644
index 000000000..7d034af9f
--- /dev/null
+++ b/keyboards/rect44/keymaps/iso_48key/keymap.c
@@ -0,0 +1,49 @@
1/* Copyright 2020-2021 koshinoya
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_number {
19 _BASE = 0,
20 _FN1,
21 _FN2
22};
23
24// Aliases
25#define KC_SPFN1 LT(_FN1,KC_SPC)
26#define KC_LCTAB LCTL_T(KC_TAB)
27#define KC_RSFUP RSFT_T(KC_UP)
28#define KC_RSFSP RSFT_T(KC_SPC)
29
30const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
31 [_BASE] = LAYOUT_iso_48key(
32 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
33 KC_LCTAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
34 KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFUP,
35 KC_LCTL, KC_LGUI, KC_LALT, KC_SPFN1, KC_RSFSP, KC_RALT, MO(_FN2), KC_LEFT, KC_DOWN, KC_RGHT
36 ),
37 [_FN1] = LAYOUT_iso_48key(
38 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,
39 KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,
40 KC_TRNS, KC_NO, KC_APP, KC_F11, KC_F12, KC_NO, KC_LBRC, KC_RBRC, KC_NUHS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP,
41 KC_INS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
42 ),
43 [_FN2] = LAYOUT_iso_48key(
44 KC_NO, RGB_TOG, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS,
45 KC_CAPS, RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
46 KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
47 KC_LCTL, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO
48 )
49};
diff --git a/keyboards/rect44/readme.md b/keyboards/rect44/readme.md
new file mode 100644
index 000000000..d1e00988f
--- /dev/null
+++ b/keyboards/rect44/readme.md
@@ -0,0 +1,20 @@
1# Rect44
2
3![Rect44](https://i.imgur.com/TWXGnfml.jpg)
4
5A 40% keyboard with various layouts.
6Includes hot-swap switch sockets and bended 1.5mm stainless sheet metal case.
7
8* Keyboard Maintainer: [koshinoya](https://github.com/koshinoya)
9* Hardware Supported: Rect44 PCB and case.
10* Hardware Availability: [BOOTH](https://koshinoya.booth.pm/items/1856336)
11
12Make example for this keyboard (after setting up your build environment):
13
14 make rect44:default
15
16Flashing example for this keyboard:
17
18 make rect44:default:flash
19
20See 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/rect44/rect44.c b/keyboards/rect44/rect44.c
new file mode 100644
index 000000000..b36aa7d40
--- /dev/null
+++ b/keyboards/rect44/rect44.c
@@ -0,0 +1,17 @@
1/* Copyright 2020-2021 koshinoya
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 "rect44.h"
diff --git a/keyboards/rect44/rect44.h b/keyboards/rect44/rect44.h
new file mode 100644
index 000000000..3de310754
--- /dev/null
+++ b/keyboards/rect44/rect44.h
@@ -0,0 +1,71 @@
1/* Copyright 2020-2021 koshinoya
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_all( \
22 A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, \
23 B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B11, B12, \
24 C00, C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12, \
25 D00, D01, D02, D03, D05, D06, D08, D09, D10, D11, D12 \
26) \
27{ \
28 { A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12 }, \
29 { B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B11, B12 }, \
30 { C00, C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12 }, \
31 { D00, D01, D02, D03, KC_NO, D05, D06, KC_NO, D08, D09, D10, D11, D12 } \
32}
33
34#define LAYOUT_ansi_44key( \
35 A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, \
36 B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B12, \
37 C00, C02, C03, C04, C05, C06, C07, C08, C09, C10, C12, \
38 D00, D01, D02, D05, D09, D10, D11, D12 \
39) \
40{ \
41 { A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12 }, \
42 { B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, KC_NO, B12 }, \
43 { C00, KC_NO, C02, C03, C04, C05, C06, C07, C08, C09, C10, KC_NO, C12 }, \
44 { D00, D01, D02, KC_NO, KC_NO, D05, KC_NO, KC_NO, KC_NO, D09, D10, D11, D12 } \
45}
46
47#define LAYOUT_ansi_47key( \
48 A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12, \
49 B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B12, \
50 C00, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12, \
51 D00, D01, D02, D03, D06, D08, D09, D10, D11, D12 \
52) \
53{ \
54 { A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, A12 }, \
55 { B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, KC_NO, B12 }, \
56 { C00, KC_NO, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12 }, \
57 { D00, D01, D02, D03, KC_NO, KC_NO, D06, KC_NO, D08, D09, D10, D11, D12 } \
58}
59
60#define LAYOUT_iso_48key( \
61 A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, \
62 B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B11, B12, \
63 C00, C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12, \
64 D00, D01, D02, D03, D06, D08, D09, D10, D11, D12 \
65) \
66{ \
67 { A00, A01, A02, A03, A04, A05, A06, A07, A08, A09, A10, A11, KC_NO }, \
68 { B00, B01, B02, B03, B04, B05, B06, B07, B08, B09, B10, B11, B12 }, \
69 { C00, C01, C02, C03, C04, C05, C06, C07, C08, C09, C10, C11, C12 }, \
70 { D00, D01, D02, D03, KC_NO, KC_NO, D06, KC_NO, D08, D09, D10, D11, D12 } \
71}
diff --git a/keyboards/rect44/rules.mk b/keyboards/rect44/rules.mk
new file mode 100644
index 000000000..806a19af3
--- /dev/null
+++ b/keyboards/rect44/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = no # 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 = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output