1
0

Update matrix.c

This commit is contained in:
di0ib 2018-03-10 18:06:01 -10:00 committed by GitHub
parent eecfb98bf2
commit dc0e244fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,10 @@ uint8_t matrix_cols(void)
void matrix_init(void) void matrix_init(void)
{ {
// To use PORTF disable JTAG with writing JTD bit twice within four cycles.
MCUCR |= (1<<JTD);
MCUCR |= (1<<JTD);
// initialize row and col // initialize row and col
unselect_rows(); unselect_rows();
init_cols(); init_cols();