From 63c862754d94a793c4f91c7c3cb0a6cca7999e98 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 17:59:34 +0800 Subject: [PATCH 01/16] Update readme.md --- keyboards/mmd/km17/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/mmd/km17/readme.md b/keyboards/mmd/km17/readme.md index 7b9a16126f96..97aee4457ca0 100644 --- a/keyboards/mmd/km17/readme.md +++ b/keyboards/mmd/km17/readme.md @@ -1,4 +1,4 @@ -# MMD-KM17 +# MMD-KM75 * A customizable soldering 75% keyboard. @@ -9,10 +9,10 @@ Make example for this keyboard (after setting up your build environment): - make mmd/km17:default + make mmd/km75:default Flashing example for this keyboard: - make mmd/km17:default:flash + make mmd/km75:default:flash See the build environment setup and the make instructions for more information. Brand new to QMK? Start with our Complete Newbs Guide. From e696340e93962b101248cf1af2877e7807320de3 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:01:22 +0800 Subject: [PATCH 02/16] Create KM75 --- keyboards/mmd/KM75 | 1 + 1 file changed, 1 insertion(+) create mode 100644 keyboards/mmd/KM75 diff --git a/keyboards/mmd/KM75 b/keyboards/mmd/KM75 new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/keyboards/mmd/KM75 @@ -0,0 +1 @@ + From 76a2d9dbc2d6b83835c3653b70b838409eced83f Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:01:45 +0800 Subject: [PATCH 03/16] Delete keyboards/mmd/KM75 --- keyboards/mmd/KM75 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 keyboards/mmd/KM75 diff --git a/keyboards/mmd/KM75 b/keyboards/mmd/KM75 deleted file mode 100644 index 8b137891791f..000000000000 --- a/keyboards/mmd/KM75 +++ /dev/null @@ -1 +0,0 @@ - From dbe4c1b1c6c374c15f362853fa6637fc8d356b90 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:02:21 +0800 Subject: [PATCH 04/16] Create km75 --- keyboards/mmd/km75 | 1 + 1 file changed, 1 insertion(+) create mode 100644 keyboards/mmd/km75 diff --git a/keyboards/mmd/km75 b/keyboards/mmd/km75 new file mode 100644 index 000000000000..8b137891791f --- /dev/null +++ b/keyboards/mmd/km75 @@ -0,0 +1 @@ + From 0435cc7ba4d81f5b87e541fa8454e9ad9e0d01f5 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:11:39 +0800 Subject: [PATCH 05/16] Delete keyboards/mmd/km75 --- keyboards/mmd/km75 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 keyboards/mmd/km75 diff --git a/keyboards/mmd/km75 b/keyboards/mmd/km75 deleted file mode 100644 index 8b137891791f..000000000000 --- a/keyboards/mmd/km75 +++ /dev/null @@ -1 +0,0 @@ - From 84ab499c73646cc68ccf9d984c3e34b40dfe3291 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:12:36 +0800 Subject: [PATCH 06/16] Create keymap.c --- keyboards/mmd/km75/keymaps/default/keymap.c | 75 +++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 keyboards/mmd/km75/keymaps/default/keymap.c diff --git a/keyboards/mmd/km75/keymaps/default/keymap.c b/keyboards/mmd/km75/keymaps/default/keymap.c new file mode 100644 index 000000000000..da39cad376bf --- /dev/null +++ b/keyboards/mmd/km75/keymaps/default/keymap.c @@ -0,0 +1,75 @@ +/* +Copyright 2021 owlab +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + + +#include QMK_KEYBOARD_H + + +enum custom_keycodes { +#ifdef VIA_ENABLE +// KC_USB = QK_USER, + KC_24G = QK_KB_0, +#else + KC_24G = SAFE_RANGE, +#endif + KC_BLE1, + KC_BLE2, + KC_BLE3, + WIN_LOCK, + KC_RESET, + KC_BAT, + ENC_TG +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + + [0] = LAYOUT( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, ENC_TG, + KC_GRV, 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_HOME, + 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, + 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, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + + ), + [1] = LAYOUT( + _______, KC_BRID, KC_BRIU, LGUI(KC_TAB), LGUI(KC_E), KC_MAIL, KC_WHOM, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, + _______, KC_BLE1, KC_BLE2, KC_BLE3, KC_24G, _______, _______, _______, _______, _______, _______, _______, _______, KC_BAT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_MOD, RGB_TOG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, + _______, WIN_LOCK, _______, KC_RESET, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI + + ), + [2] = LAYOUT( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, ENC_TG, + KC_GRV, 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_HOME, + 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, + 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, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, MO(3), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + + ), + [3] = LAYOUT( + _______, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, + _______, KC_BLE1, KC_BLE2, KC_BLE3, KC_24G, _______, _______, _______, _______, _______, _______, _______, _______, KC_BAT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_MOD, RGB_TOG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, + _______, _______, _______, KC_RESET, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI + + ) +}; + From 6d6226952e6085d333ee4853a265b1e0a4dd7c12 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:13:37 +0800 Subject: [PATCH 07/16] Create keymap.c --- keyboards/mmd/km75/keymaps/via/keymap.c | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 keyboards/mmd/km75/keymaps/via/keymap.c diff --git a/keyboards/mmd/km75/keymaps/via/keymap.c b/keyboards/mmd/km75/keymaps/via/keymap.c new file mode 100644 index 000000000000..da39cad376bf --- /dev/null +++ b/keyboards/mmd/km75/keymaps/via/keymap.c @@ -0,0 +1,75 @@ +/* +Copyright 2021 owlab +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + + +#include QMK_KEYBOARD_H + + +enum custom_keycodes { +#ifdef VIA_ENABLE +// KC_USB = QK_USER, + KC_24G = QK_KB_0, +#else + KC_24G = SAFE_RANGE, +#endif + KC_BLE1, + KC_BLE2, + KC_BLE3, + WIN_LOCK, + KC_RESET, + KC_BAT, + ENC_TG +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + + [0] = LAYOUT( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, ENC_TG, + KC_GRV, 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_HOME, + 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, + 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, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + + ), + [1] = LAYOUT( + _______, KC_BRID, KC_BRIU, LGUI(KC_TAB), LGUI(KC_E), KC_MAIL, KC_WHOM, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, + _______, KC_BLE1, KC_BLE2, KC_BLE3, KC_24G, _______, _______, _______, _______, _______, _______, _______, _______, KC_BAT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_MOD, RGB_TOG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, + _______, WIN_LOCK, _______, KC_RESET, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI + + ), + [2] = LAYOUT( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, ENC_TG, + KC_GRV, 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_HOME, + 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, + 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, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, + KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, MO(3), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT + + ), + [3] = LAYOUT( + _______, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, + _______, KC_BLE1, KC_BLE2, KC_BLE3, KC_24G, _______, _______, _______, _______, _______, _______, _______, _______, KC_BAT, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_HUI, RGB_HUD, RGB_MOD, RGB_TOG, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, _______, + _______, _______, _______, KC_RESET, _______, _______, RGB_SPD, RGB_VAD, RGB_SPI + + ) +}; + From 2daac2ab143021835e983561dfaa201ea176eb8f Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:14:08 +0800 Subject: [PATCH 08/16] Create rules.mk --- keyboards/mmd/km75/keymaps/via/rules.mk | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 keyboards/mmd/km75/keymaps/via/rules.mk diff --git a/keyboards/mmd/km75/keymaps/via/rules.mk b/keyboards/mmd/km75/keymaps/via/rules.mk new file mode 100644 index 000000000000..36b7ba9cbc98 --- /dev/null +++ b/keyboards/mmd/km75/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes From 11a099f3f4ab4eb3c2acfa16ddd8960a625a0237 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:14:51 +0800 Subject: [PATCH 09/16] Create config.h --- keyboards/mmd/km75/config.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 keyboards/mmd/km75/config.h diff --git a/keyboards/mmd/km75/config.h b/keyboards/mmd/km75/config.h new file mode 100644 index 000000000000..f9b0087b99ef --- /dev/null +++ b/keyboards/mmd/km75/config.h @@ -0,0 +1,31 @@ +/* Copyright 2022 Jacky + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + +#pragma once + + +#define RGB_MATRIX_LED_COUNT 81 +#define WS2812_PWM_DRIVER PWMD3 +#define WS2812_PWM_CHANNEL 1 +#define WS2812_PWM_PAL_MODE 2 +#define WS2812_DMA_STREAM STM32_DMA1_STREAM3 +#define WS2812_DMA_CHANNEL 3 + +#define ENCODERS_PAD_A {B3} +#define ENCODERS_PAD_B {A7} + +#define ENCODER_RESOLUTION 4 From bda78887a6fc80de16c94b5ef6bae298a938f797 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:15:27 +0800 Subject: [PATCH 10/16] Create halconf.h --- keyboards/mmd/km75/halconf.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 keyboards/mmd/km75/halconf.h diff --git a/keyboards/mmd/km75/halconf.h b/keyboards/mmd/km75/halconf.h new file mode 100644 index 000000000000..efa945ea7fbb --- /dev/null +++ b/keyboards/mmd/km75/halconf.h @@ -0,0 +1,26 @@ +/* Copyright 2020 QMK + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/* + * This file was auto-generated by: + * `qmk chibios-confmigrate -i keyboards/annepro2/halconf.h -r platforms/chibios/common/configs/halconf.h` + */ + +#pragma once + +#define HAL_USE_PWM TRUE + +#include_next From 0965537997714b6ef5f0372bd7361f1cea863012 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:16:21 +0800 Subject: [PATCH 11/16] Create keyboard.json --- keyboards/mmd/km75/keyboard.json | 246 +++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 keyboards/mmd/km75/keyboard.json diff --git a/keyboards/mmd/km75/keyboard.json b/keyboards/mmd/km75/keyboard.json new file mode 100644 index 000000000000..3f8edf5b8097 --- /dev/null +++ b/keyboards/mmd/km75/keyboard.json @@ -0,0 +1,246 @@ +{ + "manufacturer": "MMD", + "keyboard_name": "MMD-KM75", + "maintainer": "Smartmmd", + "board": "STM32_F103_STM32DUINO", + "bootloader": "stm32duino", + "diode_direction": "ROW2COL", + "features": { + "bootmagic": true, + "console": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, + "matrix_pins": { + "cols": ["B0", "C15", "C14", "C13", "A15", "B7", "B6", "B5", "B4", "B12", "B13", "B14", "A14", "B2", "B15"], + "rows": ["A0", "A1", "A2", "A3", "A4", "A5"] + }, + "processor": "STM32F103", + "rgb_matrix": { + "animations": { + "band_pinwheel_sat": true, + "band_pinwheel_val": true, + "band_sat": true, + "band_spiral_sat": true, + "band_spiral_val": true, + "band_val": true, + "breathing": true, + "cycle_all": true, + "cycle_left_right": true, + "cycle_out_in": true, + "cycle_out_in_dual": true, + "cycle_pinwheel": true, + "cycle_spiral": true, + "cycle_up_down": true, + "digital_rain": true, + "dual_beacon": true, + "gradient_left_right": true, + "gradient_up_down": true, + "hue_breathing": true, + "hue_pendulum": true, + "hue_wave": true, + "multisplash": true, + "rainbow_beacon": true, + "rainbow_moving_chevron": true, + "rainbow_pinwheels": true, + "solid_color": true, + "solid_multisplash": true, + "solid_reactive": true, + "solid_reactive_cross": true, + "solid_reactive_multicross": true, + "solid_reactive_multinexus": true, + "solid_reactive_multiwide": true, + "solid_reactive_nexus": true, + "solid_reactive_simple": true, + "solid_reactive_wide": true, + "solid_splash": true, + "splash": true, + "typing_heatmap": true + }, + "driver": "ws2812", + "layout": [ + {"matrix": [5, 5], "x": 93, "y": 6, "flags": 4}, + {"matrix": [5, 10], "x": 150, "y": 6, "flags": 4}, + {"matrix": [5, 11], "x": 169, "y": 6, "flags": 4}, + {"matrix": [5, 12], "x": 194, "y": 6, "flags": 4}, + {"matrix": [5, 13], "x": 209, "y": 6, "flags": 4}, + {"matrix": [5, 14], "x": 224, "y": 6, "flags": 4}, + {"matrix": [4, 14], "x": 224, "y": 6, "flags": 4}, + {"matrix": [4, 13], "x": 213, "y": 6, "flags": 4}, + {"matrix": [4, 12], "x": 192, "y": 6, "flags": 4}, + {"matrix": [4, 11], "x": 172, "y": 6, "flags": 4}, + {"matrix": [4, 10], "x": 156, "y": 6, "flags": 4}, + {"matrix": [4, 9], "x": 141, "y": 6, "flags": 4}, + {"matrix": [4, 8], "x": 126, "y": 6, "flags": 4}, + {"matrix": [4, 7], "x": 111, "y": 6, "flags": 4}, + {"matrix": [4, 6], "x": 95, "y": 6, "flags": 4}, + {"matrix": [4, 5], "x": 80, "y": 6, "flags": 4}, + {"matrix": [4, 4], "x": 65, "y": 6, "flags": 4}, + {"matrix": [4, 3], "x": 50, "y": 6, "flags": 4}, + {"matrix": [4, 2], "x": 34, "y": 6, "flags": 4}, + {"matrix": [5, 2], "x": 40, "y": 6, "flags": 4}, + {"matrix": [5, 1], "x": 21, "y": 6, "flags": 4}, + {"matrix": [5, 0], "x": 2, "y": 6, "flags": 4}, + {"matrix": [4, 0], "x": 10, "y": 6, "flags": 4}, + {"matrix": [3, 0], "x": 1, "y": 6, "flags": 4}, + {"matrix": [3, 1], "x": 22, "y": 6, "flags": 4}, + {"matrix": [3, 2], "x": 37, "y": 6, "flags": 4}, + {"matrix": [3, 3], "x": 52, "y": 6, "flags": 4}, + {"matrix": [3, 4], "x": 68, "y": 6, "flags": 4}, + {"matrix": [3, 5], "x": 83, "y": 6, "flags": 4}, + {"matrix": [3, 6], "x": 98, "y": 6, "flags": 4}, + {"matrix": [3, 7], "x": 113, "y": 6, "flags": 4}, + {"matrix": [3, 8], "x": 129, "y": 6, "flags": 4}, + {"matrix": [3, 9], "x": 144, "y": 6, "flags": 4}, + {"matrix": [3, 10], "x": 159, "y": 6, "flags": 4}, + {"matrix": [3, 11], "x": 174, "y": 6, "flags": 4}, + {"matrix": [3, 13], "x": 199, "y": 6, "flags": 4}, + {"matrix": [3, 14], "x": 224, "y": 6, "flags": 4}, + {"matrix": [2, 14], "x": 224, "y": 6, "flags": 4}, + {"matrix": [2, 13], "x": 209, "y": 6, "flags": 4}, + {"matrix": [2, 12], "x": 190, "y": 6, "flags": 4}, + {"matrix": [2, 11], "x": 175, "y": 6, "flags": 4}, + {"matrix": [2, 10], "x": 160, "y": 6, "flags": 4}, + {"matrix": [2, 9], "x": 145, "y": 6, "flags": 4}, + {"matrix": [2, 8], "x": 129, "y": 6, "flags": 4}, + {"matrix": [2, 7], "x": 114, "y": 6, "flags": 4}, + {"matrix": [2, 6], "x": 99, "y": 6, "flags": 4}, + {"matrix": [2, 5], "x": 84, "y": 6, "flags": 4}, + {"matrix": [2, 4], "x": 69, "y": 6, "flags": 4}, + {"matrix": [2, 3], "x": 53, "y": 6, "flags": 4}, + {"matrix": [2, 2], "x": 38, "y": 6, "flags": 4}, + {"matrix": [2, 1], "x": 23, "y": 6, "flags": 4}, + {"matrix": [2, 0], "x": 4, "y": 6, "flags": 4}, + {"matrix": [1, 0], "x": 0, "y": 6, "flags": 4}, + {"matrix": [1, 1], "x": 11, "y": 6, "flags": 4}, + {"matrix": [1, 2], "x": 26, "y": 6, "flags": 4}, + {"matrix": [1, 3], "x": 41, "y": 6, "flags": 4}, + {"matrix": [1, 4], "x": 56, "y": 6, "flags": 4}, + {"matrix": [1, 5], "x": 72, "y": 6, "flags": 4}, + {"matrix": [1, 6], "x": 87, "y": 6, "flags": 4}, + {"matrix": [1, 7], "x": 102, "y": 6, "flags": 4}, + {"matrix": [1, 8], "x": 117, "y": 6, "flags": 4}, + {"matrix": [1, 9], "x": 133, "y": 6, "flags": 4}, + {"matrix": [1, 10], "x": 148, "y": 6, "flags": 4}, + {"matrix": [1, 11], "x": 163, "y": 6, "flags": 4}, + {"matrix": [1, 12], "x": 178, "y": 6, "flags": 4}, + {"matrix": [1, 13], "x": 201, "y": 6, "flags": 4}, + {"matrix": [1, 14], "x": 224, "y": 6, "flags": 4}, + {"matrix": [0, 13], "x": 213, "y": 6, "flags": 4}, + {"matrix": [0, 12], "x": 194, "y": 6, "flags": 4}, + {"matrix": [0, 11], "x": 179, "y": 6, "flags": 4}, + {"matrix": [0, 10], "x": 164, "y": 6, "flags": 4}, + {"matrix": [0, 9], "x": 149, "y": 6, "flags": 4}, + {"matrix": [0, 8], "x": 129, "y": 6, "flags": 4}, + {"matrix": [0, 7], "x": 114, "y": 6, "flags": 4}, + {"matrix": [0, 6], "x": 99, "y": 6, "flags": 4}, + {"matrix": [0, 5], "x": 84, "y": 6, "flags": 4}, + {"matrix": [0, 4], "x": 65, "y": 6, "flags": 4}, + {"matrix": [0, 3], "x": 50, "y": 6, "flags": 4}, + {"matrix": [0, 2], "x": 34, "y": 6, "flags": 4}, + {"matrix": [0, 1], "x": 19, "y": 6, "flags": 4}, + {"matrix": [0, 0], "x": 0, "y": 6, "flags": 4} + ] + }, + "url": "www.i-chip.cn", + "usb": { + "device_version": "0.0.1", + "force_nkro": true, + "pid": "0x3021", + "vid": "0x28E9" + }, + "ws2812": { + "driver": "pwm", + "pin": "A6" + }, + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1.25, "y": 0}, + {"matrix": [0, 2], "x": 2.25, "y": 0}, + {"matrix": [0, 3], "x": 3.25, "y": 0}, + {"matrix": [0, 4], "x": 4.25, "y": 0}, + {"matrix": [0, 5], "x": 5.5, "y": 0}, + {"matrix": [0, 6], "x": 6.5, "y": 0}, + {"matrix": [0, 7], "x": 7.5, "y": 0}, + {"matrix": [0, 8], "x": 8.5, "y": 0}, + {"matrix": [0, 9], "x": 9.75, "y": 0}, + {"matrix": [0, 10], "x": 10.75, "y": 0}, + {"matrix": [0, 11], "x": 11.75, "y": 0}, + {"matrix": [0, 12], "x": 12.75, "y": 0}, + {"matrix": [0, 13], "x": 14, "y": 0}, + {"matrix": [0, 14], "x": 15, "y": 0}, + {"matrix": [1, 0], "x": 0, "y": 1.25}, + {"matrix": [1, 1], "x": 1, "y": 1.25}, + {"matrix": [1, 2], "x": 2, "y": 1.25}, + {"matrix": [1, 3], "x": 3, "y": 1.25}, + {"matrix": [1, 4], "x": 4, "y": 1.25}, + {"matrix": [1, 5], "x": 5, "y": 1.25}, + {"matrix": [1, 6], "x": 6, "y": 1.25}, + {"matrix": [1, 7], "x": 7, "y": 1.25}, + {"matrix": [1, 8], "x": 8, "y": 1.25}, + {"matrix": [1, 9], "x": 9, "y": 1.25}, + {"matrix": [1, 10], "x": 10, "y": 1.25}, + {"matrix": [1, 11], "x": 11, "y": 1.25}, + {"matrix": [1, 12], "x": 12, "y": 1.25}, + {"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2}, + {"matrix": [1, 14], "x": 15, "y": 1.25}, + {"matrix": [2, 0], "x": 0, "y": 2.25}, + {"matrix": [2, 1], "x": 1.5, "y": 2.25}, + {"matrix": [2, 2], "x": 2.5, "y": 2.25}, + {"matrix": [2, 3], "x": 3.5, "y": 2.25}, + {"matrix": [2, 4], "x": 4.5, "y": 2.25}, + {"matrix": [2, 5], "x": 5.5, "y": 2.25}, + {"matrix": [2, 6], "x": 6.5, "y": 2.25}, + {"matrix": [2, 7], "x": 7.5, "y": 2.25}, + {"matrix": [2, 8], "x": 8.5, "y": 2.25}, + {"matrix": [2, 9], "x": 9.5, "y": 2.25}, + {"matrix": [2, 10], "x": 10.5, "y": 2.25}, + {"matrix": [2, 11], "x": 11.5, "y": 2.25}, + {"matrix": [2, 12], "x": 12.5, "y": 2.25}, + {"matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5}, + {"matrix": [2, 14], "x": 15, "y": 2.25}, + {"matrix": [3, 0], "x": 0, "y": 3.25}, + {"matrix": [3, 1], "x": 1.75, "y": 3.25}, + {"matrix": [3, 2], "x": 2.75, "y": 3.25}, + {"matrix": [3, 3], "x": 3.75, "y": 3.25}, + {"matrix": [3, 4], "x": 4.75, "y": 3.25}, + {"matrix": [3, 5], "x": 5.75, "y": 3.25}, + {"matrix": [3, 6], "x": 6.75, "y": 3.25}, + {"matrix": [3, 7], "x": 7.75, "y": 3.25}, + {"matrix": [3, 8], "x": 8.75, "y": 3.25}, + {"matrix": [3, 9], "x": 9.75, "y": 3.25}, + {"matrix": [3, 10], "x": 10.75, "y": 3.25}, + {"matrix": [3, 11], "x": 11.75, "y": 3.25}, + {"matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25}, + {"matrix": [3, 14], "x": 15, "y": 3.25}, + {"matrix": [4, 0], "x": 0, "y": 4.25}, + {"matrix": [4, 2], "x": 2.25, "y": 4.25}, + {"matrix": [4, 3], "x": 3.25, "y": 4.25}, + {"matrix": [4, 4], "x": 4.25, "y": 4.25}, + {"matrix": [4, 5], "x": 5.25, "y": 4.25}, + {"matrix": [4, 6], "x": 6.25, "y": 4.25}, + {"matrix": [4, 7], "x": 7.25, "y": 4.25}, + {"matrix": [4, 8], "x": 8.25, "y": 4.25}, + {"matrix": [4, 9], "x": 9.25, "y": 4.25}, + {"matrix": [4, 10], "x": 10.25, "y": 4.25}, + {"matrix": [4, 11], "x": 11.25, "y": 4.25}, + {"matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 1.75}, + {"matrix": [4, 13], "x": 14, "y": 4.25}, + {"matrix": [4, 14], "x": 15, "y": 4.25}, + {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25}, + {"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25}, + {"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25}, + {"matrix": [5, 5], "x": 3.75, "y": 5.25, "w": 6.25}, + {"matrix": [5, 10], "x": 10, "y": 5.25, "w": 1.25}, + {"matrix": [5, 11], "x": 11.25, "y": 5.25, "w": 1.25}, + {"matrix": [5, 12], "x": 13, "y": 5.25}, + {"matrix": [5, 13], "x": 14, "y": 5.25}, + {"matrix": [5, 14], "x": 15, "y": 5.25} + ] + } + } +} From 66675adec386134d0cff912ced34c56afb18ca59 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:16:50 +0800 Subject: [PATCH 12/16] Create km75.c --- keyboards/mmd/km75/km75.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 keyboards/mmd/km75/km75.c diff --git a/keyboards/mmd/km75/km75.c b/keyboards/mmd/km75/km75.c new file mode 100644 index 000000000000..289ece8bd2f4 --- /dev/null +++ b/keyboards/mmd/km75/km75.c @@ -0,0 +1,31 @@ +/* Copyright 2022 Jacky + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include "quantum.h" + + +void keyboard_pre_init_kb(void) { + setPinOutput(A8); + writePinHigh(A8); +} + +bool encoder_update_kb(uint8_t index, bool clockwise) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + return false; +} From 718c9d6e9a1fc770c68ebebe4da3fdf7d1f00441 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:17:15 +0800 Subject: [PATCH 13/16] Create mcuconf.h --- keyboards/mmd/km75/mcuconf.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keyboards/mmd/km75/mcuconf.h diff --git a/keyboards/mmd/km75/mcuconf.h b/keyboards/mmd/km75/mcuconf.h new file mode 100644 index 000000000000..9caef1b80a7e --- /dev/null +++ b/keyboards/mmd/km75/mcuconf.h @@ -0,0 +1,22 @@ +/* Copyright 2021 Glorious, LLC + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include_next + +#undef STM32_PWM_USE_TIM3 +#define STM32_PWM_USE_TIM3 TRUE From cb8a1caed04e76f48f93d4bd9bb8068aafacdfa2 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:18:10 +0800 Subject: [PATCH 14/16] Create readme.md --- keyboards/mmd/km75/readme.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 keyboards/mmd/km75/readme.md diff --git a/keyboards/mmd/km75/readme.md b/keyboards/mmd/km75/readme.md new file mode 100644 index 000000000000..97aee4457ca0 --- /dev/null +++ b/keyboards/mmd/km75/readme.md @@ -0,0 +1,22 @@ +# MMD-KM75 + + +* A customizable soldering 75% keyboard. + +* Keyboard Maintainer: [MMD](https://github.com/Smartmmd) +* Hardware Supported: [MMD](https://github.com/Smartmmd) +* Hardware Availability: [MMD](https://github.com/Smartmmd) + +Make example for this keyboard (after setting up your build environment): + + make mmd/km75:default +Flashing example for this keyboard: + + make mmd/km75:default:flash + +See the build environment setup and the make instructions for more information. Brand new to QMK? Start with our Complete Newbs Guide. + +## Bootloader ESC the bootloader in 3 ways: +* **Bootmagic reset: Hold down Enter in the keyboard then replug +* **Physical reset button: Briefly press the button on the back of the PCB +* **Keycode in layout: Press the key mapped to QK_BOOT From 26933be1f7e2fba89bd9191c83a40ec36e688472 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:18:37 +0800 Subject: [PATCH 15/16] Create rules.mk --- keyboards/mmd/km75/rules.mk | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 keyboards/mmd/km75/rules.mk diff --git a/keyboards/mmd/km75/rules.mk b/keyboards/mmd/km75/rules.mk new file mode 100644 index 000000000000..a90a6678876d --- /dev/null +++ b/keyboards/mmd/km75/rules.mk @@ -0,0 +1,2 @@ +MCU_LDSCRIPT = STM32F103xB +ENCODER_ENABLE = yes From abfd6bf92db3f3cfddc8863de5673467499f6683 Mon Sep 17 00:00:00 2001 From: Smartmmd Date: Sat, 22 Jun 2024 18:19:01 +0800 Subject: [PATCH 16/16] Update readme.md --- keyboards/mmd/km17/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboards/mmd/km17/readme.md b/keyboards/mmd/km17/readme.md index 97aee4457ca0..7b9a16126f96 100644 --- a/keyboards/mmd/km17/readme.md +++ b/keyboards/mmd/km17/readme.md @@ -1,4 +1,4 @@ -# MMD-KM75 +# MMD-KM17 * A customizable soldering 75% keyboard. @@ -9,10 +9,10 @@ Make example for this keyboard (after setting up your build environment): - make mmd/km75:default + make mmd/km17:default Flashing example for this keyboard: - make mmd/km75:default:flash + make mmd/km17:default:flash See the build environment setup and the make instructions for more information. Brand new to QMK? Start with our Complete Newbs Guide.