summaryrefslogtreecommitdiff
path: root/keyboards/aidansmithdotdev/fine40/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/aidansmithdotdev/fine40/keymaps')
-rw-r--r--keyboards/aidansmithdotdev/fine40/keymaps/default/keymap.c9
-rw-r--r--keyboards/aidansmithdotdev/fine40/keymaps/default/rules.mk1
-rw-r--r--keyboards/aidansmithdotdev/fine40/keymaps/via/keymap.c9
-rw-r--r--keyboards/aidansmithdotdev/fine40/keymaps/via/rules.mk3
4 files changed, 21 insertions, 1 deletions
diff --git a/keyboards/aidansmithdotdev/fine40/keymaps/default/keymap.c b/keyboards/aidansmithdotdev/fine40/keymaps/default/keymap.c
index d157d9db31..69b9dacd27 100644
--- a/keyboards/aidansmithdotdev/fine40/keymaps/default/keymap.c
+++ b/keyboards/aidansmithdotdev/fine40/keymaps/default/keymap.c
@@ -41,3 +41,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_MS_L , KC_MS_D , KC_MS_U , KC_MS_R , _______
),
};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_MAIN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_LEFT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_RIGHT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_TAB] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+};
+#endif \ No newline at end of file
diff --git a/keyboards/aidansmithdotdev/fine40/keymaps/default/rules.mk b/keyboards/aidansmithdotdev/fine40/keymaps/default/rules.mk
new file mode 100644
index 0000000000..ee32568148
--- /dev/null
+++ b/keyboards/aidansmithdotdev/fine40/keymaps/default/rules.mk
@@ -0,0 +1 @@
+ENCODER_MAP_ENABLE = yes
diff --git a/keyboards/aidansmithdotdev/fine40/keymaps/via/keymap.c b/keyboards/aidansmithdotdev/fine40/keymaps/via/keymap.c
index d157d9db31..69b9dacd27 100644
--- a/keyboards/aidansmithdotdev/fine40/keymaps/via/keymap.c
+++ b/keyboards/aidansmithdotdev/fine40/keymaps/via/keymap.c
@@ -41,3 +41,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______ , _______ , _______ , _______ , _______ , _______ , _______ , KC_MS_L , KC_MS_D , KC_MS_U , KC_MS_R , _______
),
};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
+ [_MAIN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_LEFT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_RIGHT] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+ [_TAB] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
+};
+#endif \ No newline at end of file
diff --git a/keyboards/aidansmithdotdev/fine40/keymaps/via/rules.mk b/keyboards/aidansmithdotdev/fine40/keymaps/via/rules.mk
index 036bd6d1c3..f1adcab005 100644
--- a/keyboards/aidansmithdotdev/fine40/keymaps/via/rules.mk
+++ b/keyboards/aidansmithdotdev/fine40/keymaps/via/rules.mk
@@ -1 +1,2 @@
-VIA_ENABLE = yes \ No newline at end of file
+VIA_ENABLE = yes
+ENCODER_MAP_ENABLE = yes