Skip to content

Commit

Permalink
Add encoder map FoldKB in VIA (#21038)
Browse files Browse the repository at this point in the history
  • Loading branch information
nooges authored May 24, 2023
1 parent 618d0f0 commit f9c3297
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions keyboards/keebio/foldkb/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};

#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(RGB_RMOD, RGB_MOD) },
[2] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
[3] = { ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
};
#endif
1 change: 1 addition & 0 deletions keyboards/keebio/foldkb/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VIA_ENABLE = yes
CONSOLE_ENABLE = no
LTO_ENABLE = yes
ENCODER_MAP_ENABLE = yes
2 changes: 1 addition & 1 deletion keyboards/keebio/foldkb/rev1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"maintainer": "nooges",
"usb": {
"vid": "0xCB10",
"pid": "0x1258",
"pid": "0x1358",
"device_version": "1.0.0"
},
"encoder": {
Expand Down

0 comments on commit f9c3297

Please sign in to comment.