Changes lets_split to use timer based debouncing
The let's split code used delays in its debouncing algorithm which increases input latency. This commit copies and adapts the code from `quantum/matrix.c` to lets_split's `matrix.c`.
This commit is contained in:
parent
ac634aa455
commit
07cb997b6d
2 changed files with 200 additions and 50 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "matrix.h"
|
||||
#include "keyboard.h"
|
||||
#include "config.h"
|
||||
#include "timer.h"
|
||||
|
||||
#ifdef USE_I2C
|
||||
# include "i2c.h"
|
||||
|
@ -42,6 +43,7 @@ static void keyboard_master_setup(void) {
|
|||
}
|
||||
|
||||
static void keyboard_slave_setup(void) {
|
||||
timer_init();
|
||||
#ifdef USE_I2C
|
||||
i2c_slave_init(SLAVE_I2C_ADDRESS);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue