mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 06:10:53 +00:00
6c1f2187f5
Co-authored-by: Pablo Martínez <58857054+elpekenin@users.noreply.github.com> Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: jack <0x6a73@protonmail.com>
19 lines
545 B
C
19 lines
545 B
C
// Copyright 2023 skeletonkbd (@skeletonkbd)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "quantum.h"
|
|
|
|
bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
|
|
if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
|
|
return false;
|
|
}
|
|
if (host_keyboard_led_state().caps_lock) {
|
|
for (uint8_t i = led_min; i < led_max; i++) {
|
|
if (g_led_config.flags[i] & LED_FLAG_INDICATOR) {
|
|
rgb_matrix_set_color(i, RGB_RED);
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|