summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorLaneware <68452738+Laneware@users.noreply.github.com>2023-08-30 10:24:13 +1000
committerGitHub <noreply@github.com>2023-08-30 01:24:13 +0100
commitfbb61c3b1d4141d244049be25eeb5675d2c59428 (patch)
tree0a9cd3b329a430946ae937c6f5b3ead50a77bff2 /keyboards
parent281541fe1b6f369d63dd77f00a0f133e6f3d4f73 (diff)
Update keymap.c to add encoder (#21469)
* Update keymap.c to add encoder * Fix build --------- Co-authored-by: zvecr <git@zvecr.com>
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/macro1/keymaps/default/keymap.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/keyboards/macro1/keymaps/default/keymap.c b/keyboards/macro1/keymaps/default/keymap.c
index 22cff4a718..047ea69808 100644
--- a/keyboards/macro1/keymaps/default/keymap.c
+++ b/keyboards/macro1/keymaps/default/keymap.c
@@ -41,24 +41,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS,
KC_KP_4, KC_KP_5, KC_KP_6,
KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER,
- KC_KP_0, KC_KP_DOT),
-
- [1] = LAYOUT_numpad(
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS),
-
- [2] = LAYOUT_numpad(
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS), };
-
-
+ KC_KP_0, KC_KP_DOT)
+};
+
+#if defined(ENCODER_MAP_ENABLE)
+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
+ [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}
+};
+#endif