|
|
@ -56,12 +56,6 @@ uint8_t matrix_cols(void)
|
|
|
|
return MATRIX_COLS;
|
|
|
|
return MATRIX_COLS;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static
|
|
|
|
|
|
|
|
void setup_leds(void) {
|
|
|
|
|
|
|
|
DDRF |= 0x00;
|
|
|
|
|
|
|
|
PORTF |= 0x00;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void matrix_init(void)
|
|
|
|
void matrix_init(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -69,8 +63,6 @@ void matrix_init(void)
|
|
|
|
unselect_rows();
|
|
|
|
unselect_rows();
|
|
|
|
init_cols();
|
|
|
|
init_cols();
|
|
|
|
|
|
|
|
|
|
|
|
setup_leds();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// initialize matrix state: all keys off
|
|
|
|
// initialize matrix state: all keys off
|
|
|
|
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
|
|
|
|
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
|
|
|
|
matrix[i] = 0;
|
|
|
|
matrix[i] = 0;
|
|
|
|