matrix[i] = 0;
matrix_debouncing[i] = 0;
}
+
+ //debug
+ debug_matrix = true;
+ LED_ON();
+ _delay_ms(500);
+ LED_OFF();
}
uint8_t matrix_scan(void)
DDRD &= ~0b01111111;
PORTD &= ~0b01111111;
DDRC &= ~0b00000100;
- PORTD &= ~0b00000100;
+ PORTC &= ~0b00000100;
}
+
static void select_row(uint8_t row)
{
// Output low(DDR:1, PORT:0) to select