From 7d621aca7bcf34374e30ddfe79f0f16cf5caa26e Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 8 Jan 2016 12:48:35 +0900 Subject: [PATCH] m0110_usb: Add LED flash on startup --- converter/m0110_usb/matrix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/converter/m0110_usb/matrix.c b/converter/m0110_usb/matrix.c index 2189c0b5..9dcdc0d6 100644 --- a/converter/m0110_usb/matrix.c +++ b/converter/m0110_usb/matrix.c @@ -64,6 +64,12 @@ void matrix_init(void) // initialize matrix state: all keys off for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix0[i] = 0x00; matrix = _matrix0; + + // LED flash + DDRD |= (1<<6); PORTD |= (1<<6); + _delay_ms(500); + DDRD |= (1<<6); PORTD &= ~(1<<6); + return; } -- 2.46.2