Mod Mmm support

This commit is contained in:
dcpedit 2024-03-19 12:12:29 -07:00
parent fa6d23235b
commit dd3f490036
10 changed files with 529 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// Copyright 2023 Ming-Gih Lam (@dcpedit)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define SOLENOID_PIN A10
#define AUDIO_INIT_DELAY
#define AUDIO_PIN A8
#define AUDIO_PWM_DRIVER PWMD1
#define AUDIO_PWM_CHANNEL 1
#define AUDIO_PWM_PAL_MODE 1
#define AUDIO_CLICKY
#define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f
#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(STARTUP_SOUND)
#endif

View File

@ -0,0 +1,9 @@
// Copyright 2024 Ming-Gih Lam (@dcpedit)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
// Used for audio
#define HAL_USE_PWM TRUE
#include_next <halconf.h>

View File

@ -0,0 +1,287 @@
{
"manufacturer": "dcpedit",
"keyboard_name": "Mod Mmm",
"maintainer": "dcpedit",
"board": "BLACKPILL_STM32_F411",
"bootloader": "stm32-dfu",
"diode_direction": "COL2ROW",
"dynamic_keymap": {
"layer_count": 2
},
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"audio": true,
"haptic": true,
"encoder": true
},
"indicators": {
"caps_lock": "B12",
"num_lock": "A1",
"scroll_lock": "A0"
},
"encoder": {
"rotary": [
{
"pin_a": "A2",
"pin_b": "A13"
},
{
"pin_a": "A2",
"pin_b": "A14"
},
{
"pin_a": "A13",
"pin_b": "A14"
}
]
},
"matrix_pins": {
"cols": ["B13", "B14", "B15", "A15", "B1", "A3", "B9", "C15", "C14", "C13"],
"rows": ["B10", "B3", "B0", "B4", "A7", "B5", "A4", "A6", "B6", "A5", "B7", "B8"]
},
"processor": "STM32F411",
"qmk": {
"tap_keycode_delay": 10
},
"url": "https://github.com/dcpedit/mod-mmm",
"usb": {
"device_version": "1.0.0",
"pid": "0x1770",
"vid": "0xDC9E"
},
"layouts": {
"LAYOUT_ortho": {
"layout": [
{"label": "0,0", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "6,0", "matrix": [6, 0], "x": 2, "y": 0},
{"label": "0,1", "matrix": [0, 1], "x": 3, "y": 0},
{"label": "6,1", "matrix": [6, 1], "x": 4, "y": 0},
{"label": "0,2", "matrix": [0, 2], "x": 5, "y": 0},
{"label": "6,2", "matrix": [6, 2], "x": 6.5, "y": 0},
{"label": "0,3", "matrix": [0, 3], "x": 7.5, "y": 0},
{"label": "6,3", "matrix": [6, 3], "x": 8.5, "y": 0},
{"label": "0,4", "matrix": [0, 4], "x": 9.5, "y": 0},
{"label": "6,4", "matrix": [6, 4], "x": 11, "y": 0},
{"label": "0,5", "matrix": [0, 5], "x": 12, "y": 0},
{"label": "6,5", "matrix": [6, 5], "x": 13, "y": 0},
{"label": "0,6", "matrix": [0, 6], "x": 14, "y": 0},
{"label": "6,6", "matrix": [6, 6], "x": 15.5, "y": 0},
{"label": "0,7", "matrix": [0, 7], "x": 16.5, "y": 0},
{"label": "6,7", "matrix": [6, 7], "x": 17.5, "y": 0},
{"label": "1,0", "matrix": [1, 0], "x": 0, "y": 1.5},
{"label": "7,0", "matrix": [7, 0], "x": 1.5, "y": 1.5},
{"label": "1,1", "matrix": [1, 1], "x": 2.5, "y": 1.5},
{"label": "7,1", "matrix": [7, 1], "x": 3.5, "y": 1.5},
{"label": "1,2", "matrix": [1, 2], "x": 4.5, "y": 1.5},
{"label": "7,2", "matrix": [7, 2], "x": 5.5, "y": 1.5},
{"label": "1,3", "matrix": [1, 3], "x": 6.5, "y": 1.5},
{"label": "7,3", "matrix": [7, 3], "x": 7.5, "y": 1.5},
{"label": "1,4", "matrix": [1, 4], "x": 8.5, "y": 1.5},
{"label": "7,4", "matrix": [7, 4], "x": 9.5, "y": 1.5},
{"label": "1,5", "matrix": [1, 5], "x": 10.5, "y": 1.5},
{"label": "7,5", "matrix": [7, 5], "x": 11.5, "y": 1.5},
{"label": "1,6", "matrix": [1, 6], "x": 12.5, "y": 1.5},
{"label": "7,6", "matrix": [7, 6], "x": 13.5, "y": 1.5},
{"label": "2,7", "matrix": [2, 7], "x": 15.5, "y": 1.5},
{"label": "1,7", "matrix": [1, 7], "x": 16.5, "y": 1.5},
{"label": "7,7", "matrix": [7, 7], "x": 17.5, "y": 1.5},
{"label": "0,8", "matrix": [0, 8], "x": 19, "y": 1.5},
{"label": "6,8", "matrix": [6, 8], "x": 20, "y": 1.5},
{"label": "0,9", "matrix": [0, 9], "x": 21, "y": 1.5},
{"label": "6,9", "matrix": [6, 9], "x": 22, "y": 1.5},
{"label": "2,0", "matrix": [2, 0], "x": 0, "y": 2.5},
{"label": "8,0", "matrix": [8, 0], "x": 1.5, "y": 2.5},
{"label": "2,1", "matrix": [2, 1], "x": 2.5, "y": 2.5},
{"label": "8,1", "matrix": [8, 1], "x": 3.5, "y": 2.5},
{"label": "2,2", "matrix": [2, 2], "x": 4.5, "y": 2.5},
{"label": "8,2", "matrix": [8, 2], "x": 5.5, "y": 2.5},
{"label": "2,3", "matrix": [2, 3], "x": 6.5, "y": 2.5},
{"label": "8,3", "matrix": [8, 3], "x": 7.5, "y": 2.5},
{"label": "2,4", "matrix": [2, 4], "x": 8.5, "y": 2.5},
{"label": "8,4", "matrix": [8, 4], "x": 9.5, "y": 2.5},
{"label": "2,5", "matrix": [2, 5], "x": 10.5, "y": 2.5},
{"label": "8,5", "matrix": [8, 5], "x": 11.5, "y": 2.5},
{"label": "2,6", "matrix": [2, 6], "x": 12.5, "y": 2.5},
{"label": "8,6", "matrix": [8, 6], "x": 13.5, "y": 2.5},
{"label": "3,7", "matrix": [3, 7], "x": 15.5, "y": 2.5},
{"label": "9,7", "matrix": [9, 7], "x": 16.5, "y": 2.5},
{"label": "8,7", "matrix": [8, 7], "x": 17.5, "y": 2.5},
{"label": "1,8", "matrix": [1, 8], "x": 19, "y": 2.5},
{"label": "7,8", "matrix": [7, 8], "x": 20, "y": 2.5},
{"label": "1,9", "matrix": [1, 9], "x": 21, "y": 2.5},
{"label": "7,9", "matrix": [7, 9], "x": 22, "y": 2.5},
{"label": "3,0", "matrix": [3, 0], "x": 0, "y": 3.5},
{"label": "9,0", "matrix": [9, 0], "x": 1.5, "y": 3.5},
{"label": "3,1", "matrix": [3, 1], "x": 2.5, "y": 3.5},
{"label": "9,1", "matrix": [9, 1], "x": 3.5, "y": 3.5},
{"label": "3,2", "matrix": [3, 2], "x": 4.5, "y": 3.5},
{"label": "9,2", "matrix": [9, 2], "x": 5.5, "y": 3.5},
{"label": "3,3", "matrix": [3, 3], "x": 6.5, "y": 3.5},
{"label": "9,3", "matrix": [9, 3], "x": 7.5, "y": 3.5},
{"label": "3,4", "matrix": [3, 4], "x": 8.5, "y": 3.5},
{"label": "9,4", "matrix": [9, 4], "x": 9.5, "y": 3.5},
{"label": "3,5", "matrix": [3, 5], "x": 10.5, "y": 3.5},
{"label": "9,5", "matrix": [9, 5], "x": 11.5, "y": 3.5},
{"label": "3,6", "matrix": [3, 6], "x": 12.5, "y": 3.5},
{"label": "9,6", "matrix": [9, 6], "x": 13.5, "y": 3.5},
{"label": "2,8", "matrix": [2, 8], "x": 19, "y": 3.5},
{"label": "8,8", "matrix": [8, 8], "x": 20, "y": 3.5},
{"label": "2,9", "matrix": [2, 9], "x": 21, "y": 3.5},
{"label": "8,9", "matrix": [8, 9], "x": 22, "y": 3.5},
{"label": "4,0", "matrix": [4, 0], "x": 0, "y": 4.5},
{"label": "10,0", "matrix": [10, 0], "x": 1.5, "y": 4.5},
{"label": "4,1", "matrix": [4, 1], "x": 2.5, "y": 4.5},
{"label": "10,1", "matrix": [10, 1], "x": 3.5, "y": 4.5},
{"label": "4,2", "matrix": [4, 2], "x": 4.5, "y": 4.5},
{"label": "10,2", "matrix": [10, 2], "x": 5.5, "y": 4.5},
{"label": "4,3", "matrix": [4, 3], "x": 6.5, "y": 4.5},
{"label": "10,3", "matrix": [10, 3], "x": 7.5, "y": 4.5},
{"label": "4,4", "matrix": [4, 4], "x": 8.5, "y": 4.5},
{"label": "10,4", "matrix": [10, 4], "x": 9.5, "y": 4.5},
{"label": "4,5", "matrix": [4, 5], "x": 10.5, "y": 4.5},
{"label": "10,5", "matrix": [10, 5], "x": 11.5, "y": 4.5},
{"label": "4,6", "matrix": [4, 6], "x": 12.5, "y": 4.5},
{"label": "10,6", "matrix": [10, 6], "x": 13.5, "y": 4.5},
{"label": "4,7", "matrix": [4, 7], "x": 16.5, "y": 4.5},
{"label": "3,8", "matrix": [3, 8], "x": 19, "y": 4.5},
{"label": "9,8", "matrix": [9, 8], "x": 20, "y": 4.5},
{"label": "3,9", "matrix": [3, 9], "x": 21, "y": 4.5},
{"label": "9,9", "matrix": [9, 9], "x": 22, "y": 4.5},
{"label": "5,0", "matrix": [5, 0], "x": 0, "y": 5.5},
{"label": "5,1", "matrix": [5, 1], "x": 2.5, "y": 5.5},
{"label": "11,1", "matrix": [11, 1], "x": 3.5, "y": 5.5},
{"label": "5,2", "matrix": [5, 2], "x": 4.5, "y": 5.5},
{"label": "11,2", "matrix": [11, 2], "x": 5.5, "y": 5.5},
{"label": "5,3", "matrix": [5, 3], "x": 6.5, "y": 5.5},
{"label": "11,3", "matrix": [11, 3], "x": 7.5, "y": 5.5},
{"label": "5,4", "matrix": [5, 4], "x": 8.5, "y": 5.5},
{"label": "11,4", "matrix": [11, 4], "x": 9.5, "y": 5.5},
{"label": "5,5", "matrix": [5, 5], "x": 10.5, "y": 5.5},
{"label": "11,5", "matrix": [11, 5], "x": 11.5, "y": 5.5},
{"label": "11,6", "matrix": [11, 6], "x": 13.5, "y": 5.5},
{"label": "5,7", "matrix": [5, 7], "x": 15.5, "y": 5.5},
{"label": "11,7", "matrix": [11, 7], "x": 16.5, "y": 5.5},
{"label": "10,7", "matrix": [10, 7], "x": 17.5, "y": 5.5},
{"label": "4,8", "matrix": [4, 8], "x": 19, "y": 5.5},
{"label": "10,8", "matrix": [10, 8], "x": 20, "y": 5.5},
{"label": "4,9", "matrix": [4, 9], "x": 21, "y": 5.5},
{"label": "10,9", "matrix": [10, 9], "x": 22, "y": 5.5}
]
},
"LAYOUT_stag": {
"layout": [
{"label": "0,0", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "6,0", "matrix": [6, 0], "x": 2, "y": 0},
{"label": "0,1", "matrix": [0, 1], "x": 3, "y": 0},
{"label": "6,1", "matrix": [6, 1], "x": 4, "y": 0},
{"label": "0,2", "matrix": [0, 2], "x": 5, "y": 0},
{"label": "6,2", "matrix": [6, 2], "x": 6.5, "y": 0},
{"label": "0,3", "matrix": [0, 3], "x": 7.5, "y": 0},
{"label": "6,3", "matrix": [6, 3], "x": 8.5, "y": 0},
{"label": "0,4", "matrix": [0, 4], "x": 9.5, "y": 0},
{"label": "6,4", "matrix": [6, 4], "x": 11, "y": 0},
{"label": "0,5", "matrix": [0, 5], "x": 12, "y": 0},
{"label": "6,5", "matrix": [6, 5], "x": 13, "y": 0},
{"label": "0,6", "matrix": [0, 6], "x": 14, "y": 0},
{"label": "6,6", "matrix": [6, 6], "x": 15.25, "y": 0},
{"label": "0,7", "matrix": [0, 7], "x": 16.25, "y": 0},
{"label": "6,7", "matrix": [6, 7], "x": 17.25, "y": 0},
{"label": "1,0", "matrix": [1, 0], "x": 0, "y": 1.5},
{"label": "7,0", "matrix": [7, 0], "x": 1, "y": 1.5},
{"label": "1,1", "matrix": [1, 1], "x": 2, "y": 1.5},
{"label": "7,1", "matrix": [7, 1], "x": 3, "y": 1.5},
{"label": "1,2", "matrix": [1, 2], "x": 4, "y": 1.5},
{"label": "7,2", "matrix": [7, 2], "x": 5, "y": 1.5},
{"label": "1,3", "matrix": [1, 3], "x": 6, "y": 1.5},
{"label": "7,3", "matrix": [7, 3], "x": 7, "y": 1.5},
{"label": "1,4", "matrix": [1, 4], "x": 8, "y": 1.5},
{"label": "7,4", "matrix": [7, 4], "x": 9, "y": 1.5},
{"label": "1,5", "matrix": [1, 5], "x": 10, "y": 1.5},
{"label": "7,5", "matrix": [7, 5], "x": 11, "y": 1.5},
{"label": "1,6", "matrix": [1, 6], "x": 12, "y": 1.5},
{"label": "7,6", "matrix": [7, 6], "x": 13, "y": 1.5},
{"label": "1,7", "matrix": [1, 7], "x": 14, "y": 1.5},
{"label": "2,7", "matrix": [2, 7], "x": 15.25, "y": 1.5},
{"label": "7,7", "matrix": [7, 7], "x": 16.25, "y": 1.5},
{"label": "8,7", "matrix": [8, 7], "x": 17.25, "y": 1.5},
{"label": "0,8", "matrix": [0, 8], "x": 18.5, "y": 1.5},
{"label": "6,8", "matrix": [6, 8], "x": 19.5, "y": 1.5},
{"label": "0,9", "matrix": [0, 9], "x": 20.5, "y": 1.5},
{"label": "6,9", "matrix": [6, 9], "x": 21.5, "y": 1.5},
{"label": "2,0", "matrix": [2, 0], "x": 0, "y": 2.5},
{"label": "8,0", "matrix": [8, 0], "x": 1.5, "y": 2.5},
{"label": "2,1", "matrix": [2, 1], "x": 2.5, "y": 2.5},
{"label": "8,1", "matrix": [8, 1], "x": 3.5, "y": 2.5},
{"label": "2,2", "matrix": [2, 2], "x": 4.5, "y": 2.5},
{"label": "8,2", "matrix": [8, 2], "x": 5.5, "y": 2.5},
{"label": "2,3", "matrix": [2, 3], "x": 6.5, "y": 2.5},
{"label": "8,3", "matrix": [8, 3], "x": 7.5, "y": 2.5},
{"label": "2,4", "matrix": [2, 4], "x": 8.5, "y": 2.5},
{"label": "8,4", "matrix": [8, 4], "x": 9.5, "y": 2.5},
{"label": "2,5", "matrix": [2, 5], "x": 10.5, "y": 2.5},
{"label": "8,5", "matrix": [8, 5], "x": 11.5, "y": 2.5},
{"label": "2,6", "matrix": [2, 6], "x": 12.5, "y": 2.5},
{"label": "8,6", "matrix": [8, 6], "x": 13.5, "y": 2.5},
{"label": "3,7", "matrix": [3, 7], "x": 15.25, "y": 2.5},
{"label": "4,7", "matrix": [4, 7], "x": 16.25, "y": 2.5},
{"label": "9,7", "matrix": [9, 7], "x": 17.25, "y": 2.5},
{"label": "1,8", "matrix": [1, 8], "x": 18.5, "y": 2.5},
{"label": "7,8", "matrix": [7, 8], "x": 19.5, "y": 2.5},
{"label": "1,9", "matrix": [1, 9], "x": 20.5, "y": 2.5},
{"label": "7,9", "matrix": [7, 9], "x": 21.5, "y": 2.5},
{"label": "3,0", "matrix": [3, 0], "x": 0, "y": 3.5},
{"label": "9,0", "matrix": [9, 0], "x": 1.75, "y": 3.5},
{"label": "3,1", "matrix": [3, 1], "x": 2.75, "y": 3.5},
{"label": "9,1", "matrix": [9, 1], "x": 3.75, "y": 3.5},
{"label": "3,2", "matrix": [3, 2], "x": 4.75, "y": 3.5},
{"label": "9,2", "matrix": [9, 2], "x": 5.75, "y": 3.5},
{"label": "3,3", "matrix": [3, 3], "x": 6.75, "y": 3.5},
{"label": "9,3", "matrix": [9, 3], "x": 7.75, "y": 3.5},
{"label": "3,4", "matrix": [3, 4], "x": 8.75, "y": 3.5},
{"label": "9,4", "matrix": [9, 4], "x": 9.75, "y": 3.5},
{"label": "3,5", "matrix": [3, 5], "x": 10.75, "y": 3.5},
{"label": "9,5", "matrix": [9, 5], "x": 11.75, "y": 3.5},
{"label": "3,6", "matrix": [3, 6], "x": 12.75, "y": 3.5},
{"label": "2,8", "matrix": [2, 8], "x": 18.5, "y": 3.5},
{"label": "8,8", "matrix": [8, 8], "x": 19.5, "y": 3.5},
{"label": "2,9", "matrix": [2, 9], "x": 20.5, "y": 3.5},
{"label": "8,9", "matrix": [8, 9], "x": 21.5, "y": 3.5},
{"label": "4,0", "matrix": [4, 0], "x": 0, "y": 4.5},
{"label": "10,0", "matrix": [10, 0], "x": 1.25, "y": 4.5},
{"label": "4,1", "matrix": [4, 1], "x": 2.25, "y": 4.5},
{"label": "10,1", "matrix": [10, 1], "x": 3.25, "y": 4.5},
{"label": "4,2", "matrix": [4, 2], "x": 4.25, "y": 4.5},
{"label": "10,2", "matrix": [10, 2], "x": 5.25, "y": 4.5},
{"label": "4,3", "matrix": [4, 3], "x": 6.25, "y": 4.5},
{"label": "10,3", "matrix": [10, 3], "x": 7.25, "y": 4.5},
{"label": "4,4", "matrix": [4, 4], "x": 8.25, "y": 4.5},
{"label": "10,4", "matrix": [10, 4], "x": 9.25, "y": 4.5},
{"label": "4,5", "matrix": [4, 5], "x": 10.25, "y": 4.5},
{"label": "10,5", "matrix": [10, 5], "x": 11.25, "y": 4.5},
{"label": "4,6", "matrix": [4, 6], "x": 12.25, "y": 4.5},
{"label": "9,6", "matrix": [9, 6], "x": 13.25, "y": 4.5},
{"label": "4,8", "matrix": [4, 8], "x": 16.25, "y": 4.5},
{"label": "3,8", "matrix": [3, 8], "x": 18.5, "y": 4.5},
{"label": "9,8", "matrix": [9, 8], "x": 19.5, "y": 4.5},
{"label": "3,9", "matrix": [3, 9], "x": 20.5, "y": 4.5},
{"label": "9,9", "matrix": [9, 9], "x": 21.5, "y": 4.5},
{"label": "5,0", "matrix": [5, 0], "x": 0, "y": 5.5},
{"label": "5,1", "matrix": [5, 1], "x": 2.5, "y": 5.5},
{"label": "11,2", "matrix": [11, 2], "x": 4, "y": 5.5},
{"label": "11,3", "matrix": [11, 3], "x": 6.75, "y": 5.5},
{"label": "11,4", "matrix": [11, 4], "x": 9, "y": 5.5},
{"label": "11,5", "matrix": [11, 5], "x": 11, "y": 5.5},
{"label": "10,6", "matrix": [10, 6], "x": 13.5, "y": 5.5},
{"label": "5,8", "matrix": [5, 8], "x": 15.25, "y": 5.5},
{"label": "11,8", "matrix": [11, 8], "x": 16.25, "y": 5.5},
{"label": "10,8", "matrix": [10, 8], "x": 17.25, "y": 5.5},
{"label": "5,9", "matrix": [5, 9], "x": 18.5, "y": 5.5},
{"label": "4,9", "matrix": [4, 9], "x": 19.5, "y": 5.5},
{"label": "11,9", "matrix": [11, 9], "x": 20.5, "y": 5.5},
{"label": "10,9", "matrix": [10, 9], "x": 21.5, "y": 5.5}
]
}
}
}

