Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Binepad BNK8 #36

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions keyboards/binepad/bnk8/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions keyboards/binepad/bnk8/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes