summaryrefslogtreecommitdiffstats
path: root/keyboards/checkerboards/quark/keymaps/via
diff options
context:
space:
mode:
authornpspears <40127181+npspears@users.noreply.github.com>2022-09-16 12:37:39 -0500
committerGitHub <noreply@github.com>2022-09-16 18:37:39 +0100
commit799046fd9de389f15651d121d64f5be373e7dffe (patch)
tree58253e46fe9ed9dcd5f6c81e5d5785a8525ccac0 /keyboards/checkerboards/quark/keymaps/via
parent1ec8ae8a49f02ae732cc5315d75bf2a6505fe00d (diff)
Quark revision - rotary encoder and 7u support (#17664)
by npspears
Diffstat (limited to 'keyboards/checkerboards/quark/keymaps/via')
-rw-r--r--keyboards/checkerboards/quark/keymaps/via/keymap.c8
-rw-r--r--keyboards/checkerboards/quark/keymaps/via/rules.mk1
2 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/checkerboards/quark/keymaps/via/keymap.c b/keyboards/checkerboards/quark/keymaps/via/keymap.c
index 01e916bfe4..f8a5c215f1 100644
--- a/keyboards/checkerboards/quark/keymaps/via/keymap.c
+++ b/keyboards/checkerboards/quark/keymaps/via/keymap.c
@@ -84,3 +84,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
QK_BOOT, _______, _______, _______, _______, _______, _______, _______
)
};
+
+#ifdef ENCODER_MAP_ENABLE
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [1] = { ENCODER_CCW_CW(_______, _______) },
+ [2] = { ENCODER_CCW_CW(_______, _______) },
+};
+#endif
diff --git a/keyboards/checkerboards/quark/keymaps/via/rules.mk b/keyboards/checkerboards/quark/keymaps/via/rules.mk
index 1e5b99807c..f1adcab005 100644
--- a/keyboards/checkerboards/quark/keymaps/via/rules.mk
+++ b/keyboards/checkerboards/quark/keymaps/via/rules.mk
@@ -1 +1,2 @@
VIA_ENABLE = yes
+ENCODER_MAP_ENABLE = yes