1
0

m0110_usb: Add LED flash on startup

This commit is contained in:
tmk 2016-01-08 12:48:35 +09:00
parent c219570e54
commit 7d621aca7b

View File

@ -64,6 +64,12 @@ void matrix_init(void)
// initialize matrix state: all keys off // initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00;
matrix = _matrix0; matrix = _matrix0;
// LED flash
DDRD |= (1<<6); PORTD |= (1<<6);
_delay_ms(500);
DDRD |= (1<<6); PORTD &= ~(1<<6);
return; return;
} }