diff --git a/keyboards/binepad/bnk8/keymaps/via/keymap.c b/keyboards/binepad/bnk8/keymaps/via/keymap.c new file mode 100644 index 0000000000..f72c5060d5 --- /dev/null +++ b/keyboards/binepad/bnk8/keymaps/via/keymap.c @@ -0,0 +1,35 @@ +// Copyright 2024 Binepad (@binepad) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + /* + * ┌───┬───┬───┐ + * │ 1 │ 2 │ K │ + * ├───┼───┼───┤ + * │ 3 │ 4 │ 5 │ + * ├───┼───┼───┤ + * │ 6 │ 7 │ 8 │ + * └───┴───┴───┘ + */ + [0] = LAYOUT_ortho_3x3( + KC_P1, KC_P2, KC_MUTE, + KC_P3, KC_P4, KC_P5, + KC_P6, KC_P7, LT(1, KC_P8) + ), + [1] = LAYOUT_ortho_3x3( + RM_HUEU, RM_SATU, RM_SPDU, + RM_HUED, RM_SATD, RM_SPDD, + RM_TOGG, RM_NEXT, _______ + ) +}; + +#if defined(ENCODER_MAP_ENABLE) + +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, + [1] = { ENCODER_CCW_CW(RM_VALD, RM_VALD) } +}; + +#endif diff --git a/keyboards/binepad/bnk8/keymaps/via/rules.mk b/keyboards/binepad/bnk8/keymaps/via/rules.mk new file mode 100644 index 0000000000..f1adcab005 --- /dev/null +++ b/keyboards/binepad/bnk8/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +ENCODER_MAP_ENABLE = yes