aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTW59420 <40019210+TW59420@users.noreply.github.com>2022-01-09 11:57:31 +0800
committerGitHub <noreply@github.com>2022-01-08 19:57:31 -0800
commit70469d373dfe52c9778289ac2c96ae9c5bf3b2fb (patch)
tree5cc060eaafd3ddd31ad1c6ac04f6956eacba59e3
parent50d81b63e91c6d16d8f20f52ebd8f216797cab1f (diff)
downloadqmk_firmware-70469d373dfe52c9778289ac2c96ae9c5bf3b2fb.tar.gz
qmk_firmware-70469d373dfe52c9778289ac2c96ae9c5bf3b2fb.zip
[Keyboard] Add MMKZOO65 PCB (#15546)
* Add MMKZOO65 PCB * Update keyboards/mmkzoo65/rules.mk * Update keyboards/mmkzoo65/rules.mk
-rw-r--r--keyboards/mmkzoo65/config.h48
-rw-r--r--keyboards/mmkzoo65/info.json81
-rw-r--r--keyboards/mmkzoo65/keymaps/default/keymap.c53
-rw-r--r--keyboards/mmkzoo65/keymaps/via/keymap.c52
-rw-r--r--keyboards/mmkzoo65/keymaps/via/rules.mk2
-rw-r--r--keyboards/mmkzoo65/mmkzoo65.c18
-rw-r--r--keyboards/mmkzoo65/mmkzoo65.h32
-rw-r--r--keyboards/mmkzoo65/readme.md22
-rw-r--r--keyboards/mmkzoo65/rules.mk19
9 files changed, 327 insertions, 0 deletions
diff --git a/keyboards/mmkzoo65/config.h b/keyboards/mmkzoo65/config.h
new file mode 100644
index 000000000..18d7c40ca
--- /dev/null
+++ b/keyboards/mmkzoo65/config.h
@@ -0,0 +1,48 @@
1/* Copyright 2021 TW59420 <https://github.com/TW59420>
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 0x7BA1
23#define PRODUCT_ID 0x6505
24#define DEVICE_VER 0x0001
25#define MANUFACTURER MWStudio
26#define PRODUCT MMKZOO65
27
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 15
31
32/* key matrix pins */
33#define MATRIX_ROW_PINS { B2, B3, B7, E6, B0 }
34#define MATRIX_COL_PINS { B1, F0, F1, F4, F5, F6, F7, D4, D6, D7, B4, B5, B6, C6, C7 }
35
36#define BOOTMAGIC_LITE_ROW 0
37#define BOOTMAGIC_LITE_COLUMN 0
38
39/* COL2ROW or ROW2COL */
40#define DIODE_DIRECTION COL2ROW
41
42/* Set 0 if debouncing isn't needed */
43#define DEBOUNCE 5
44#define FORCE_NKRO
45
46/* 将USB 轮询速率更改为 1000hz 并为精英游戏每次扫描使用更大的密钥*/
47#define USB_POLLING_INTERVAL_MS 2
48#define QMK_KEYS_PER_SCAN 12
diff --git a/keyboards/mmkzoo65/info.json b/keyboards/mmkzoo65/info.json
new file mode 100644
index 000000000..682c2238f
--- /dev/null
+++ b/keyboards/mmkzoo65/info.json
@@ -0,0 +1,81 @@
1{
2 "keyboard_name": "MMKZOO65",
3 "url": "",
4 "maintainer": "qmk",
5 "layouts": {
6 "LAYOUT": {
7 "layout": [
8 {"label":"ESC", "x":0, "y":0},
9 {"label":"1", "x":1, "y":0},
10 {"label":"2", "x":2, "y":0},
11 {"label":"3", "x":3, "y":0},
12 {"label":"4", "x":4, "y":0},
13 {"label":"5", "x":5, "y":0},
14 {"label":"6", "x":6, "y":0},
15 {"label":"7", "x":7, "y":0},
16 {"label":"8", "x":8, "y":0},
17 {"label":"9", "x":9, "y":0},
18 {"label":"0", "x":10, "y":0},
19 {"label":"-", "x":11, "y":0},
20 {"label":"=", "x":12, "y":0},
21 {"label":"Backspace", "x":13, "y":0, "w":2},
22 {"label":"Delete", "x":15, "y":0},
23
24 {"label":"Tab", "x":0, "y":1, "w":1.5},
25 {"label":"Q", "x":1.5, "y":1},
26 {"label":"W", "x":2.5, "y":1},
27 {"label":"E", "x":3.5, "y":1},
28 {"label":"R", "x":4.5, "y":1},
29 {"label":"T", "x":5.5, "y":1},
30 {"label":"Y", "x":6.5, "y":1},
31 {"label":"U", "x":7.5, "y":1},
32 {"label":"I", "x":8.5, "y":1},
33 {"label":"O", "x":9.5, "y":1},
34 {"label":"P", "x":10.5, "y":1},
35 {"label":"[", "x":11.5, "y":1},
36 {"label":"]", "x":12.5, "y":1},
37 {"label":"\\", "x":13.5, "y":1, "w":1.5},
38 {"label":"PgUp", "x":15, "y":1},
39
40 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
41 {"label":"A", "x":1.75, "y":2},
42 {"label":"S", "x":2.75, "y":2},
43 {"label":"D", "x":3.75, "y":2},
44 {"label":"F", "x":4.75, "y":2},
45 {"label":"G", "x":5.75, "y":2},
46 {"label":"H", "x":6.75, "y":2},
47 {"label":"J", "x":7.75, "y":2},
48 {"label":"K", "x":8.75, "y":2},
49 {"label":"L", "x":9.75, "y":2},
50 {"label":";", "x":10.75, "y":2},
51 {"label":"'", "x":11.75, "y":2},
52 {"label":"Enter", "x":12.75, "y":2, "w":2.25},
53 {"label":"PgDn", "x":15, "y":2},
54
55 {"label":"Shift", "x":0, "y":3, "w":2.25},
56 {"label":"Z", "x":2.25, "y":3},
57 {"label":"X", "x":3.25, "y":3},
58 {"label":"C", "x":4.25, "y":3},
59 {"label":"V", "x":5.25, "y":3},
60 {"label":"B", "x":6.25, "y":3},
61 {"label":"N", "x":7.25, "y":3},
62 {"label":"M", "x":8.25, "y":3},
63 {"label":",", "x":9.25, "y":3},
64 {"label":".", "x":10.25, "y":3},
65 {"label":"/", "x":11.25, "y":3},
66 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
67 {"label":"\u2191", "x":14, "y":3},
68
69 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
70 {"label":"Win", "x":1.25, "y":4, "w":1.25},
71 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
72 {"x":3.75, "y":4, "w":6.25},
73 {"label":"Alt", "x":10, "y":4, "w":1.25},
74 {"label":"Fn", "x":11.25, "y":4, "w":1.25},
75 {"label":"\u2190", "x":13, "y":4},
76 {"label":"\u2193", "x":14, "y":4},
77 {"label":"\u2192", "x":15, "y":4}
78 ]
79 }
80 }
81}
diff --git a/keyboards/mmkzoo65/keymaps/default/keymap.c b/keyboards/mmkzoo65/keymaps/default/keymap.c
new file mode 100644
index 000000000..1d5d53f25
--- /dev/null
+++ b/keyboards/mmkzoo65/keymaps/default/keymap.c
@@ -0,0 +1,53 @@
1/* Copyright 2021 TW59420 <https://github.com/TW59420>
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 QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT(
22 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_BSPC, KC_DEL,
23 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_PGUP,
24 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_PGDN,
25 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,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT
27 ),
28
29 [1] = LAYOUT(
30 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, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
34 _______, _______, _______, _______, _______, _______, _______, _______, _______
35 ),
36
37 [2] = LAYOUT(
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______
43 ),
44
45 [3] = LAYOUT(
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______
51 ),
52};
53
diff --git a/keyboards/mmkzoo65/keymaps/via/keymap.c b/keyboards/mmkzoo65/keymaps/via/keymap.c
new file mode 100644
index 000000000..78ca824d2
--- /dev/null
+++ b/keyboards/mmkzoo65/keymaps/via/keymap.c
@@ -0,0 +1,52 @@
1/* Copyright 2021 TW59420 <https://github.com/TW59420>
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 QMK_KEYBOARD_H
18
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20
21 [0] = LAYOUT(
22 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_BSPC, KC_DEL,
23 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_PGUP,
24 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_PGDN,
25 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,
26 KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT
27 ),
28
29 [1] = LAYOUT(
30 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, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
33 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
34 _______, _______, _______, _______, _______, _______, _______, _______, _______
35 ),
36
37 [2] = LAYOUT(
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______
43 ),
44
45 [3] = LAYOUT(
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______
51 ),
52};
diff --git a/keyboards/mmkzoo65/keymaps/via/rules.mk b/keyboards/mmkzoo65/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/mmkzoo65/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/mmkzoo65/mmkzoo65.c b/keyboards/mmkzoo65/mmkzoo65.c
new file mode 100644
index 000000000..09da82dd8
--- /dev/null
+++ b/keyboards/mmkzoo65/mmkzoo65.c
@@ -0,0 +1,18 @@
1/* Copyright 2021 TW59420 <https://github.com/TW59420>
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 "mmkzoo65.h"
18
diff --git a/keyboards/mmkzoo65/mmkzoo65.h b/keyboards/mmkzoo65/mmkzoo65.h
new file mode 100644
index 000000000..59b2b7f56
--- /dev/null
+++ b/keyboards/mmkzoo65/mmkzoo65.h
@@ -0,0 +1,32 @@
1/* Copyright 2021 TW59420 <https://github.com/TW59420>
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#pragma once
17
18#include "quantum.h"
19
20#define LAYOUT( \
21 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, \
22 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
23 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, \
24 K300, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, \
25 K400, K401, K402, K406, K410, K411, K412, K413, K414 \
26) { \
27 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
28 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
29 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, KC_NO, K213, K214 }, \
30 { K300, KC_NO, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, KC_NO }, \
31 { K400, K401, K402, KC_NO, KC_NO, KC_NO, K406, KC_NO, KC_NO, KC_NO, K410, K411, K412, K413, K414 } \
32}
diff --git a/keyboards/mmkzoo65/readme.md b/keyboards/mmkzoo65/readme.md
new file mode 100644
index 000000000..96a699769
--- /dev/null
+++ b/keyboards/mmkzoo65/readme.md
@@ -0,0 +1,22 @@
1# MMKZOO65
2
3![MMKZOO65](https://i.imgur.com/f84vVr4.jpg?1)
4
5Support Atmega32u4 keyboard.
6
7* Keyboard Maintainer: [TW59420](https://github.com/TW59420)
8* Hardware Supported: Atmega32u4
9
10Make example for this keyboard (after setting up your build environment):
11
12 make mmkzoo65:default
13
14Flashing example for this keyboard:
15
16 make mmkzoo65: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).
19
20## Bootloader
21* **Physical reset button**: Short press the button on the back of the PCB to enter the Bootloader and flash the firmware
22* **Keycode in layout**: Press the key mapped to RESET if it is available
diff --git a/keyboards/mmkzoo65/rules.mk b/keyboards/mmkzoo65/rules.mk
new file mode 100644
index 000000000..b018a630b
--- /dev/null
+++ b/keyboards/mmkzoo65/rules.mk
@@ -0,0 +1,19 @@
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 = yes # Enable Bootmagic Lite
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
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = no