From 7c5ae033615cc94c0ff21bc4f1f5bd72089977b8 Mon Sep 17 00:00:00 2001 From: David Gillies Date: Wed, 10 Nov 2021 18:00:05 -0800 Subject: [PATCH] Add vial support for wilba.tech WT65-XTX (Rama Zenith) --- .../wilba_tech/wt65_xtx/keymaps/vial/config.h | 23 +++ .../wilba_tech/wt65_xtx/keymaps/vial/keymap.c | 51 +++++++ .../wt65_xtx/keymaps/vial/readme.md | 5 + .../wilba_tech/wt65_xtx/keymaps/vial/rules.mk | 4 + .../wt65_xtx/keymaps/vial/vial.json | 136 ++++++++++++++++++ 5 files changed, 219 insertions(+) create mode 100644 keyboards/wilba_tech/wt65_xtx/keymaps/vial/config.h create mode 100644 keyboards/wilba_tech/wt65_xtx/keymaps/vial/keymap.c create mode 100644 keyboards/wilba_tech/wt65_xtx/keymaps/vial/readme.md create mode 100644 keyboards/wilba_tech/wt65_xtx/keymaps/vial/rules.mk create mode 100644 keyboards/wilba_tech/wt65_xtx/keymaps/vial/vial.json diff --git a/keyboards/wilba_tech/wt65_xtx/keymaps/vial/config.h b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/config.h new file mode 100644 index 0000000000..f3d048165a --- /dev/null +++ b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/config.h @@ -0,0 +1,23 @@ +/* +Copyright 2021 David Gillies + +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 . +*/ +#pragma once + +/* Vial setup */ +#define VIAL_KEYBOARD_UID {0x36, 0xF5, 0x7D, 0x77, 0x58, 0x8F, 0x92, 0xB9} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 1 } + diff --git a/keyboards/wilba_tech/wt65_xtx/keymaps/vial/keymap.c b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/keymap.c new file mode 100644 index 0000000000..6bf9c09f09 --- /dev/null +++ b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/keymap.c @@ -0,0 +1,51 @@ +/* Copyright 2020 Jason Williams (Wilba) + * + * 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] = { + + // Default layer + [0] = LAYOUT_all( + KC_F1, KC_F2, 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_BSPC, KC_BSPC, KC_HOME, + KC_F3, KC_F4, 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_PGUP, + KC_F5, KC_F6, KC_CAPS, 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_PGDN, + KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, + KC_F9, KC_F10, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), MO(1), KC_LEFT, KC_DOWN, KC_RGHT), + + // Fn1 Layer + [1] = LAYOUT_all( + KC_TRNS, KC_TRNS, 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_DEL, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), + + // Fn2 Layer + [2] = LAYOUT_all( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), + + // Fn3 Layer + [3] = LAYOUT_all( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), +}; diff --git a/keyboards/wilba_tech/wt65_xtx/keymaps/vial/readme.md b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/readme.md new file mode 100644 index 0000000000..b7ca1ef22c --- /dev/null +++ b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/readme.md @@ -0,0 +1,5 @@ +# Vial support for wilba.tech WT65-XTX + +``` +make wilba_tech/wt65_xtx:vial +``` diff --git a/keyboards/wilba_tech/wt65_xtx/keymaps/vial/rules.mk b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/rules.mk new file mode 100644 index 0000000000..bb654744bd --- /dev/null +++ b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +MOUSEKEY_ENABLE = yes diff --git a/keyboards/wilba_tech/wt65_xtx/keymaps/vial/vial.json b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/vial.json new file mode 100644 index 0000000000..042fa556e1 --- /dev/null +++ b/keyboards/wilba_tech/wt65_xtx/keymaps/vial/vial.json @@ -0,0 +1,136 @@ +{ + "name": "wilba.tech WT65-XTX", + "vendorId": "0x6582", + "productId": "0x001E", + "matrix": { + "rows": 5, + "cols": 17 + }, + "layouts": { + "labels": ["Split Backspace", ["Bottom Row", "7U", "6.25U"]], + "keymap": [ + [{"x": 15.25, "c": "#aaaaaa"}, "0,15\n\n\n0,1", "2,15\n\n\n0,1"], + [ + {"y": 0.25}, + "0,0", + "0,1", + {"x": 0.25, "c": "#777777"}, + "0,2", + {"c": "#cccccc"}, + "0,3", + "0,4", + "0,5", + "0,6", + "0,7", + "0,8", + "0,9", + "0,10", + "0,11", + "0,12", + "0,13", + "0,14", + {"c": "#aaaaaa", "w": 2}, + "0,15\n\n\n0,0", + "0,16" + ], + [ + "1,0", + "1,1", + {"x": 0.25, "w": 1.5}, + "1,2", + {"c": "#cccccc"}, + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "1,8", + "1,9", + "1,10", + "1,11", + "1,12", + "1,13", + "1,14", + {"w": 1.5}, + "1,15", + {"c": "#aaaaaa"}, + "1,16" + ], + [ + "2,0", + "2,1", + {"x": 0.25, "w": 1.75}, + "2,2", + {"c": "#cccccc"}, + "2,3", + "2,4", + "2,5", + "2,6", + "2,7", + "2,8", + "2,9", + "2,10", + "2,11", + "2,12", + "2,13", + {"c": "#aaaaaa", "w": 2.25}, + "2,14", + "2,16" + ], + [ + "3,0", + "3,1", + {"x": 0.25, "w": 2.25}, + "3,2", + {"c": "#cccccc"}, + "3,4", + "3,5", + "3,6", + "3,7", + "3,8", + "3,9", + "3,10", + "3,11", + "3,12", + "3,13", + {"c": "#aaaaaa", "w": 1.75}, + "3,14", + {"c": "#777777"}, + "3,15", + {"c": "#aaaaaa"}, + "3,16" + ], + [ + "4,0", + "4,1", + {"x": 0.25, "w": 1.5}, + "4,2\n\n\n1,0", + "4,3\n\n\n1,0", + {"w": 1.5}, + "4,4\n\n\n1,0", + {"c": "#cccccc", "w": 7}, + "4,8\n\n\n1,0", + {"c": "#aaaaaa", "w": 1.5}, + "4,13\n\n\n1,0", + {"x": 0.5, "c": "#777777"}, + "4,14", + "4,15", + "4,16" + ], + [ + {"y": 0.25, "x": 2.25, "c": "#aaaaaa", "w": 1.25}, + "4,2\n\n\n1,1", + {"w": 1.25}, + "4,3\n\n\n1,1", + {"w": 1.25}, + "4,4\n\n\n1,1", + {"c": "#cccccc", "w": 6.25}, + "4,8\n\n\n1,1", + {"c": "#aaaaaa", "w": 1.25}, + "4,12\n\n\n1,1", + {"w": 1.25}, + "4,13\n\n\n1,1" + ] + ] + } +}