Add support for mini_mighty/kbd (#25878)

* Add keyboard mini_mighty_kbd.

* Update keyboards/mini_mighty/kbd/keymaps/default/keymap.c

Co-authored-by: Jack Sangdahl <jack@pngu.org>

* Update keyboards/mini_mighty/kbd/keymaps/default/keymap.c

Co-authored-by: Jack Sangdahl <jack@pngu.org>

* Update keyboards/mini_mighty/kbd/keymaps/default/keymap.c

Co-authored-by: Jack Sangdahl <jack@pngu.org>

* Update keyboards/mini_mighty/kbd/keyboard.json

Co-authored-by: Jack Sangdahl <jack@pngu.org>

* Migrated features/build options from rules.mk to keyboard.json

* Update keyboards/mini_mighty/kbd/keymaps/default/keymap.c

Co-authored-by: Drashna Jaelre <drashna@live.com>

* Added a new layout with swapped backspace and backslash as default. Renamed the old layout as "legacy".

* Removed the "legacy" layout as it's no longer needed. All shipped mini-mighty-kbd units use the default layout.

* Updated the readme build instructions to use QMK compile instead of make.

---------

Co-authored-by: Jack Sangdahl <jack@pngu.org>
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
Dimitrix
2026-10-02 10:18:15 -07:00
committed by GitHub
co-authored by Jack Sangdahl Drashna Jaelre
parent d9f6dd215f
commit 7a1bbf37c5
3 changed files with 207 additions and 0 deletions
+109
View File
@@ -0,0 +1,109 @@
{
"manufacturer": "Dimitrix LLC",
"keyboard_name": "mini-mighty-kbd",
"maintainer": "dimitrix-llc",
"bootloader": "atmel-dfu",
"build": {
"lto": true
},
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"extrakey": true,
"grave_esc": false,
"magic": false,
"os_detection": true,
"space_cadet": false
},
"matrix_pins": {
"cols": ["B2", "B1", "B3", "B4", "C5", "C4", "D5", "D6", "D7", "C2", "D3", "D2", "D1", "D0"],
"rows": ["C6", "C7", "B7", "B6", "B5", "B0"]
},
"processor": "atmega16u2",
"url": "https://dimitrix.llc",
"usb": {
"device_version": "1.0.0",
"pid": "0xE4DD",
"vid": "0x04D8"
},
"layouts": {
"LAYOUT": {
"layout": [
{"label": "esc", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "f1", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "f2", "matrix": [0, 2], "x": 2, "y": 0},
{"label": "f3", "matrix": [0, 3], "x": 3, "y": 0},
{"label": "f4", "matrix": [0, 4], "x": 4, "y": 0},
{"label": "f5", "matrix": [0, 5], "x": 5, "y": 0},
{"label": "f6", "matrix": [0, 6], "x": 6, "y": 0},
{"label": "f7", "matrix": [0, 7], "x": 7, "y": 0},
{"label": "f8", "matrix": [0, 8], "x": 8, "y": 0},
{"label": "f9", "matrix": [0, 9], "x": 9, "y": 0},
{"label": "f10", "matrix": [0, 10], "x": 10, "y": 0},
{"label": "f11", "matrix": [0, 11], "x": 11, "y": 0},
{"label": "f12", "matrix": [0, 12], "x": 12, "y": 0},
{"label": "\\", "matrix": [0, 13], "x": 13, "y": 0},
{"label": "`", "matrix": [1, 0], "x": 0, "y": 1},
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1},
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1},
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1},
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1},
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1},
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1},
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1},
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1},
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1},
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1},
{"label": "-", "matrix": [1, 11], "x": 11, "y": 1},
{"label": "=", "matrix": [1, 12], "x": 12, "y": 1},
{"label": "del", "matrix": [1, 13], "x": 13, "y": 1},
{"label": "meta", "matrix": [2, 0], "x": 0, "y": 2},
{"label": "q", "matrix": [2, 1], "x": 1, "y": 2},
{"label": "w", "matrix": [2, 2], "x": 2, "y": 2},
{"label": "e", "matrix": [2, 3], "x": 3, "y": 2},
{"label": "r", "matrix": [2, 4], "x": 4, "y": 2},
{"label": "t", "matrix": [2, 5], "x": 5, "y": 2},
{"label": "y", "matrix": [2, 6], "x": 6, "y": 2},
{"label": "u", "matrix": [2, 7], "x": 7, "y": 2},
{"label": "i", "matrix": [2, 8], "x": 8, "y": 2},
{"label": "o", "matrix": [2, 9], "x": 9, "y": 2},
{"label": "p", "matrix": [2, 10], "x": 10, "y": 2},
{"label": "[", "matrix": [2, 11], "x": 11, "y": 2},
{"label": "]", "matrix": [2, 12], "x": 12, "y": 2},
{"label": "enter", "matrix": [2, 13], "x": 13, "y": 2, "h": 2},
{"label": "tab", "matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
{"label": "a", "matrix": [3, 1], "x": 1.25, "y": 3},
{"label": "s", "matrix": [3, 2], "x": 2.25, "y": 3},
{"label": "d", "matrix": [3, 3], "x": 3.25, "y": 3},
{"label": "f", "matrix": [3, 4], "x": 4.25, "y": 3},
{"label": "g", "matrix": [3, 5], "x": 5.25, "y": 3},
{"label": "h", "matrix": [3, 6], "x": 6.25, "y": 3},
{"label": "j", "matrix": [3, 7], "x": 7.25, "y": 3},
{"label": "k", "matrix": [3, 8], "x": 8.25, "y": 3},
{"label": "l", "matrix": [3, 9], "x": 9.25, "y": 3},
{"label": ";", "matrix": [3, 10], "x": 10.25, "y": 3},
{"label": "'", "matrix": [3, 11], "x": 11.25, "y": 3},
{"label": "lshift", "matrix": [4, 0], "x": 0, "y": 4, "w": 1.75},
{"label": "z", "matrix": [4, 2], "x": 1.75, "y": 4},
{"label": "x", "matrix": [4, 3], "x": 2.75, "y": 4},
{"label": "c", "matrix": [4, 4], "x": 3.75, "y": 4},
{"label": "v", "matrix": [4, 5], "x": 4.75, "y": 4},
{"label": "b", "matrix": [4, 6], "x": 5.75, "y": 4},
{"label": "n", "matrix": [4, 7], "x": 6.75, "y": 4},
{"label": "m", "matrix": [4, 8], "x": 7.75, "y": 4},
{"label": ",", "matrix": [4, 9], "x": 8.75, "y": 4},
{"label": ".", "matrix": [4, 10], "x": 9.75, "y": 4},
{"label": "/", "matrix": [4, 11], "x": 10.75, "y": 4},
{"label": "up", "matrix": [4, 12], "x": 12, "y": 4},
{"label": "rshift", "matrix": [4, 13], "x": 13, "y": 4},
{"label": "ctrl", "matrix": [5, 0], "x": 0, "y": 5, "w": 1.5},
{"label": "alt", "matrix": [5, 1], "x": 1.5, "y": 5, "w": 1.25},
{"label": "space", "matrix": [5, 5], "x": 2.75, "y": 5, "w": 6.25},
{"label": "fn", "matrix": [5, 10], "x": 9.5, "y": 5, "w": 1.25},
{"label": "left", "matrix": [5, 11], "x": 11, "y": 5},
{"label": "down", "matrix": [5, 12], "x": 12, "y": 5},
{"label": "right", "matrix": [5, 13], "x": 13, "y": 5}
]
}
}
}
@@ -0,0 +1,69 @@
// Copyright 2025 Dimitrix LLC
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum LAYER {
_PC,
_MAC,
_FN,
};
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_PC] = 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_BSLS,
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_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_ENT,
KC_LGUI, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT,
KC_LCTL, KC_LALT, KC_SPC, MO(_FN), KC_LEFT, KC_DOWN, KC_RGHT
),
[_MAC] = 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_BSLS,
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_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_ENT,
KC_LALT, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT,
KC_LCTL, KC_LGUI, KC_SPC, MO(_FN), KC_LEFT, KC_DOWN, KC_RGHT
),
[_FN] = LAYOUT(
KC_PAUSE, KC_WWW_BACK, KC_WWW_FORWARD, KC_WWW_REFRESH, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_BRIGHTNESS_DOWN, KC_BRIGHTNESS_UP, KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_SYSTEM_POWER, KC_PRINT_SCREEN, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_DEL,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_CAPS_LOCK, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PAGE_UP, KC_INSERT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PAGE_DOWN, KC_END
)
};
// clang-format on
bool process_detected_host_os_user(os_variant_t os) {
#ifdef CONSOLE_ENABLE
switch (os) {
case OS_MACOS:
uprintf("MacOS detected\n");
break;
case OS_IOS:
uprintf("iOS detected\n");
break;
case OS_WINDOWS:
uprintf("Windows detected\n");
break;
case OS_LINUX:
uprintf("Linux detected\n");
break;
case OS_UNSURE:
uprintf("Unable to detect host OS\n");
break;
}
#endif
/* If Apple, swap to macOS layer. */
if (os == OS_MACOS || os == OS_IOS) {
set_single_default_layer(_MAC);
}
else /* Else use PC layer */ {
set_single_default_layer(_PC);
}
return true;
}
+29
View File
@@ -0,0 +1,29 @@
# mini_mighty_kbd
![mini_mighty_kbd](https://i.imgur.com/D3JGure.jpeg)
![pcb](https://i.imgur.com/x1oOogB.jpeg)
A low profile, small form factor, wired mechanical keyboard with hot-swappable switches, featuring a fully 3D printable enclosure and keycaps with an open source design, offering endless possibilities for customization and creativity.
Measuring just 256x115x17 mm (10×4.5×0.675 inches), mini·mighty·kbd is one of the thinnest and smallest keyboards on the market. It has the functionality of a 75% keyboard, packed in the size of a 60% keyboard.
* Keyboard Maintainer: [dimitrix-llc](https://github.com/dimitrix-llc)
* Hardware Supported: mini·mighty·kbd v2.2 or later PCB
* Hardware Availability: https://dimitrix.llc/keyboards
Build (after setting up your build environment):
qmk compile -kb mini_mighty/kbd -km default
Flash (enter the bootloader first — see below):
qmk flash -kb mini_mighty/kbd -km default
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:
* **Bootmagic reset**: Hold down the ESC key and plug in the keyboard
* **Physical reset pad**: Briefly short the "RESET" pad on the back of the PCB