Skip to content

Commit

Permalink
fix(kscan): Fix nibble demux scan errors on encoder row
Browse files Browse the repository at this point in the history
+ Add a 1us sleep to let the column selection settle in order to avoid spurious keypresses when row capacitance is high (like on the encoder row)
  • Loading branch information
jaygreco authored Jun 9, 2021
1 parent faa90be commit f3bb90f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/drivers/kscan/kscan_gpio_demux.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ struct kscan_gpio_item_config {
&kscan_gpio_output_configs_##n(dev)[bit]; \
gpio_pin_set(out_dev, out_cfg->pin, state); \
} \
/* Let the col settle before reading the rows */ \
k_usleep(1); \
\
for (int i = 0; i < INST_MATRIX_INPUTS(n); i++) { \
/* Get the input device (port) */ \
Expand Down

0 comments on commit f3bb90f

Please sign in to comment.