diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-11-21 19:18:47 -0500 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-21 19:18:47 -0500 |
commit | 27ebacb15d39046713bd87e06c1157b1ffab6aaf (patch) | |
tree | 5a60417af07d3ff8798e371db210dd32ef10d332 /keyboards/infinity60/matrix.c | |
parent | c1037b1dc060d14a09a59f697fefe2b5b91bf373 (diff) | |
parent | 3b990c08dcc0e57875e9220a5e6371f60679c7ae (diff) | |
download | firmware-27ebacb15d39046713bd87e06c1157b1ffab6aaf.tar.gz firmware-27ebacb15d39046713bd87e06c1157b1ffab6aaf.tar.bz2 firmware-27ebacb15d39046713bd87e06c1157b1ffab6aaf.zip |
merging lets_split
Diffstat (limited to 'keyboards/infinity60/matrix.c')
-rw-r--r-- | keyboards/infinity60/matrix.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboards/infinity60/matrix.c b/keyboards/infinity60/matrix.c index 62c165aa5..d2f185288 100644 --- a/keyboards/infinity60/matrix.c +++ b/keyboards/infinity60/matrix.c @@ -96,7 +96,12 @@ uint8_t matrix_scan(void) } #endif - wait_us(1); // need wait to settle pin state + // need wait to settle pin state + // if you wait too short, or have a too high update rate + // the keyboard might freeze, or there might not be enough + // processing power to update the LCD screen properly. + // 20us, or two ticks at 100000Hz seems to be OK + wait_us(20); // read col data data = (palReadPort(GPIOD)>>1); |