Vial support for YMDK YMD21 V2 (#880)

This commit is contained in:
Sergey Radionov 2025-04-21 05:21:23 +07:00 committed by GitHub
parent 46dcb78ddc
commit cab779b912
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xFF, 0xF4, 0xB0, 0xEC, 0xBE, 0xE1, 0x35, 0x5C}
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

View file

@ -0,0 +1,39 @@
/* Copyright 2022 QMK / James Young (@noroadsleft)
*
* 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 <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_6x4(
KC_F1, KC_F2, KC_F3, KC_F4,
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PEQL,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_SPC,
MO(1), KC_P0, KC_PDOT, KC_PENT
),
[1] = LAYOUT_ortho_6x4(
UG_NEXT, BL_STEP, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______
),
};

View file

@ -0,0 +1,7 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
QMK_SETTINGS = no
KEY_OVERRIDE_ENABLE = no
LTO_ENABLE = yes

View file

@ -0,0 +1,51 @@
{
"name": "YMD21",
"vendorId": "0x45D4",
"productId": "0x0110",
"lighting": "qmk_rgblight",
"matrix": { "rows": 6, "cols": 4 },
"layouts": {
"keymap":
[
[
"0,0",
"0,1",
"0,2",
"0,3"
],
[
{
"y": 0.25
},
"1,0\nHome",
"1,1\n↑",
"1,2\nPgUp",
"1,3"
],
[
"2,0\n←",
"2,1",
"2,2\n→",
"2,3"
],
[
"3,0\nEnd",
"3,1\n↓",
"3,2\nPgDn",
"3,3"
],
[
"4,0\nIns",
"4,1\nDel",
"4,2",
"4,3"
],
[
"5,0",
"5,1",
"5,2",
"5,3"
]
]
}
}