From 73e009f2638935a6a79a7709179cc2d314647c86 Mon Sep 17 00:00:00 2001 From: azhizhinov Date: Sun, 23 Jun 2024 08:37:55 +0300 Subject: [PATCH] VIAL keymap - initial upload (#750) --- keyboards/pierce/keymaps/vial/config.h | 12 ++++ keyboards/pierce/keymaps/vial/keymap.c | 27 ++++++++ keyboards/pierce/keymaps/vial/rules.mk | 3 + keyboards/pierce/keymaps/vial/vial.json | 91 +++++++++++++++++++++++++ 4 files changed, 133 insertions(+) create mode 100644 keyboards/pierce/keymaps/vial/config.h create mode 100644 keyboards/pierce/keymaps/vial/keymap.c create mode 100644 keyboards/pierce/keymaps/vial/rules.mk create mode 100644 keyboards/pierce/keymaps/vial/vial.json diff --git a/keyboards/pierce/keymaps/vial/config.h b/keyboards/pierce/keymaps/vial/config.h new file mode 100644 index 0000000000..789e7ce4e6 --- /dev/null +++ b/keyboards/pierce/keymaps/vial/config.h @@ -0,0 +1,12 @@ +// Copyright 2022 durken (@durken1) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define VIAL_KEYBOARD_UID {0x5C, 0x0A, 0x3E, 0x82, 0x9A, 0x9B, 0x3B, 0x85} +#define VIAL_UNLOCK_COMBO_ROWS {0, 0} +#define VIAL_UNLOCK_COMBO_COLS {0, 3} +// VIAL specific reduce memory +#define VIAL_COMBO_ENTRIES 4 +#define VIAL_TAP_DANCE_ENTRIES 4 +#define VIAL_KEY_OVERRIDE_ENTRIES 4 diff --git a/keyboards/pierce/keymaps/vial/keymap.c b/keyboards/pierce/keymaps/vial/keymap.c new file mode 100644 index 0000000000..2a65a8b04a --- /dev/null +++ b/keyboards/pierce/keymaps/vial/keymap.c @@ -0,0 +1,27 @@ +// Copyright 2023 durken +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┐ + * │ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │ + * ├───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┤ + * │ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │ + * ├───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┤ + * │ Z │ X │ C │ V │ B │ │ N │ M │ , │ . │ / │ + * └───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┘ + * ┌───┐ ┌───┐ + * │GUI├───┐ ┌───┤Alt│ + * └───┤Bsp├───┐ ┌───┤Ent├───┘ + * └───┤ │ │ ├───┘ + * └───┘ └───┘ + */ + [0] = LAYOUT_split_3x5_3( + KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, + KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, + KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, + KC_LGUI, KC_BSPC, KC_SPC, KC_SPC, KC_ENT, KC_RALT + ) +}; diff --git a/keyboards/pierce/keymaps/vial/rules.mk b/keyboards/pierce/keymaps/vial/rules.mk new file mode 100644 index 0000000000..46f9f1360f --- /dev/null +++ b/keyboards/pierce/keymaps/vial/rules.mk @@ -0,0 +1,3 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes diff --git a/keyboards/pierce/keymaps/vial/vial.json b/keyboards/pierce/keymaps/vial/vial.json new file mode 100644 index 0000000000..9eeb59b2a0 --- /dev/null +++ b/keyboards/pierce/keymaps/vial/vial.json @@ -0,0 +1,91 @@ +{ + "name": "pierce", + "vendorId": "0x6431", + "productId": "0x6060", + "lighting": "none", + "matrix": { + "rows": 4, + "cols": 10 + }, + "layouts": { + "keymap": [ + [ + "0,0", + "0,1", + "0,2", + "0,3", + "0,4", + { + "x": 0.25 + }, + "0,5", + "0,6", + "0,7", + "0,8", + "0,9" + ], + [ + "1,0", + "1,1", + "1,2", + "1,3", + "1,4", + { + "x": 0.25 + }, + "1,5", + "1,6", + "1,7", + "1,8", + "1,9" + ], + [ + "2,0", + "2,1", + "2,2", + "2,3", + "2,4", + { + "x": 0.25 + }, + "2,5", + "2,6", + "2,7", + "2,8", + "2,9" + ], + [ + { + "x": 2 + }, + "3,2", + { + "x": 4.25 + }, + "3,7" + ], + [ + { + "y": -0.75, + "x": 3 + }, + "3,3", + { + "x": 2.25 + }, + "3,6" + ], + [ + { + "y": -0.75, + "x": 4 + }, + "3,4", + { + "x": 0.25 + }, + "3,5" + ] + ] + } +}