add vial support for doio kb03 (#911)

* add vial keymap for doio/kb03

* Update keyboards/doio/kb03/keymaps/vial/vial.json

Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>

---------

Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com>
This commit is contained in:
ClownFish
2025-07-20 16:39:08 -04:00
committed by GitHub
parent 967967e122
commit 8ccc1e3423
4 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xF5, 0x92, 0xBC, 0x63, 0x72, 0x84, 0xCA, 0x4E}
#define VIAL_UNLOCK_COMBO_ROWS {0, 0}
#define VIAL_UNLOCK_COMBO_COLS {0, 2}

View File

@@ -0,0 +1,44 @@
// Copyright 2025 DOIO
// Copyright 2025 ClownFish (@clownfish-og)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum my_layers {
_BASE,
_MOUSE,
_MEDIA,
_LIGHTS
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
TO(_MOUSE),
KC_ENT, C(KC_C), C(KC_V),
C(KC_Z)
),
[_MOUSE] = LAYOUT(
TO(_MEDIA),
MS_BTN1, MS_BTN3, MS_BTN2,
KC_LCTL
),
[_MEDIA] = LAYOUT(
TO(_LIGHTS),
KC_MRWD, KC_MPLY, KC_MFFD,
KC_MUTE
),
[_LIGHTS] = LAYOUT(
TO(_BASE),
RM_VALD, RM_NEXT, RM_VALU,
RM_TOGG
)
};
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_BASE] = { ENCODER_CCW_CW(MS_WHLU, MS_WHLD), ENCODER_CCW_CW(MS_WHLL, MS_WHLR) },
[_MOUSE] = { ENCODER_CCW_CW(MS_LEFT, MS_RGHT), ENCODER_CCW_CW(MS_UP, MS_DOWN) },
[_MEDIA] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MPRV, KC_MNXT) },
[_LIGHTS] = { ENCODER_CCW_CW(RM_SATD, RM_SATU), ENCODER_CCW_CW(RM_HUED, RM_HUEU) }
};
#endif

View File

@@ -0,0 +1,4 @@
ENCODER_MAP_ENABLE = yes
VIA_ENABLE = yes
VIAL_ENABLE = yes
VIALRGB_ENABLE = yes

View File

@@ -0,0 +1,49 @@
{
"lighting": "vialrgb",
"matrix": {"rows": 1, "cols": 5},
"layouts": {
"keymap": [
[
{
"x": 0.5,
"y": 0.25,
"h": 0.5
},
"0,3"
],
[
"0,0",
"0,1",
"0,2"
],
[
{
"y": 0.25,
"x": 0.5
},
"0,0\n\n\n\n\n\n\n\n\ne",
"0,1\n\n\n\n\n\n\n\n\ne"
],
[
{
"x": 1
},
"0,4"
],
[
{
"x": 0.25,
"y": 0.25,
"w": 1.25,
"h": 1.25
},
"1,0\n\n\n\n\n\n\n\n\ne",
{
"w": 1.25,
"h": 1.25
},
"1,1\n\n\n\n\n\n\n\n\ne"
]
]
}
}