summaryrefslogtreecommitdiff
path: root/keyboards/skeletonkbd/frost68/frost68.c
diff options
context:
space:
mode:
authorskeletonkbd <90203406+skeletonkbd@users.noreply.github.com>2023-07-04 11:21:45 +0900
committerGitHub <noreply@github.com>2023-07-03 19:21:45 -0700
commit6c1f2187f5a78868feaee32677d0ac80e808fd4b (patch)
tree47a85c3b0a81d444dce24c13cb7aec82b4429a13 /keyboards/skeletonkbd/frost68/frost68.c
parent82af8b9bf1f8c11f67256dfb2cdbf5053f5882b4 (diff)
[Keyboard] Add Frost68 keyboard (#20370)
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>
Diffstat (limited to 'keyboards/skeletonkbd/frost68/frost68.c')
-rw-r--r--keyboards/skeletonkbd/frost68/frost68.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/keyboards/skeletonkbd/frost68/frost68.c b/keyboards/skeletonkbd/frost68/frost68.c
new file mode 100644
index 0000000000..4bfd3fa28f
--- /dev/null
+++ b/keyboards/skeletonkbd/frost68/frost68.c
@@ -0,0 +1,18 @@
+// 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;
+}