diff --git a/keyboards/ymdk/ymd21/v2/keymaps/vial/config.h b/keyboards/ymdk/ymd21/v2/keymaps/vial/config.h new file mode 100644 index 0000000000..e865955b62 --- /dev/null +++ b/keyboards/ymdk/ymd21/v2/keymaps/vial/config.h @@ -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 diff --git a/keyboards/ymdk/ymd21/v2/keymaps/vial/keymap.c b/keyboards/ymdk/ymd21/v2/keymaps/vial/keymap.c new file mode 100644 index 0000000000..7ef5a1b060 --- /dev/null +++ b/keyboards/ymdk/ymd21/v2/keymaps/vial/keymap.c @@ -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 . + */ + +#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, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______, + _______, _______, _______, _______ + ), + +}; diff --git a/keyboards/ymdk/ymd21/v2/keymaps/vial/rules.mk b/keyboards/ymdk/ymd21/v2/keymaps/vial/rules.mk new file mode 100644 index 0000000000..eeeacbc3a3 --- /dev/null +++ b/keyboards/ymdk/ymd21/v2/keymaps/vial/rules.mk @@ -0,0 +1,7 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +QMK_SETTINGS = no +KEY_OVERRIDE_ENABLE = no +LTO_ENABLE = yes + + diff --git a/keyboards/ymdk/ymd21/v2/keymaps/vial/vial.json b/keyboards/ymdk/ymd21/v2/keymaps/vial/vial.json new file mode 100644 index 0000000000..a223129bca --- /dev/null +++ b/keyboards/ymdk/ymd21/v2/keymaps/vial/vial.json @@ -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" + ] +] +} +} \ No newline at end of file