]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
m0110_usb: Add LED flash on startup
authortmk <hasu@tmk-kbd.com>
Fri, 8 Jan 2016 03:48:35 +0000 (12:48 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 8 Jan 2016 03:48:35 +0000 (12:48 +0900)
converter/m0110_usb/matrix.c

index 2189c0b56fe492ab0b58a557aa084589132077a9..9dcdc0d6d5061d6b5a6a5e0b4c0df68babe5323a 100644 (file)
@@ -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;
 }