This commit is contained in:
Ricardo (XenGi) Band 2025-11-15 18:39:35 +01:00
commit a58d2dd7c9
No known key found for this signature in database
11 changed files with 219 additions and 35 deletions

View file

@ -1,13 +1,12 @@
// Copyright 2023 XenGi (@XenGi)
// Copyright 2023 XenGi
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
// optimize firmware
#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
#define LAYER_STATE_8BIT
// disable features to save on code size
#define NO_ACTION_TAPPING
#define NO_ACTION_ONESHOT
// disable debugging
//#define NO_DEBUG
// disable printing/debugging using hid_listen
//#define NO_PRINT
// disable tap dance and other tapping features
//#define NO_ACTION_TAPPING
// disable one-shot modifiers
//#define NO_ACTION_ONESHOT

View file

@ -1,16 +0,0 @@
{
"keyboard_name": "mkbd65",
"manufacturer": "XenGi",
"url": "https://mkbd65.xengi.de",
"maintainer": "XenGi",
"author": ["XenGi"],
"debounce": 5,
"diode_direction": "ROW2COL",
"bootmagic": {
"enabled": true,
"matrix": [0, 0]
},
"tags": ["mobile", "65%"],
"description": "A mobile keyboard addon for modern smartphones. Fits any smartphones within some minimal size requirements. Supports any keyboard layout you want, as long as it doesn't need more keys.",
"short": "A mobile keyboard addon for modern smartphones."
}

View file

@ -0,0 +1,167 @@
{
"manufacturer": "XenGi",
"keyboard_name": "mkbd65",
"maintainer": "XenGi",
"bootloader": "atmel-dfu",
"diode_direction": "ROW2COL",
"debounce": 5,
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": false,
"rgblight": false
},
"bootmagic": {
"enabled": true,
"matrix": [0, 0]
},
"matrix_pins": {
"cols": ["D4", "D7", "B4", "B5", "B6", "C6", "C7", "F7", "F6", "F5", "F4", "F1", "F0"],
"rows": ["D5", "D3", "D2", "D1", "D0"]
},
"processor": "atmega32u4",
"url": "https://mkbd65.xengi.de",
"bootloader_instructions": "Press the button marked RESET on the back of the PCB",
"tags": ["mobile", "65%"],
"usb": {
"device_version": "0.0.1",
"pid": "0x4803",
"vid": "0x1209"
},
"build": {
"lto": true
},
"layouts": {
"LAYOUT": {
"layout_ansi": [
{ "matrix": [0, 0], "x": 0, "y": 0, "label": "Esc" },
{ "matrix": [0, 1], "x": 1, "y": 0, "label": "1" },
{ "matrix": [0, 2], "x": 2, "y": 0, "label": "2" },
{ "matrix": [0, 3], "x": 3, "y": 0, "label": "3" },
{ "matrix": [0, 4], "x": 4, "y": 0, "label": "4" },
{ "matrix": [0, 5], "x": 5, "y": 0, "label": "5" },
{ "matrix": [0, 6], "x": 6, "y": 0, "label": "6" },
{ "matrix": [0, 7], "x": 7, "y": 0, "label": "7" },
{ "matrix": [0, 8], "x": 8, "y": 0, "label": "8" },
{ "matrix": [0, 9], "x": 9, "y": 0, "label": "9" },
{ "matrix": [0, 10], "x": 10, "y": 0, "label": "0" },
{ "matrix": [0, 11], "x": 11, "y": 0, "w": 2, "label": "Backspace" },
{ "matrix": [1, 0], "x": 1, "y": 0, "label": "Q" },
{ "matrix": [1, 1], "x": 1, "y": 1, "label": "W" },
{ "matrix": [1, 2], "x": 1, "y": 2, "label": "E" },
{ "matrix": [1, 3], "x": 1, "y": 3, "label": "R" },
{ "matrix": [1, 4], "x": 1, "y": 4, "label": "T" },
{ "matrix": [1, 5], "x": 1, "y": 5, "label": "Y" },
{ "matrix": [1, 6], "x": 1, "y": 6, "label": "U" },
{ "matrix": [1, 7], "x": 1, "y": 7, "label": "I" },
{ "matrix": [1, 8], "x": 1, "y": 8, "label": "O" },
{ "matrix": [1, 9], "x": 1, "y": 9, "label": "P" },
{ "matrix": [1, 10], "x": 1, "y": 10, "label": "[" },
{ "matrix": [1, 11], "x": 1, "y": 11, "label": "]" },
{ "matrix": [1, 11], "x": 1, "y": 12, "label": "\\" },
{ "matrix": [2, 0], "x": 2, "y": 0, "label": "A" },
{ "matrix": [2, 1], "x": 2, "y": 1, "label": "S" },
{ "matrix": [2, 2], "x": 2, "y": 2, "label": "D" },
{ "matrix": [2, 3], "x": 2, "y": 3, "label": "F" },
{ "matrix": [2, 4], "x": 2, "y": 4, "label": "G" },
{ "matrix": [2, 5], "x": 2, "y": 5, "label": "H" },
{ "matrix": [2, 6], "x": 2, "y": 6, "label": "J" },
{ "matrix": [2, 7], "x": 2, "y": 7, "label": "K" },
{ "matrix": [2, 8], "x": 2, "y": 8, "label": "L" },
{ "matrix": [2, 9], "x": 2, "y": 9, "label": ";" },
{ "matrix": [2, 10], "x": 2, "y": 10, "label": "'" },
{ "matrix": [2, 11], "x": 2, "y": 11, "w": 2, "label": "Enter" },
{ "matrix": [3, 0], "x": 3, "y": 0, "label": "Z" },
{ "matrix": [3, 1], "x": 3, "y": 1, "label": "X" },
{ "matrix": [3, 2], "x": 3, "y": 2, "label": "C" },
{ "matrix": [3, 3], "x": 3, "y": 3, "label": "V" },
{ "matrix": [3, 4], "x": 3, "y": 4, "label": "B" },
{ "matrix": [3, 5], "x": 3, "y": 5, "label": "N" },
{ "matrix": [3, 6], "x": 3, "y": 6, "label": "M" },
{ "matrix": [3, 7], "x": 3, "y": 7, "label": "," },
{ "matrix": [3, 8], "x": 3, "y": 8, "label": "." },
{ "matrix": [3, 9], "x": 3, "y": 9, "label": "/" },
{ "matrix": [3, 10], "x": 3, "y": 10, "label": "Up" },
{ "matrix": [3, 11], "x": 3, "y": 11, "w": 2, "label": "ShiftR" },
{ "matrix": [4, 0], "x": 4, "y": 0, "label": "CtrlL" },
{ "matrix": [4, 1], "x": 4, "y": 1, "label": "Fn" },
{ "matrix": [4, 2], "x": 4, "y": 2, "label": "ShiftL" },
{ "matrix": [4, 3], "x": 4, "y": 3, "label": "Alt" },
{ "matrix": [4, 4], "x": 4, "y": 4, "w": 3, "label": "Space" },
{ "matrix": [4, 7], "x": 4, "y": 7, "label": "-" },
{ "matrix": [4, 8], "x": 4, "y": 8, "label": "=" },
{ "matrix": [4, 9], "x": 4, "y": 9, "label": "Left" },
{ "matrix": [4, 10], "x": 4, "y": 10, "label": "Down" },
{ "matrix": [4, 11], "x": 4, "y": 11, "label": "Right" },
{ "matrix": [4, 12], "x": 4, "y": 12, "label": "CtrlR" }
],
"layout_iso": [
{ "matrix": [0, 0], "x": 0, "y": 0, "label": "Esc" },
{ "matrix": [0, 1], "x": 1, "y": 0, "label": "1" },
{ "matrix": [0, 2], "x": 2, "y": 0, "label": "2" },
{ "matrix": [0, 3], "x": 3, "y": 0, "label": "3" },
{ "matrix": [0, 4], "x": 4, "y": 0, "label": "4" },
{ "matrix": [0, 5], "x": 5, "y": 0, "label": "5" },
{ "matrix": [0, 6], "x": 6, "y": 0, "label": "6" },
{ "matrix": [0, 7], "x": 7, "y": 0, "label": "7" },
{ "matrix": [0, 8], "x": 8, "y": 0, "label": "8" },
{ "matrix": [0, 9], "x": 9, "y": 0, "label": "9" },
{ "matrix": [0, 10], "x": 10, "y": 0, "label": "0" },
{ "matrix": [0, 11], "x": 11, "y": 0, "w": 2, "label": "Backspace" },
{ "matrix": [1, 0], "x": 1, "y": 0, "label": "Q" },
{ "matrix": [1, 1], "x": 1, "y": 1, "label": "W" },
{ "matrix": [1, 2], "x": 1, "y": 2, "label": "E" },
{ "matrix": [1, 3], "x": 1, "y": 3, "label": "R" },
{ "matrix": [1, 4], "x": 1, "y": 4, "label": "T" },
{ "matrix": [1, 5], "x": 1, "y": 5, "label": "Y" },
{ "matrix": [1, 6], "x": 1, "y": 6, "label": "U" },
{ "matrix": [1, 7], "x": 1, "y": 7, "label": "I" },
{ "matrix": [1, 8], "x": 1, "y": 8, "label": "O" },
{ "matrix": [1, 9], "x": 1, "y": 9, "label": "P" },
{ "matrix": [1, 10], "x": 1, "y": 10, "label": "[" },
{ "matrix": [1, 11], "x": 1, "y": 11, "label": "]" },
{ "matrix": [2, 0], "x": 2, "y": 0, "label": "A" },
{ "matrix": [2, 1], "x": 2, "y": 1, "label": "S" },
{ "matrix": [2, 2], "x": 2, "y": 2, "label": "D" },
{ "matrix": [2, 3], "x": 2, "y": 3, "label": "F" },
{ "matrix": [2, 4], "x": 2, "y": 4, "label": "G" },
{ "matrix": [2, 5], "x": 2, "y": 5, "label": "H" },
{ "matrix": [2, 6], "x": 2, "y": 6, "label": "J" },
{ "matrix": [2, 7], "x": 2, "y": 7, "label": "K" },
{ "matrix": [2, 8], "x": 2, "y": 8, "label": "L" },
{ "matrix": [2, 9], "x": 2, "y": 9, "label": ";" },
{ "matrix": [2, 10], "x": 2, "y": 10, "label": "'" },
{ "matrix": [2, 11], "x": 2, "y": 11, "label": "\\" },
{ "matrix": [1, 12], "x": 1, "y": 12, "h": 2, "label": "Enter" },
{ "matrix": [3, 0], "x": 3, "y": 0, "label": "Z" },
{ "matrix": [3, 1], "x": 3, "y": 1, "label": "X" },
{ "matrix": [3, 2], "x": 3, "y": 2, "label": "C" },
{ "matrix": [3, 3], "x": 3, "y": 3, "label": "V" },
{ "matrix": [3, 4], "x": 3, "y": 4, "label": "B" },
{ "matrix": [3, 5], "x": 3, "y": 5, "label": "N" },
{ "matrix": [3, 6], "x": 3, "y": 6, "label": "M" },
{ "matrix": [3, 7], "x": 3, "y": 7, "label": "," },
{ "matrix": [3, 8], "x": 3, "y": 8, "label": "." },
{ "matrix": [3, 9], "x": 3, "y": 9, "label": "/" },
{ "matrix": [3, 10], "x": 3, "y": 10, "label": "Up" },
{ "matrix": [3, 11], "x": 3, "y": 11, "w": 2, "label": "ShiftR" },
{ "matrix": [4, 0], "x": 4, "y": 0, "label": "CtrlL" },
{ "matrix": [4, 1], "x": 4, "y": 1, "label": "Fn" },
{ "matrix": [4, 2], "x": 4, "y": 2, "label": "ShiftL" },
{ "matrix": [4, 3], "x": 4, "y": 3, "label": "Alt" },
{ "matrix": [4, 4], "x": 4, "y": 4, "w": 3, "label": "Space" },
{ "matrix": [4, 7], "x": 4, "y": 7, "label": "-" },
{ "matrix": [4, 8], "x": 4, "y": 8, "label": "=" },
{ "matrix": [4, 9], "x": 4, "y": 9, "label": "Left" },
{ "matrix": [4, 10], "x": 4, "y": 10, "label": "Down" },
{ "matrix": [4, 11], "x": 4, "y": 11, "label": "Right" },
{ "matrix": [4, 12], "x": 4, "y": 12, "label": "CtrlR" }
]
}
}
}

