From 085b70113ad9375347c7f56820739fe0d0b281f1 Mon Sep 17 00:00:00 2001 From: Yui Date: Tue, 13 Dec 2022 02:39:25 +0000 Subject: [PATCH] Added GSKT00 Support (#303) Title --- .../kapcave/gskt00/keymaps/vial/config.h | 9 + .../kapcave/gskt00/keymaps/vial/keymap.c | 57 ++++ .../kapcave/gskt00/keymaps/vial/readme.md | 1 + .../kapcave/gskt00/keymaps/vial/rules.mk | 4 + .../kapcave/gskt00/keymaps/vial/vial.json | 307 ++++++++++++++++++ 5 files changed, 378 insertions(+) create mode 100644 keyboards/kapcave/gskt00/keymaps/vial/config.h create mode 100755 keyboards/kapcave/gskt00/keymaps/vial/keymap.c create mode 100644 keyboards/kapcave/gskt00/keymaps/vial/readme.md create mode 100644 keyboards/kapcave/gskt00/keymaps/vial/rules.mk create mode 100644 keyboards/kapcave/gskt00/keymaps/vial/vial.json diff --git a/keyboards/kapcave/gskt00/keymaps/vial/config.h b/keyboards/kapcave/gskt00/keymaps/vial/config.h new file mode 100644 index 000000000000..dc8780ba0420 --- /dev/null +++ b/keyboards/kapcave/gskt00/keymaps/vial/config.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x04, 0xE8, 0xBF, 0x3F, 0x1C, 0x5F, 0xDD, 0x9B} + +#define VIAL_UNLOCK_COMBO_ROWS { 3, 2 } + +#define VIAL_UNLOCK_COMBO_COLS { 6, 3 } \ No newline at end of file diff --git a/keyboards/kapcave/gskt00/keymaps/vial/keymap.c b/keyboards/kapcave/gskt00/keymaps/vial/keymap.c new file mode 100755 index 000000000000..95bc13142265 --- /dev/null +++ b/keyboards/kapcave/gskt00/keymaps/vial/keymap.c @@ -0,0 +1,57 @@ +/* +Copyright 2021 KapCave + +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 + +enum layer_names { + _BASE, // Default Layer + _FN, // Fn Layer 1 + _FN2, // Fn Layer 2 + _FN3 // Fn Layer 3 +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + /* QWERTY */ + [_BASE] = LAYOUT_all( + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, MO(3), + KC_LGUI, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(3)), + + /* FUNCTION */ + [_FN] = LAYOUT_all( + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, + KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SLCK, KC_PAUS, KC_UP, KC_PAUS, KC_DEL, + KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN, KC_DOWN, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), + + [_FN2] = LAYOUT_all( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______), + + [_FN3] = LAYOUT_all( + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______) +}; diff --git a/keyboards/kapcave/gskt00/keymaps/vial/readme.md b/keyboards/kapcave/gskt00/keymaps/vial/readme.md new file mode 100644 index 000000000000..c5c3db7e3b07 --- /dev/null +++ b/keyboards/kapcave/gskt00/keymaps/vial/readme.md @@ -0,0 +1 @@ +The via keymap for the GSKT-00 PCB. \ No newline at end of file diff --git a/keyboards/kapcave/gskt00/keymaps/vial/rules.mk b/keyboards/kapcave/gskt00/keymaps/vial/rules.mk new file mode 100644 index 000000000000..974bb6911736 --- /dev/null +++ b/keyboards/kapcave/gskt00/keymaps/vial/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +TAP_DANCE_ENABLE = no \ No newline at end of file diff --git a/keyboards/kapcave/gskt00/keymaps/vial/vial.json b/keyboards/kapcave/gskt00/keymaps/vial/vial.json new file mode 100644 index 000000000000..3420d7ce3bf2 --- /dev/null +++ b/keyboards/kapcave/gskt00/keymaps/vial/vial.json @@ -0,0 +1,307 @@ +{ + "name": "GSKT-00", + "vendorId": "0x4B43", + "productId": "0x6061", + "lighting": "none", + "matrix": { + "rows": 8, + "cols": 8 + }, + "layouts": { + "labels": [ + "Split Backspace", + "Stepped CapsLock", + "Split Left Shift", + "Split Right Shift", + [ + "Enter", + "ANSI Enter", + "ISO Enter", + "BAE" + ], + [ + "Bottom Row", + "7U Standard", + "AEK Standard", + "WKL", + "HHKB" + ] + ], + "keymap": [ + [ + { + "x": 3, + "c": "#00466d", + "t": "#afb0b1" + }, + "3,6", + { + "c": "#afb0b1", + "t": "#00466d" + }, + "3,7", + "4,6", + "4,7", + "5,6", + "5,7", + "6,6", + "6,7", + "7,6", + "7,7", + "0,6", + "0,7", + "1,7", + { + "c": "#00466d", + "t": "#afb0b1", + "w": 2 + }, + "2,7\n\n\n0,0", + { + "x": 0.5 + }, + "2,6\n\n\n0,1", + "2,7\n\n\n0,1" + ], + [ + { + "x": 3, + "w": 1.5 + }, + "3,4", + { + "c": "#afb0b1", + "t": "#00466d" + }, + "3,5", + "4,4", + "4,5", + "5,4", + "5,5", + "6,4", + "6,5", + "7,5", + "0,5", + "1,5", + "1,6", + "2,5", + { + "c": "#00466d", + "t": "#afb0b1", + "w": 1.5 + }, + "2,4", + { + "x": 2.5, + "w": 1.25, + "h": 2, + "w2": 1.5, + "h2": 1, + "x2": -0.25 + }, + "2,3\n\n\n4,1", + { + "x": 1, + "w": 1.5, + "h": 2, + "w2": 2.25, + "h2": 1, + "x2": -0.75, + "y2": 1 + }, + "2,3\n\n\n4,2" + ], + [ + { + "w": 1.25, + "w2": 1.75, + "l": true + }, + "3,2\n\n\n1,1", + { + "x": 1.75, + "w": 1.75 + }, + "3,2\n\n\n1,0", + { + "c": "#afb0b1", + "t": "#00466d" + }, + "3,3", + "4,3", + "5,2", + "5,3", + "6,3", + "7,3", + "7,4", + "0,3", + "0,4", + "1,3", + "1,4", + { + "c": "#00466d", + "t": "#afb0b1", + "w": 2.25 + }, + "2,3\n\n\n4,0", + { + "x": 1.5 + }, + "2,4\n\n\n4,1" + ], + [ + { + "w": 1.25 + }, + "3,1\n\n\n2,1", + "4,1\n\n\n2,1", + { + "x": 0.75, + "w": 2.25 + }, + "3,1\n\n\n2,0", + { + "c": "#afb0b1", + "t": "#00466d" + }, + "4,2", + "5,1", + "6,1", + "6,2", + "7,1", + "7,2", + "0,1", + "0,2", + "1,1", + "1,2", + { + "c": "#00466d", + "t": "#afb0b1", + "w": 2.75 + }, + "2,1\n\n\n3,0", + { + "x": 0.5, + "w": 1.75 + }, + "2,1\n\n\n3,1", + "2,2\n\n\n3,1" + ], + [ + { + "x": 3, + "w": 1.5 + }, + "3,0\n\n\n5,0", + "4,0\n\n\n5,0", + { + "w": 1.5 + }, + "5,0\n\n\n5,0", + { + "w": 7 + }, + "6,0\n\n\n5,0", + { + "w": 1.5 + }, + "0,0\n\n\n5,0", + "1,0\n\n\n5,0", + { + "w": 1.5 + }, + "2,0\n\n\n5,0" + ], + [ + { + "y": 0.75, + "x": 3, + "w": 1.5 + }, + "3,0\n\n\n5,1", + { + "w": 1.25 + }, + "4,0\n\n\n5,1", + { + "w": 1.5 + }, + "5,0\n\n\n5,1", + { + "w": 6.5 + }, + "6,0\n\n\n5,1", + { + "w": 1.5 + }, + "0,0\n\n\n5,1", + { + "w": 1.25 + }, + "1,0\n\n\n5,1", + { + "w": 1.5 + }, + "2,0\n\n\n5,1" + ], + [ + { + "x": 3, + "w": 1.5 + }, + "3,0\n\n\n5,2", + { + "d": true + }, + "4,0\n\n\n5,2", + { + "w": 1.5 + }, + "5,0\n\n\n5,2", + { + "w": 7 + }, + "6,0\n\n\n5,2", + { + "w": 1.5 + }, + "0,0\n\n\n5,2", + { + "d": true + }, + "4,0\n\n\n5,2", + { + "w": 1.5 + }, + "2,0\n\n\n5,2" + ], + [ + { + "x": 3, + "w": 1.5, + "d": true + }, + "3,0\n\n\n5,3", + "4,0\n\n\n5,3", + { + "w": 1.5 + }, + "5,0\n\n\n5,3", + { + "w": 7 + }, + "6,0\n\n\n5,3", + { + "w": 1.5 + }, + "0,0\n\n\n5,3", + "1,0\n\n\n5,3", + { + "w": 1.5, + "d": true + }, + "2,0\n\n\n5,3" + ] + ] + } +} \ No newline at end of file