qmk-vial/keyboards/jlw/vault35_wkl_universal/keymaps/vial/keymap.c
josh-l-wang 6dda01b973
Add Vault 35 PCB variants: HHKB universal, WKL ortho, WKL universal (#626)
* initial commit

still need to update RGB and vial.json

* completed vial firmware

used for prototype testing

* change name of board for consistency

* update rgb driver to pwm

* Merge branch 'vault35_wkl_universal' into universal_vault

* update hal/mcuconf files

* fixed compile issues

fixed PWM driver issues and defines. all three included boards compile default keymap without issue. hhkb universal board also compiles vial without issue

* updated vial.jsons

* Update vial UID

* Update vial UID

* update vial UID

* updated matrix

* Update info.json

Updated pins

* Update vial.json

* Update vial.json

* Update vial.json

* update LED drivers

* updated encoder map

* increase eeprom size

---------

Co-authored-by: avshockeyw <avshockeyw@users.noreply.github.com>
2024-02-10 00:46:53 -06:00

37 lines
2.2 KiB
C

// Copyright 2023 jlw
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
// Just something for quick testing, not meant to be used
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_VOLU, KC_Y, KC_U, KC_I, KC_O, KC_P,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_VOLD, KC_H, KC_J, KC_K, KC_L, KC_QUOT,
KC_Z, KC_X, KC_C, KC_V, KC_B, RGB_TOG, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
KC_ESC, MO(1), KC_ENT, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_BSPC
),
[1] = LAYOUT_ortho(
_______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_0,
_______, _______, _______, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______,
_______, _______, _______, _______, _______, QK_BOOT, _______, KC_1, KC_2, KC_3, _______,
_______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_ortho(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_LEFT, _______,
_______, _______, _______, _______, _______, QK_BOOT, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______
)
};
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
[2] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }
};
#endif