aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rwxr-xr-xkeyboards/bm16s/config.h4
-rw-r--r--keyboards/bm16s/keymaps/via/keymap.c43
-rw-r--r--keyboards/bm16s/keymaps/via/readme.md1
-rw-r--r--keyboards/bm16s/keymaps/via/rules.mk2
4 files changed, 48 insertions, 2 deletions
diff --git a/keyboards/bm16s/config.h b/keyboards/bm16s/config.h
index 379e59bd9..83f5bbbe8 100755
--- a/keyboards/bm16s/config.h
+++ b/keyboards/bm16s/config.h
@@ -2,8 +2,8 @@
2#include "config_common.h" 2#include "config_common.h"
3 3
4/* USB Device descriptor parameter */ 4/* USB Device descriptor parameter */
5#define VENDOR_ID 0xFEED 5#define VENDOR_ID 0x4B50 //KP
6#define PRODUCT_ID 0x6060 6#define PRODUCT_ID 0x016B
7#define DEVICE_VER 0x0001 7#define DEVICE_VER 0x0001
8#define MANUFACTURER KPrepublic 8#define MANUFACTURER KPrepublic
9#define PRODUCT bm16s 9#define PRODUCT bm16s
diff --git a/keyboards/bm16s/keymaps/via/keymap.c b/keyboards/bm16s/keymaps/via/keymap.c
new file mode 100644
index 000000000..71b0d2b0f
--- /dev/null
+++ b/keyboards/bm16s/keymaps/via/keymap.c
@@ -0,0 +1,43 @@
1/* Copyright 2020 Relocks
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_ortho_4x4(
20 KC_KP_7, KC_KP_8, KC_KP_9, MO(1),
21 KC_KP_4, KC_KP_5, KC_KP_6, KC_PMNS,
22 KC_KP_1, KC_KP_2, KC_KP_3, KC_PPLS,
23 KC_KP_0, KC_PDOT, KC_PCMM, KC_PENT
24 ),
25 [1] = LAYOUT_ortho_4x4(
26 RESET, BL_STEP, KC_TRNS, KC_VOLU,
27 BL_TOGG, BL_DEC, BL_INC, KC_VOLD,
28 RGB_TOG, RGB_MOD, RGB_HUI, KC_MUTE,
29 RGB_SAI, RGB_SAD, RGB_HUD, KC_TRNS
30 ),
31 [2] = LAYOUT_ortho_4x4(
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
34 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
35 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
36 ),
37 [3] = LAYOUT_ortho_4x4(
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
42 ),
43};
diff --git a/keyboards/bm16s/keymaps/via/readme.md b/keyboards/bm16s/keymaps/via/readme.md
new file mode 100644
index 000000000..f5e43b909
--- /dev/null
+++ b/keyboards/bm16s/keymaps/via/readme.md
@@ -0,0 +1 @@
# Via keymap for bm16s
diff --git a/keyboards/bm16s/keymaps/via/rules.mk b/keyboards/bm16s/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/bm16s/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file