Skip to content

Commit

Permalink
Update keymap.c to add encoder (qmk#21469)
Browse files Browse the repository at this point in the history
* Update keymap.c to add encoder

* Fix build

---------

Co-authored-by: zvecr <[email protected]>
  • Loading branch information
2 people authored and jesperhellberg committed Sep 9, 2023
1 parent 0bc3dc6 commit e8d3623
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions keyboards/macro1/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit e8d3623

Please sign in to comment.