1
0
Fork 0

[Keyboard] Add Iris Rev 4 (#6660)

* Add Iris Rev. 4

* Fix EEPROM addresses
This commit is contained in:
Danny 2019-09-05 23:10:57 -04:00 committed by Drashna Jaelre
parent 98599173d7
commit f0ad3fc68a
7 changed files with 156 additions and 3 deletions

View file

@ -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);
}
}
}