View File

@ -0,0 +1,44 @@
{
"keyboard": "dcpedit/modelmmm",
"keymap": "default",
"author": "dcpedit",
"version": 1,
"layout": "LAYOUT_stag",
"config": {
"features": {
"encoder_map": true
}
},
"encoders": [
[
{ "ccw": "KC_VOLD", "cw": "KC_VOLU" },
{ "ccw": "KC_PGDN", "cw": "KC_PGUP" },
{ "ccw": "KC_DOWN", "cw": "KC_UP" }
],
[
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" }
]
],
"layers": [
[
"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_PSCR", "KC_SCRL", "MO(1)",
"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_BSLS", "KC_BSPC", "KC_INS", "KC_HOME", "KC_PGUP", "KC_NUM", "KC_PSLS", "KC_PAST", "KC_PMNS",
"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_DEL", "KC_END", "KC_PGDN", "KC_P7", "KC_P8", "KC_P9", "KC_PPLS",
"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_P4", "KC_P5", "KC_P6", "_______",
"KC_LSFT", "KC_BSLS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_BSLS", "KC_RSFT", "KC_UP", "KC_P1", "KC_P2", "KC_P3", "KC_PENT",
"KC_LCTL", "KC_LALT", "KC_BSPC", "KC_SPC", "MO(1)", "KC_RALT", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_P0", "_______", "KC_PDOT", "_______"
],
[
"QK_RBT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"QK_BOOT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "AU_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "HF_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "KC_LGUI", "_______", "_______", "_______", "KC_RGUI", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______"
]
]
}

View File

@ -0,0 +1,44 @@
{
"keyboard": "dcpedit/modelmmm",
"keymap": "default",
"author": "dcpedit",
"version": 1,
"layout": "LAYOUT_ortho",
"config": {
"features": {
"encoder_map": true
}
},
"encoders": [
[
{ "ccw": "KC_VOLD", "cw": "KC_VOLU" },
{ "ccw": "KC_PGDN", "cw": "KC_PGUP" },
{ "ccw": "KC_DOWN", "cw": "KC_UP" }
],
[
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" }
]
],
"layers": [
[
"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_PSCR", "KC_SCRL", "MO(1)",
"KC_GRV", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "_______", "_______", "KC_7", "KC_8", "KC_9", "KC_0", "KC_BSPC", "KC_INS", "KC_HOME", "KC_PGUP", "KC_NUM", "KC_PSLS", "KC_PAST", "KC_PMNS",
"KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "_______", "_______", "KC_U", "KC_I", "KC_O", "KC_P", "KC_BSLS", "KC_DEL", "KC_END", "KC_PGDN", "KC_P7", "KC_P8", "KC_P9", "KC_PPLS",
"KC_CAPS", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "_______", "_______", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_ENT", "KC_P4", "KC_P5", "KC_P6", "_______",
"KC_LSFT", "KC_BSLS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "_______", "_______", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_RSFT", "KC_UP", "KC_P1", "KC_P2", "KC_P3", "KC_PENT",
"KC_LCTL", "_______", "_______", "_______", "KC_LGUI", "KC_LALT", "KC_BSPC", "KC_SPC", "MO(1)", "KC_RALT", "KC_RGUI", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_P0", "_______", "KC_PDOT", "_______"
],
[
"QK_RBT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"QK_BOOT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "AU_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "HF_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______"
]
]
}

