From 539b274b28708649f83986892edc1f212d0e827d Mon Sep 17 00:00:00 2001 From: Ran Lottem Date: Sun, 6 Oct 2024 23:47:48 +0300 Subject: [PATCH] Add support for Kaly42 (#787) https://github.com/Dwctor/Kaly Co-authored-by: randov --- keyboards/kaly/kaly42/keymaps/vial/config.h | 10 + keyboards/kaly/kaly42/keymaps/vial/keymap.c | 27 ++ keyboards/kaly/kaly42/keymaps/vial/rules.mk | 2 + keyboards/kaly/kaly42/keymaps/vial/vial.json | 269 +++++++++++++++++++ 4 files changed, 308 insertions(+) create mode 100644 keyboards/kaly/kaly42/keymaps/vial/config.h create mode 100644 keyboards/kaly/kaly42/keymaps/vial/keymap.c create mode 100644 keyboards/kaly/kaly42/keymaps/vial/rules.mk create mode 100644 keyboards/kaly/kaly42/keymaps/vial/vial.json diff --git a/keyboards/kaly/kaly42/keymaps/vial/config.h b/keyboards/kaly/kaly42/keymaps/vial/config.h new file mode 100644 index 0000000000..3e9c1e6a97 --- /dev/null +++ b/keyboards/kaly/kaly42/keymaps/vial/config.h @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + + +/* copied from cantor */ +#define VIAL_UNLOCK_COMBO_ROWS { 0, 4 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 5 } + +#define VIAL_KEYBOARD_UID {0x15, 0x56, 0x94, 0x28, 0x02, 0xBB, 0x66, 0xBE} \ No newline at end of file diff --git a/keyboards/kaly/kaly42/keymaps/vial/keymap.c b/keyboards/kaly/kaly42/keymaps/vial/keymap.c new file mode 100644 index 0000000000..54d46c54db --- /dev/null +++ b/keyboards/kaly/kaly42/keymaps/vial/keymap.c @@ -0,0 +1,27 @@ +// Copyright 2023 Kael Soares Augusto (@Dwctor) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┬───┬───┬───┬───┬───┐ ┌───┬───┬───┬───┬───┬───┐ + * │Tab│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │Bsp│ + * ├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤ + * │Ctl│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ; │ ' │ + * ├───┼───┼───┼───┼───┼───┤ ├───┼───┼───┼───┼───┼───┤ + * │Sft│ Z │ X │ C │ V │ B │ │ N │ M │ , │ . │ / │Sft│ + * └───┴───┴───┴───┴───┴───┘ └───┴───┴───┴───┴───┴───┘ + * ┌───┐ ┌───┐ + * │GUI├───┐ ┌───┤Alt│ + * └───┤Bsp├───┐ ┌───┤Ent├───┘ + * └───┤ │ │ ├───┘ + * └───┘ └───┘ + */ + [0] = LAYOUT_split_3x6_3( + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + KC_LGUI, KC_BSPC, KC_SPC, KC_SPC, KC_ENT, KC_RALT + ) +}; diff --git a/keyboards/kaly/kaly42/keymaps/vial/rules.mk b/keyboards/kaly/kaly42/keymaps/vial/rules.mk new file mode 100644 index 0000000000..6bc7063adc --- /dev/null +++ b/keyboards/kaly/kaly42/keymaps/vial/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes \ No newline at end of file diff --git a/keyboards/kaly/kaly42/keymaps/vial/vial.json b/keyboards/kaly/kaly42/keymaps/vial/vial.json new file mode 100644 index 0000000000..3df49502f7 --- /dev/null +++ b/keyboards/kaly/kaly42/keymaps/vial/vial.json @@ -0,0 +1,269 @@ +{ + "name": "kaly42", + "lighting": "none", + "vendorId": "0xFEED", + "productId": "0x0000", + "matrix": { + "rows": 8, + "cols": 6 + }, + "layouts": { + "keymap": [ + [ + { + "x": 3 + }, + "0,3", + { + "x": 7 + }, + "4,2" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "0,2", + { + "x": 1 + }, + "0,4", + { + "x": 5 + }, + "4,1", + { + "x": 1 + }, + "4,3" + ], + [ + { + "y": -0.85, + "x": 5 + }, + "0,5", + { + "x": 3 + }, + "4,0" + ], + [ + { + "y": -0.4999999999999999 + }, + "0,0", + "0,1", + { + "x": 11 + }, + "4,4", + "4,5" + ], + [ + { + "y": -0.8999999999999999, + "x": 3 + }, + "1,3", + { + "x": 7 + }, + "5,2" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "1,2", + { + "x": 1 + }, + "1,4", + { + "x": 5 + }, + "5,1", + { + "x": 1 + }, + "5,3" + ], + [ + { + "y": -0.8500000000000001, + "x": 5 + }, + "1,5", + { + "x": 3 + }, + "5,0" + ], + [ + { + "y": -0.5 + }, + "1,0", + "1,1", + { + "x": 11 + }, + "5,4", + "5,5" + ], + [ + { + "y": -0.8999999999999999, + "x": 3 + }, + "2,3", + { + "x": 7 + }, + "6,2" + ], + [ + { + "y": -0.75, + "x": 2 + }, + "2,2", + { + "x": 1 + }, + "2,4", + { + "x": 5 + }, + "6,1", + { + "x": 1 + }, + "6,3" + ], + [ + { + "y": -0.8500000000000001, + "x": 5 + }, + "2,5", + { + "x": 3 + }, + "6,0" + ], + [ + { + "y": -0.5 + }, + "2,0", + "2,1", + { + "x": 11 + }, + "6,4", + "6,5" + ], + [ + { + "r": 15, + "y": -1.9, + "x": 5.25 + }, + "3,0" + ], + [ + { + "r": 32, + "y": -2.95, + "x": 6.85 + }, + "3,1" + ], + [ + { + "r": 46, + "rx": 15, + "y": 7.9, + "x": -1.6099999999999994 + }, + "7,0" + ], + [ + { + "r": -46, + "rx": 0, + "y": 7.9, + "x": 0.61 + }, + "3,2" + ], + [ + { + "r": -32, + "rx": 15, + "y": 0.05, + "x": -7.85 + }, + "7,1" + ], + [ + { + "r": -15, + "y": 0.95, + "x": -6.25 + }, + "7,2" + ] +], + "LAYOUT_split_3x6_3": { + "layout": [ + { "matrix": [0, 0], "x": 0, "y": 0.25 }, + { "matrix": [0, 1], "x": 1, "y": 0.25 }, + { "matrix": [0, 2], "x": 2, "y": 0.125 }, + { "matrix": [0, 3], "x": 3, "y": 0 }, + { "matrix": [0, 4], "x": 4, "y": 0.125 }, + { "matrix": [0, 5], "x": 5, "y": 0.25 }, + { "matrix": [4, 0], "x": 8, "y": 0.25 }, + { "matrix": [4, 1], "x": 9, "y": 0.125 }, + { "matrix": [4, 2], "x": 10, "y": 0 }, + { "matrix": [4, 3], "x": 11, "y": 0.125 }, + { "matrix": [4, 4], "x": 12, "y": 0.25 }, + { "matrix": [4, 5], "x": 13, "y": 0.25 }, + { "matrix": [1, 0], "x": 0, "y": 1.25 }, + { "matrix": [1, 1], "x": 1, "y": 1.25 }, + { "matrix": [1, 2], "x": 2, "y": 1.125 }, + { "matrix": [1, 3], "x": 3, "y": 1 }, + { "matrix": [1, 4], "x": 4, "y": 1.125 }, + { "matrix": [1, 5], "x": 5, "y": 1.25 }, + { "matrix": [5, 0], "x": 8, "y": 1.25 }, + { "matrix": [5, 1], "x": 9, "y": 1.125 }, + { "matrix": [5, 2], "x": 10, "y": 1 }, + { "matrix": [5, 3], "x": 11, "y": 1.125 }, + { "matrix": [5, 4], "x": 12, "y": 1.25 }, + { "matrix": [5, 5], "x": 13, "y": 1.25 }, + { "matrix": [2, 0], "x": 0, "y": 2.25 }, + { "matrix": [2, 1], "x": 1, "y": 2.25 }, + { "matrix": [2, 2], "x": 2, "y": 2.125 }, + { "matrix": [2, 3], "x": 3, "y": 2 }, + { "matrix": [2, 4], "x": 4, "y": 2.125 }, + { "matrix": [2, 5], "x": 5, "y": 2.25 }, + { "matrix": [6, 0], "x": 8, "y": 2.25 }, + { "matrix": [6, 1], "x": 9, "y": 2.125 }, + { "matrix": [6, 2], "x": 10, "y": 2 }, + { "matrix": [6, 3], "x": 11, "y": 2.125 }, + { "matrix": [6, 4], "x": 12, "y": 2.25 }, + { "matrix": [6, 5], "x": 13, "y": 2.25 }, + { "matrix": [3, 0], "x": 3.5, "y": 3.25 }, + { "matrix": [3, 1], "x": 4.5, "y": 3.5 }, + { "matrix": [3, 2], "x": 5.5, "y": 3.75 }, + { "matrix": [7, 0], "x": 7.5, "y": 3.75 }, + { "matrix": [7, 1], "x": 8.5, "y": 3.5 }, + { "matrix": [7, 2], "x": 9.5, "y": 3.25 } + ] + } + } +}