2023-08-14 09:01:31 +02:00
|
|
|
// 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 */
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(LED_CAPS_LOCK_PIN);
|
|
|
|
gpio_write_pin_low(LED_CAPS_LOCK_PIN);
|
2023-08-14 09:01:31 +02:00
|
|
|
|
|
|
|
wait_ms(led_delay_ms);
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(LED_NUM_LOCK_PIN);
|
|
|
|
gpio_write_pin_low(LED_NUM_LOCK_PIN);
|
2023-08-14 09:01:31 +02:00
|
|
|
wait_ms(led_delay_ms);
|
|
|
|
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(LED_SCROLL_LOCK_PIN);
|
|
|
|
gpio_write_pin_low(LED_SCROLL_LOCK_PIN);
|
2023-08-14 09:01:31 +02:00
|
|
|
wait_ms(led_delay_ms);
|
|
|
|
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_set_pin_output(LED_COMPOSE_PIN);
|
|
|
|
gpio_write_pin_low(LED_COMPOSE_PIN);
|
2023-08-14 09:01:31 +02:00
|
|
|
wait_ms(led_delay_ms);
|
2024-05-03 07:21:29 +02:00
|
|
|
gpio_write_pin_high(LED_COMPOSE_PIN);
|
2023-08-14 09:01:31 +02:00
|
|
|
|
|
|
|
matrix_init_user();
|
|
|
|
}
|