mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 22:23:21 +00:00
29 lines
637 B
C
29 lines
637 B
C
|
// Copyright 2023 Alex Stepanov (@alvicstep)
|
||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
||
|
#include "quantum.h"
|
||
|
|
||
|
void matrix_init_kb(void) {
|
||
|
|
||
|
uint8_t led_delay_ms = 80;
|
||
|
|
||
|
/* LED pins setup */
|
||
|
setPinOutput(LED_CAPS_LOCK_PIN);
|
||
|
writePinLow(LED_CAPS_LOCK_PIN);
|
||
|
|
||
|
wait_ms(led_delay_ms);
|
||
|
setPinOutput(LED_NUM_LOCK_PIN);
|
||
|
writePinLow(LED_NUM_LOCK_PIN);
|
||
|
wait_ms(led_delay_ms);
|
||
|
|
||
|
setPinOutput(LED_SCROLL_LOCK_PIN);
|
||
|
writePinLow(LED_SCROLL_LOCK_PIN);
|
||
|
wait_ms(led_delay_ms);
|
||
|
|
||
|
setPinOutput(LED_COMPOSE_PIN);
|
||
|
writePinLow(LED_COMPOSE_PIN);
|
||
|
wait_ms(led_delay_ms);
|
||
|
writePinHigh(LED_COMPOSE_PIN);
|
||
|
|
||
|
matrix_init_user();
|
||
|
}
|