From f0ad3fc68a052be00c772b3b911079091015e57d Mon Sep 17 00:00:00 2001 From: Danny Date: Thu, 5 Sep 2019 23:10:57 -0400 Subject: [Keyboard] Add Iris Rev 4 (#6660) * Add Iris Rev. 4 * Fix EEPROM addresses --- keyboards/keebio/iris/keymaps/default/keymap.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'keyboards/keebio/iris/keymaps/default') diff --git a/keyboards/keebio/iris/keymaps/default/keymap.c b/keyboards/keebio/iris/keymaps/default/keymap.c index 758b842f75..942f963122 100644 --- a/keyboards/keebio/iris/keymaps/default/keymap.c +++ b/keyboards/keebio/iris/keymaps/default/keymap.c @@ -112,3 +112,20 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return true; } + +void encoder_update_user(uint8_t index, bool clockwise) { + if (index == 0) { + if (clockwise) { + tap_code(KC_VOLU); + } else { + tap_code(KC_VOLD); + } + } + else if (index == 1) { + if (clockwise) { + tap_code(KC_PGDN); + } else { + tap_code(KC_PGUP); + } + } +} -- cgit v1.2.1