View File

@ -0,0 +1,45 @@
{
"keyboard": "dcpedit/modelmmm",
"keymap": "default",
"author": "dcpedit",
"version": 1,
"layout": "LAYOUT_stag",
"config": {
"features": {
"via": true,
"encoder_map": true
}
},
"encoders": [
[
{ "ccw": "KC_VOLD", "cw": "KC_VOLU" },
{ "ccw": "KC_PGDN", "cw": "KC_PGUP" },
{ "ccw": "KC_DOWN", "cw": "KC_UP" }
],
[
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" }
]
],
"layers": [
[
"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_PSCR", "KC_SCRL", "MO(1)",
"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_BSLS", "KC_BSPC", "KC_INS", "KC_HOME", "KC_PGUP", "KC_NUM", "KC_PSLS", "KC_PAST", "KC_PMNS",
"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_DEL", "KC_END", "KC_PGDN", "KC_P7", "KC_P8", "KC_P9", "KC_PPLS",
"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_P4", "KC_P5", "KC_P6", "_______",
"KC_LSFT", "KC_BSLS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_BSLS", "KC_RSFT", "KC_UP", "KC_P1", "KC_P2", "KC_P3", "KC_PENT",
"KC_LCTL", "KC_LALT", "KC_BSPC", "KC_SPC", "MO(1)", "KC_RALT", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_P0", "_______", "KC_PDOT", "_______"
],
[
"QK_RBT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"QK_BOOT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "AU_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "HF_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "KC_LGUI", "_______", "_______", "_______", "KC_RGUI", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______"
]
]
}

