aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormelonbred <61572569+melonbred@users.noreply.github.com>2021-06-15 22:24:16 -0700
committerGitHub <noreply@github.com>2021-06-15 22:24:16 -0700
commit5c3991cb90108115a269e0b9f7e4b71019851cc1 (patch)
tree7b68ff03b35c82563ba530ece154020edfbce131
parentabee0610eefc4ce84d461787e58d7e62e63282db (diff)
downloadqmk_firmware-5c3991cb90108115a269e0b9f7e4b71019851cc1.tar.gz
qmk_firmware-5c3991cb90108115a269e0b9f7e4b71019851cc1.zip
[Keyboard] add mb44 keyboard (#12798)
Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/babyv/keymaps/melonbred/keymap.c62
-rw-r--r--keyboards/mb44/config.h61
-rw-r--r--keyboards/mb44/info.json202
-rw-r--r--keyboards/mb44/keymaps/2u1u_space/keymap.c59
-rw-r--r--keyboards/mb44/keymaps/2u_space/keymap.c59
-rw-r--r--keyboards/mb44/keymaps/3u_space/keymap.c67
-rw-r--r--keyboards/mb44/keymaps/default/keymap.c61
-rw-r--r--keyboards/mb44/keymaps/via/keymap.c58
-rw-r--r--keyboards/mb44/keymaps/via/rules.mk1
-rw-r--r--keyboards/mb44/mb44.c17
-rw-r--r--keyboards/mb44/mb44.h84
-rw-r--r--keyboards/mb44/readme.md15
-rw-r--r--keyboards/mb44/rules.mk23
13 files changed, 769 insertions, 0 deletions
diff --git a/keyboards/babyv/keymaps/melonbred/keymap.c b/keyboards/babyv/keymaps/melonbred/keymap.c
new file mode 100644
index 000000000..ea62241e9
--- /dev/null
+++ b/keyboards/babyv/keymaps/melonbred/keymap.c
@@ -0,0 +1,62 @@
1/* Copyright 2020 melonbred
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 LAYER0,
21 LAYER1,
22 LAYER2,
23};
24
25
26// Tap Dance Declarations
27enum {
28 TD_M_D = 0,
29 TD_P_M
30};
31
32// Tap Dance Definition
33qk_tap_dance_action_t tap_dance_actions[] = {
34 //Tap once for minus, tap twice for divide
35 [TD_M_D] = ACTION_TAP_DANCE_DOUBLE(KC_PMNS, KC_PSLS),
36 //Tap once for plus, tap twice for multiply
37 [TD_P_M] = ACTION_TAP_DANCE_DOUBLE(KC_PPLS, KC_PAST)
38};
39
40
41const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
42 [LAYER0] = LAYOUT_2u(
43 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
44 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
45 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT,
46 MO(LAYER2), KC_LALT, LT(LAYER1, KC_SPC), KC_SPC, KC_RALT, KC_LGUI
47 ),
48
49 [LAYER1] = LAYOUT_2u(
50 KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, KC_7, KC_8, KC_9, KC_PMNS, KC_PSLS, KC_DEL,
51 KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_4, KC_5, KC_6, KC_PPLS, KC_PAST, KC_ENT,
52 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_1, KC_2, KC_3, XXXXXXX, XXXXXXX, KC_RSFT,
53 XXXXXXX, _______, _______, KC_0, KC_PDOT, _______
54 ),
55
56 [LAYER2] = LAYOUT_2u(
57 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
58 KC_VOLU, KC_MPLY, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
59 KC_VOLD, KC_MUTE, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, KC_RCTL, KC_RALT, KC_DEL, XXXXXXX,
60 _______, KC_NLCK, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
61 ),
62};
diff --git a/keyboards/mb44/config.h b/keyboards/mb44/config.h
new file mode 100644
index 000000000..013efa857
--- /dev/null
+++ b/keyboards/mb44/config.h
@@ -0,0 +1,61 @@
1/*
2Copyright 2021 melonbred
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 0x6d62
24#define PRODUCT_ID 0x6d62
25#define DEVICE_VER 0x0001
26#define MANUFACTURER melonbred
27
28
29/* key matrix size */
30#define MATRIX_ROWS 4
31#define MATRIX_COLS 12
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 { D1, D6, D5, D4 }
44#define MATRIX_COL_PINS { C4, C5, C6, C7, B7, B6, B5, B4, B3, B2, B1, B0 }
45#define UNUSED_PINS { C2 }
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50/*Encoder Definition*/
51#define ENCODERS_PAD_A { D3 }
52#define ENCODERS_PAD_B { D2 }
53
54/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55#define DEBOUNCE 5
56
57
58/* disable these deprecated features by default */
59#define NO_ACTION_MACRO
60#define NO_ACTION_FUNCTION
61
diff --git a/keyboards/mb44/info.json b/keyboards/mb44/info.json
new file mode 100644
index 000000000..d18a0b014
--- /dev/null
+++ b/keyboards/mb44/info.json
@@ -0,0 +1,202 @@
1{
2 "keyboard_name": "MB-44",
3 "url": "",
4 "maintainer": "melonbred",
5 "width": 3,
6 "height": 2,
7 "layouts": {
8 "LAYOUT_default": {
9 "layout": [
10 {"x":0, "y":0},
11 {"x":1, "y":0},
12 {"x":2, "y":0},
13 {"x":3, "y":0},
14 {"x":4, "y":0},
15 {"x":5, "y":0},
16 {"x":6, "y":0},
17 {"x":7, "y":0},
18 {"x":8, "y":0},
19 {"x":9, "y":0},
20 {"x":10, "y":0},
21 {"x":11, "y":0, "w":1.75},
22 {"x":0, "y":1, "w":1.25},
23 {"x":1.25, "y":1},
24 {"x":2.25, "y":1},
25 {"x":3.25, "y":1},
26 {"x":4.25, "y":1},
27 {"x":5.25, "y":1},
28 {"x":6.25, "y":1},
29 {"x":7.25, "y":1},
30 {"x":8.25, "y":1},
31 {"x":9.25, "y":1},
32 {"x":10.25, "y":1},
33 {"x":11.25, "y":1, "w":1.5},
34 {"x":0, "y":2, "w":1.75},
35 {"x":1.75, "y":2},
36 {"x":2.75, "y":2},
37 {"x":3.75, "y":2},
38 {"x":4.75, "y":2},
39 {"x":5.75, "y":2},
40 {"x":6.75, "y":2},
41 {"x":7.75, "y":2},
42 {"x":8.75, "y":2},
43 {"x":9.75, "y":2},
44 {"x":10.75, "y":2},
45 {"x":11.75, "y":2},
46 {"x":0, "y":3},
47 {"x":1, "y":3},
48 {"x":2, "y":3},
49 {"x":3, "y":3, "w":6.25},
50 {"x":9.75, "y":3},
51 {"x":10.75, "y":3},
52 {"x":11.75, "y":3}
53 ]
54 },
55 "LAYOUT_2u_split": {
56 "layout": [
57 {"x":0, "y":0},
58 {"x":1, "y":0},
59 {"x":2, "y":0},
60 {"x":3, "y":0},
61 {"x":4, "y":0},
62 {"x":5, "y":0},
63 {"x":6, "y":0},
64 {"x":7, "y":0},
65 {"x":8, "y":0},
66 {"x":9, "y":0},
67 {"x":10, "y":0},
68 {"x":11, "y":0, "w":1.75},
69 {"x":0, "y":1, "w":1.25},
70 {"x":1.25, "y":1},
71 {"x":2.25, "y":1},
72 {"x":3.25, "y":1},
73 {"x":4.25, "y":1},
74 {"x":5.25, "y":1},
75 {"x":6.25, "y":1},
76 {"x":7.25, "y":1},
77 {"x":8.25, "y":1},
78 {"x":9.25, "y":1},
79 {"x":10.25, "y":1},
80 {"x":11.25, "y":1, "w":1.5},
81 {"x":0, "y":2, "w":1.75},
82 {"x":1.75, "y":2},
83 {"x":2.75, "y":2},
84 {"x":3.75, "y":2},
85 {"x":4.75, "y":2},
86 {"x":5.75, "y":2},
87 {"x":6.75, "y":2},
88 {"x":7.75, "y":2},
89 {"x":8.75, "y":2},
90 {"x":9.75, "y":2},
91 {"x":10.75, "y":2},
92 {"x":11.75, "y":2},
93 {"x":0, "y":3},
94 {"x":1, "y":3, "w":1.25},
95 {"x":2.25, "y":3},
96 {"x":3.25, "y":3, "w":2.25},
97 {"x":5.5, "y":3},
98 {"x":6.5, "y":3, "w":2.75},
99 {"x":9.75, "y":3},
100 {"x":10.75, "y":3},
101 {"x":11.75, "y":3}
102 ]
103 },
104 "LAYOUT_2u1u_split": {
105 "layout": [
106 {"x":0, "y":0},
107 {"x":1, "y":0},
108 {"x":2, "y":0},
109 {"x":3, "y":0},
110 {"x":4, "y":0},
111 {"x":5, "y":0},
112 {"x":6, "y":0},
113 {"x":7, "y":0},
114 {"x":8, "y":0},
115 {"x":9, "y":0},
116 {"x":10, "y":0},
117 {"x":11, "y":0, "w":1.75},
118 {"x":0, "y":1, "w":1.25},
119 {"x":1.25, "y":1},
120 {"x":2.25, "y":1},
121 {"x":3.25, "y":1},
122 {"x":4.25, "y":1},
123 {"x":5.25, "y":1},
124 {"x":6.25, "y":1},
125 {"x":7.25, "y":1},
126 {"x":8.25, "y":1},
127 {"x":9.25, "y":1},
128 {"x":10.25, "y":1},
129 {"x":11.25, "y":1, "w":1.5},
130 {"x":0, "y":2, "w":1.75},
131 {"x":1.75, "y":2},
132 {"x":2.75, "y":2},
133 {"x":3.75, "y":2},
134 {"x":4.75, "y":2},
135 {"x":5.75, "y":2},
136 {"x":6.75, "y":2},
137 {"x":7.75, "y":2},
138 {"x":8.75, "y":2},
139 {"x":9.75, "y":2},
140 {"x":10.75, "y":2},
141 {"x":11.75, "y":2},
142 {"x":0, "y":3},
143 {"x":1, "y":3, "w":1.25},
144 {"x":2.25, "y":3},
145 {"x":3.25, "y":3, "w":2.75},
146 {"x":6, "y":3, "w":2.25},
147 {"x":8.25, "y":3},
148 {"x":9.75, "y":3},
149 {"x":10.75, "y":3},
150 {"x":11.75, "y":3}
151 ]
152 },
153 "LAYOUT_3u_split": {
154 "layout": [
155 {"x":0, "y":0},
156 {"x":1, "y":0},
157 {"x":2, "y":0},
158 {"x":3, "y":0},
159 {"x":4, "y":0},
160 {"x":5, "y":0},
161 {"x":6, "y":0},
162 {"x":7, "y":0},
163 {"x":8, "y":0},
164 {"x":9, "y":0},
165 {"x":10, "y":0},
166 {"x":11, "y":0, "w":1.75},
167 {"x":0, "y":1, "w":1.25},
168 {"x":1.25, "y":1},
169 {"x":2.25, "y":1},
170 {"x":3.25, "y":1},
171 {"x":4.25, "y":1},
172 {"x":5.25, "y":1},
173 {"x":6.25, "y":1},
174 {"x":7.25, "y":1},
175 {"x":8.25, "y":1},
176 {"x":9.25, "y":1},
177 {"x":10.25, "y":1},
178 {"x":11.25, "y":1, "w":1.5},
179 {"x":0, "y":2, "w":1.75},
180 {"x":1.75, "y":2},
181 {"x":2.75, "y":2},
182 {"x":3.75, "y":2},
183 {"x":4.75, "y":2},
184 {"x":5.75, "y":2},
185 {"x":6.75, "y":2},
186 {"x":7.75, "y":2},
187 {"x":8.75, "y":2},
188 {"x":9.75, "y":2},
189 {"x":10.75, "y":2},
190 {"x":11.75, "y":2},
191 {"x":0, "y":3},
192 {"x":1, "y":3, "w":1.25},
193 {"x":2.25, "y":3},
194 {"x":3.25, "y":3, "w":3},
195 {"x":6.25, "y":3, "w":3},
196 {"x":9.75, "y":3},
197 {"x":10.75, "y":3},
198 {"x":11.75, "y":3}
199 ]
200 }
201 }
202}
diff --git a/keyboards/mb44/keymaps/2u1u_space/keymap.c b/keyboards/mb44/keymaps/2u1u_space/keymap.c
new file mode 100644
index 000000000..437a90c7b
--- /dev/null
+++ b/keyboards/mb44/keymaps/2u1u_space/keymap.c
@@ -0,0 +1,59 @@
1/* Copyright 2020 melonbred
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 _LAYER1,
22 _LAYER2
23
24};
25
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 [_BASE] = LAYOUT_2u1u_space(
29 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
30 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
31 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
32 MO(_LAYER2), KC_LGUI, KC_LALT, LT(_LAYER1, KC_SPC), KC_RALT, KC_SPC, KC_LEFT, KC_DOWN, KC_RGHT
33 ),
34
35 [_LAYER1] = LAYOUT_2u1u_space(
36 KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL,
37 KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
38 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT,
39 _______, KC_LGUI, KC_LALT, XXXXXXX, KC_RALT, KC_SPC, KC_0, KC_PDOT, XXXXXXX
40 ),
41
42 [_LAYER2] = LAYOUT_2u1u_space(
43 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
44 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD,
46 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
47 ),
48};
49
50// Rotary Encoder Functions
51void encoder_update_user(uint8_t index, bool clockwise) {
52 if (index == 0) { /* First encoder */
53 if (clockwise) {
54 tap_code(KC_VOLD);
55 } else {
56 tap_code(KC_VOLU);
57 }
58 }
59}
diff --git a/keyboards/mb44/keymaps/2u_space/keymap.c b/keyboards/mb44/keymaps/2u_space/keymap.c
new file mode 100644
index 000000000..b2f1fb64b
--- /dev/null
+++ b/keyboards/mb44/keymaps/2u_space/keymap.c
@@ -0,0 +1,59 @@
1/* Copyright 2020 melonbred
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 _LAYER1,
22 _LAYER2
23
24};
25
26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 [_BASE] = LAYOUT_2u_space(
29 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
30 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
31 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
32 MO(_LAYER2), KC_LGUI, KC_LALT, LT(_LAYER1, KC_SPC), KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RGHT
33 ),
34
35 [_LAYER1] = LAYOUT_2u_space(
36 KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL,
37 KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
38 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT,
39 _______, KC_LGUI, KC_LALT, XXXXXXX, KC_SPC, KC_RALT, KC_0, KC_PDOT, XXXXXXX
40 ),
41
42 [_LAYER2] = LAYOUT_2u_space(
43 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
44 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD,
46 _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
47 ),
48};
49
50// Rotary Encoder Functions
51void encoder_update_user(uint8_t index, bool clockwise) {
52 if (index == 0) { /* First encoder */
53 if (clockwise) {
54 tap_code(KC_VOLD);
55 } else {
56 tap_code(KC_VOLU);
57 }
58 }
59}
diff --git a/keyboards/mb44/keymaps/3u_space/keymap.c b/keyboards/mb44/keymaps/3u_space/keymap.c
new file mode 100644
index 000000000..bfd01c6ea
--- /dev/null
+++ b/keyboards/mb44/keymaps/3u_space/keymap.c
@@ -0,0 +1,67 @@
1/* Copyright 2020 melonbred
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 _LAYER1,
22 _LAYER2,
23 _LAYER3
24
25};
26
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29 [_BASE] = LAYOUT_3u_space(
30 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
31 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
32 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
33 MO(_LAYER2), KC_LGUI, KC_LALT, LT(_LAYER1, KC_SPC), LT(_LAYER3, KC_SPC), KC_LEFT, KC_DOWN, KC_RGHT
34 ),
35
36 [_LAYER1] = LAYOUT_3u_space(
37 KC_GRV, KC_QUOT, XXXXXXX, KC_UP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_7, KC_8, KC_9, KC_DEL,
38 KC_CAPS, XXXXXXX, KC_LEFT, KC_DOWN, KC_RGHT, XXXXXXX, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
39 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT,
40 XXXXXXX, KC_LGUI, KC_LALT, _______, XXXXXXX, KC_0, KC_PDOT, KC_PEQL
41 ),
42
43 [_LAYER2] = LAYOUT_3u_space(
44 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU,
46 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, KC_RCTL, KC_RALT, KC_DEL, KC_VOLD,
47 XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
48 ),
49
50 [_LAYER3] = LAYOUT_3u_space(
51 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_UNDS,
52 XXXXXXX, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, _______,
53 _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
54 _______, XXXXXXX, XXXXXXX, XXXXXXX, _______, XXXXXXX, XXXXXXX, XXXXXXX
55 ),
56};
57
58// Rotary Encoder Functions
59void encoder_update_user(uint8_t index, bool clockwise) {
60 if (index == 0) { /* First encoder */
61 if (clockwise) {
62 tap_code(KC_VOLD);
63 } else {
64 tap_code(KC_VOLU);
65 }
66 }
67} \ No newline at end of file
diff --git a/keyboards/mb44/keymaps/default/keymap.c b/keyboards/mb44/keymaps/default/keymap.c
new file mode 100644
index 000000000..1659661f3
--- /dev/null
+++ b/keyboards/mb44/keymaps/default/keymap.c
@@ -0,0 +1,61 @@
1/* Copyright 2020 melonbred
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 _LAYER1,
22 _LAYER2
23
24};
25
26
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29 [_BASE] = LAYOUT_default(
30 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
31 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
32 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
33 MO(_LAYER2), KC_LGUI, KC_LALT, LT(_LAYER1, KC_SPC), KC_LEFT, KC_DOWN, KC_RGHT
34 ),
35
36 [_LAYER1] = LAYOUT_default(
37 KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL,
38 KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
39 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT,
40 _______, KC_LGUI, KC_LALT, _______, KC_0, KC_PDOT, XXXXXXX
41 ),
42
43 [_LAYER2] = LAYOUT_default(
44 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU,
46 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD,
47 _______, XXXXXXX, XXXXXXX, XXXXXXX, KC_DEL, KC_RALT, KC_RCTL
48 ),
49};
50
51
52// Rotary Encoder Functions
53void encoder_update_user(uint8_t index, bool clockwise) {
54 if (index == 0) { /* First encoder */
55 if (clockwise) {
56 tap_code(KC_VOLD);
57 } else {
58 tap_code(KC_VOLU);
59 }
60 }
61}
diff --git a/keyboards/mb44/keymaps/via/keymap.c b/keyboards/mb44/keymaps/via/keymap.c
new file mode 100644
index 000000000..9a998ba0a
--- /dev/null
+++ b/keyboards/mb44/keymaps/via/keymap.c
@@ -0,0 +1,58 @@
1/* Copyright 2020 melonbred
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 _LAYER1,
22 _LAYER2,
23 _LAYER3
24
25};
26
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29 [_BASE] = LAYOUT_default(
30 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
31 CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT,
32 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH,
33 MO(_LAYER2), KC_LGUI, KC_LALT, LT(_LAYER1, KC_SPC), KC_LEFT, KC_RGHT, KC_DOWN
34 ),
35
36 [_LAYER1] = LAYOUT_default(
37 KC_GRV, KC_QUOT, _______, KC_UP, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_DEL,
38 KC_CAPS, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_PSLS, KC_PMNS, KC_4, KC_5, KC_6, KC_ENT,
39 KC_LSFT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_PAST, KC_PPLS, KC_1, KC_2, KC_3, KC_RSFT,
40 _______, KC_LGUI, KC_LALT, _______, KC_0, KC_PDOT, XXXXXXX
41 ),
42
43 [_LAYER2] = LAYOUT_default(
44 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
45 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLU,
46 XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_VOLD,
47 _______, XXXXXXX, XXXXXXX, XXXXXXX, KC_DEL, KC_RALT, KC_RCTL
48 ),
49
50 [_LAYER3] = LAYOUT_default(
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
53 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
54 _______, _______, _______, _______, _______, _______, _______
55 ),
56
57};
58
diff --git a/keyboards/mb44/keymaps/via/rules.mk b/keyboards/mb44/keymaps/via/rules.mk
new file mode 100644
index 000000000..036bd6d1c
--- /dev/null
+++ b/keyboards/mb44/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/mb44/mb44.c b/keyboards/mb44/mb44.c
new file mode 100644
index 000000000..16f68705f
--- /dev/null
+++ b/keyboards/mb44/mb44.c
@@ -0,0 +1,17 @@
1/* Copyright 2021 melonbred
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 "mb44.h" \ No newline at end of file
diff --git a/keyboards/mb44/mb44.h b/keyboards/mb44/mb44.h
new file mode 100644
index 000000000..a0664d8b8
--- /dev/null
+++ b/keyboards/mb44/mb44.h
@@ -0,0 +1,84 @@
1/* Copyright 2021 melonbred
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/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29
30#define XXX KC_NO
31
32
33
34#define LAYOUT_default( \
35 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
36 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
37 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
38 K30, K31, K32, K35, K39, K3A, K3B \
39) \
40{ \
41 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
42 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
43 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
44 { K30, K31, K32, XXX, XXX, K35, XXX, XXX, XXX, K39, K3A, K3B } \
45}
46
47#define LAYOUT_2u_space( \
48 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
49 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
50 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
51 K30, K31, K32, K33, K36, K37, K39, K3A, K3B \
52) \
53{ \
54 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
55 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
56 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
57 { K30, K31, K32, K33, XXX, XXX, K36, K37, XXX, K39, K3A, K3B } \
58}
59
60#define LAYOUT_2u1u_space( \
61 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
62 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
63 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
64 K30, K31, K32, K33, K35, K36, K39, K3A, K3B \
65) \
66{ \
67 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
68 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
69 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
70 { K30, K31, K32, K33, XXX, K35, K36, XXX, XXX, K39, K3A, K3B } \
71}
72
73#define LAYOUT_3u_space( \
74 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
75 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
76 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
77 K30, K31, K32, K33, K36, K39, K3A, K3B \
78) \
79{ \
80 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
81 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
82 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
83 { K30, K31, K32, K33, XXX, XXX, K36, XXX, XXX, K39, K3A, K3B } \
84}
diff --git a/keyboards/mb44/readme.md b/keyboards/mb44/readme.md
new file mode 100644
index 000000000..3cd59ecdb
--- /dev/null
+++ b/keyboards/mb44/readme.md
@@ -0,0 +1,15 @@
1# MB-44
2
3![MB-44](https://imgur.com/sECiIHR.jpg)
4
5To reset and put into bootloader mode, please use the hardware reset button on the botton of the PCB. If the PCB is on the default firmware, software reset is available by holding the bottom left corner key and pressing `B` in the standard qwerty layout.
6
7* Keyboard Maintainer: [melonbred](https://github.com/melonbred)
8* Hardware Supported: The PCBs, controllers supported
9* Hardware Availability: Links to where you can find this hardware
10
11Make example for this keyboard (after setting up your build environment):
12
13 make mb44:default
14
15See 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/mb44/rules.mk b/keyboards/mb44/rules.mk
new file mode 100644
index 000000000..ba7e249c9
--- /dev/null
+++ b/keyboards/mb44/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u2
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 = no # 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
23ENCODER_ENABLE = yes # Enable rotary encoder