From 11759f4105361d5ee33f9cd301753af714dc7673 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=E1=BA=AFn?= <59417802+MaiTheSan@users.noreply.github.com>
Date: Mon, 20 Jan 2025 05:24:51 +0700
Subject: [PATCH 01/13] Add Vial support for NCR80 ALPS SKFL/FR (#819)
* add support
* fix
* Update config.h
---
keyboards/salane/ncr80alpsskfl/config.h | 17 ++
keyboards/salane/ncr80alpsskfl/keyboard.json | 128 ++++++++++
.../ncr80alpsskfl/keymaps/default/keymap.c | 28 +++
.../ncr80alpsskfl/keymaps/vial/config.h | 6 +
.../ncr80alpsskfl/keymaps/vial/keymap.c | 28 +++
.../ncr80alpsskfl/keymaps/vial/rules.mk | 2 +
.../ncr80alpsskfl/keymaps/vial/vial.json | 218 ++++++++++++++++++
keyboards/salane/ncr80alpsskfl/readme.md | 25 ++
8 files changed, 452 insertions(+)
create mode 100644 keyboards/salane/ncr80alpsskfl/config.h
create mode 100644 keyboards/salane/ncr80alpsskfl/keyboard.json
create mode 100644 keyboards/salane/ncr80alpsskfl/keymaps/default/keymap.c
create mode 100644 keyboards/salane/ncr80alpsskfl/keymaps/vial/config.h
create mode 100644 keyboards/salane/ncr80alpsskfl/keymaps/vial/keymap.c
create mode 100644 keyboards/salane/ncr80alpsskfl/keymaps/vial/rules.mk
create mode 100644 keyboards/salane/ncr80alpsskfl/keymaps/vial/vial.json
create mode 100644 keyboards/salane/ncr80alpsskfl/readme.md
diff --git a/keyboards/salane/ncr80alpsskfl/config.h b/keyboards/salane/ncr80alpsskfl/config.h
new file mode 100644
index 00000000000..cc6fb298f41
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/config.h
@@ -0,0 +1,17 @@
+/*
+Copyright 2024 Salane
+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
+
+#define RP2040_FLASH_GENERIC_03H
diff --git a/keyboards/salane/ncr80alpsskfl/keyboard.json b/keyboards/salane/ncr80alpsskfl/keyboard.json
new file mode 100644
index 00000000000..d4dbfcd26b3
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keyboard.json
@@ -0,0 +1,128 @@
+{
+ "keyboard_name": "NCR80 ALPS SKFL",
+ "manufacturer": "Salane",
+ "url": "",
+ "maintainer": "Mai The San",
+ "processor": "RP2040",
+ "bootloader": "rp2040",
+ "usb": {
+ "vid": "0x534C",
+ "pid": "0x087A",
+ "device_version": "0.0.1"
+ },
+ "matrix_pins": {
+ "rows": ["GP24", "GP9", "GP10", "GP13", "GP12", "GP11"],
+ "cols": ["GP16", "GP17", "GP18", "GP19", "GP20", "GP21", "GP22", "GP23", "GP25", "GP26", "GP27", "GP28", "GP29", "GP6", "GP5", "GP4", "GP3"]
+ },
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "mousekey": true,
+ "extrakey": true,
+ "console": false,
+ "command": false,
+ "nkro": false,
+ "rgblight": false
+ },
+ "indicators": {
+ "num_lock": "GP0",
+ "caps_lock": "GP1",
+ "scroll_lock": "GP2"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label": "K00", "matrix": [0, 0], "x": 0, "y": 0},
+ {"label": "K01", "matrix": [0, 1], "x": 2, "y": 0},
+ {"label": "K02", "matrix": [0, 2], "x": 3, "y": 0},
+ {"label": "K03", "matrix": [0, 3], "x": 4, "y": 0},
+ {"label": "K04", "matrix": [0, 4], "x": 5, "y": 0},
+ {"label": "K05", "matrix": [0, 5], "x": 6.5, "y": 0},
+ {"label": "K06", "matrix": [0, 6], "x": 7.5, "y": 0},
+ {"label": "K07", "matrix": [0, 7], "x": 8.5, "y": 0},
+ {"label": "K08", "matrix": [0, 8], "x": 9.5, "y": 0},
+ {"label": "K09", "matrix": [0, 9], "x": 11, "y": 0},
+ {"label": "K0A", "matrix": [0, 10], "x": 12, "y": 0},
+ {"label": "K0B", "matrix": [0, 11], "x": 13, "y": 0},
+ {"label": "K0C", "matrix": [0, 12], "x": 14, "y": 0},
+
+ {"label": "K10", "matrix": [1, 0], "x": 0, "y": 2},
+ {"label": "K11", "matrix": [1, 1], "x": 1, "y": 2},
+ {"label": "K12", "matrix": [1, 2], "x": 2, "y": 2},
+ {"label": "K13", "matrix": [1, 3], "x": 3, "y": 2},
+ {"label": "K14", "matrix": [1, 4], "x": 4, "y": 2},
+ {"label": "K15", "matrix": [1, 5], "x": 5, "y": 2},
+ {"label": "K16", "matrix": [1, 6], "x": 6, "y": 2},
+ {"label": "K17", "matrix": [1, 7], "x": 7, "y": 2},
+ {"label": "K18", "matrix": [1, 8], "x": 8, "y": 2},
+ {"label": "K19", "matrix": [1, 9], "x": 9, "y": 2},
+ {"label": "K1A", "matrix": [1, 10], "x": 10, "y": 2},
+ {"label": "K1B", "matrix": [1, 11], "x": 11, "y": 2},
+ {"label": "K1C", "matrix": [1, 12], "x": 12, "y": 2},
+ {"label": "K0D", "matrix": [0, 13], "x": 13, "y": 2},
+ {"label": "K1D", "matrix": [1, 13], "x": 14, "y": 2},
+ {"label": "K1E", "matrix": [1, 14], "x": 15.25, "y": 2},
+ {"label": "K1F", "matrix": [1, 15], "x": 16.25, "y": 2},
+ {"label": "K1G", "matrix": [1, 16], "x": 17.25, "y": 2},
+
+ {"label": "K20", "matrix": [2, 0], "x": 0, "y": 3, "w": 1.5},
+ {"label": "K21", "matrix": [2, 1], "x": 1.5, "y": 3},
+ {"label": "K22", "matrix": [2, 2], "x": 2.5, "y": 3},
+ {"label": "K23", "matrix": [2, 3], "x": 3.5, "y": 3},
+ {"label": "K24", "matrix": [2, 4], "x": 4.5, "y": 3},
+ {"label": "K25", "matrix": [2, 5], "x": 5.5, "y": 3},
+ {"label": "K26", "matrix": [2, 6], "x": 6.5, "y": 3},
+ {"label": "K27", "matrix": [2, 7], "x": 7.5, "y": 3},
+ {"label": "K28", "matrix": [2, 8], "x": 8.5, "y": 3},
+ {"label": "K29", "matrix": [2, 9], "x": 9.5, "y": 3},
+ {"label": "K2A", "matrix": [2, 10], "x": 10.5, "y": 3},
+ {"label": "K2B", "matrix": [2, 11], "x": 11.5, "y": 3},
+ {"label": "K2C", "matrix": [2, 12], "x": 12.5, "y": 3},
+ {"label": "K2D", "matrix": [2, 13], "x": 13.5, "y": 3, "w": 1.5},
+ {"label": "K2E", "matrix": [2, 14], "x": 15.25, "y": 3},
+ {"label": "K2F", "matrix": [2, 15], "x": 16.25, "y": 3},
+ {"label": "K2G", "matrix": [2, 16], "x": 17.25, "y": 3},
+
+ {"label": "K30", "matrix": [3, 0], "x": 0, "y": 4, "w": 1.75},
+ {"label": "K31", "matrix": [3, 1], "x": 1.75, "y": 4},
+ {"label": "K32", "matrix": [3, 2], "x": 2.75, "y": 4},
+ {"label": "K33", "matrix": [3, 3], "x": 3.75, "y": 4},
+ {"label": "K34", "matrix": [3, 4], "x": 4.75, "y": 4},
+ {"label": "K35", "matrix": [3, 5], "x": 5.75, "y": 4},
+ {"label": "K36", "matrix": [3, 6], "x": 6.75, "y": 4},
+ {"label": "K37", "matrix": [3, 7], "x": 7.75, "y": 4},
+ {"label": "K38", "matrix": [3, 8], "x": 8.75, "y": 4},
+ {"label": "K39", "matrix": [3, 9], "x": 9.75, "y": 4},
+ {"label": "K3A", "matrix": [3, 10], "x": 10.75, "y": 4},
+ {"label": "K3B", "matrix": [3, 11], "x": 11.75, "y": 4},
+ {"label": "K3D", "matrix": [3, 13], "x": 12.75, "y": 4, "w": 2.25},
+
+ {"label": "K40", "matrix": [4, 0], "x": 0, "y": 5, "w": 2.25},
+ {"label": "K42", "matrix": [4, 2], "x": 2.25, "y": 5},
+ {"label": "K43", "matrix": [4, 3], "x": 3.25, "y": 5},
+ {"label": "K44", "matrix": [4, 4], "x": 4.25, "y": 5},
+ {"label": "K45", "matrix": [4, 5], "x": 5.25, "y": 5},
+ {"label": "K46", "matrix": [4, 6], "x": 6.25, "y": 5},
+ {"label": "K47", "matrix": [4, 7], "x": 7.25, "y": 5},
+ {"label": "K48", "matrix": [4, 8], "x": 8.25, "y": 5},
+ {"label": "K49", "matrix": [4, 9], "x": 9.25, "y": 5},
+ {"label": "K4A", "matrix": [4, 10], "x": 10.25, "y": 5},
+ {"label": "K4B", "matrix": [4, 11], "x": 11.25, "y": 5},
+ {"label": "K4C", "matrix": [4, 12], "x": 12.25, "y": 5, "w": 1.75},
+ {"label": "K4D", "matrix": [4, 13], "x": 14, "y": 5},
+ {"label": "K4F", "matrix": [4, 15], "x": 16.25, "y": 5},
+
+ {"label": "K50", "matrix": [5, 0], "x": 0, "y": 6, "w": 1.5},
+ {"label": "K51", "matrix": [5, 1], "x": 1.5, "y": 6},
+ {"label": "K52", "matrix": [5, 2], "x": 2.5, "y": 6, "w": 1.5},
+ {"label": "K57", "matrix": [5, 7], "x": 4, "y": 6, "w": 7},
+ {"label": "K5B", "matrix": [5, 11], "x": 11, "y": 6, "w": 1.5},
+ {"label": "K5C", "matrix": [5, 12], "x": 12.5, "y": 6},
+ {"label": "K5D", "matrix": [5, 13], "x": 13.5, "y": 6, "w": 1.5},
+ {"label": "K5E", "matrix": [5, 14], "x": 15.25, "y": 6},
+ {"label": "K5F", "matrix": [5, 15], "x": 16.25, "y": 6},
+ {"label": "K5G", "matrix": [5, 16], "x": 17.25, "y": 6}
+ ]
+ }
+ }
+}
diff --git a/keyboards/salane/ncr80alpsskfl/keymaps/default/keymap.c b/keyboards/salane/ncr80alpsskfl/keymaps/default/keymap.c
new file mode 100644
index 00000000000..3e8ae876b73
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keymaps/default/keymap.c
@@ -0,0 +1,28 @@
+/* Copyright 2023 SawnsProjects
+ *
+ * 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] = {
+ [0] = LAYOUT(
+ KC_ESC, 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_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_SLSH, KC_UP,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
+ )
+};
\ No newline at end of file
diff --git a/keyboards/salane/ncr80alpsskfl/keymaps/vial/config.h b/keyboards/salane/ncr80alpsskfl/keymaps/vial/config.h
new file mode 100644
index 00000000000..606124a16e0
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keymaps/vial/config.h
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+#define VIAL_KEYBOARD_UID {0x93, 0x57, 0xB2, 0x78, 0xFB, 0x94, 0x01, 0x81}
+#define VIAL_UNLOCK_COMBO_ROWS {0, 3}
+#define VIAL_UNLOCK_COMBO_COLS {0, 13}
\ No newline at end of file
diff --git a/keyboards/salane/ncr80alpsskfl/keymaps/vial/keymap.c b/keyboards/salane/ncr80alpsskfl/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..3e8ae876b73
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keymaps/vial/keymap.c
@@ -0,0 +1,28 @@
+/* Copyright 2023 SawnsProjects
+ *
+ * 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] = {
+ [0] = LAYOUT(
+ KC_ESC, 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_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_SLSH, KC_UP,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RGUI, KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
+ )
+};
\ No newline at end of file
diff --git a/keyboards/salane/ncr80alpsskfl/keymaps/vial/rules.mk b/keyboards/salane/ncr80alpsskfl/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..6bc7063adc2
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keymaps/vial/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/salane/ncr80alpsskfl/keymaps/vial/vial.json b/keyboards/salane/ncr80alpsskfl/keymaps/vial/vial.json
new file mode 100644
index 00000000000..462d4f003b8
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/keymaps/vial/vial.json
@@ -0,0 +1,218 @@
+{
+ "name": "NCR80 ALPS SKFL",
+ "vendorId": "0x534C",
+ "productId": "0x087A",
+ "matrix": {
+ "rows": 6,
+ "cols": 17
+ },
+ "layouts": {
+ "labels": [
+ "Split Backspace",
+ "Split Right Shift"
+ ],
+ "keymap": [
+ [
+ {
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "x": 1,
+ "c": "#cccccc"
+ },
+ "0,2",
+ "0,2",
+ "0,3",
+ "0,4",
+ {
+ "x": 0.5,
+ "c": "#aaaaaa"
+ },
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ {
+ "x": 0.5,
+ "c": "#cccccc"
+ },
+ "0,9",
+ "0,10",
+ "0,11",
+ "0,12"
+ ],
+ [
+ {
+ "y": 1,
+ "c": "#aaaaaa"
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ {
+ "c": "#aaaaaa",
+ "w": 2
+ },
+ "0,13\n\n\n0,0",
+ {
+ "x": 0.25,
+ "c": "#cccccc"
+ },
+ "1,14",
+ "1,15",
+ "1,16",
+ {
+ "x": 1
+ },
+ "0.13\n\n\n0,1",
+ "1,13\n\n\n0,1"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,1",
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ "2,12",
+ {
+ "w": 1.5
+ },
+ "2,13",
+ {
+ "x": 0.25
+ },
+ "2,14",
+ "2,15",
+ "2,16"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "3,0",
+ {
+ "c": "#cccccc"
+ },
+ "3,1",
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ "3,11",
+ {
+ "c": "#777777",
+ "w": 2.25
+ },
+ "3,13"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 2.25
+ },
+ "4,0",
+ {
+ "c": "#cccccc"
+ },
+ "4,2",
+ "4,3",
+ "4,4",
+ "4,5",
+ "4,6",
+ "4,7",
+ "4,8",
+ "4,9",
+ "4,10",
+ "4,11",
+ {
+ "c": "#aaaaaa",
+ "w": 2.75
+ },
+ "4,12\n\n\n1,0",
+ {
+ "x": 1.25,
+ "c": "#777777"
+ },
+ "4,15",
+ {
+ "x": 1.25,
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "4,12\n\n\n1,1",
+ {
+ "c": "#cccccc"
+ },
+ "4,13\n\n\n1,1"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "5,0",
+ "5,1",
+ {
+ "w": 1.5
+ },
+ "5,2",
+ {
+ "c": "#cccccc",
+ "w": 7
+ },
+ "5,6",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "5,11",
+ "5,12",
+ {
+ "w": 1.5
+ },
+ "5,13",
+ {
+ "x": 0.25,
+ "c": "#777777"
+ },
+ "5,14",
+ "5,15",
+ "5,16"
+ ]
+ ]
+ }
+}
\ No newline at end of file
diff --git a/keyboards/salane/ncr80alpsskfl/readme.md b/keyboards/salane/ncr80alpsskfl/readme.md
new file mode 100644
index 00000000000..dac8d63a584
--- /dev/null
+++ b/keyboards/salane/ncr80alpsskfl/readme.md
@@ -0,0 +1,25 @@
+# NCR80 ALPS SKFL
+
+
+
+ PCB Replace for NCR80 with ALPS SKFL switch.
+
+ **Firmware files are SPECIFIC to each board. Firmware files from one, will not work on the other.** Please use the `.hex` or `.bin` appropriate for your board.
+
+* Keyboard Maintainer: [Mai The San](https://github.com/MaiTheSan)
+* Hardware Supported: NCR80
+* Hardware Availability: [Github](https://github.com/MaiTheSan/NCR80-ALPS-SKFL)
+
+Make examples for this keyboard (after setting up your build environment):
+
+ make salane/ncr80alpsskfl:default
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
+* **Physical reset button**: short 2 pin in the back of pcb and plug the usb in
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
\ No newline at end of file
From 76dc70b97db0b6a230d0b3f13a1477b054a5527c Mon Sep 17 00:00:00 2001
From: Patrick Muldoon
Date: Sun, 19 Jan 2025 17:26:03 -0500
Subject: [PATCH 02/13] Add vial support for the elongate delta (#826)
* Add vial support for the elongate delta delta
* removing uneeded parts
---
.../elongate/delta/keymaps/vial/config.h | 8 +
.../elongate/delta/keymaps/vial/keymap.c | 38 +++++
.../elongate/delta/keymaps/vial/rules.mk | 2 +
.../elongate/delta/keymaps/vial/vial.json | 153 ++++++++++++++++++
4 files changed, 201 insertions(+)
create mode 100644 keyboards/acheron/elongate/delta/keymaps/vial/config.h
create mode 100755 keyboards/acheron/elongate/delta/keymaps/vial/keymap.c
create mode 100644 keyboards/acheron/elongate/delta/keymaps/vial/rules.mk
create mode 100644 keyboards/acheron/elongate/delta/keymaps/vial/vial.json
diff --git a/keyboards/acheron/elongate/delta/keymaps/vial/config.h b/keyboards/acheron/elongate/delta/keymaps/vial/config.h
new file mode 100644
index 00000000000..8c845d96928
--- /dev/null
+++ b/keyboards/acheron/elongate/delta/keymaps/vial/config.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0x4F, 0x61, 0xF4, 0xA5, 0x22, 0x84, 0xD5, 0xDC}
+
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 14 }
diff --git a/keyboards/acheron/elongate/delta/keymaps/vial/keymap.c b/keyboards/acheron/elongate/delta/keymaps/vial/keymap.c
new file mode 100755
index 00000000000..9583e8f007b
--- /dev/null
+++ b/keyboards/acheron/elongate/delta/keymaps/vial/keymap.c
@@ -0,0 +1,38 @@
+/* Copyright 2020 Gondolindrim
+ *
+ * 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
+#define SPC_L2 LT(2, KC_SPACE)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+[0] = LAYOUT( /* Base */
+ KC_ESC , KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_KP_7, KC_KP_8, KC_KP_9,
+ KC_TAB , KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENTER, KC_KP_4, KC_KP_5, KC_KP_6,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, MO(1) , KC_UP, KC_KP_1, KC_KP_2, KC_KP_3,
+ KC_LCTL, KC_LWIN, KC_LALT, SPC_L2, KC_SPC, KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT, KC_KP_0, KC_DOT
+),
+[1] = LAYOUT( /* Base */
+ KC_F1, KC_F2, KC_F2, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_LBRC, KC_RBRC, KC_MINS, KC_EQL, KC_NUM, KC_SCRL, KC_CAPS,
+ KC_CAPS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RSFT, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCLN, KC_QUOT, KC_SLSH, KC_TRNS, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC, KC_TRNS, KC_HOME, KC_PGDN, KC_END , KC_TRNS, KC_TRNS
+),
+[2] = LAYOUT( /* Base */
+ QK_BOOT, 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, UG_TOGG, UG_NEXT, UG_PREV, RGB_M_T, 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_SPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+)
+};
diff --git a/keyboards/acheron/elongate/delta/keymaps/vial/rules.mk b/keyboards/acheron/elongate/delta/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..4f7618e9b21
--- /dev/null
+++ b/keyboards/acheron/elongate/delta/keymaps/vial/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
diff --git a/keyboards/acheron/elongate/delta/keymaps/vial/vial.json b/keyboards/acheron/elongate/delta/keymaps/vial/vial.json
new file mode 100644
index 00000000000..44281e7de9c
--- /dev/null
+++ b/keyboards/acheron/elongate/delta/keymaps/vial/vial.json
@@ -0,0 +1,153 @@
+{
+ "matrix": {
+ "rows": 5,
+ "cols": 15
+ },
+ "lighting": "qmk_backlight_rgblight",
+ "layouts": {
+ "keymap": [
+ [
+ {
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "c": "#cccccc"
+ },
+ "0,1",
+ "0,2",
+ "0,3",
+ "0,4",
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ "0,9",
+ "0,10",
+ {
+ "c": "#aaaaaa"
+ },
+ "0,11",
+ {
+ "x": 0.5,
+ "c": "#cccccc"
+ },
+ "0,12",
+ "0,13",
+ "0,14"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ {
+ "c": "#777777",
+ "w": 1.75
+ },
+ "1,11",
+ {
+ "x": 0.5,
+ "c": "#cccccc"
+ },
+ "1,12",
+ "1,13",
+ "1,14"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "2,10",
+ {
+ "x": 1.5,
+ "c": "#cccccc"
+ },
+ "4,12",
+ "4,13",
+ "4,14"
+ ],
+ [
+ {
+ "y": -0.75,
+ "x": 11.25,
+ "c": "#777777"
+ },
+ "4,11"
+ ],
+ [
+ {
+ "y": -0.25,
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "3,0",
+ "3,1",
+ {
+ "w": 1.25
+ },
+ "3,2",
+ {
+ "c": "#cccccc",
+ "w": 2.25
+ },
+ "3,4",
+ {
+ "x": 0.5,
+ "w": 2.75
+ },
+ "3,7",
+ {
+ "c": "#aaaaaa"
+ },
+ "3,9",
+ {
+ "x": 3.5,
+ "c": "#cccccc"
+ },
+ "3,13",
+ "3,14"
+ ],
+ [
+ {
+ "y": -0.75,
+ "x": 10.25,
+ "c": "#777777"
+ },
+ "3,10",
+ "3,11",
+ "3,12"
+ ]
+ ]
+ }
+}
From cca6137c3c6f8dc255605989b70daae7c9f5af0a Mon Sep 17 00:00:00 2001
From: akyp
Date: Mon, 20 Jan 2025 06:26:21 +0800
Subject: [PATCH 03/13] Add Vial support for desire65 (#830)
---
.../desire65/keymaps/vial/config.h | 8 +
.../desire65/keymaps/vial/keymap.json | 28 ++++
.../desire65/keymaps/vial/vial.json | 148 ++++++++++++++++++
3 files changed, 184 insertions(+)
create mode 100644 keyboards/archerkeyboard/desire65/keymaps/vial/config.h
create mode 100644 keyboards/archerkeyboard/desire65/keymaps/vial/keymap.json
create mode 100644 keyboards/archerkeyboard/desire65/keymaps/vial/vial.json
diff --git a/keyboards/archerkeyboard/desire65/keymaps/vial/config.h b/keyboards/archerkeyboard/desire65/keymaps/vial/config.h
new file mode 100644
index 00000000000..52e5ce822c0
--- /dev/null
+++ b/keyboards/archerkeyboard/desire65/keymaps/vial/config.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0x23, 0x09, 0x00, 0x2A, 0x2F, 0x0C, 0xEC, 0x26}
+
+#define VIAL_UNLOCK_COMBO_ROWS {0, 2}
+#define VIAL_UNLOCK_COMBO_COLS {0, 14}
diff --git a/keyboards/archerkeyboard/desire65/keymaps/vial/keymap.json b/keyboards/archerkeyboard/desire65/keymaps/vial/keymap.json
new file mode 100644
index 00000000000..47b5dd8363a
--- /dev/null
+++ b/keyboards/archerkeyboard/desire65/keymaps/vial/keymap.json
@@ -0,0 +1,28 @@
+{
+ "version": 1,
+ "keyboard": "archerkeyboard/desire65",
+ "keymap": "vial",
+ "layout": "LAYOUT_65_ansi_blocker_tsangan_split_bs",
+ "layers": [
+ [
+ "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_BSLS", "KC_BSPC", "KC_HOME",
+ "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_END",
+ "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_PGUP",
+ "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_PGDN",
+ "KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "MO(1)", "KC_LEFT", "KC_DOWN", "KC_RIGHT"
+ ],
+ [
+ "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_INS", "_______", "KC_PSCR", "_______", "_______", "_______", "_______",
+ "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
+ "_______", "_______", "_______", "KC_CALC", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "KC_MPLY", "KC_VOLU", "_______",
+ "_______", "_______", "_______", "_______", "_______", "KC_MPRV", "KC_VOLD", "KC_MNXT"
+ ]
+ ],
+ "config": {
+ "features": {
+ "via": true,
+ "vial": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/keyboards/archerkeyboard/desire65/keymaps/vial/vial.json b/keyboards/archerkeyboard/desire65/keymaps/vial/vial.json
new file mode 100644
index 00000000000..4c6640b37fa
--- /dev/null
+++ b/keyboards/archerkeyboard/desire65/keymaps/vial/vial.json
@@ -0,0 +1,148 @@
+{
+ "name": "desire65",
+ "vendorId": "0x0361",
+ "productId": "0x0002",
+ "lighting": "qmk_rgblight",
+ "keycodes": [
+ "qmk_lighting"
+ ],
+ "matrix": {
+ "rows": 5,
+ "cols": 16
+ },
+ "layouts": {
+ "labels": [
+ "Split Backspace"
+ ],
+ "keymap": [
+ [
+ "0,0",
+ "0,1",
+ "0,2",
+ "0,3",
+ "0,4",
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ "0,9",
+ "0,10",
+ "0,11",
+ "0,12",
+ {
+ "c": "#c5c74a",
+ "w": 2
+ },
+ "0,14\n\n\n0,0",
+ {
+ "c": "#cccccc"
+ },
+ "0,15",
+ {
+ "x": 0.25,
+ "c": "#c5c74a"
+ },
+ "0,13\n\n\n0,1",
+ "0,14\n\n\n0,1"
+ ],
+ [
+ {
+ "c": "#cccccc",
+ "w": 1.5
+ },
+ "1,0",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ "1,13",
+ {
+ "w": 1.5
+ },
+ "1,14",
+ "1,15"
+ ],
+ [
+ {
+ "w": 1.25,
+ "w2": 1.75,
+ "l": true
+ },
+ "2,0",
+ {
+ "x": 0.5
+ },
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ "2,12",
+ {
+ "w": 2.25
+ },
+ "2,14",
+ "2,15"
+ ],
+ [
+ {
+ "w": 2.25
+ },
+ "3,0",
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ "3,11",
+ {
+ "w": 1.75
+ },
+ "3,13",
+ "3,14",
+ "3,15"
+ ],
+ [
+ {
+ "w": 1.5
+ },
+ "4,0",
+ "4,2",
+ {
+ "w": 1.5
+ },
+ "4,3",
+ {
+ "w": 7
+ },
+ "4,7",
+ {
+ "w": 1.5
+ },
+ "4,11",
+ {
+ "x": 0.5
+ },
+ "4,13",
+ "4,14",
+ "4,15"
+ ]
+ ]
+ }
+}
\ No newline at end of file
From 6307f1a540a68dde8dd6938eeb8e112f7c404059 Mon Sep 17 00:00:00 2001
From: "Jacky@LAZYDESIGNERS"
Date: Mon, 20 Jan 2025 06:26:58 +0800
Subject: [PATCH 04/13] Add vial support for lazydesigners/kontro (#842)
Add vial support for lazydesigners/kontro
---
keyboards/lazydesigners/kontro/info.json | 56 +++++++++++++++++++
.../kontro/keymaps/default/keymap.c | 25 +++++++++
.../kontro/keymaps/vial/config.h | 13 +++++
.../kontro/keymaps/vial/keymap.c | 25 +++++++++
.../kontro/keymaps/vial/rules.mk | 2 +
.../kontro/keymaps/vial/vial.json | 15 +++++
keyboards/lazydesigners/kontro/readme.md | 18 ++++++
keyboards/lazydesigners/kontro/rules.mk | 12 ++++
8 files changed, 166 insertions(+)
create mode 100644 keyboards/lazydesigners/kontro/info.json
create mode 100644 keyboards/lazydesigners/kontro/keymaps/default/keymap.c
create mode 100644 keyboards/lazydesigners/kontro/keymaps/vial/config.h
create mode 100644 keyboards/lazydesigners/kontro/keymaps/vial/keymap.c
create mode 100644 keyboards/lazydesigners/kontro/keymaps/vial/rules.mk
create mode 100644 keyboards/lazydesigners/kontro/keymaps/vial/vial.json
create mode 100644 keyboards/lazydesigners/kontro/readme.md
create mode 100644 keyboards/lazydesigners/kontro/rules.mk
diff --git a/keyboards/lazydesigners/kontro/info.json b/keyboards/lazydesigners/kontro/info.json
new file mode 100644
index 00000000000..dedad695e5f
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/info.json
@@ -0,0 +1,56 @@
+{
+ "keyboard_name": "Kontro",
+ "manufacturer": "lazydesigners",
+ "url": "http://lazydesigners.cn",
+ "maintainer": "lazydesigners",
+ "usb": {
+ "vid": "0x4C44",
+ "pid": "0x0033",
+ "device_version": "0.0.1"
+ },
+ "processor": "STM32F072",
+ "bootloader": "stm32-dfu",
+ "diode_direction": "COL2ROW",
+ "matrix_pins": {
+ "cols": [ "B10", "A2", "F1", "F0", "C15", "C14", "C13", "B9", "B8", "B7" ],
+ "rows": [ "B13", "B14", "A3"]
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+ {"matrix": [0, 3], "x": 3, "y": 0},
+ {"matrix": [0, 4], "x": 4, "y": 0},
+ {"matrix": [0, 5], "x": 5, "y": 0},
+ {"matrix": [0, 6], "x": 6, "y": 0},
+ {"matrix": [0, 7], "x": 7, "y": 0},
+ {"matrix": [0, 8], "x": 8, "y": 0},
+ {"matrix": [0, 9], "x": 9, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1},
+ {"matrix": [1, 3], "x": 3, "y": 1},
+ {"matrix": [1, 4], "x": 4, "y": 1},
+ {"matrix": [1, 5], "x": 5, "y": 1},
+ {"matrix": [1, 6], "x": 6, "y": 1},
+ {"matrix": [1, 7], "x": 7, "y": 1},
+ {"matrix": [1, 8], "x": 8, "y": 1},
+ {"matrix": [1, 9], "x": 9, "y": 1},
+
+ {"matrix": [2, 0], "x": 0, "y": 2},
+ {"matrix": [2, 1], "x": 1, "y": 2},
+ {"matrix": [2, 2], "x": 2, "y": 2},
+ {"matrix": [2, 3], "x": 3, "y": 2},
+ {"matrix": [2, 4], "x": 4, "y": 2},
+ {"matrix": [2, 5], "x": 5, "y": 2},
+ {"matrix": [2, 6], "x": 6, "y": 2},
+ {"matrix": [2, 7], "x": 7, "y": 2},
+ {"matrix": [2, 8], "x": 8, "y": 2},
+ {"matrix": [2, 9], "x": 9, "y": 2}
+ ]
+ }
+ }
+}
diff --git a/keyboards/lazydesigners/kontro/keymaps/default/keymap.c b/keyboards/lazydesigners/kontro/keymaps/default/keymap.c
new file mode 100644
index 00000000000..bffbb2e8638
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/keymaps/default/keymap.c
@@ -0,0 +1,25 @@
+// Copyright 2024 LAZDESIGNERS
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(
+ 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_ENT,
+ KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, KC_COMM
+ ),
+ [1] = LAYOUT(
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+ [2] = LAYOUT(
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+};
+
+
diff --git a/keyboards/lazydesigners/kontro/keymaps/vial/config.h b/keyboards/lazydesigners/kontro/keymaps/vial/config.h
new file mode 100644
index 00000000000..3aff74e447f
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/keymaps/vial/config.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0xC8, 0xE6, 0x2A, 0xC9, 0xD5, 0xE6, 0x29, 0x6D}
+
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 9 }
+
+#define VIAL_COMBO_ENTRIES 32
+#define VIAL_TAP_DANCE_ENTRIES 32
+#define DYNAMIC_KEYMAP_LAYER_COUNT 8
diff --git a/keyboards/lazydesigners/kontro/keymaps/vial/keymap.c b/keyboards/lazydesigners/kontro/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..bffbb2e8638
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/keymaps/vial/keymap.c
@@ -0,0 +1,25 @@
+// Copyright 2024 LAZDESIGNERS
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(
+ 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_ENT,
+ KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_DOT, KC_UP, KC_COMM
+ ),
+ [1] = LAYOUT(
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+ [2] = LAYOUT(
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+};
+
+
diff --git a/keyboards/lazydesigners/kontro/keymaps/vial/rules.mk b/keyboards/lazydesigners/kontro/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..4f7618e9b21
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/keymaps/vial/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
diff --git a/keyboards/lazydesigners/kontro/keymaps/vial/vial.json b/keyboards/lazydesigners/kontro/keymaps/vial/vial.json
new file mode 100644
index 00000000000..799bece0be2
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/keymaps/vial/vial.json
@@ -0,0 +1,15 @@
+{
+ "matrix": {"rows": 3, "cols": 10},
+ "layouts": {
+ "labels":
+ [
+ ["Version", "Alpha","Gamma"]
+ ],
+ "keymap": [
+ ["0,0","0,1","0,2","0,3","0,4","0,5","0,6","0,7","0,8","0,9"],
+ ["1,0","1,1","1,2","1,3","1,4","1,5","1,6","1,7","1,8","1,9"],
+ ["2,0\n\n\n0,0","2,1\n\n\n0,0","2,2\n\n\n0,0","2,3\n\n\n0,0","2,4\n\n\n0,0","2,5\n\n\n0,0","2,6\n\n\n0,0","2,7\n\n\n0,0","2,8\n\n\n0,0","2,9\n\n\n0,0"],
+ [{"w":0.25,"d":true},"\n\n\n0,1","2,0\n\n\n0,1","2,1\n\n\n0,1","2,2\n\n\n0,1","2,3\n\n\n0,1",{"w":1.5},"2,4\n\n\n0,1","2,6\n\n\n0,1","2,7\n\n\n0,1","2,8\n\n\n0,1","2,9\n\n\n0,1"]
+ ]
+ }
+}
diff --git a/keyboards/lazydesigners/kontro/readme.md b/keyboards/lazydesigners/kontro/readme.md
new file mode 100644
index 00000000000..0733d9bb1e6
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/readme.md
@@ -0,0 +1,18 @@
+# Kontro
+
+A gasket mounted 30% keyboard designed and produced in 2024 by [LAZYDESIGNERS](http://lazydesigners.cn).
+
+* Keyboard Maintainer: [LAZYDESIGNERS](https://github.com/jackytrabbit)
+* Hardware Supported: Kontro Alpha and Kontro Gamma
+* Hardware Availability: Check [LAZYDESIGNERS's homepage.](http://lazydesigners.cn)
+
+Make example for this keyboard (after setting up your vial build environment):
+
+ make lazydesigners/kontro:vial
+
+Flashing example for this keyboard:
+
+ make lazydesigners/kontro:vial:flash
+
+**Reset Key:** To enter the bootloader, press the boot button and short the reset pads together on the PCB.
+
diff --git a/keyboards/lazydesigners/kontro/rules.mk b/keyboards/lazydesigners/kontro/rules.mk
new file mode 100644
index 00000000000..2c43a6d05d7
--- /dev/null
+++ b/keyboards/lazydesigners/kontro/rules.mk
@@ -0,0 +1,12 @@
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = yes # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+NKRO_ENABLE = yes # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+AUDIO_ENABLE = no # Audio output
\ No newline at end of file
From 21f5bc9c655a959384d8bb0e8f04cd3415b2fdc5 Mon Sep 17 00:00:00 2001
From: Rorian04 <114996287+Rorian04@users.noreply.github.com>
Date: Sun, 26 Jan 2025 03:51:27 +0530
Subject: [PATCH 05/13] added readme file for rorian04_kbd keyboard (#843)
* added readme file for rorian05_kbd
* Update readme.md
---
keyboards/rorian04_kbd/readme.md | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 keyboards/rorian04_kbd/readme.md
diff --git a/keyboards/rorian04_kbd/readme.md b/keyboards/rorian04_kbd/readme.md
new file mode 100644
index 00000000000..cc742c0a5da
--- /dev/null
+++ b/keyboards/rorian04_kbd/readme.md
@@ -0,0 +1,26 @@
+# rorian04_kbd
+
+
+
+A one hand keyboard with multiple layers (vial only)
+
+* Keyboard Maintainer: [Rorian04](https://github.com/Rorian04)
+* Hardware Supported: waveshare rp2040
+
+
+Make example for this keyboard (after setting up your build environment):
+
+ qmk compile -kb rorian04_kd -km vial
+
+Flashing example for this keyboard:
+
+Waveshare rp2040 has a inbuilt bootloader so you just copy paste the ".uf2" file into the keyboard drive while bootmode is active.
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 2 ways:
+
+* **Reset button in mcu**: Hold down both the buttons in the rp2040 mcu while plugging in
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
From 121f85c460f1e83bb7654276ea3a27b09a5c5942 Mon Sep 17 00:00:00 2001
From: richud
Date: Sat, 25 Jan 2025 22:21:57 +0000
Subject: [PATCH 06/13] Add support for K1 Pro ISO RGB, bluetooth delete, USB
cable only. (#838)
---
keyboards/keychron/k1_pro/config.h | 9 +
keyboards/keychron/k1_pro/info.json | 233 ++++++++++++++++++
keyboards/keychron/k1_pro/iso/rgb/config.h | 13 +
keyboards/keychron/k1_pro/iso/rgb/info.json | 131 ++++++++++
.../k1_pro/iso/rgb/keymaps/default/keymap.c | 62 +++++
.../k1_pro/iso/rgb/keymaps/vial/config.h | 6 +
.../k1_pro/iso/rgb/keymaps/vial/keymap.c | 62 +++++
.../k1_pro/iso/rgb/keymaps/vial/rules.mk | 4 +
.../k1_pro/iso/rgb/keymaps/vial/vial.json | 227 +++++++++++++++++
keyboards/keychron/k1_pro/iso/rgb/rgb.c | 122 +++++++++
keyboards/keychron/k1_pro/iso/rgb/rules.mk | 1 +
keyboards/keychron/k1_pro/k1_pro.c | 27 ++
keyboards/keychron/k1_pro/matrix.c | 190 ++++++++++++++
keyboards/keychron/k1_pro/mcuconf.h | 23 ++
keyboards/keychron/k1_pro/readme.md | 23 ++
keyboards/keychron/k1_pro/rules.mk | 9 +
16 files changed, 1142 insertions(+)
create mode 100644 keyboards/keychron/k1_pro/config.h
create mode 100644 keyboards/keychron/k1_pro/info.json
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/config.h
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/info.json
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/keymaps/default/keymap.c
create mode 100644 keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/config.h
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/keymap.c
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/rules.mk
create mode 100644 keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/vial.json
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/rgb.c
create mode 100755 keyboards/keychron/k1_pro/iso/rgb/rules.mk
create mode 100644 keyboards/keychron/k1_pro/k1_pro.c
create mode 100644 keyboards/keychron/k1_pro/matrix.c
create mode 100644 keyboards/keychron/k1_pro/mcuconf.h
create mode 100644 keyboards/keychron/k1_pro/readme.md
create mode 100644 keyboards/keychron/k1_pro/rules.mk
diff --git a/keyboards/keychron/k1_pro/config.h b/keyboards/keychron/k1_pro/config.h
new file mode 100644
index 00000000000..14dae18d6c5
--- /dev/null
+++ b/keyboards/keychron/k1_pro/config.h
@@ -0,0 +1,9 @@
+#pragma once
+
+/* Increase I2C speed to 1000 KHz */
+#define I2C1_TIMINGR_PRESC 0U
+#define I2C1_TIMINGR_SCLDEL 3U
+#define I2C1_TIMINGR_SDADEL 0U
+#define I2C1_TIMINGR_SCLH 15U
+#define I2C1_TIMINGR_SCLL 51U
+
diff --git a/keyboards/keychron/k1_pro/info.json b/keyboards/keychron/k1_pro/info.json
new file mode 100644
index 00000000000..4b44d9d8620
--- /dev/null
+++ b/keyboards/keychron/k1_pro/info.json
@@ -0,0 +1,233 @@
+{
+ "manufacturer": "Keychron",
+ "keyboard_name": "K1 Pro",
+ "maintainer": "richud",
+ "bootloader": "stm32-dfu",
+ "diode_direction": "ROW2COL",
+ "dip_switch": {
+ "pins": ["A8"]
+ },
+ "eeprom": {
+ "wear_leveling": {
+ "backing_size": 4096
+ }
+ },
+ "build": {
+ "lto": true
+ },
+ "features": {
+ "bootmagic": true,
+ "dip_switch": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true,
+ "raw": true
+ },
+ "indicators": {
+ "_comment": "K1 Pro Rev 6: A0 is BT LED, H3 is CAPS LED",
+ "caps_lock": "H3"
+ },
+ "led_matrix": {
+ "sleep": true
+ },
+ "matrix_pins": {
+ "cols": ["C15", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null],
+ "custom": true,
+ "custom_lite": true,
+ "rows": ["B5", "B4", "B3", "A15", "A14", "A13"]
+ },
+ "matrix_size": {
+ "cols": 17,
+ "rows": 6
+ },
+ "processor": "STM32L432",
+ "url": "https://github.com/Keychron",
+ "usb": {
+ "vid": "0x3434"
+ },
+ "layouts": {
+ "LAYOUT_tkl_ansi": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 2, "y": 0},
+ {"matrix": [0, 2], "x": 3, "y": 0},
+ {"matrix": [0, 3], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+ {"matrix": [0, 5], "x": 6.5, "y": 0},
+ {"matrix": [0, 6], "x": 7.5, "y": 0},
+ {"matrix": [0, 7], "x": 8.5, "y": 0},
+ {"matrix": [0, 8], "x": 9.5, "y": 0},
+ {"matrix": [0, 9], "x": 11, "y": 0},
+ {"matrix": [0, 10], "x": 12, "y": 0},
+ {"matrix": [0, 11], "x": 13, "y": 0},
+ {"matrix": [0, 12], "x": 14, "y": 0},
+ {"matrix": [0, 14], "x": 15.25, "y": 0},
+ {"matrix": [0, 15], "x": 16.25, "y": 0},
+ {"matrix": [0, 16], "x": 17.25, "y": 0},
+ {"matrix": [1, 0], "x": 0, "y": 1.25},
+ {"matrix": [1, 1], "x": 1, "y": 1.25},
+ {"matrix": [1, 2], "x": 2, "y": 1.25},
+ {"matrix": [1, 3], "x": 3, "y": 1.25},
+ {"matrix": [1, 4], "x": 4, "y": 1.25},
+ {"matrix": [1, 5], "x": 5, "y": 1.25},
+ {"matrix": [1, 6], "x": 6, "y": 1.25},
+ {"matrix": [1, 7], "x": 7, "y": 1.25},
+ {"matrix": [1, 8], "x": 8, "y": 1.25},
+ {"matrix": [1, 9], "x": 9, "y": 1.25},
+ {"matrix": [1, 10], "x": 10, "y": 1.25},
+ {"matrix": [1, 11], "x": 11, "y": 1.25},
+ {"matrix": [1, 12], "x": 12, "y": 1.25},
+ {"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
+ {"matrix": [1, 14], "x": 15.25, "y": 1.25},
+ {"matrix": [1, 15], "x": 16.25, "y": 1.25},
+ {"matrix": [1, 16], "x": 17.25, "y": 1.25},
+ {"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
+ {"matrix": [2, 1], "x": 1.5, "y": 2.25},
+ {"matrix": [2, 2], "x": 2.5, "y": 2.25},
+ {"matrix": [2, 3], "x": 3.5, "y": 2.25},
+ {"matrix": [2, 4], "x": 4.5, "y": 2.25},
+ {"matrix": [2, 5], "x": 5.5, "y": 2.25},
+ {"matrix": [2, 6], "x": 6.5, "y": 2.25},
+ {"matrix": [2, 7], "x": 7.5, "y": 2.25},
+ {"matrix": [2, 8], "x": 8.5, "y": 2.25},
+ {"matrix": [2, 9], "x": 9.5, "y": 2.25},
+ {"matrix": [2, 10], "x": 10.5, "y": 2.25},
+ {"matrix": [2, 11], "x": 11.5, "y": 2.25},
+ {"matrix": [2, 12], "x": 12.5, "y": 2.25},
+ {"matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
+ {"matrix": [2, 14], "x": 15.25, "y": 2.25},
+ {"matrix": [2, 15], "x": 16.25, "y": 2.25},
+ {"matrix": [2, 16], "x": 17.25, "y": 2.25},
+ {"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
+ {"matrix": [3, 1], "x": 1.75, "y": 3.25},
+ {"matrix": [3, 2], "x": 2.75, "y": 3.25},
+ {"matrix": [3, 3], "x": 3.75, "y": 3.25},
+ {"matrix": [3, 4], "x": 4.75, "y": 3.25},
+ {"matrix": [3, 5], "x": 5.75, "y": 3.25},
+ {"matrix": [3, 6], "x": 6.75, "y": 3.25},
+ {"matrix": [3, 7], "x": 7.75, "y": 3.25},
+ {"matrix": [3, 8], "x": 8.75, "y": 3.25},
+ {"matrix": [3, 9], "x": 9.75, "y": 3.25},
+ {"matrix": [3, 10], "x": 10.75, "y": 3.25},
+ {"matrix": [3, 11], "x": 11.75, "y": 3.25},
+ {"matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25},
+ {"matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
+ {"matrix": [4, 2], "x": 2.25, "y": 4.25},
+ {"matrix": [4, 3], "x": 3.25, "y": 4.25},
+ {"matrix": [4, 4], "x": 4.25, "y": 4.25},
+ {"matrix": [4, 5], "x": 5.25, "y": 4.25},
+ {"matrix": [4, 6], "x": 6.25, "y": 4.25},
+ {"matrix": [4, 7], "x": 7.25, "y": 4.25},
+ {"matrix": [4, 8], "x": 8.25, "y": 4.25},
+ {"matrix": [4, 9], "x": 9.25, "y": 4.25},
+ {"matrix": [4, 10], "x": 10.25, "y": 4.25},
+ {"matrix": [4, 11], "x": 11.25, "y": 4.25},
+ {"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 2.75},
+ {"matrix": [4, 15], "x": 16.25, "y": 4.25},
+ {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
+ {"matrix": [5, 10], "x": 10, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 11], "x": 11.25, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 12], "x": 12.5, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 13], "x": 13.75, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 14], "x": 15.25, "y": 5.25},
+ {"matrix": [5, 15], "x": 16.25, "y": 5.25},
+ {"matrix": [5, 16], "x": 17.25, "y": 5.25}
+ ]
+ },
+ "LAYOUT_tkl_iso": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 2, "y": 0},
+ {"matrix": [0, 2], "x": 3, "y": 0},
+ {"matrix": [0, 3], "x": 4, "y": 0},
+ {"matrix": [0, 4], "x": 5, "y": 0},
+ {"matrix": [0, 5], "x": 6.5, "y": 0},
+ {"matrix": [0, 6], "x": 7.5, "y": 0},
+ {"matrix": [0, 7], "x": 8.5, "y": 0},
+ {"matrix": [0, 8], "x": 9.5, "y": 0},
+ {"matrix": [0, 9], "x": 11, "y": 0},
+ {"matrix": [0, 10], "x": 12, "y": 0},
+ {"matrix": [0, 11], "x": 13, "y": 0},
+ {"matrix": [0, 12], "x": 14, "y": 0},
+ {"matrix": [0, 14], "x": 15.25, "y": 0},
+ {"matrix": [0, 15], "x": 16.25, "y": 0},
+ {"matrix": [0, 16], "x": 17.25, "y": 0},
+ {"matrix": [1, 0], "x": 0, "y": 1.25},
+ {"matrix": [1, 1], "x": 1, "y": 1.25},
+ {"matrix": [1, 2], "x": 2, "y": 1.25},
+ {"matrix": [1, 3], "x": 3, "y": 1.25},
+ {"matrix": [1, 4], "x": 4, "y": 1.25},
+ {"matrix": [1, 5], "x": 5, "y": 1.25},
+ {"matrix": [1, 6], "x": 6, "y": 1.25},
+ {"matrix": [1, 7], "x": 7, "y": 1.25},
+ {"matrix": [1, 8], "x": 8, "y": 1.25},
+ {"matrix": [1, 9], "x": 9, "y": 1.25},
+ {"matrix": [1, 10], "x": 10, "y": 1.25},
+ {"matrix": [1, 11], "x": 11, "y": 1.25},
+ {"matrix": [1, 12], "x": 12, "y": 1.25},
+ {"matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
+ {"matrix": [1, 14], "x": 15.25, "y": 1.25},
+ {"matrix": [1, 15], "x": 16.25, "y": 1.25},
+ {"matrix": [1, 16], "x": 17.25, "y": 1.25},
+ {"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
+ {"matrix": [2, 1], "x": 1.5, "y": 2.25},
+ {"matrix": [2, 2], "x": 2.5, "y": 2.25},
+ {"matrix": [2, 3], "x": 3.5, "y": 2.25},
+ {"matrix": [2, 4], "x": 4.5, "y": 2.25},
+ {"matrix": [2, 5], "x": 5.5, "y": 2.25},
+ {"matrix": [2, 6], "x": 6.5, "y": 2.25},
+ {"matrix": [2, 7], "x": 7.5, "y": 2.25},
+ {"matrix": [2, 8], "x": 8.5, "y": 2.25},
+ {"matrix": [2, 9], "x": 9.5, "y": 2.25},
+ {"matrix": [2, 10], "x": 10.5, "y": 2.25},
+ {"matrix": [2, 11], "x": 11.5, "y": 2.25},
+ {"matrix": [2, 12], "x": 12.5, "y": 2.25},
+ {"matrix": [2, 14], "x": 15.25, "y": 2.25},
+ {"matrix": [2, 15], "x": 16.25, "y": 2.25},
+ {"matrix": [2, 16], "x": 17.25, "y": 2.25},
+ {"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
+ {"matrix": [3, 1], "x": 1.75, "y": 3.25},
+ {"matrix": [3, 2], "x": 2.75, "y": 3.25},
+ {"matrix": [3, 3], "x": 3.75, "y": 3.25},
+ {"matrix": [3, 4], "x": 4.75, "y": 3.25},
+ {"matrix": [3, 5], "x": 5.75, "y": 3.25},
+ {"matrix": [3, 6], "x": 6.75, "y": 3.25},
+ {"matrix": [3, 7], "x": 7.75, "y": 3.25},
+ {"matrix": [3, 8], "x": 8.75, "y": 3.25},
+ {"matrix": [3, 9], "x": 9.75, "y": 3.25},
+ {"matrix": [3, 10], "x": 10.75, "y": 3.25},
+ {"matrix": [3, 11], "x": 11.75, "y": 3.25},
+ {"matrix": [3, 13], "x": 12.75, "y": 3.25},
+ {"matrix": [2, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h": 2},
+ {"matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
+ {"matrix": [4, 1], "x": 1.25, "y": 4.25},
+ {"matrix": [4, 2], "x": 2.25, "y": 4.25},
+ {"matrix": [4, 3], "x": 3.25, "y": 4.25},
+ {"matrix": [4, 4], "x": 4.25, "y": 4.25},
+ {"matrix": [4, 5], "x": 5.25, "y": 4.25},
+ {"matrix": [4, 6], "x": 6.25, "y": 4.25},
+ {"matrix": [4, 7], "x": 7.25, "y": 4.25},
+ {"matrix": [4, 8], "x": 8.25, "y": 4.25},
+ {"matrix": [4, 9], "x": 9.25, "y": 4.25},
+ {"matrix": [4, 10], "x": 10.25, "y": 4.25},
+ {"matrix": [4, 11], "x": 11.25, "y": 4.25},
+ {"matrix": [4, 13], "x": 12.25, "y": 4.25, "w": 2.75},
+ {"matrix": [4, 15], "x": 16.25, "y": 4.25},
+ {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 6], "x": 3.75, "y": 5.25, "w": 6.25},
+ {"matrix": [5, 10], "x": 10, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 11], "x": 11.25, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 12], "x": 12.5, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 13], "x": 13.75, "y": 5.25, "w": 1.25},
+ {"matrix": [5, 14], "x": 15.25, "y": 5.25},
+ {"matrix": [5, 15], "x": 16.25, "y": 5.25},
+ {"matrix": [5, 16], "x": 17.25, "y": 5.25}
+ ]
+ }
+ }
+}
diff --git a/keyboards/keychron/k1_pro/iso/rgb/config.h b/keyboards/keychron/k1_pro/iso/rgb/config.h
new file mode 100755
index 00000000000..4300ffc9309
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/config.h
@@ -0,0 +1,13 @@
+#pragma once
+
+/* Sonix RGB Matrix Driver Configuration */
+#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_VDDIO
+#define SNLED27351_I2C_ADDRESS_2 SNLED27351_I2C_ADDRESS_GND
+
+/* Use first 9 channels of LED driver */
+#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
+
+/* Set LED driver current */
+#define SNLED27351_CURRENT_TUNE \
+ { 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14, 0x14 }
+
diff --git a/keyboards/keychron/k1_pro/iso/rgb/info.json b/keyboards/keychron/k1_pro/iso/rgb/info.json
new file mode 100755
index 00000000000..77e1b8d1d3f
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/info.json
@@ -0,0 +1,131 @@
+{
+ "usb": {
+ "pid": "0x0211",
+ "device_version": "1.0.2"
+ },
+ "features": {
+ "rgb_matrix": true,
+ },
+ "rgb_matrix": {
+ "driver": "snled27351",
+ "sleep": true,
+ "animations": {
+ "breathing": true,
+ "band_spiral_val": true,
+ "cycle_all": true,
+ "cycle_left_right": true,
+ "cycle_up_down": true,
+ "rainbow_moving_chevron": true,
+ "cycle_out_in": true,
+ "cycle_out_in_dual": true,
+ "cycle_pinwheel": true,
+ "cycle_spiral": true,
+ "dual_beacon": true,
+ "rainbow_beacon": true,
+ "jellybean_raindrops": true,
+ "pixel_rain": true,
+ "typing_heatmap": true,
+ "digital_rain": true,
+ "solid_reactive_simple": true,
+ "solid_reactive_multiwide": true,
+ "solid_reactive_multinexus": true,
+ "splash": true,
+ "solid_splash": true
+ },
+ "layout": [
+ {"matrix":[0, 0], "flags":1, "x":0, "y":0},
+ {"matrix":[0, 1], "flags":1, "x":26, "y":0},
+ {"matrix":[0, 2], "flags":1, "x":39, "y":0},
+ {"matrix":[0, 3], "flags":1, "x":52, "y":0},
+ {"matrix":[0, 4], "flags":1, "x":65, "y":0},
+ {"matrix":[0, 5], "flags":1, "x":85, "y":0},
+ {"matrix":[0, 6], "flags":1, "x":98, "y":0},
+ {"matrix":[0, 7], "flags":1, "x":111, "y":0},
+ {"matrix":[0, 8], "flags":1, "x":124, "y":0},
+ {"matrix":[0, 9], "flags":1, "x":144, "y":0},
+ {"matrix":[0, 10], "flags":1, "x":157, "y":0},
+ {"matrix":[0, 11], "flags":1, "x":170, "y":0},
+ {"matrix":[0, 12], "flags":1, "x":183, "y":0},
+ {"matrix":[0, 14], "flags":1, "x":197, "y":0},
+ {"matrix":[0, 15], "flags":1, "x":210, "y":0},
+ {"matrix":[0, 16], "flags":1, "x":224, "y":0},
+
+ {"matrix":[1, 0], "flags":1, "x":0, "y":13},
+ {"matrix":[1, 1], "flags":8, "x":13, "y":13},
+ {"matrix":[1, 2], "flags":8, "x":26, "y":13},
+ {"matrix":[1, 3], "flags":8, "x":39, "y":13},
+ {"matrix":[1, 4], "flags":4, "x":52, "y":13},
+ {"matrix":[1, 5], "flags":4, "x":65, "y":13},
+ {"matrix":[1, 6], "flags":4, "x":78, "y":13},
+ {"matrix":[1, 7], "flags":4, "x":91, "y":13},
+ {"matrix":[1, 8], "flags":4, "x":104, "y":13},
+ {"matrix":[1, 9], "flags":4, "x":117, "y":13},
+ {"matrix":[1, 10], "flags":4, "x":130, "y":13},
+ {"matrix":[1, 11], "flags":4, "x":144, "y":13},
+ {"matrix":[1, 12], "flags":4, "x":157, "y":13},
+ {"matrix":[1, 13], "flags":1, "x":176, "y":13},
+ {"matrix":[1, 14], "flags":1, "x":197, "y":13},
+ {"matrix":[1, 15], "flags":1, "x":210, "y":13},
+ {"matrix":[1, 16], "flags":1, "x":224, "y":13},
+
+ {"matrix":[2, 0], "flags":1, "x":3, "y":26},
+ {"matrix":[2, 1], "flags":4, "x":19, "y":26},
+ {"matrix":[2, 2], "flags":4, "x":32, "y":26},
+ {"matrix":[2, 3], "flags":4, "x":45, "y":26},
+ {"matrix":[2, 4], "flags":4, "x":58, "y":26},
+ {"matrix":[2, 5], "flags":4, "x":72, "y":26},
+ {"matrix":[2, 6], "flags":4, "x":85, "y":26},
+ {"matrix":[2, 7], "flags":4, "x":98, "y":26},
+ {"matrix":[2, 8], "flags":4, "x":111, "y":26},
+ {"matrix":[2, 9], "flags":4, "x":124, "y":26},
+ {"matrix":[2, 10], "flags":4, "x":137, "y":26},
+ {"matrix":[2, 11], "flags":4, "x":150, "y":26},
+ {"matrix":[2, 12], "flags":1, "x":163, "y":26},
+ {"matrix":[2, 14], "flags":1, "x":197, "y":26},
+ {"matrix":[2, 15], "flags":1, "x":210, "y":26},
+ {"matrix":[2, 16], "flags":1, "x":224, "y":26},
+
+ {"matrix":[3, 0], "flags":8, "x":4, "y":38},
+ {"matrix":[3, 1], "flags":4, "x":22, "y":38},
+ {"matrix":[3, 2], "flags":4, "x":36, "y":38},
+ {"matrix":[3, 3], "flags":4, "x":49, "y":38},
+ {"matrix":[3, 4], "flags":4, "x":62, "y":38},
+ {"matrix":[3, 5], "flags":4, "x":75, "y":38},
+ {"matrix":[3, 6], "flags":4, "x":88, "y":38},
+ {"matrix":[3, 7], "flags":4, "x":101, "y":38},
+ {"matrix":[3, 8], "flags":4, "x":114, "y":38},
+ {"matrix":[3, 9], "flags":4, "x":127, "y":38},
+ {"matrix":[3, 10], "flags":4, "x":140, "y":38},
+ {"matrix":[3, 11], "flags":4, "x":153, "y":38},
+ {"matrix":[3, 13], "flags":1, "x":167, "y":38},
+ {"matrix":[2, 13], "flags":1, "x":182, "y":33},
+
+ {"matrix":[4, 0], "flags":1, "x":8, "y":51},
+ {"matrix":[4, 1], "flags":1, "x":16, "y":51},
+ {"matrix":[4, 2], "flags":4, "x":29, "y":51},
+ {"matrix":[4, 3], "flags":4, "x":42, "y":51},
+ {"matrix":[4, 4], "flags":4, "x":55, "y":51},
+ {"matrix":[4, 5], "flags":4, "x":68, "y":51},
+ {"matrix":[4, 6], "flags":4, "x":81, "y":51},
+ {"matrix":[4, 7], "flags":4, "x":94, "y":51},
+ {"matrix":[4, 8], "flags":4, "x":108, "y":51},
+ {"matrix":[4, 9], "flags":4, "x":121, "y":51},
+ {"matrix":[4, 10], "flags":4, "x":134, "y":51},
+ {"matrix":[4, 11], "flags":4, "x":147, "y":51},
+ {"matrix":[4, 13], "flags":1, "x":171, "y":51},
+ {"matrix":[4, 15], "flags":1, "x":210, "y":51},
+
+ {"matrix":[5, 0], "flags":1, "x":1, "y":64},
+ {"matrix":[5, 1], "flags":1, "x":18, "y":64},
+ {"matrix":[5, 2], "flags":1, "x":34, "y":64},
+ {"matrix":[5, 6], "flags":4, "x":83, "y":64},
+ {"matrix":[5, 10], "flags":1, "x":132, "y":64},
+ {"matrix":[5, 11], "flags":1, "x":148, "y":64},
+ {"matrix":[5, 12], "flags":1, "x":165, "y":64},
+ {"matrix":[5, 13], "flags":1, "x":181, "y":64},
+ {"matrix":[5, 14], "flags":1, "x":197, "y":64},
+ {"matrix":[5, 15], "flags":1, "x":210, "y":64},
+ {"matrix":[5, 16], "flags":1, "x":224, "y":64}
+ ]
+ }
+}
diff --git a/keyboards/keychron/k1_pro/iso/rgb/keymaps/default/keymap.c b/keyboards/keychron/k1_pro/iso/rgb/keymaps/default/keymap.c
new file mode 100755
index 00000000000..d95372bcc13
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/keymaps/default/keymap.c
@@ -0,0 +1,62 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * 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 layers{
+ MAC_BASE,
+ MAC_FN,
+ WIN_BASE,
+ WIN_FN,
+};
+
+
+
+// clang-format off
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [MAC_BASE] = LAYOUT_tkl_iso(
+ KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_NUHS, 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_RSFT, KC_UP,
+ KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, KC_ROPT, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
+
+ [MAC_FN] = LAYOUT_tkl_iso(
+ _______, 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_F13, KC_F14, KC_F15,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
+
+ [WIN_BASE] = LAYOUT_tkl_iso(
+ KC_ESC, 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_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_NUHS, 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_RSFT, KC_UP,
+ KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
+
+ [WIN_FN] = LAYOUT_tkl_iso(
+ _______, KC_BRID, KC_BRIU, _______, _______, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, RGB_MOD, RGB_RMOD, RGB_TOG,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
+};
diff --git a/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/config.h b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/config.h
new file mode 100644
index 00000000000..64e34cd2adb
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/config.h
@@ -0,0 +1,6 @@
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0x4A, 0x55, 0x4E, 0x11, 0x2D, 0xCB, 0x3E, 0x05}
+
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 13 }
diff --git a/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/keymap.c b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/keymap.c
new file mode 100755
index 00000000000..e9433a9c28d
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/keymap.c
@@ -0,0 +1,62 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * 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 layers{
+ MAC_BASE,
+ MAC_FN,
+ WIN_BASE,
+ WIN_FN,
+};
+
+
+
+// clang-format off
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [MAC_BASE] = LAYOUT_tkl_iso(
+ KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_NUHS, 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_RSFT, KC_UP,
+ KC_LCTL, KC_LOPT, KC_LCMD, KC_SPC, KC_RCMD, KC_ROPT, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
+
+ [MAC_FN] = LAYOUT_tkl_iso(
+ QK_BOOT, 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_F13, KC_F14, KC_F15,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EE_CLR, QK_RBT, _______,
+ _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
+
+ [WIN_BASE] = LAYOUT_tkl_iso(
+ KC_ESC, 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_PSCR, KC_SCRL, KC_PAUS,
+ KC_GRV, 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_INS, KC_HOME, KC_PGUP,
+ 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_DEL, KC_END, KC_PGDN,
+ 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_NUHS, 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_RSFT, KC_UP,
+ KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
+
+ [WIN_FN] = LAYOUT_tkl_iso(
+ QK_BOOT, KC_BRID, KC_BRIU, _______, _______, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, RGB_MOD, RGB_RMOD, RGB_TOG,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, _______, _______, _______, _______, _______, _______, _______, EE_CLR, QK_RBT, _______,
+ _______, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
+};
diff --git a/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/rules.mk b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/rules.mk
new file mode 100755
index 00000000000..ae845baec3b
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/rules.mk
@@ -0,0 +1,4 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
+VIALRGB_ENABLE = yes
+
diff --git a/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/vial.json b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/vial.json
new file mode 100644
index 00000000000..83bad6724aa
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/keymaps/vial/vial.json
@@ -0,0 +1,227 @@
+{
+ "name": "Keychron K1 Pro",
+ "vendorId": "0x3434",
+ "productId": "0x0211",
+ "lighting": "vialrgb",
+ "matrix": {
+ "rows": 6,
+ "cols": 17
+ },
+ "layouts": {
+ "keymap": [
+ [
+ {
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "x": 1,
+ "c": "#cccccc"
+ },
+ "0,1",
+ "0,2",
+ "0,3",
+ "0,4",
+ {
+ "x": 0.5,
+ "c": "#aaaaaa"
+ },
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ {
+ "x": 0.5,
+ "c": "#cccccc"
+ },
+ "0,9",
+ "0,10",
+ "0,11",
+ "0,12",
+ {
+ "x": 0.25,
+ "c": "#aaaaaa"
+ },
+ "0,14",
+ "0,15",
+ "0,16"
+ ],
+ [
+ {
+ "y": 0.25,
+ "c": "#aaaaaa"
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ {
+ "w": 2,
+ "c": "#aaaaaa"
+ },
+ "1,13",
+ {
+ "x": 0.25
+ },
+ "1,14",
+ "1,15",
+ "1,16"
+ ],
+ [
+ {
+ "w": 1.5,
+ "c": "#aaaaaa"
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,1",
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ "2,12",
+ {
+ "x": 0.25,
+ "w": 1.25,
+ "h": 2,
+ "x2": -0.25,
+ "w2": 1.5,
+ "h2": 1,
+ "c": "#777777"
+ },
+ "2,13",
+ {
+ "c": "#aaaaaa"
+ },
+ {
+ "x": 0.25
+ },
+ "2,14",
+ "2,15",
+ "2,16"
+ ],
+ [
+ {
+ "w": 1.75,
+ "c": "#aaaaaa"
+ },
+ "3,0",
+ {
+ "c": "#cccccc"
+ },
+ "3,1",
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ "3,11",
+ {
+ "c": "#aaaaaa"
+ },
+ "3,13"
+ ],
+ [
+ {
+ "w": 1.25,
+ "c": "#aaaaaa"
+ },
+ "4,0",
+ "4,1",
+ {
+ "c": "#cccccc"
+ },
+ "4,2",
+ "4,3",
+ "4,4",
+ "4,5",
+ "4,6",
+ "4,7",
+ "4,8",
+ "4,9",
+ "4,10",
+ "4,11",
+ {
+ "w": 2.75,
+ "c": "#aaaaaa"
+ },
+ "4,13",
+ {
+ "x": 1.25,
+ "c": "#cccccc"
+ },
+ "4,15"
+ ],
+ [
+ {
+ "w": 1.25,
+ "c": "#aaaaaa"
+ },
+ "5,0",
+ {
+ "w": 1.25
+ },
+ "5,1",
+ {
+ "w": 1.25
+ },
+ "5,2",
+ {
+ "w": 6.25,
+ "c": "#cccccc"
+ },
+ "5,6",
+ {
+ "w": 1.25,
+ "c": "#aaaaaa"
+ },
+ "5,10",
+ {
+ "w": 1.25
+ },
+ "5,11",
+ {
+ "w": 1.25
+ },
+ "5,12",
+ {
+ "w": 1.25,
+ "c": "#aaaaaa"
+ },
+ "5,13",
+ {
+ "x": 0.25,
+ "c": "#cccccc"
+ },
+ "5,14",
+ "5,15",
+ "5,16"
+ ]
+ ]
+ }
+}
+
diff --git a/keyboards/keychron/k1_pro/iso/rgb/rgb.c b/keyboards/keychron/k1_pro/iso/rgb/rgb.c
new file mode 100755
index 00000000000..7cf35a7ea36
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/rgb.c
@@ -0,0 +1,122 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * 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 "quantum.h"
+
+
+#ifdef RGB_MATRIX_ENABLE
+const snled27351_led_t PROGMEM g_snled27351_leds[SNLED27351_LED_COUNT] = {
+/* Refer to SNLED27351 manual for these locations
+ * driver
+ * | R location
+ * | | G location
+ * | | | B location
+ * | | | | */
+ {0, I_1, G_1, H_1},
+ {0, I_2, G_2, H_2},
+ {0, I_3, G_3, H_3},
+ {0, I_4, G_4, H_4},
+ {0, I_5, G_5, H_5},
+ {0, I_6, G_6, H_6},
+ {0, I_7, G_7, H_7},
+ {0, I_8, G_8, H_8},
+ {0, I_9, G_9, H_9},
+ {0, I_10, G_10, H_10},
+ {0, I_11, G_11, H_11},
+ {0, I_12, G_12, H_12},
+ {0, I_13, G_13, H_13},
+ {0, I_15, G_15, H_15},
+ {0, I_16, G_16, H_16},
+ {1, F_8, D_8, E_8},
+
+ {0, F_1, D_1, E_1},
+ {0, F_2, D_2, E_2},
+ {0, F_3, D_3, E_3},
+ {0, F_4, D_4, E_4},
+ {0, F_5, D_5, E_5},
+ {0, F_6, D_6, E_6},
+ {0, F_7, D_7, E_7},
+ {0, F_8, D_8, E_8},
+ {0, F_9, D_9, E_9},
+ {0, F_10, D_10, E_10},
+ {0, F_11, D_11, E_11},
+ {0, F_12, D_12, E_12},
+ {0, F_13, D_13, E_13},
+ {0, F_14, D_14, E_14},
+ {0, F_15, D_15, E_15},
+ {0, F_16, D_16, E_16},
+ {1, F_9, D_9, E_9},
+
+ {0, A_1, C_1, B_1},
+ {0, A_2, C_2, B_2},
+ {0, A_3, C_3, B_3},
+ {0, A_4, C_4, B_4},
+ {0, A_5, C_5, B_5},
+ {0, A_6, C_6, B_6},
+ {0, A_7, C_7, B_7},
+ {0, A_8, C_8, B_8},
+ {0, A_9, C_9, B_9},
+ {0, A_10, C_10, B_10},
+ {0, A_11, C_11, B_11},
+ {0, A_12, C_12, B_12},
+ {0, A_13, C_13, B_13},
+ {0, A_15, C_15, B_15},
+ {0, A_16, C_16, B_16},
+ {1, F_6, D_6, E_6},
+
+ {1, I_1, G_1, H_1},
+ {1, I_2, G_2, H_2},
+ {1, I_3, G_3, H_3},
+ {1, I_4, G_4, H_4},
+ {1, I_5, G_5, H_5},
+ {1, I_6, G_6, H_6},
+ {1, I_7, G_7, H_7},
+ {1, I_8, G_8, H_8},
+ {1, I_9, G_9, H_9},
+ {1, I_10, G_10, H_10},
+ {1, I_11, G_11, H_11},
+ {1, I_12, G_12, H_12},
+ {1, I_14, G_14, H_14},
+ {0, A_14, C_14, B_14},
+
+ {1, C_1, A_1, B_1},
+ {1, C_2, A_2, B_2},
+ {1, C_3, A_3, B_3},
+ {1, C_4, A_4, B_4},
+ {1, C_5, A_5, B_5},
+ {1, C_6, A_6, B_6},
+ {1, C_7, A_7, B_7},
+ {1, C_8, A_8, B_8},
+ {1, C_9, A_9, B_9},
+ {1, C_10, A_10, B_10},
+ {1, C_11, A_11, B_11},
+ {1, C_12, A_12, B_12},
+ {1, C_14, A_14, B_14},
+ {1, C_16, A_16, B_16},
+
+ {1, F_1, D_1, E_1},
+ {1, F_2, D_2, E_2},
+ {1, F_3, D_3, E_3},
+ {1, F_7, D_7, E_7},
+ {1, F_11, D_11, E_11},
+ {1, F_12, D_12, E_12},
+ {1, F_13, D_13, E_13},
+ {1, F_14, D_14, E_14},
+ {1, F_15, D_15, E_15},
+ {1, F_16, D_16, E_16},
+ {1, C_15, A_15, B_15}
+};
+#endif
diff --git a/keyboards/keychron/k1_pro/iso/rgb/rules.mk b/keyboards/keychron/k1_pro/iso/rgb/rules.mk
new file mode 100755
index 00000000000..6e7633bfe01
--- /dev/null
+++ b/keyboards/keychron/k1_pro/iso/rgb/rules.mk
@@ -0,0 +1 @@
+# This file intentionally left blank
diff --git a/keyboards/keychron/k1_pro/k1_pro.c b/keyboards/keychron/k1_pro/k1_pro.c
new file mode 100644
index 00000000000..7103218a434
--- /dev/null
+++ b/keyboards/keychron/k1_pro/k1_pro.c
@@ -0,0 +1,27 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * 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 "quantum.h"
+
+bool dip_switch_update_kb(uint8_t index, bool active) {
+ if (!dip_switch_update_user(index, active)) {
+ return false;
+ }
+ if (index == 0) {
+ default_layer_set(1UL << (active ? 0 : 2));
+ }
+ return true;
+}
diff --git a/keyboards/keychron/k1_pro/matrix.c b/keyboards/keychron/k1_pro/matrix.c
new file mode 100644
index 00000000000..1ef3f960503
--- /dev/null
+++ b/keyboards/keychron/k1_pro/matrix.c
@@ -0,0 +1,190 @@
+/* Copyright 2023 @ Keychron (https://www.keychron.com)
+ *
+ * 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 "quantum.h"
+
+#define HC595_STCP B0
+#define HC595_SHCP A1
+#define HC595_DS A7
+
+#define DIRECT_COL_NUM 1
+
+pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
+pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
+
+static inline uint8_t readMatrixPin(pin_t pin) {
+ if (pin != NO_PIN) {
+ return readPin(pin);
+ } else {
+ return 1;
+ }
+}
+
+static inline void setPinOutput_writeLow(pin_t pin) {
+ setPinOutput(pin);
+ writePinLow(pin);
+}
+
+static inline void setPinOutput_writeHigh(pin_t pin) {
+ setPinOutput(pin);
+ writePinHigh(pin);
+}
+
+static inline void HC595_delay(uint16_t n) {
+ while (n-- > 0) {
+ asm volatile("nop" ::: "memory");
+ }
+}
+
+static void HC595_output(uint16_t data) {
+ uint8_t n = 1;
+ uint8_t i;
+
+ for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
+ writePinLow(HC595_SHCP);
+ if (data & 0x1) {
+ writePinHigh(HC595_DS);
+ } else {
+ writePinLow(HC595_DS);
+ }
+ HC595_delay(n);
+ writePinHigh(HC595_SHCP);
+ HC595_delay(n);
+
+ data = data >> 1;
+ }
+ writePinLow(HC595_STCP);
+ HC595_delay(n);
+ writePinHigh(HC595_STCP);
+}
+
+static void HC595_output_bit(uint16_t data) {
+ uint8_t n = 1;
+
+ writePinLow(HC595_SHCP);
+ if (data & 0x1) {
+ writePinHigh(HC595_DS);
+ } else {
+ writePinLow(HC595_DS);
+ }
+ HC595_delay(n);
+
+ writePinHigh(HC595_SHCP);
+ HC595_delay(n);
+
+ writePinLow(HC595_STCP);
+ HC595_delay(n);
+ writePinHigh(HC595_STCP);
+}
+
+static void select_col(uint8_t col) {
+ if (col < DIRECT_COL_NUM) {
+ setPinOutput_writeLow(col_pins[col]);
+ } else {
+ if (col == DIRECT_COL_NUM) {
+ HC595_output_bit(0x00);
+ }
+ }
+}
+
+static void unselect_col(uint8_t col) {
+ if (col < DIRECT_COL_NUM) {
+#ifdef MATRIX_UNSELECT_DRIVE_HIGH
+ setPinOutput_writeHigh(col_pins[col]);
+#else
+ setPinInputHigh(col_pins[col]);
+#endif
+ } else {
+ HC595_output_bit(0x01);
+ }
+}
+
+static void unselect_cols(void) {
+ for (uint8_t x = 0; x < MATRIX_COLS; x++) {
+ if (x < DIRECT_COL_NUM) {
+#ifdef MATRIX_UNSELECT_DRIVE_HIGH
+ setPinOutput_writeHigh(col_pins[x]);
+#else
+ setPinInputHigh(col_pins[x]);
+#endif
+ } else {
+ if (x == DIRECT_COL_NUM) HC595_output(0xFFFF);
+ break;
+ }
+ }
+}
+
+void select_all_cols(void) {
+ for (uint8_t x = 0; x < MATRIX_COLS; x++) {
+ if (x < DIRECT_COL_NUM) {
+ setPinOutput_writeLow(col_pins[x]);
+ } else {
+ if (x == DIRECT_COL_NUM) HC595_output(0x0000);
+ break;
+ }
+ }
+}
+
+static void matrix_read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col, matrix_row_t row_shifter) {
+ // Select col
+ select_col(current_col);
+ HC595_delay(200);
+
+ // For each row...
+ for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) {
+ // Check row pin state
+ if (readMatrixPin(row_pins[row_index]) == 0) {
+ // Pin LO, set col bit
+ current_matrix[row_index] |= row_shifter;
+ } else {
+ // Pin HI, clear col bit
+ current_matrix[row_index] &= ~row_shifter;
+ }
+ }
+
+ // Unselect col
+ unselect_col(current_col);
+ HC595_delay(200); // wait for all Row signals to go HIGH
+}
+
+void matrix_init_custom(void) {
+ setPinOutput(HC595_DS);
+ setPinOutput(HC595_STCP);
+ setPinOutput(HC595_SHCP);
+
+ for (uint8_t x = 0; x < MATRIX_ROWS; x++) {
+ if (row_pins[x] != NO_PIN) {
+ setPinInputHigh(row_pins[x]);
+ }
+ }
+
+ unselect_cols();
+}
+
+bool matrix_scan_custom(matrix_row_t current_matrix[]) {
+ matrix_row_t curr_matrix[MATRIX_ROWS] = {0};
+
+ // Set col, read rows
+ matrix_row_t row_shifter = MATRIX_ROW_SHIFTER;
+ for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++, row_shifter <<= 1) {
+ matrix_read_rows_on_col(curr_matrix, current_col, row_shifter);
+ }
+
+ bool changed = memcmp(current_matrix, curr_matrix, sizeof(curr_matrix)) != 0;
+ if (changed) memcpy(current_matrix, curr_matrix, sizeof(curr_matrix));
+
+ return changed;
+}
diff --git a/keyboards/keychron/k1_pro/mcuconf.h b/keyboards/keychron/k1_pro/mcuconf.h
new file mode 100644
index 00000000000..6f8914d372b
--- /dev/null
+++ b/keyboards/keychron/k1_pro/mcuconf.h
@@ -0,0 +1,23 @@
+/* Copyright 2020 QMK
+ *
+ * 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
+
+#include_next
+
+#undef STM32_I2C_USE_I2C1
+#define STM32_I2C_USE_I2C1 TRUE
+
diff --git a/keyboards/keychron/k1_pro/readme.md b/keyboards/keychron/k1_pro/readme.md
new file mode 100644
index 00000000000..104ed3a0bba
--- /dev/null
+++ b/keyboards/keychron/k1_pro/readme.md
@@ -0,0 +1,23 @@
+# Keychron K1 Pro
+
+
+
+A customizable 80% TKL keyboard.
+
+* Keyboard Maintainer: [Keychron](https://github.com/keychron)
+* Hardware Supported: Keychron K1 Pro
+* Hardware Availability: [Keychron K1 Pro QMK/VIA Wireless Custom Mechanical Keyboard](https://www.keychron.com/products/keychron-k1-pro-qmk-via-wireless-custom-mechanical-keyboard)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make keychron/k1_pro/iso/rgb:vial
+
+
+Flashing example for this keyboard:
+
+
+ make keychron/k1_pro/iso/rgb:vial:flash
+
+**Reset Key**: Connect the USB cable, toggle mode switch to "Off", hold down the *Esc* key or reset button underneath space bar, then toggle then switch to "Cable".
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/keychron/k1_pro/rules.mk b/keyboards/keychron/k1_pro/rules.mk
new file mode 100644
index 00000000000..9c5b20fe3b2
--- /dev/null
+++ b/keyboards/keychron/k1_pro/rules.mk
@@ -0,0 +1,9 @@
+# Build Options
+
+# Enter lower-power sleep mode when on the ChibiOS idle thread
+OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
+
+# custom keyboard matrix
+SRC += matrix.c
+
+
From f01f62f4b93459db27619ff176ada7509a9a9936 Mon Sep 17 00:00:00 2001
From: kbd0 <108237598+kbd0@users.noreply.github.com>
Date: Sat, 25 Jan 2025 17:22:21 -0500
Subject: [PATCH 07/13] add keyboard kbd0/curve0/60_ansi (#834)
* add keyboard kbd0/curve0/60_ansi
* Update vial.json
---
keyboards/kbd0/curve0/60_ansi/keyboard.json | 95 +++++++++++++++++++
.../60_ansi/keymaps/default/keymap.json | 22 +++++
.../kbd0/curve0/60_ansi/keymaps/vial/config.h | 8 ++
.../kbd0/curve0/60_ansi/keymaps/vial/keymap.c | 35 +++++++
.../kbd0/curve0/60_ansi/keymaps/vial/rules.mk | 2 +
.../curve0/60_ansi/keymaps/vial/vial.json | 35 +++++++
keyboards/kbd0/curve0/60_ansi/readme.md | 27 ++++++
7 files changed, 224 insertions(+)
create mode 100644 keyboards/kbd0/curve0/60_ansi/keyboard.json
create mode 100644 keyboards/kbd0/curve0/60_ansi/keymaps/default/keymap.json
create mode 100644 keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
create mode 100644 keyboards/kbd0/curve0/60_ansi/keymaps/vial/keymap.c
create mode 100644 keyboards/kbd0/curve0/60_ansi/keymaps/vial/rules.mk
create mode 100644 keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
create mode 100644 keyboards/kbd0/curve0/60_ansi/readme.md
diff --git a/keyboards/kbd0/curve0/60_ansi/keyboard.json b/keyboards/kbd0/curve0/60_ansi/keyboard.json
new file mode 100644
index 00000000000..7663870a692
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keyboard.json
@@ -0,0 +1,95 @@
+{
+ "manufacturer": "kbd0",
+ "keyboard_name": "kbd0/curve0/60_ansi",
+ "maintainer": "kbd0",
+ "bootloader": "rp2040",
+ "bootloader_instructions": "Hold the top left key of the keyboard while plugging in the keyboard",
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
+ "matrix_pins": {
+ "cols": ["GP6", "GP5", "GP4", "GP7", "GP10", "GP9", "GP11", "GP12", "GP13", "GP14", "GP25", "GP20", "GP19", "GP18", "GP16"],
+ "rows": ["GP23", "GP22", "GP21", "GP24", "GP17"]
+ },
+ "processor": "RP2040",
+ "url": "https://kbd0.com/item/curve0",
+ "usb": {
+ "device_version": "1.0.0",
+ "pid": "0xC000",
+ "vid": "0xCBD0"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+ {"matrix": [0, 3], "x": 3, "y": 0},
+ {"matrix": [0, 4], "x": 4, "y": 0},
+ {"matrix": [0, 5], "x": 5, "y": 0},
+ {"matrix": [0, 6], "x": 6, "y": 0},
+ {"matrix": [0, 7], "x": 7, "y": 0},
+ {"matrix": [0, 8], "x": 8, "y": 0},
+ {"matrix": [0, 9], "x": 9, "y": 0},
+ {"matrix": [0, 10], "x": 10, "y": 0},
+ {"matrix": [0, 11], "x": 11, "y": 0},
+ {"matrix": [0, 12], "x": 12, "y": 0},
+ {"matrix": [0, 13], "x": 13, "y": 0},
+ {"matrix": [0, 14], "x": 14, "y": 0},
+ {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
+ {"matrix": [1, 1], "x": 1.5, "y": 1},
+ {"matrix": [1, 2], "x": 2.5, "y": 1},
+ {"matrix": [1, 3], "x": 3.5, "y": 1},
+ {"matrix": [1, 4], "x": 4.5, "y": 1},
+ {"matrix": [1, 5], "x": 5.5, "y": 1},
+ {"matrix": [1, 6], "x": 6.5, "y": 1},
+ {"matrix": [1, 7], "x": 7.5, "y": 1},
+ {"matrix": [1, 8], "x": 8.5, "y": 1},
+ {"matrix": [1, 9], "x": 9.5, "y": 1},
+ {"matrix": [1, 10], "x": 10.5, "y": 1},
+ {"matrix": [1, 11], "x": 11.5, "y": 1},
+ {"matrix": [1, 12], "x": 12.5, "y": 1},
+ {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
+ {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
+ {"matrix": [2, 1], "x": 1.75, "y": 2},
+ {"matrix": [2, 2], "x": 2.75, "y": 2},
+ {"matrix": [2, 3], "x": 3.75, "y": 2},
+ {"matrix": [2, 4], "x": 4.75, "y": 2},
+ {"matrix": [2, 5], "x": 5.75, "y": 2},
+ {"matrix": [2, 6], "x": 6.75, "y": 2},
+ {"matrix": [2, 7], "x": 7.75, "y": 2},
+ {"matrix": [2, 8], "x": 8.75, "y": 2},
+ {"matrix": [2, 9], "x": 9.75, "y": 2},
+ {"matrix": [2, 10], "x": 10.75, "y": 2},
+ {"matrix": [2, 11], "x": 11.75, "y": 2},
+ {"matrix": [2, 12], "x": 12.75, "y": 2, "w": 2.25},
+ {"matrix": [3, 0], "x": 0, "y": 3, "w": 1.25},
+ {"matrix": [3, 1], "x": 1.25, "y": 3},
+ {"matrix": [3, 2], "x": 2.25, "y": 3},
+ {"matrix": [3, 3], "x": 3.25, "y": 3},
+ {"matrix": [3, 4], "x": 4.25, "y": 3},
+ {"matrix": [3, 5], "x": 5.25, "y": 3},
+ {"matrix": [3, 6], "x": 6.25, "y": 3},
+ {"matrix": [3, 7], "x": 7.25, "y": 3},
+ {"matrix": [3, 8], "x": 8.25, "y": 3},
+ {"matrix": [3, 9], "x": 9.25, "y": 3},
+ {"matrix": [3, 10], "x": 10.25, "y": 3},
+ {"matrix": [3, 11], "x": 11.25, "y": 3},
+ {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
+ {"matrix": [3, 13], "x": 14, "y": 3},
+ {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
+ {"matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
+ {"matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
+ {"matrix": [4, 6], "x": 3.75, "y": 4, "w": 6.25},
+ {"matrix": [4, 10], "x": 10, "y": 4, "w": 1.25},
+ {"matrix": [4, 11], "x": 11.25, "y": 4, "w": 1.25},
+ {"matrix": [4, 12], "x": 12.5, "y": 4, "w": 1.25},
+ {"matrix": [4, 13], "x": 13.75, "y": 4, "w": 1.25}
+ ]
+ }
+ }
+}
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/default/keymap.json b/keyboards/kbd0/curve0/60_ansi/keymaps/default/keymap.json
new file mode 100644
index 00000000000..4b82d05588f
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/default/keymap.json
@@ -0,0 +1,22 @@
+{
+ "author": "kbd0",
+ "keyboard": "kbd0/curve0/60_ansi",
+ "keymap": "default",
+ "layout": "LAYOUT",
+ "layers": [
+ [
+ "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_BSLS", "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_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_LSFT", "KC_NUBS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_RSFT", "MO(1)",
+ "KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "KC_RALT", "KC_RGUI", "KC_APP", "KC_RCTL"
+ ],
+ [
+ "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_UP", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
+ "_______", "KC_LEFT", "KC_DOWN", "KC_RGHT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
+ "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______",
+ "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______"
+ ]
+ ]
+}
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
new file mode 100644
index 00000000000..2215eda67f0
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0x72, 0x3F, 0x0A, 0x08, 0x33, 0xBD, 0x0F, 0xDE}
+
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 4 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 6 }
\ No newline at end of file
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/keymap.c b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..2eb589ec9f4
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/keymap.c
@@ -0,0 +1,35 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /*
+ * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
+ * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ \ │ BS|
+ * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
+ * │ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ \ │
+ * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
+ * │ Caps │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ Enter │
+ * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤
+ * │Shft| \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ Shift│ Fn|
+ * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬┴───┤
+ * │Ctrl│GUI │Alt │ │ Alt│ GUI│Menu│Ctrl│
+ * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
+ */
+
+ [0] = LAYOUT(
+ 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_BSLS, 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_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_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
+ ),
+ [1] = LAYOUT(
+ 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_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, _______
+ )
+};
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/rules.mk b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..347f5826e0a
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
new file mode 100644
index 00000000000..593b85ea912
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
@@ -0,0 +1,35 @@
+{
+ "matrix": {
+ "rows": 5,
+ "cols": 15
+ },
+ "layouts": {
+ "labels": [
+ "Split backspace",
+ "Split left shift",
+ [
+ "Right shift",
+ "2.75u shift",
+ "1.75u shift on the left",
+ "1.75u shift on the right"
+ ]
+ ],
+ "keymap": [
+ [
+ "0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9", "0,10", "0,11", "0,12", {"w": 2}, "0,14\n\n\n0,0", "0,13\n\n\n0,1", "0,14\n\n\n0,1"
+ ],
+ [
+ {"w": 1.5}, "1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9", "1,10", "1,11", "1,12", {"w": 1.5}, "1,13"
+ ],
+ [
+ {"w": 1.75}, "2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8", "2,9", "2,10", "2,11", {"w": 2.25}, "2,12"
+ ],
+ [
+ {"w": 2.25}, "3,0\n\n\n1,0", {"w": 1.25}, "3,0\n\n\n1,1", "3,1\n\n\n1,1", {"x": -2.25}, "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8", "3,9", "3,10", "3,11", {"w": 2.75}, "3,12\n\n\n2,0", {"w": 1.75}, "3,12\n\n\n2,1", "3,13\n\n\n2,1", "3,12\n\n\n2,2", {"w": 1.75}, "3,13\n\n\n2,2"
+ ],
+ [
+ {"w": 1.25}, "4,0", {"w": 1.25}, "4,1", {"w": 1.25}, "4,2", {"w": 6.25}, "4,6", {"w": 1.25}, "4,10", {"w": 1.25}, "4,11", {"w": 1.25}, "4,12", {"w": 1.25},"4,13"
+ ]
+ ]
+ }
+ }
diff --git a/keyboards/kbd0/curve0/60_ansi/readme.md b/keyboards/kbd0/curve0/60_ansi/readme.md
new file mode 100644
index 00000000000..68dd75b7d04
--- /dev/null
+++ b/keyboards/kbd0/curve0/60_ansi/readme.md
@@ -0,0 +1,27 @@
+# kbd0/curve0/60_ansi
+
+
+
+Curve0 - Curved stainless steel keyboard by kbd0
+
+* Keyboard Maintainer: [kbd0](https://github.com/kbd0)
+* Hardware Supported: Curve0 PCB
+* Hardware Availability: [kbd0.com](https://kbd0.com/item/curve0)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make kbd0/curve0/60_ansi:default
+
+Flashing example for this keyboard:
+
+ make kbd0/curve0/60_ansi:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold the top left key of the keyboard while plugging in the keyboard
+* **Physical reset button**: Hold the button on the main PCB (inside the keyboard) while plugging in the keyboard
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
\ No newline at end of file
From 68cf8b0354b625f6cd86ae32df9381a7efd6bb85 Mon Sep 17 00:00:00 2001
From: Nam
Date: Sun, 26 Jan 2025 09:22:28 +1100
Subject: [PATCH 08/13] Port Leviatan to VIAL (#829)
---
.../cannonkeys/leviatan/keymaps/vial/config.h | 9 +
.../cannonkeys/leviatan/keymaps/vial/keymap.c | 45 ++++
.../cannonkeys/leviatan/keymaps/vial/rules.mk | 2 +
.../leviatan/keymaps/vial/vial.json | 223 ++++++++++++++++++
4 files changed, 279 insertions(+)
create mode 100644 keyboards/cannonkeys/leviatan/keymaps/vial/config.h
create mode 100644 keyboards/cannonkeys/leviatan/keymaps/vial/keymap.c
create mode 100644 keyboards/cannonkeys/leviatan/keymaps/vial/rules.mk
create mode 100644 keyboards/cannonkeys/leviatan/keymaps/vial/vial.json
diff --git a/keyboards/cannonkeys/leviatan/keymaps/vial/config.h b/keyboards/cannonkeys/leviatan/keymaps/vial/config.h
new file mode 100644
index 00000000000..04933ffc81c
--- /dev/null
+++ b/keyboards/cannonkeys/leviatan/keymaps/vial/config.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0xA8, 0xC1, 0xD3, 0xF5, 0xBA, 0x3D, 0x64, 0x04}
+
+// Esc + Enter
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 14 }
diff --git a/keyboards/cannonkeys/leviatan/keymaps/vial/keymap.c b/keyboards/cannonkeys/leviatan/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..ea2cfee81dd
--- /dev/null
+++ b/keyboards/cannonkeys/leviatan/keymaps/vial/keymap.c
@@ -0,0 +1,45 @@
+/*
+Copyright 2012,2013 Jun Wako
+
+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
+
+
+// Each layer gets a name for readability, which is then used in the keymap matrix below.
+// The underscores don't mean anything - you can have a layer called STUFF or any other name.
+// Layer names don't all need to be of the same length, obviously, and you can also skip them
+// entirely and just use numbers.
+enum layer_names {
+ _BASE,
+ _FN1,
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_BASE] = LAYOUT_all(
+ QK_GESC, 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_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_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, 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_RSFT, MO(_FN1),
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, MO(_FN1), KC_RCTL
+ ),
+
+ [_FN1] = 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_DEL, KC_DEL,
+ _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ BL_BRTG, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ BL_UP, BL_DOWN, BL_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+ _______, _______, _______, _______, _______, _______, _______, QK_BOOT
+ )
+};
\ No newline at end of file
diff --git a/keyboards/cannonkeys/leviatan/keymaps/vial/rules.mk b/keyboards/cannonkeys/leviatan/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..6bc7063adc2
--- /dev/null
+++ b/keyboards/cannonkeys/leviatan/keymaps/vial/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/cannonkeys/leviatan/keymaps/vial/vial.json b/keyboards/cannonkeys/leviatan/keymaps/vial/vial.json
new file mode 100644
index 00000000000..bca5d94121a
--- /dev/null
+++ b/keyboards/cannonkeys/leviatan/keymaps/vial/vial.json
@@ -0,0 +1,223 @@
+{
+ "matrix": {
+ "rows": 5,
+ "cols": 15
+ },
+ "layouts": {
+ "labels": [
+ "Split Backspace",
+ "ISO Enter",
+ "Split L Shift",
+ "Full R Shift",
+ "6.25U Bottom Row"
+ ],
+ "keymap": [
+ [
+ {
+ "x": 2.5,
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "c": "#cccccc"
+ },
+ "0,1",
+ "0,2",
+ "0,3",
+ "0,4",
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ "0,9",
+ "0,10",
+ "0,11",
+ "0,12",
+ {
+ "c": "#aaaaaa",
+ "w": 2
+ },
+ "0,13\n\n\n0,0",
+ {
+ "x": 1
+ },
+ "0,13\n\n\n0,1",
+ "0,14\n\n\n0,1"
+ ],
+ [
+ {
+ "x": 2.5,
+ "w": 1.5
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "1,14\n\n\n1,0",
+ {
+ "x": 1.75,
+ "c": "#777777",
+ "w": 1.25,
+ "h": 2,
+ "w2": 1.5,
+ "h2": 1,
+ "x2": -0.25
+ },
+ "2,14\n\n\n1,1"
+ ],
+ [
+ {
+ "x": 2.5,
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,1",
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ {
+ "c": "#777777",
+ "w": 2.25
+ },
+ "2,14\n\n\n1,0",
+ {
+ "x": 0.75,
+ "c": "#aaaaaa"
+ },
+ "2,12\n\n\n1,1"
+ ],
+ [
+ {
+ "w": 1.25
+ },
+ "3,0\n\n\n2,1",
+ {
+ "c": "#cccccc"
+ },
+ "3,1\n\n\n2,1",
+ {
+ "x": 0.25,
+ "c": "#aaaaaa",
+ "w": 2.25
+ },
+ "3,0\n\n\n2,0",
+ {
+ "c": "#cccccc"
+ },
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ "3,11",
+ {
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "3,12\n\n\n3,0",
+ "3,14\n\n\n3,0",
+ {
+ "x": 0.25,
+ "w": 2.75
+ },
+ "3,12\n\n\n3,1"
+ ],
+ [
+ {
+ "x": 2.5,
+ "w": 1.5
+ },
+ "4,0\n\n\n4,0",
+ "4,1\n\n\n4,0",
+ {
+ "w": 1.5
+ },
+ "4,2\n\n\n4,0",
+ {
+ "c": "#cccccc",
+ "w": 7
+ },
+ "4,6\n\n\n4,0",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "4,11\n\n\n4,0",
+ "4,12\n\n\n4,0",
+ {
+ "w": 1.5
+ },
+ "4,14\n\n\n4,0"
+ ],
+ [
+ {
+ "y": 0.25,
+ "x": 2.5,
+ "w": 1.25
+ },
+ "4,0\n\n\n4,1",
+ {
+ "w": 1.25
+ },
+ "4,1\n\n\n4,1",
+ {
+ "w": 1.25
+ },
+ "4,2\n\n\n4,1",
+ {
+ "c": "#cccccc",
+ "w": 6.25
+ },
+ "4,6\n\n\n4,1",
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "4,10\n\n\n4,1",
+ {
+ "w": 1.25
+ },
+ "4,11\n\n\n4,1",
+ {
+ "w": 1.25
+ },
+ "4,12\n\n\n4,1",
+ {
+ "w": 1.25
+ },
+ "4,14\n\n\n4,1"
+ ]
+ ]
+ }
+}
\ No newline at end of file
From dbd675d0e1c9c0621f20a9758af409f476590b3b Mon Sep 17 00:00:00 2001
From: Nam
Date: Sun, 26 Jan 2025 09:22:37 +1100
Subject: [PATCH 09/13] Port Swiss to VIAL (#827)
* Port Swiss to VIAL
* Revert some changes
---
keyboards/swiss/keymaps/vial/config.h | 9 ++
keyboards/swiss/keymaps/vial/keymap.c | 23 +++++
keyboards/swiss/keymaps/vial/rules.mk | 3 +
keyboards/swiss/keymaps/vial/vial.json | 132 +++++++++++++++++++++++++
4 files changed, 167 insertions(+)
create mode 100644 keyboards/swiss/keymaps/vial/config.h
create mode 100644 keyboards/swiss/keymaps/vial/keymap.c
create mode 100644 keyboards/swiss/keymaps/vial/rules.mk
create mode 100644 keyboards/swiss/keymaps/vial/vial.json
diff --git a/keyboards/swiss/keymaps/vial/config.h b/keyboards/swiss/keymaps/vial/config.h
new file mode 100644
index 00000000000..8649592c3ce
--- /dev/null
+++ b/keyboards/swiss/keymaps/vial/config.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID { 0xC5, 0x64, 0x74, 0x99, 0xA3, 0x2A, 0x18, 0x39 }
+
+// Esc + Enter
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 12 }
\ No newline at end of file
diff --git a/keyboards/swiss/keymaps/vial/keymap.c b/keyboards/swiss/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..7f7d2ef6033
--- /dev/null
+++ b/keyboards/swiss/keymaps/vial/keymap.c
@@ -0,0 +1,23 @@
+// Copyright 2024 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* Base */
+ [0] = LAYOUT_60_hhkb(
+ 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_BSLS, KC_DEL,
+ 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_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_ENT,
+ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1),
+ KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL
+ ),
+ /* FN */
+ [1] = LAYOUT_60_hhkb(
+ 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_PSCR, KC_SLCT, KC_PAUS, KC_UP, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_VOLD, KC_VOLU, KC_MUTE, KC_EJCT, KC_TRNS, KC_PAST, KC_PSLS, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, KC_DOWN, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
+ )
+};
+
diff --git a/keyboards/swiss/keymaps/vial/rules.mk b/keyboards/swiss/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..4852be61c54
--- /dev/null
+++ b/keyboards/swiss/keymaps/vial/rules.mk
@@ -0,0 +1,3 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
+LTO_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/swiss/keymaps/vial/vial.json b/keyboards/swiss/keymaps/vial/vial.json
new file mode 100644
index 00000000000..2a3f3f44ef7
--- /dev/null
+++ b/keyboards/swiss/keymaps/vial/vial.json
@@ -0,0 +1,132 @@
+{
+ "matrix": {
+ "rows": 5,
+ "cols": 15
+ },
+ "layouts": {
+ "keymap": [
+ [
+ {
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "c": "#cccccc"
+ },
+ "0,1",
+ "0,2",
+ "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": 1.5
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "1,13"
+ ],
+ [
+ {
+ "w": 1.75
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,1",
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ {
+ "c": "#777777",
+ "w": 2.25
+ },
+ "2,12"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 2.25
+ },
+ "3,0",
+ {
+ "c": "#cccccc"
+ },
+ "3,1",
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ {
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "3,11",
+ "3,12"
+ ],
+ [
+ {
+ "x": 1.5
+ },
+ "4,0",
+ {
+ "w": 1.5
+ },
+ "4,1",
+ {
+ "c": "#cccccc",
+ "w": 7
+ },
+ "4,5",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "4,10",
+ "4,12"
+ ]
+ ]
+ }
+}
\ No newline at end of file
From efa99ef662c39438659cad09e5686439e699a090 Mon Sep 17 00:00:00 2001
From: Yuri Paharev
Date: Sun, 26 Jan 2025 01:22:55 +0300
Subject: [PATCH 10/13] feat: add VIAL support for xt60_singa (#824)
---
.../kopibeng/xt60_singa/keymaps/vial/config.h | 8 +
.../kopibeng/xt60_singa/keymaps/vial/keymap.c | 48 +++
.../kopibeng/xt60_singa/keymaps/vial/rules.mk | 6 +
.../xt60_singa/keymaps/vial/vial.json | 306 ++++++++++++++++++
4 files changed, 368 insertions(+)
create mode 100644 keyboards/kopibeng/xt60_singa/keymaps/vial/config.h
create mode 100644 keyboards/kopibeng/xt60_singa/keymaps/vial/keymap.c
create mode 100644 keyboards/kopibeng/xt60_singa/keymaps/vial/rules.mk
create mode 100644 keyboards/kopibeng/xt60_singa/keymaps/vial/vial.json
diff --git a/keyboards/kopibeng/xt60_singa/keymaps/vial/config.h b/keyboards/kopibeng/xt60_singa/keymaps/vial/config.h
new file mode 100644
index 00000000000..d6ddc7d33c1
--- /dev/null
+++ b/keyboards/kopibeng/xt60_singa/keymaps/vial/config.h
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0xF1, 0x3E, 0xD5, 0xB3, 0x8B, 0xAF, 0x7A, 0x53}
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 }
+#define VIAL_UNLOCK_COMBO_COLS { 0, 13 }
+#define LED_PIN_ON_STATE 0
diff --git a/keyboards/kopibeng/xt60_singa/keymaps/vial/keymap.c b/keyboards/kopibeng/xt60_singa/keymaps/vial/keymap.c
new file mode 100644
index 00000000000..cb8f395f08a
--- /dev/null
+++ b/keyboards/kopibeng/xt60_singa/keymaps/vial/keymap.c
@@ -0,0 +1,48 @@
+/* Copyright 2021 Samuel Lu
+ *
+ * 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(
+ QK_GESC, 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_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_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_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(2),
+ KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, MO(2), KC_RALT, MO(1), KC_RCTL
+ ),
+
+ // Fn1 Layer
+ [1] = LAYOUT_all(
+ KC_TRNS, 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_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, 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_VOLD, KC_VOLU, KC_MPLY, KC_MPRV, KC_MNXT, 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
+ ),
+};
+
diff --git a/keyboards/kopibeng/xt60_singa/keymaps/vial/rules.mk b/keyboards/kopibeng/xt60_singa/keymaps/vial/rules.mk
new file mode 100644
index 00000000000..384c14074ef
--- /dev/null
+++ b/keyboards/kopibeng/xt60_singa/keymaps/vial/rules.mk
@@ -0,0 +1,6 @@
+VIA_ENABLE = yes
+VIAL_ENABLE = yes
+LTO_ENABLE = yes
+RGBLIGHT_ENABLE = yes
+KEY_OVERRIDE_ENABLE = no
+MOUSEKEY_ENABLE = no
diff --git a/keyboards/kopibeng/xt60_singa/keymaps/vial/vial.json b/keyboards/kopibeng/xt60_singa/keymaps/vial/vial.json
new file mode 100644
index 00000000000..abb9cc32fca
--- /dev/null
+++ b/keyboards/kopibeng/xt60_singa/keymaps/vial/vial.json
@@ -0,0 +1,306 @@
+{
+ "name": "XT60_SINGAKBD",
+ "vendorId": "0x4B50",
+ "productId": "0x0601",
+ "matrix": {
+ "rows": 5,
+ "cols": 14
+ },
+ "layouts": {
+ "labels": [
+ "ISO",
+ "Split Backspace",
+ "Split Left Shift",
+ "Split Right Shift",
+ [
+ "Bottom Row",
+ "7u",
+ "WKL",
+ "6.25u",
+ "2.25u/1.25u/2.75u Split"
+ ]
+ ],
+ "keymap": [
+ [
+ {
+ "x": 2.75,
+ "c": "#777777"
+ },
+ "0,0",
+ {
+ "c": "#cccccc"
+ },
+ "0,1",
+ "0,2",
+ "0,3",
+ "0,4",
+ "0,5",
+ "0,6",
+ "0,7",
+ "0,8",
+ "0,9",
+ "0,10",
+ "0,11",
+ "0,12",
+ {
+ "c": "#aaaaaa",
+ "w": 2
+ },
+ "1,13\n\n\n1,0",
+ {
+ "x": 1.25
+ },
+ "0,13\n\n\n1,1",
+ "1,13\n\n\n1,1"
+ ],
+ [
+ {
+ "x": 2.75,
+ "w": 1.5
+ },
+ "1,0",
+ {
+ "c": "#cccccc"
+ },
+ "1,1",
+ "1,2",
+ "1,3",
+ "1,4",
+ "1,5",
+ "1,6",
+ "1,7",
+ "1,8",
+ "1,9",
+ "1,10",
+ "1,11",
+ "1,12",
+ {
+ "w": 1.5
+ },
+ "2,12\n\n\n0,0",
+ {
+ "x": 2,
+ "c": "#777777",
+ "w": 1.25,
+ "h": 2,
+ "w2": 1.5,
+ "h2": 1,
+ "x2": -0.25
+ },
+ "2,13\n\n\n0,1"
+ ],
+ [
+ {
+ "x": 2.75,
+ "c": "#aaaaaa",
+ "w": 1.75
+ },
+ "2,0",
+ {
+ "c": "#cccccc"
+ },
+ "2,1",
+ "2,2",
+ "2,3",
+ "2,4",
+ "2,5",
+ "2,6",
+ "2,7",
+ "2,8",
+ "2,9",
+ "2,10",
+ "2,11",
+ {
+ "c": "#777777",
+ "w": 2.25
+ },
+ "2,13\n\n\n0,0",
+ {
+ "x": 1,
+ "c": "#cccccc"
+ },
+ "2,12\n\n\n0,1"
+ ],
+ [
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "3,0\n\n\n2,1",
+ {
+ "c": "#cccccc"
+ },
+ "3,1\n\n\n2,1",
+ {
+ "x": 0.5,
+ "c": "#aaaaaa",
+ "w": 2.25
+ },
+ "3,0\n\n\n2,0",
+ {
+ "c": "#cccccc"
+ },
+ "3,2",
+ "3,3",
+ "3,4",
+ "3,5",
+ "3,6",
+ "3,7",
+ "3,8",
+ "3,9",
+ "3,10",
+ "3,11",
+ {
+ "c": "#aaaaaa",
+ "w": 2.75
+ },
+ "3,12\n\n\n3,0",
+ {
+ "x": 0.5,
+ "w": 1.75
+ },
+ "3,12\n\n\n3,1",
+ "3,13\n\n\n3,1"
+ ],
+ [
+ {
+ "x": 2.75,
+ "w": 1.5
+ },
+ "4,0\n\n\n4,0",
+ "4,1\n\n\n4,0",
+ {
+ "w": 1.5
+ },
+ "4,2\n\n\n4,0",
+ {
+ "c": "#cccccc",
+ "w": 7
+ },
+ "4,6\n\n\n4,0",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "4,11\n\n\n4,0",
+ "4,12\n\n\n4,0",
+ {
+ "w": 1.5
+ },
+ "4,13\n\n\n4,0"
+ ],
+ [
+ {
+ "y": 0.25,
+ "x": 2.75,
+ "w": 1.5
+ },
+ "4,0\n\n\n4,1",
+ {
+ "x": 1,
+ "w": 1.5
+ },
+ "4,2\n\n\n4,1",
+ {
+ "c": "#cccccc",
+ "w": 7
+ },
+ "4,6\n\n\n4,1",
+ {
+ "c": "#aaaaaa",
+ "w": 1.5
+ },
+ "4,11\n\n\n4,1",
+ {
+ "x": 1,
+ "w": 1.5
+ },
+ "4,13\n\n\n4,1"
+ ],
+ [
+ {
+ "y": 0.25,
+ "x": 2.75,
+ "w": 1.25
+ },
+ "4,0\n\n\n4,2",
+ {
+ "w": 1.25
+ },
+ "4,1\n\n\n4,2",
+ {
+ "w": 1.25
+ },
+ "4,2\n\n\n4,2",
+ {
+ "c": "#cccccc",
+ "w": 6.25
+ },
+ "4,6\n\n\n4,2",
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "4,10\n\n\n4,2",
+ {
+ "w": 1.25
+ },
+ "4,11\n\n\n4,2",
+ {
+ "w": 1.25
+ },
+ "4,12\n\n\n4,2",
+ {
+ "w": 1.25
+ },
+ "4,13\n\n\n4,2"
+ ],
+ [
+ {
+ "y": 0.25,
+ "x": 2.75,
+ "w": 1.25
+ },
+ "4,0\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,1\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,2\n\n\n4,3",
+ {
+ "c": "#cccccc",
+ "w": 2.25
+ },
+ "4,4\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,6\n\n\n4,3",
+ {
+ "w": 2.75
+ },
+ "4,8\n\n\n4,3",
+ {
+ "c": "#aaaaaa",
+ "w": 1.25
+ },
+ "4,10\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,11\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,12\n\n\n4,3",
+ {
+ "w": 1.25
+ },
+ "4,13\n\n\n4,3"
+ ]
+ ]
+ }
+ }
\ No newline at end of file
From d290a9755bccf272fea13511c5bec1678870f709 Mon Sep 17 00:00:00 2001
From: Jaeseok Lee
Date: Sun, 26 Jan 2025 07:23:56 +0900
Subject: [PATCH 11/13] fix tapping force hold to use quick tap term internally
(#839)
---
builddefs/build_vial.mk | 2 +-
quantum/qmk_settings.c | 8 ++++++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/builddefs/build_vial.mk b/builddefs/build_vial.mk
index ce31d295625..894943d3335 100644
--- a/builddefs/build_vial.mk
+++ b/builddefs/build_vial.mk
@@ -25,7 +25,7 @@ ifeq ($(strip $(QMK_SETTINGS)), yes)
SRC += $(QUANTUM_DIR)/qmk_settings.c
OPT_DEFS += -DQMK_SETTINGS \
-DAUTO_SHIFT_NO_SETUP -DAUTO_SHIFT_REPEAT_PER_KEY -DAUTO_SHIFT_NO_AUTO_REPEAT_PER_KEY \
- -DPERMISSIVE_HOLD_PER_KEY -DHOLD_ON_OTHER_KEY_PRESS_PER_KEY -DTAPPING_FORCE_HOLD_PER_KEY -DRETRO_TAPPING_PER_KEY \
+ -DPERMISSIVE_HOLD_PER_KEY -DHOLD_ON_OTHER_KEY_PRESS_PER_KEY -DQUICK_TAP_TERM_PER_KEY -DRETRO_TAPPING_PER_KEY \
-DCOMBO_TERM_PER_COMBO
endif
diff --git a/quantum/qmk_settings.c b/quantum/qmk_settings.c
index 96449220e2d..ce5e2ac1f56 100644
--- a/quantum/qmk_settings.c
+++ b/quantum/qmk_settings.c
@@ -268,8 +268,12 @@ bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
return !(QS.tapping & 2);
}
-bool get_tapping_force_hold(uint16_t keycode, keyrecord_t *record) {
- return QS.tapping & 4;
+uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) {
+ if (QS.tapping & 4) {
+ return 0;
+ } else {
+ return QS.tapping_term;
+ }
}
bool get_retro_tapping(uint16_t keycode, keyrecord_t *record) {
From 09184fff2b90f0a32b1586ba1deb44607e662c99 Mon Sep 17 00:00:00 2001
From: Ilya Zhuravlev
Date: Sat, 25 Jan 2025 16:30:53 -0600
Subject: [PATCH 12/13] kbd0/curve0/60_ansi: fix newlines
---
.../kbd0/curve0/60_ansi/keymaps/vial/config.h | 14 ++--
.../curve0/60_ansi/keymaps/vial/vial.json | 70 +++++++++----------
keyboards/kbd0/curve0/60_ansi/readme.md | 52 +++++++-------
3 files changed, 68 insertions(+), 68 deletions(-)
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
index 2215eda67f0..c1f7253de91 100644
--- a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/config.h
@@ -1,8 +1,8 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-
-#pragma once
-
-#define VIAL_KEYBOARD_UID {0x72, 0x3F, 0x0A, 0x08, 0x33, 0xBD, 0x0F, 0xDE}
-
-#define VIAL_UNLOCK_COMBO_ROWS { 0, 4 }
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#pragma once
+
+#define VIAL_KEYBOARD_UID {0x72, 0x3F, 0x0A, 0x08, 0x33, 0xBD, 0x0F, 0xDE}
+
+#define VIAL_UNLOCK_COMBO_ROWS { 0, 4 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 6 }
\ No newline at end of file
diff --git a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
index 593b85ea912..0fdf031b693 100644
--- a/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
+++ b/keyboards/kbd0/curve0/60_ansi/keymaps/vial/vial.json
@@ -1,35 +1,35 @@
-{
- "matrix": {
- "rows": 5,
- "cols": 15
- },
- "layouts": {
- "labels": [
- "Split backspace",
- "Split left shift",
- [
- "Right shift",
- "2.75u shift",
- "1.75u shift on the left",
- "1.75u shift on the right"
- ]
- ],
- "keymap": [
- [
- "0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9", "0,10", "0,11", "0,12", {"w": 2}, "0,14\n\n\n0,0", "0,13\n\n\n0,1", "0,14\n\n\n0,1"
- ],
- [
- {"w": 1.5}, "1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9", "1,10", "1,11", "1,12", {"w": 1.5}, "1,13"
- ],
- [
- {"w": 1.75}, "2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8", "2,9", "2,10", "2,11", {"w": 2.25}, "2,12"
- ],
- [
- {"w": 2.25}, "3,0\n\n\n1,0", {"w": 1.25}, "3,0\n\n\n1,1", "3,1\n\n\n1,1", {"x": -2.25}, "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8", "3,9", "3,10", "3,11", {"w": 2.75}, "3,12\n\n\n2,0", {"w": 1.75}, "3,12\n\n\n2,1", "3,13\n\n\n2,1", "3,12\n\n\n2,2", {"w": 1.75}, "3,13\n\n\n2,2"
- ],
- [
- {"w": 1.25}, "4,0", {"w": 1.25}, "4,1", {"w": 1.25}, "4,2", {"w": 6.25}, "4,6", {"w": 1.25}, "4,10", {"w": 1.25}, "4,11", {"w": 1.25}, "4,12", {"w": 1.25},"4,13"
- ]
- ]
- }
- }
+{
+ "matrix": {
+ "rows": 5,
+ "cols": 15
+ },
+ "layouts": {
+ "labels": [
+ "Split backspace",
+ "Split left shift",
+ [
+ "Right shift",
+ "2.75u shift",
+ "1.75u shift on the left",
+ "1.75u shift on the right"
+ ]
+ ],
+ "keymap": [
+ [
+ "0,0", "0,1", "0,2", "0,3", "0,4", "0,5", "0,6", "0,7", "0,8", "0,9", "0,10", "0,11", "0,12", {"w": 2}, "0,14\n\n\n0,0", "0,13\n\n\n0,1", "0,14\n\n\n0,1"
+ ],
+ [
+ {"w": 1.5}, "1,0", "1,1", "1,2", "1,3", "1,4", "1,5", "1,6", "1,7", "1,8", "1,9", "1,10", "1,11", "1,12", {"w": 1.5}, "1,13"
+ ],
+ [
+ {"w": 1.75}, "2,0", "2,1", "2,2", "2,3", "2,4", "2,5", "2,6", "2,7", "2,8", "2,9", "2,10", "2,11", {"w": 2.25}, "2,12"
+ ],
+ [
+ {"w": 2.25}, "3,0\n\n\n1,0", {"w": 1.25}, "3,0\n\n\n1,1", "3,1\n\n\n1,1", {"x": -2.25}, "3,2", "3,3", "3,4", "3,5", "3,6", "3,7", "3,8", "3,9", "3,10", "3,11", {"w": 2.75}, "3,12\n\n\n2,0", {"w": 1.75}, "3,12\n\n\n2,1", "3,13\n\n\n2,1", "3,12\n\n\n2,2", {"w": 1.75}, "3,13\n\n\n2,2"
+ ],
+ [
+ {"w": 1.25}, "4,0", {"w": 1.25}, "4,1", {"w": 1.25}, "4,2", {"w": 6.25}, "4,6", {"w": 1.25}, "4,10", {"w": 1.25}, "4,11", {"w": 1.25}, "4,12", {"w": 1.25},"4,13"
+ ]
+ ]
+ }
+ }
diff --git a/keyboards/kbd0/curve0/60_ansi/readme.md b/keyboards/kbd0/curve0/60_ansi/readme.md
index 68dd75b7d04..70523711ed2 100644
--- a/keyboards/kbd0/curve0/60_ansi/readme.md
+++ b/keyboards/kbd0/curve0/60_ansi/readme.md
@@ -1,27 +1,27 @@
-# kbd0/curve0/60_ansi
-
-
-
-Curve0 - Curved stainless steel keyboard by kbd0
-
-* Keyboard Maintainer: [kbd0](https://github.com/kbd0)
-* Hardware Supported: Curve0 PCB
-* Hardware Availability: [kbd0.com](https://kbd0.com/item/curve0)
-
-Make example for this keyboard (after setting up your build environment):
-
- make kbd0/curve0/60_ansi:default
-
-Flashing example for this keyboard:
-
- make kbd0/curve0/60_ansi:default:flash
-
-See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
-
-## Bootloader
-
-Enter the bootloader in 3 ways:
-
-* **Bootmagic reset**: Hold the top left key of the keyboard while plugging in the keyboard
-* **Physical reset button**: Hold the button on the main PCB (inside the keyboard) while plugging in the keyboard
+# kbd0/curve0/60_ansi
+
+
+
+Curve0 - Curved stainless steel keyboard by kbd0
+
+* Keyboard Maintainer: [kbd0](https://github.com/kbd0)
+* Hardware Supported: Curve0 PCB
+* Hardware Availability: [kbd0.com](https://kbd0.com/item/curve0)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make kbd0/curve0/60_ansi:default
+
+Flashing example for this keyboard:
+
+ make kbd0/curve0/60_ansi:default:flash
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold the top left key of the keyboard while plugging in the keyboard
+* **Physical reset button**: Hold the button on the main PCB (inside the keyboard) while plugging in the keyboard
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
\ No newline at end of file
From 5c633c13a2cccbe0d295bdc6b38484ffa1b55527 Mon Sep 17 00:00:00 2001
From: Ilya Zhuravlev
Date: Sat, 25 Jan 2025 16:31:24 -0600
Subject: [PATCH 13/13] keebio/quefrency/rev5: reduce vial fw size
---
keyboards/keebio/quefrency/rev5/keymaps/vial/rules.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/keyboards/keebio/quefrency/rev5/keymaps/vial/rules.mk b/keyboards/keebio/quefrency/rev5/keymaps/vial/rules.mk
index ba9b0f32873..a78c19387a0 100644
--- a/keyboards/keebio/quefrency/rev5/keymaps/vial/rules.mk
+++ b/keyboards/keebio/quefrency/rev5/keymaps/vial/rules.mk
@@ -2,7 +2,7 @@ VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
-QMK_SETTINGS = yes
+QMK_SETTINGS = no
ENCODER_ENABLE = yes
ENCODER_MAP_ENABLE = yes