diff --git a/keyboards/ymdk/ymd09/keymaps/vial/config.h b/keyboards/ymdk/ymd09/keymaps/vial/config.h new file mode 100644 index 0000000000..c8f5adcc6a --- /dev/null +++ b/keyboards/ymdk/ymd09/keymaps/vial/config.h @@ -0,0 +1,11 @@ +/* Vial configuration */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x44, 0x71, 0x9C, 0x1D, 0x1A, 0xCF, 0x55, 0xDA} + + +#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 2 } + +/* VIAL_INSECURE = yes */ diff --git a/keyboards/ymdk/ymd09/keymaps/vial/keymap.c b/keyboards/ymdk/ymd09/keymaps/vial/keymap.c new file mode 100644 index 0000000000..e84b587a36 --- /dev/null +++ b/keyboards/ymdk/ymd09/keymaps/vial/keymap.c @@ -0,0 +1,20 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT(KC_KP_7, KC_KP_8, KC_KP_9, + KC_KP_4, LT(1, KC_KP_5), KC_KP_6, + KC_KP_1, KC_KP_2, KC_KP_3), + + [1] = LAYOUT(RGB_RMOD, RGB_VAI, RGB_MOD, + RGB_HUI, RESET, RGB_SAI, + RGB_HUD, RGB_VAD, RGB_SAD), + + [2] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS), + + [3] = LAYOUT(KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS), +}; diff --git a/keyboards/ymdk/ymd09/keymaps/vial/readme.md b/keyboards/ymdk/ymd09/keymaps/vial/readme.md new file mode 100644 index 0000000000..e4e18c7c66 --- /dev/null +++ b/keyboards/ymdk/ymd09/keymaps/vial/readme.md @@ -0,0 +1,3 @@ +Vial Support for YMDK YMD09 + +make ymdk/ymd09:vial diff --git a/keyboards/ymdk/ymd09/keymaps/vial/rules.mk b/keyboards/ymdk/ymd09/keymaps/vial/rules.mk new file mode 100644 index 0000000000..7e0cf67c8a --- /dev/null +++ b/keyboards/ymdk/ymd09/keymaps/vial/rules.mk @@ -0,0 +1,5 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +QMK_SETTINGS = no +TAP_DANCE_ENABLE = no diff --git a/keyboards/ymdk/ymd09/keymaps/vial/vial.json b/keyboards/ymdk/ymd09/keymaps/vial/vial.json new file mode 100644 index 0000000000..e9758c1ae1 --- /dev/null +++ b/keyboards/ymdk/ymd09/keymaps/vial/vial.json @@ -0,0 +1,29 @@ +{ + "name": "YMDK YMD09", + "vendorId": "0x594D", + "productId": "0x4409", + "lighting": "qmk_rgblight", + "matrix" : { + "rows": 3, + "cols": 3 + }, + "layouts" : { + "keymap" : [ + [ + "0,0", + "0,1", + "0,2" + ], + [ + "1,0", + "1,1", + "1,2" + ], + [ + "2,0", + "2,1", + "2,2" + ] + ] + } +}