summaryrefslogtreecommitdiff
path: root/keyboards/keebio/bamfk1/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/bamfk1/keymaps')
-rw-r--r--keyboards/keebio/bamfk1/keymaps/default/keymap.c39
-rw-r--r--keyboards/keebio/bamfk1/keymaps/default/rules.mk1
-rw-r--r--keyboards/keebio/bamfk1/keymaps/via/keymap.c39
-rw-r--r--keyboards/keebio/bamfk1/keymaps/via/rules.mk2
4 files changed, 81 insertions, 0 deletions
diff --git a/keyboards/keebio/bamfk1/keymaps/default/keymap.c b/keyboards/keebio/bamfk1/keymaps/default/keymap.c
new file mode 100644
index 0000000000..aa0780eafc
--- /dev/null
+++ b/keyboards/keebio/bamfk1/keymaps/default/keymap.c
@@ -0,0 +1,39 @@
+// Copyright 2021 Danny Nguyen (@nooges)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _MAIN,
+ _FN1,
+ _FN2,
+ _FN3
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_MAIN] = LAYOUT(
+ KC_A, // Big Switch
+ MO(1), KC_MUTE, // Encoder presses
+ KC_DOWN, KC_UP, // Left encoder turns
+ KC_VOLD, KC_VOLU // Right encoder turns
+ ),
+ [_FN1] = LAYOUT(
+ KC_B, // Big Switch
+ _______, KC_C, // Encoder presses
+ KC_PGDN, KC_PGUP, // Left encoder turns
+ KC_VOLU, KC_VOLD // Right encoder turns
+ ),
+ [_FN2] = LAYOUT(
+ _______, // Big Switch
+ _______, _______, // Encoder presses
+ _______, _______, // Left encoder turns
+ _______, _______ // Right encoder turns
+ ),
+ [_FN3] = LAYOUT(
+ _______, // Big Switch
+ _______, _______, // Encoder presses
+ _______, _______, // Left encoder turns
+ _______, _______ // Right encoder turns
+ )
+};
diff --git a/keyboards/keebio/bamfk1/keymaps/default/rules.mk b/keyboards/keebio/bamfk1/keymaps/default/rules.mk
new file mode 100644
index 0000000000..4da205a168
--- /dev/null
+++ b/keyboards/keebio/bamfk1/keymaps/default/rules.mk
@@ -0,0 +1 @@
+LTO_ENABLE = yes
diff --git a/keyboards/keebio/bamfk1/keymaps/via/keymap.c b/keyboards/keebio/bamfk1/keymaps/via/keymap.c
new file mode 100644
index 0000000000..e7cde2d7ee
--- /dev/null
+++ b/keyboards/keebio/bamfk1/keymaps/via/keymap.c
@@ -0,0 +1,39 @@
+// Copyright 2021 Danny Nguyen (@nooges)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+// Defines names for use in layer keycodes and the keymap
+enum layer_names {
+ _MAIN,
+ _FN1,
+ _FN2,
+ _FN3
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_MAIN] = LAYOUT(
+ RGB_MOD, // Big Switch
+ FN_MO13, KC_MUTE, // Encoder presses
+ KC_DOWN, KC_UP, // Left encoder turns
+ KC_VOLD, KC_VOLU // Right encoder turns
+ ),
+ [_FN1] = LAYOUT(
+ KC_B, // Big Switch
+ _______, KC_C, // Encoder presses
+ KC_PGDN, KC_PGUP, // Left encoder turns
+ KC_VOLU, KC_VOLD // Right encoder turns
+ ),
+ [_FN2] = LAYOUT(
+ _______, // Big Switch
+ _______, _______, // Encoder presses
+ _______, _______, // Left encoder turns
+ _______, _______ // Right encoder turns
+ ),
+ [_FN3] = LAYOUT(
+ _______, // Big Switch
+ _______, _______, // Encoder presses
+ _______, _______, // Left encoder turns
+ _______, _______ // Right encoder turns
+ )
+};
diff --git a/keyboards/keebio/bamfk1/keymaps/via/rules.mk b/keyboards/keebio/bamfk1/keymaps/via/rules.mk
new file mode 100644
index 0000000000..36b7ba9cbc
--- /dev/null
+++ b/keyboards/keebio/bamfk1/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
+VIA_ENABLE = yes
+LTO_ENABLE = yes