diff --git a/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/config.h b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/config.h new file mode 100644 index 0000000000..fe44d6e263 --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/config.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0xE7, 0x00, 0xAF, 0x2D, 0x29, 0x0C, 0x4C, 0xA0} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 5 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 0 } + +// Reduce firmware size +#define DYNAMIC_KEYMAP_LAYER_COUNT 2 diff --git a/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/keymap.c b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/keymap.c new file mode 100644 index 0000000000..442f61c77b --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/keymap.c @@ -0,0 +1,28 @@ +/* Copyright 2019 Ryota Goto + * + * 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( /* Base */ + KC_ESC, KC_LCTL, KC_LALT, KC_BSPC, + KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, KC_PPLS, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, KC_PENT, + KC_P0, KC_P0, KC_PDOT, KC_PENT + ), +}; diff --git a/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/rules.mk b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/rules.mk new file mode 100644 index 0000000000..0dfc44a94d --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/rules.mk @@ -0,0 +1,9 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes + +# Reduce firmware size +QMK_SETTINGS = no +TAP_DANCE_ENABLE = no +COMBO_ENABLE = no +KEY_OVERRIDE_ENABLE = no diff --git a/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/vial.json b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/vial.json new file mode 100644 index 0000000000..9017021b4a --- /dev/null +++ b/keyboards/kbdfans/kbdpad/mk2/keymaps/vial/vial.json @@ -0,0 +1,88 @@ +{ + "lighting": "qmk_backlight_rgblight", + "matrix": { + "rows": 6, + "cols": 4 + }, + "layouts": { + "labels": [ + "Split Plus", + "Split Enter", + "Split Zero" + ], + "keymap": [ + [ + "0,0", + "0,1", + "0,2", + "0,3" + ], + [ + { + "y": 0.25 + }, + "1,0", + "1,1", + "1,2", + "1,3" + ], + [ + "2,0", + "2,1", + "2,2", + { + "h": 2 + }, + "3,3\n\n\n0,0", + { + "x": 0.25 + }, + "2,3\n\n\n0,1" + ], + [ + "3,0", + "3,1", + { + "x": -1 + }, + "3,1", + "3,2", + { + "x": 1.25 + }, + "3,3\n\n\n0,1" + ], + [ + "4,0", + "4,1", + "4,2", + { + "h": 2 + }, + "5,3\n\n\n1,0", + { + "x": 0.25 + }, + "4,3\n\n\n1,1" + ], + [ + { + "w": 2 + }, + "5,0\n\n\n2,0", + "5,2", + { + "x": 1.25 + }, + "5,3\n\n\n1,1" + ], + [ + { + "y": 0.25 + }, + "5,0\n\n\n2,1", + "5,1\n\n\n2,1" + ] + ] + } +}