debug_keyboard = true;
debug_matrix = true;
#endif
- debug_enable = true;
- debug_matrix = true;
KEY_INIT();
// LEDs on NumLock, CapsLock and ScrollLock(PB4, PB5, PB6)
DDRB |= (1<<4) | (1<<5) | (1<<6);
- PORTB |= (1<<4) | (1<<5) | (1<<6);
+ PORTB &= ~((1<<4) | (1<<5) | (1<<6));
// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;
// NOTE: KEY_STATE keep its state in 20us after KEY_ENABLE.
// This takes 25us or more to make sure KEY_STATE returns to idle state.
- _delay_us(75);
+ _delay_us(30);
}
if (matrix[row] ^ matrix_prev[row]) {
matrix_last_modified = timer_read32();