qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit c09837e092ff3c8e74dde8567ef9eb3e7a343805
parent cf9239a88277b0fbdd6de184374c6c84c39d8d8f
Author: Ramon Imbao <ramonimbao@gmail.com>
Date:   Thu,  9 Dec 2021 01:38:47 +0800

[Keyboard] Flip encoder and fix weird volume behavior for Herringbone Pro (#15423)

Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat:
Mkeyboards/ramonimbao/herringbone/pro/config.h | 4++--
Mkeyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c | 2++
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/keyboards/ramonimbao/herringbone/pro/config.h b/keyboards/ramonimbao/herringbone/pro/config.h @@ -48,8 +48,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #define DIODE_DIRECTION COL2ROW /* Encoder pin assignment */ -#define ENCODERS_PAD_A { C2 } -#define ENCODERS_PAD_B { C3 } +#define ENCODERS_PAD_A { C3 } +#define ENCODERS_PAD_B { C2 } /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 5 diff --git a/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c b/keyboards/ramonimbao/herringbone/pro/keymaps/via/keymap.c @@ -88,12 +88,14 @@ bool encoder_update_user(uint8_t index, bool clockwise) { encoder_cw.pressed = true; encoder_cw.time = (timer_read() | 1); action_exec(encoder_cw); + wait_ms(20); anim_sleep = timer_read32(); oled_on(); } else { encoder_ccw.pressed = true; encoder_ccw.time = (timer_read() | 1); action_exec(encoder_ccw); + wait_ms(20); anim_sleep = timer_read32(); oled_on(); }