DO NOT USE - debounce successfully compiled.
This commit is contained in:
parent
3949ab322d
commit
d0b691df0e
7 changed files with 251 additions and 65 deletions
|
@ -51,9 +51,8 @@ static const pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
|||
#endif
|
||||
|
||||
/* matrix state(1:on, 0:off) */
|
||||
static matrix_row_t raw_matrix[MATRIX_ROWS];
|
||||
|
||||
static matrix_row_t matrix[MATRIX_ROWS];
|
||||
static matrix_row_t raw_matrix[MATRIX_ROWS]; //raw values
|
||||
static matrix_row_t matrix[MATRIX_ROWS]; //debounced values
|
||||
|
||||
#if (DIODE_DIRECTION == COL2ROW)
|
||||
static void init_cols(void);
|
||||
|
@ -123,7 +122,7 @@ void matrix_init(void) {
|
|||
raw_matrix[i] = 0;
|
||||
matrix[i] = 0;
|
||||
}
|
||||
debounce_init(MATRIX_ROWS);
|
||||
debounce_init();
|
||||
|
||||
matrix_init_quantum();
|
||||
}
|
||||
|
@ -144,7 +143,7 @@ uint8_t matrix_scan(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
|
||||
debounce(raw_matrix, matrix, changed);
|
||||
|
||||
matrix_scan_quantum();
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue