From: tmk Date: Fri, 8 Jan 2016 03:48:35 +0000 (+0900) Subject: m0110_usb: Add LED flash on startup X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=7d621aca7bcf34374e30ddfe79f0f16cf5caa26e;p=max%2Ftmk_keyboard.git m0110_usb: Add LED flash on startup --- 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; }