summaryrefslogtreecommitdiffstats
path: root/keyboards/boardsource/lulu/keymaps
diff options
context:
space:
mode:
authorjack <0x6A73@pm.me>2022-12-13 19:49:06 -0700
committerGitHub <noreply@github.com>2022-12-14 13:49:06 +1100
commitfecfb176b4e3de2867c4c8f5a407b26619511780 (patch)
tree490ea62613e353d3a6e71a1eef5c28127320e64d /keyboards/boardsource/lulu/keymaps
parent582f879d6fe0731aa58ce8c2e52727d2bc622d0a (diff)
Add encoder map to boardsource/lulu, and some other dd migrations (#19281)
Diffstat (limited to 'keyboards/boardsource/lulu/keymaps')
-rw-r--r--keyboards/boardsource/lulu/keymaps/via/keymap.c11
-rw-r--r--keyboards/boardsource/lulu/keymaps/via/rules.mk3
2 files changed, 12 insertions, 2 deletions
diff --git a/keyboards/boardsource/lulu/keymaps/via/keymap.c b/keyboards/boardsource/lulu/keymaps/via/keymap.c
index ac9efbfac1..67ef4b7b6b 100644
--- a/keyboards/boardsource/lulu/keymaps/via/keymap.c
+++ b/keyboards/boardsource/lulu/keymaps/via/keymap.c
@@ -5,8 +5,8 @@
enum layers {
_QWERTY,
- _RAISE,
_LOWER,
+ _RAISE,
_ADJUST
};
@@ -102,3 +102,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______
)
};
+
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_QWERTY] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
+ [_LOWER] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
+ [_RAISE] = { ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
+ [_ADJUST] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }
+};
+#endif
diff --git a/keyboards/boardsource/lulu/keymaps/via/rules.mk b/keyboards/boardsource/lulu/keymaps/via/rules.mk
index 036bd6d1c3..f1adcab005 100644
--- a/keyboards/boardsource/lulu/keymaps/via/rules.mk
+++ b/keyboards/boardsource/lulu/keymaps/via/rules.mk
@@ -1 +1,2 @@
-VIA_ENABLE = yes \ No newline at end of file
+VIA_ENABLE = yes
+ENCODER_MAP_ENABLE = yes