From 0ae9fc615280c64789eb30ffb53f939e3f23088b Mon Sep 17 00:00:00 2001 From: OTLabs Date: Sun, 4 Feb 2024 22:41:02 -0600 Subject: [PATCH] Add Vial keymap for Drop TheKey v2 (#662) Add Vial keymap for Drop TheKey v2 (no lighting). --- keyboards/drop/thekey/v2/keymaps/vial/config.h | 11 +++++++++++ keyboards/drop/thekey/v2/keymaps/vial/keymap.c | 7 +++++++ keyboards/drop/thekey/v2/keymaps/vial/rules.mk | 4 ++++ keyboards/drop/thekey/v2/keymaps/vial/vial.json | 13 +++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 keyboards/drop/thekey/v2/keymaps/vial/config.h create mode 100644 keyboards/drop/thekey/v2/keymaps/vial/keymap.c create mode 100644 keyboards/drop/thekey/v2/keymaps/vial/rules.mk create mode 100644 keyboards/drop/thekey/v2/keymaps/vial/vial.json diff --git a/keyboards/drop/thekey/v2/keymaps/vial/config.h b/keyboards/drop/thekey/v2/keymaps/vial/config.h new file mode 100644 index 0000000000..ec7ab68c8e --- /dev/null +++ b/keyboards/drop/thekey/v2/keymaps/vial/config.h @@ -0,0 +1,11 @@ +// Copyright 2023 Oleg Titov +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +// Unique keyboard id +#define VIAL_KEYBOARD_UID {0x08, 0x3B, 0x57, 0xCA, 0xC1, 0xE4, 0x65, 0xB4} + +// Unlock with left + right keys +#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 2 } diff --git a/keyboards/drop/thekey/v2/keymaps/vial/keymap.c b/keyboards/drop/thekey/v2/keymaps/vial/keymap.c new file mode 100644 index 0000000000..45aa069200 --- /dev/null +++ b/keyboards/drop/thekey/v2/keymaps/vial/keymap.c @@ -0,0 +1,7 @@ +// Copyright 2023 Massdrop, Inc. +// SPDX-License-Identifier: GPL-2.0-or-later +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT(KC_LCTL, KC_C, KC_V) +}; diff --git a/keyboards/drop/thekey/v2/keymaps/vial/rules.mk b/keyboards/drop/thekey/v2/keymaps/vial/rules.mk new file mode 100644 index 0000000000..f9a119b4d5 --- /dev/null +++ b/keyboards/drop/thekey/v2/keymaps/vial/rules.mk @@ -0,0 +1,4 @@ +VIA_ENABLE = yes # Enable VIA +VIAL_ENABLE = yes # Enable VIAL +LTO_ENABLE = yes +RGBLIGHT_ENABLE = no diff --git a/keyboards/drop/thekey/v2/keymaps/vial/vial.json b/keyboards/drop/thekey/v2/keymaps/vial/vial.json new file mode 100644 index 0000000000..36409506af --- /dev/null +++ b/keyboards/drop/thekey/v2/keymaps/vial/vial.json @@ -0,0 +1,13 @@ +{ + "lighting": "none", + "matrix": { "rows": 1, "cols": 3 }, + "layouts": { + "keymap":[ + [ + "0,0", + "0,1", + "0,2" + ] + ] + } +}