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(); |