aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mwstudio
diff options
context:
space:
mode:
authorTW59420 <40019210+TW59420@users.noreply.github.com>2021-10-27 23:03:51 +0800
committerGitHub <noreply@github.com>2021-10-27 08:03:51 -0700
commit2e3514f21c718e0f99e12433a96d6916f1a2fb73 (patch)
treeab0a3e45928c6edcee2152b8a15b89c3fa287ad0 /keyboards/mwstudio
parent9b912416b4334a55d49e84f38d73625f9fa728b1 (diff)
downloadqmk_firmware-2e3514f21c718e0f99e12433a96d6916f1a2fb73.tar.gz
qmk_firmware-2e3514f21c718e0f99e12433a96d6916f1a2fb73.zip
[Keyboard] Add MW65 Series PCB (#14939)
Diffstat (limited to 'keyboards/mwstudio')
-rw-r--r--keyboards/mwstudio/mw65_rgb/config.h61
-rw-r--r--keyboards/mwstudio/mw65_rgb/info.json84
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/default/keymap.c51
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/via/keymap.c128
-rw-r--r--keyboards/mwstudio/mw65_rgb/keymaps/via/rules.mk2
-rw-r--r--keyboards/mwstudio/mw65_rgb/mw65_rgb.c45
-rw-r--r--keyboards/mwstudio/mw65_rgb/mw65_rgb.h33
-rw-r--r--keyboards/mwstudio/mw65_rgb/readme.md22
-rw-r--r--keyboards/mwstudio/mw65_rgb/rules.mk24
-rw-r--r--keyboards/mwstudio/readme.md2
10 files changed, 452 insertions, 0 deletions
diff --git a/keyboards/mwstudio/mw65_rgb/config.h b/keyboards/mwstudio/mw65_rgb/config.h
new file mode 100644
index 000000000..8a320664a
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/config.h
@@ -0,0 +1,61 @@
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 0x6502
24#define DEVICE_VER 0x0001
25#define MANUFACTURER MWStudio
26#define PRODUCT MW65
27
28/* key matrix size */
29#define MATRIX_ROWS 6
30#define MATRIX_COLS 15
31
32/* key matrix pins */
33#define MATRIX_ROW_PINS { D0, D1, D2, D3, B7, B0 }
34#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, D4, C7, F7, F6, F5, F4, F1, F0, E6 }
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
45#define RGB_DI_PIN B3
46#ifdef RGB_DI_PIN
47 #define RGBLIGHT_SLEEP
48
49 #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
50 #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS
51 #define DRIVER_LED_TOTAL 83
52 #define RGBLED_NUM 83
53 #define RGB_MATRIX_KEYPRESSES
54
55 #define RGBLIGHT_HUE_STEP 8
56 #define RGBLIGHT_SAT_STEP 8
57 #define RGBLIGHT_VAL_STEP 8
58#endif
59
60#define ENCODERS_PAD_A { B1 }
61#define ENCODERS_PAD_B { B2 }
diff --git a/keyboards/mwstudio/mw65_rgb/info.json b/keyboards/mwstudio/mw65_rgb/info.json
new file mode 100644
index 000000000..affcdadbc
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/info.json
@@ -0,0 +1,84 @@
1{
2 "keyboard_name": "MW65_RGB",
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 {"label":"End", "x":15, "y":3},
69
70 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
71 {"label":"Win", "x":1.25, "y":4, "w":1.25},
72 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
73 {"label":"Vol-", "x":3.75, "y":4 },
74 {"label":"Vol+", "x":4.75, "y":4 },
75 {"x":5.75, "y":4, "w":4.25},
76 {"label":"Alt", "x":10, "y":4, "w":1.25},
77 {"label":"Fn", "x":11.25, "y":4, "w":1.25},
78 {"label":"\u2190", "x":13, "y":4},
79 {"label":"\u2193", "x":14, "y":4},
80 {"label":"\u2192", "x":15, "y":4}
81 ]
82 }
83 }
84}
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/default/keymap.c b/keyboards/mwstudio/mw65_rgb/keymaps/default/keymap.c
new file mode 100644
index 000000000..9466b0f28
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/default/keymap.c
@@ -0,0 +1,51 @@
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
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19
20 [0] = LAYOUT(
21 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,
22 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,
23 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,
24 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, RGB_TOG,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_VOLU, KC_VOLD, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT
26 ),
27
28 [1] = LAYOUT(
29 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, _______, RGB_HUI,
30 RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_SAI,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_SAD,
33 _______, _______, _______, _______, _______, _______, RGB_MOD, _______, RGB_SPD, RGB_VAD, RGB_SPI
34 ),
35
36 [2] = LAYOUT(
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
42 ),
43
44 [3] = LAYOUT(
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
47 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
50 ),
51};
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/via/keymap.c b/keyboards/mwstudio/mw65_rgb/keymaps/via/keymap.c
new file mode 100644
index 000000000..650643399
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/via/keymap.c
@@ -0,0 +1,128 @@
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
19typedef union {
20 uint32_t raw;
21 struct {
22 bool top_rgb_change :1;
23 bool bottom_rgb_change :1;
24 };
25} user_config_t;
26
27user_config_t user_config;
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30
31 [0] = LAYOUT(
32 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,
33 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,
34 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,
35 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, RGB_TOG,
36 KC_LCTL, KC_LGUI, KC_LALT, KC_VOLU, KC_VOLD, KC_SPACE, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT
37 ),
38
39 [1] = LAYOUT(
40 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, _______, RGB_HUI,
41 RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUD,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, USER00, RGB_SAI,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, USER01, RGB_VAI, RGB_SAD,
44 _______, _______, _______, _______, _______, _______, RGB_MOD, _______, RGB_SPD, RGB_VAD, RGB_SPI
45 ),
46
47 [2] = LAYOUT(
48 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
51 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
52 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
53 ),
54
55 [3] = LAYOUT(
56 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
57 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
58 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
59 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
60 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
61 ),
62};
63
64void keyboard_post_init_user(void) {
65 // Read the user config from EEPROM
66 user_config.raw = eeconfig_read_user();
67}
68
69bool process_record_user(uint16_t keycode, keyrecord_t *record) {
70 switch (keycode) {
71 case USER00:
72 if (record->event.pressed) {
73 // Do something when pressed
74 user_config.top_rgb_change ^= 1; // Toggles the status
75 eeconfig_update_user(user_config.raw); // Writes the new status to EEPROM
76 } else {
77 // Do something else when release
78 }
79 return false; // Skip all further processing of this key
80 case USER01:
81 if (record->event.pressed) {
82 // Do something when pressed
83 user_config.bottom_rgb_change ^= 1; // Toggles the status
84 eeconfig_update_user(user_config.raw); // Writes the new status to EEPROM
85 } else {
86 // Do something else when release
87 }
88 return false; // Skip all further processing of this key
89 default:
90 return true; // Process all other keycodes normally
91 }
92}
93
94#ifdef ENCODER_ENABLE
95bool encoder_update_user(uint8_t index, bool clockwise) {
96 if (index == 0) {
97 if (clockwise) {
98 tap_code(dynamic_keymap_get_keycode(biton32(layer_state), 4, 3));
99 } else {
100 tap_code(dynamic_keymap_get_keycode(biton32(layer_state), 4, 4));
101 }
102 }
103 return true;
104}
105#endif
106
107void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
108
109 if (user_config.top_rgb_change)
110 {
111 for (size_t i = 16; i < 83; i++)
112 {
113 RGB_MATRIX_INDICATOR_SET_COLOR(i, 0, 0, 0);
114 }
115 }
116
117 if (host_keyboard_led_state().caps_lock) {
118 RGB_MATRIX_INDICATOR_SET_COLOR(52, 0, 255, 255); // assuming caps lock is at led #5
119 }
120
121 if (user_config.bottom_rgb_change)
122 {
123 for (size_t i = 0; i < 16; i++)
124 {
125 RGB_MATRIX_INDICATOR_SET_COLOR(i, 0, 0, 0);
126 }
127 }
128}
diff --git a/keyboards/mwstudio/mw65_rgb/keymaps/via/rules.mk b/keyboards/mwstudio/mw65_rgb/keymaps/via/rules.mk
new file mode 100644
index 000000000..36b7ba9cb
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes
diff --git a/keyboards/mwstudio/mw65_rgb/mw65_rgb.c b/keyboards/mwstudio/mw65_rgb/mw65_rgb.c
new file mode 100644
index 000000000..e49944f1c
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/mw65_rgb.c
@@ -0,0 +1,45 @@
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 "mw65_rgb.h"
18
19#ifdef RGB_MATRIX_ENABLE
20led_config_t g_led_config = { {
21 { 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68 },
22 { 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67 },
23 { 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, NO_LED, 40, 39 },
24 { 25, NO_LED, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38 },
25 { 24, 23, 22, NO_LED, NO_LED, NO_LED, 21, NO_LED, NO_LED, 15, 20, 19, 18, 17, 16 },
26
27 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }
28}, {
29 { 175, 45 },{ 130, 45 },{ 85, 45 }, { 50, 45 }, { 15, 45 }, { 15, 35 }, { 15, 25 }, { 15, 10 },
30 { 50, 10 }, { 85, 10 }, { 130, 10 }, { 175, 10 }, { 210, 10 }, { 210, 25 }, { 210, 35 }, { 210, 45 },
31 { 217, 54 }, { 203, 54 }, { 189, 54 }, { 166, 54 }, { 150, 54 }, { 95, 54 }, { 40, 54 }, { 24, 54 }, { 8, 54 },
32 { 17, 42 }, { 39, 42 }, { 53, 42 }, { 67, 42 }, { 81, 42 }, { 95, 42 }, { 109, 42 }, { 123, 42 }, { 137, 42 }, { 151, 42 }, { 165, 42 }, { 184, 42 }, { 203, 42 }, { 217, 42 },
33 { 217, 30 }, { 195, 30 }, { 172, 30 }, { 158, 30 }, { 144, 30 }, { 130, 30 }, { 116, 30 }, { 102, 30 }, { 88, 30 }, { 74, 30 }, { 60, 30 }, { 46, 30 }, { 32, 30 },{ 13, 30 },
34 { 9, 18 }, { 25, 18 }, { 39, 18 }, { 53, 18 }, { 67, 18 }, { 81, 18 }, { 95, 18 }, { 109, 18 }, { 123, 18 }, { 137, 18 }, { 151, 18 }, { 165, 18 }, { 181, 18 }, { 199, 18 }, { 217, 18 },
35 { 217, 6 }, { 196, 6 }, { 175, 6 }, { 161, 6 }, { 147, 6 }, { 133, 6 }, { 119, 6 }, { 105, 6 }, { 91, 6 }, { 77, 6 }, { 63, 6 }, { 49, 6 }, { 35, 6 }, { 21, 6 }, { 7, 6 },
36}, {
37 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
38 1, 1, 1, 1, 1, 1, 1, 1, 1,
39 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
40 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
41 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
42 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
43} };
44#endif
45
diff --git a/keyboards/mwstudio/mw65_rgb/mw65_rgb.h b/keyboards/mwstudio/mw65_rgb/mw65_rgb.h
new file mode 100644
index 000000000..b491e324e
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/mw65_rgb.h
@@ -0,0 +1,33 @@
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, K314, \
25 K400, K401, K402, K403, K404, 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, K314 }, \
31 { K400, K401, K402, K403, K404, KC_NO, K406, KC_NO, KC_NO, KC_NO, K410, K411, K412, K413, K414 }, \
32 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \
33}
diff --git a/keyboards/mwstudio/mw65_rgb/readme.md b/keyboards/mwstudio/mw65_rgb/readme.md
new file mode 100644
index 000000000..e15b5f9de
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/readme.md
@@ -0,0 +1,22 @@
1# MW65_RGB
2
3![MW65_RGB](https://i.imgur.com/MPb8Lba.jpg?2)
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 mwstudio/mw65_rgb:default
13
14Flashing example for this keyboard:
15
16 make mwstudio/mw65_rgb: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/mwstudio/mw65_rgb/rules.mk b/keyboards/mwstudio/mw65_rgb/rules.mk
new file mode 100644
index 000000000..58d8da3e8
--- /dev/null
+++ b/keyboards/mwstudio/mw65_rgb/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 = 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
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 = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21AUDIO_ENABLE = no # Audio output
22RGB_MATRIX_ENABLE = yes
23RGB_MATRIX_DRIVER = WS2812
24ENCODER_ENABLE = yes
diff --git a/keyboards/mwstudio/readme.md b/keyboards/mwstudio/readme.md
index d4433a8c9..1962a97d8 100644
--- a/keyboards/mwstudio/readme.md
+++ b/keyboards/mwstudio/readme.md
@@ -2,4 +2,6 @@
2 2
3This is a series of PCB 3This is a series of PCB
4* MW75 The chip is ATmega32U4 4* MW75 The chip is ATmega32U4
5* MW65_RGB The chip is ATmega32U4
6
5 7