View file

@ -39,7 +39,7 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╩════╣
║ ║ ß ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬═════════╣
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ¿ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ¿ ║ ║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╦════╣
║ ║ ║ ║░░░░║ ║ ║ ║ ║ ║ ║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
@ -49,10 +49,11 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╦════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ F11║ F12║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╩════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ` ║ Super ║
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ` ║ Super ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬═════════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║PgUp║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╦════╣
║ ║░░░░║ ║ ║ Tab ║ ║ ║Pos1║PgDn║ End║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
```

View file

@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
#include "quantum.h"
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ansi( /* Base layer */

View file

@ -37,7 +37,7 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╣ ║
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╣
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ║ ║ | ║ ║
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ║ ║ | ║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╬════╣
║ ║ ║ ║░░░░║ ║ \ ║ ║ ║ ║ ║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
@ -47,10 +47,11 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╦════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ F11║ F12║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╣Supr║
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ^ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ^ ║ ║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║PgUp║ ║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╬════╣
║ ║░░░░║ ║ ║ Tab ║ ║ ║Pos1║PgDn║ End║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
```

View file

@ -39,7 +39,7 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╩════╣
║ ║ ß ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬═════════╣
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ¿ ║ ║ ║
║ ║ ║ ║ ║ ║ ║ µ ║ ║ ║ ¿ ║ ║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╦════╣
║ ║ ║ ║░░░░║ ║ ║ ║ ║ ║ ║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
@ -49,10 +49,11 @@ This is the key matrix (no label means the key from layer 0 will be used):
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╦════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ F11║ F12║ ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╩════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ` ║ Super ║
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ` ║ Super ║
╠════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬════╬═════════╣
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║PgUp║ ║
╠════╬════╬════╬════╬════╩════╩════╬════╬════╬════╬════╬════╦════╣
║ ║░░░░║ ║ ║ Tab ║ ║ ║Pos1║PgDn║ End║ ║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
```

View file

@ -52,3 +52,4 @@ It's actually just ANSI but with an upright `Enter` key.
║Ctrl║░░░░║Shft║AltG║ Tab ║ ║ ` ║Pos1║PgDn║ End║Ctrl║
╚════╩════╩════╩════╩══════════════╩════╩════╩════╩════╩════╩════╝
```

View file

@ -2,3 +2,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "mkbd65.h"
#include "quantum.h"

View file

@ -4,8 +4,6 @@
#ifndef MKBD65_H
#define MKBD65_H
#include "quantum.h"
/* LAYOUT_ansi
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
* │ │ │ │ │ │ │ │ │ │ │ │ 2.0U │

View file

@ -1,6 +1,35 @@
# build options
#LAYOUTS = []
# AVR MCU Options
MCU = atmega32u4
F_CPU = 16000000
ARCH = AVR8
F_USB = $(F_CPU)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
BOOTLOADER = atmel-dfu
# Feature Options
MAGIC_ENABLE = no
COMBO_ENABLE = no
AUDIO_ENABLE = no
KEY_OVERRIDE_ENABLE = no
LEADER_ENABLE = no
MIDI_ENABLE = no
UNICODE_ENABLE = no
BLUETOOTH_ENABLE = no
SPLIT_KEYBOARD = no
MUSIC_ENABLE = no
SPACE_CADET_ENABLE = no
GRAVE_ESC_ENABLE = yes
AVR_USE_MINIMAL_PRINTF = yes
ENCODER_ENABLE = no
DEFAULT_FOLDER = rev1
# Enables Link Time Optimization (LTO) when compiling the keyboard. This makes the process take longer, but it can
# significantly reduce the compiled size (and since the firmware is small, the added time is not noticeable).
LTO_ENABLE = yes
EXTRAKEY_ENABLE = yes # Audio control and System control
# Audio control and System control
EXTRAKEY_ENABLE = yes