summaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/bdn9/keymaps
diff options
context:
space:
mode:
authorJoshua Diamond <josh@windowoffire.com>2022-09-18 19:06:31 -0400
committerJoshua Diamond <josh@windowoffire.com>2022-09-18 19:06:31 -0400
commit9a1b4b78f11e2953e758499ecadbe7069a3fdbdc (patch)
treeb08af812f4befc3af4c8326c129ee29da5e3dfe5 /keyboards/keebio/bdn9/keymaps
parent8beb61b790d215a365298d3aa865ebf1ebf78d8c (diff)
parentecb4ba70b1d48835e75da6b0a8ad566c2f126b9f (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/keebio/bdn9/keymaps')
-rw-r--r--keyboards/keebio/bdn9/keymaps/via/keymap.c33
-rw-r--r--keyboards/keebio/bdn9/keymaps/via/rules.mk1
2 files changed, 19 insertions, 15 deletions
diff --git a/keyboards/keebio/bdn9/keymaps/via/keymap.c b/keyboards/keebio/bdn9/keymaps/via/keymap.c
index fc5f22cd8b..6efb6003de 100644
--- a/keyboards/keebio/bdn9/keymaps/via/keymap.c
+++ b/keyboards/keebio/bdn9/keymaps/via/keymap.c
@@ -1,42 +1,45 @@
#include QMK_KEYBOARD_H
-enum encoder_names {
- _LEFT,
- _RIGHT,
- _MIDDLE,
-};
-
enum layer_names {
- _ZERO,
- _ONE,
- _TWO,
- _THREE
+ _MAIN,
+ _FN1,
+ _FN2,
+ _FN3
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-[_ZERO] = LAYOUT(
+[_MAIN] = LAYOUT(
KC_MPLY, KC_HOME, KC_MUTE,
MO(1), KC_UP, RGB_MOD,
KC_LEFT, KC_DOWN, KC_RGHT
),
-[_ONE] = LAYOUT(
- QK_BOOT, BL_STEP, KC_STOP,
+[_FN1] = LAYOUT(
+ QK_BOOT, BL_STEP, KC_STOP,
_______, KC_HOME, RGB_MOD,
KC_MPRV, KC_END , KC_MNXT
),
-[_TWO] = LAYOUT(
+[_FN2] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
-[_THREE] = LAYOUT(
+[_FN3] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
)
};
+
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_MAIN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
+ [_FN1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
+ [_FN2] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+ [_FN3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
+};
+#endif
diff --git a/keyboards/keebio/bdn9/keymaps/via/rules.mk b/keyboards/keebio/bdn9/keymaps/via/rules.mk
index d96967a608..a7017de2b6 100644
--- a/keyboards/keebio/bdn9/keymaps/via/rules.mk
+++ b/keyboards/keebio/bdn9/keymaps/via/rules.mk
@@ -3,3 +3,4 @@ LTO_ENABLE = yes
MOUSEKEY_ENABLE = yes
CONSOLE_ENABLE = yes
COMMAND_ENABLE = no
+ENCODER_MAP_ENABLE = yes