View File

@ -0,0 +1,45 @@
{
"keyboard": "dcpedit/modelmmm",
"keymap": "default",
"author": "dcpedit",
"version": 1,
"config": {
"features": {
"via": true,
"encoder_map": true
}
},
"encoders": [
[
{ "ccw": "KC_VOLD", "cw": "KC_VOLU" },
{ "ccw": "KC_PGDN", "cw": "KC_PGUP" },
{ "ccw": "KC_DOWN", "cw": "KC_UP" }
],
[
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" },
{ "ccw": "_______", "cw": "_______" }
]
],
"layout": "LAYOUT_ortho",
"layers": [
[
"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_PSCR", "KC_SCRL", "MO(1)",
"KC_GRV", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "_______", "_______", "KC_7", "KC_8", "KC_9", "KC_0", "KC_BSPC", "KC_INS", "KC_HOME", "KC_PGUP", "KC_NUM", "KC_PSLS", "KC_PAST", "KC_PMNS",
"KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "_______", "_______", "KC_U", "KC_I", "KC_O", "KC_P", "KC_BSLS", "KC_DEL", "KC_END", "KC_PGDN", "KC_P7", "KC_P8", "KC_P9", "KC_PPLS",
"KC_CAPS", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "_______", "_______", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_ENT", "KC_P4", "KC_P5", "KC_P6", "_______",
"KC_LSFT", "KC_BSLS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "_______", "_______", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_RSFT", "KC_UP", "KC_P1", "KC_P2", "KC_P3", "KC_PENT",
"KC_LCTL", "MO(1)", "_______", "_______", "KC_LGUI", "KC_LALT", "KC_BSPC", "KC_SPC", "MO(1)", "KC_RALT", "KC_RGUI", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_P0", "_______", "KC_PDOT", "_______"
],
[
"QK_RBT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"QK_BOOT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "AU_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "HF_TOGG", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
"_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______"
]
]
}

View File

@ -0,0 +1,8 @@
// Copyright 2024 Ming-Gih Lam (@dcpedit)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include_next <mcuconf.h>
// Used for audio
#undef STM32_PWM_USE_TIM1
#define STM32_PWM_USE_TIM1 TRUE

View File

@ -0,0 +1,27 @@
# Mod Mmm
![Mod Mmm](https://i.imgur.com/oMP5RlJ.jpeg)
Replacement PCB for the IBM Model M keyboard.
* Keyboard Maintainer: [dcpedit](https://github.com/dcpedit)
* Hardware Supported: Pillbug/Blackpill STM32F411
* Hardware Availability: https://github.com/dcpedit/mod-mmm
Make example for this keyboard (after setting up your build environment):
make dcpedit/mod-mmm:default
Flashing example for this keyboard:
make dcpedit/mod-mmm:default:flash
See 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).
## Bootloader
Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the ESC key (top-left key) and plug in the keyboard
* **Physical reset button**: On the development board, while holding down the BOOT button, press and release the RESET button
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

View File

@ -0,0 +1,2 @@
HAPTIC_DRIVER = solenoid
AUDIO_DRIVER = pwm_hardware