Merge pull request #66 from ho0ber/montex-vial
Adding vial support for idobao montex27
This commit is contained in:
commit
fac7c96e23
7
keyboards/montex/keymaps/vial/config.h
Normal file
7
keyboards/montex/keymaps/vial/config.h
Normal file
@ -0,0 +1,7 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#pragma once
|
||||
|
||||
#define VIAL_KEYBOARD_UID {0x03, 0xCC, 0xA7, 0xA1, 0x28, 0x59, 0x4E, 0x99}
|
||||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 5 }
|
||||
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
|
52
keyboards/montex/keymaps/vial/keymap.c
Normal file
52
keyboards/montex/keymaps/vial/keymap.c
Normal file
@ -0,0 +1,52 @@
|
||||
/* Copyright 2021 Tybera
|
||||
*
|
||||
* 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_numpad_6x5(
|
||||
KC_GRAVE, KC_ESC, KC_TAB, MO(1), KC_BSPC,
|
||||
KC_COMMA, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_LGUI, KC_P7, KC_P8, KC_P9,
|
||||
KC_LALT, KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_LSHIFT, KC_P1, KC_P2, KC_P3,
|
||||
KC_LCTRL, KC_P0, KC_PDOT, KC_PENT
|
||||
),
|
||||
[1] = LAYOUT_numpad_6x5(
|
||||
RESET, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, KC_HOME, KC_UP, KC_PGUP,
|
||||
_______, KC_LEFT, XXXXXXX, KC_RGHT, _______,
|
||||
_______, KC_END, KC_DOWN, KC_PGDN,
|
||||
_______, KC_INS, KC_DEL, _______
|
||||
),
|
||||
[2] = LAYOUT_numpad_6x5(
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
[3] = LAYOUT_numpad_6x5(
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______,
|
||||
_______, _______, _______, _______
|
||||
)
|
||||
};
|
4
keyboards/montex/keymaps/vial/rules.mk
Normal file
4
keyboards/montex/keymaps/vial/rules.mk
Normal file
@ -0,0 +1,4 @@
|
||||
LTO_ENABLE = yes
|
||||
VIA_ENABLE = yes
|
||||
VIAL_ENABLE = yes
|
||||
TAP_DANCE_ENABLE = no
|
20
keyboards/montex/keymaps/vial/vial.json
Normal file
20
keyboards/montex/keymaps/vial/vial.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Montex 27",
|
||||
"vendorId": "0x6964",
|
||||
"productId": "0x0099",
|
||||
"lighting": {
|
||||
"extends": "none",
|
||||
"keycodes": "qmk"
|
||||
},
|
||||
"matrix": { "rows": 6, "cols": 5 },
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
["0,0", "0,1", "0,2", "0,3", "0,4"],
|
||||
[{"y":0.5}, "1,0", "1,1", "1,2", "1,3", "1,4"],
|
||||
["2,0", "2,1", "2,2", "2,3", {"h":2}, "2,4"],
|
||||
["3,0", "3,1", "3,2", "3,3"],
|
||||
["4,0", "4,1", "4,2", "4,3", {"h":2}, "5,3"],
|
||||
["5,0", {"w":2}, "5,1", "5,2"]
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user