We want to give the hardware enough time to give us a stable read of the pins. If we unroll the loop, we will not have that. In practice, this leads to entire rows or columns behaving erratically. To fix that, we tell the compiler not to unroll loops in the `readCols()` method (it's free to unroll them elsewhere). This makes the function a tiny bit slower, but gives us a stable read. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/554/head
parent
30ab84b17c
commit
fb75fc7091
Loading…
Reference in new issue