diff --git a/keyboards/inland/mk47/keymaps/vial/config.h b/keyboards/inland/mk47/keymaps/vial/config.h new file mode 100644 index 00000000000..c3fbb3bbacb --- /dev/null +++ b/keyboards/inland/mk47/keymaps/vial/config.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +# pragma once + +#define VIAL_KEYBOARD_UID {0x1C, 0x2F, 0x21, 0xB8, 0xA9, 0x42, 0xD9, 0xD8} + +#define VIAL_UNLOCK_COMBO_ROWS { 0,1 } +#define VIAL_UNLOCK_COMBO_COLS { 0,11 } diff --git a/keyboards/inland/mk47/keymaps/vial/keymap.c b/keyboards/inland/mk47/keymaps/vial/keymap.c new file mode 100644 index 00000000000..53cabcc4770 --- /dev/null +++ b/keyboards/inland/mk47/keymaps/vial/keymap.c @@ -0,0 +1,41 @@ +/* Copyright (C) 2023 jonylee@hfd + * + * 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 + +// clang-format off +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH, + KC_LCTL, MO(2), KC_LALT, KC_DEL, KC_PGDN, KC_SPC, KC_PGUP, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), + + [1] = LAYOUT( + KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RGB_MOD, + RGB_HUI, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MSEL, KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, RGB_VAI, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_VAD, RGB_SPI), + + [2] = LAYOUT( + KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + KC_CAPS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_TRNS, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_SLSH, + KC_LCTL, KC_NO, KC_LALT, KC_DEL, KC_PGDN, KC_SPC, KC_PGUP, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT) +}; +// clang-format on + diff --git a/keyboards/inland/mk47/keymaps/vial/rules.mk b/keyboards/inland/mk47/keymaps/vial/rules.mk new file mode 100644 index 00000000000..92726ae1437 --- /dev/null +++ b/keyboards/inland/mk47/keymaps/vial/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes + +VIALRGB_ENABLE = yes diff --git a/keyboards/inland/mk47/keymaps/vial/vial.json b/keyboards/inland/mk47/keymaps/vial/vial.json new file mode 100644 index 00000000000..d21e04c686d --- /dev/null +++ b/keyboards/inland/mk47/keymaps/vial/vial.json @@ -0,0 +1,96 @@ +{ + "lighting": "vialrgb", + "matrix": { "rows": 4, "cols": 12 }, + "layouts": { + "keymap":[ + [ + { + "c": "#777777" + }, + "0,0", + { + "c": "#cccccc" + }, + "0,1", + "0,2", + "0,3", + "0,4", + "0,5", + "0,6", + "0,7", + "0,8", + "0,9", + "0,10", + { + "c": "#aaaaaa" + }, + "0,11" + ], + [ + "1,0", + { + "c": "#cccccc" + }, + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "1,8", + "1,9", + "1,10", + { + "c": "#777777" + }, + "1,11" + ], + [ + { + "c": "#aaaaaa" + }, + "2,0", + { + "c": "#cccccc" + }, + "2,1", + "2,2", + "2,3", + "2,4", + "2,5", + "2,6", + "2,7", + "2,8", + "2,9", + { + "c": "#777777" + }, + "2,10", + { + "c": "#aaaaaa" + }, + "2,11" + ], + [ + "3,0", + "3,1", + "3,2", + "3,3", + "3,4", + { + "w": 2 + }, + "3,5", + "3,7", + "3,8", + { + "c": "#777777" + }, + "3,9", + "3,10", + "3,11" + ] + ] + } + }