Skip to content

Commit

Permalink
Add keyboard: KBDFans KBDPad MkII (vial-kb#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwerbin authored Dec 3, 2023
1 parent 91fb559 commit 2ab0d7f
Show file tree
Hide file tree
Showing 4 changed files with 135 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/kbdfans/kbdpad/mk2/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions keyboards/kbdfans/kbdpad/mk2/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/
#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
),
};
9 changes: 9 additions & 0 deletions keyboards/kbdfans/kbdpad/mk2/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -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
88 changes: 88 additions & 0 deletions keyboards/kbdfans/kbdpad/mk2/keymaps/vial/vial.json
Original file line number Diff line number Diff line change
@@ -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"
]
]
}
}

0 comments on commit 2ab0d7f

Please sign in to comment.