]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
adb_usb: Add LED flash on startup
authortmk <hasu@tmk-kbd.com>
Fri, 8 Jan 2016 01:39:23 +0000 (10:39 +0900)
committertmk <hasu@tmk-kbd.com>
Fri, 8 Jan 2016 01:39:23 +0000 (10:39 +0900)
converter/adb_usb/matrix.c

index 6220ee6e1c001418f19b381c309ea6b5b4d88185..dad71758bce9946b6f29486fae46c607eba04051 100644 (file)
@@ -86,6 +86,12 @@ void matrix_init(void)
     //debug_keyboard = true;
     //debug_mouse = true;
     print("debug enabled.\n");
+
+    // LED flash
+    DDRD |= (1<<6); PORTD |= (1<<6);
+    _delay_ms(500);
+    DDRD |= (1<<6); PORTD &= ~(1<<6);
+
     return;
 }