[Update] E8ghtyNeo caps indicator (#25009)

This commit is contained in:
Thanh Son Tran 2025-07-06 13:00:39 +07:00 committed by GitHub
parent a9a2b699cd
commit 0b33318a24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,24 @@
// Copyright 2025 QMK
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
#if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_LAYERS)
const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
{0,4, HSV_GREEN}
);
const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
my_capslock_layer
);
void keyboard_post_init_kb(void) {
rgblight_layers = my_rgb_layers;
keyboard_post_init_user();
}
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
rgblight_set_layer_state(0, led_state.caps_lock);
}
return res;
}
#endif

View File

@ -10,8 +10,8 @@
"nkro": true
},
"matrix_pins": {
"cols": ["A9", "A8", "B14", "B12", "B11", "B10", "B0", "A7", "A6", "A4", "A3", "A2", "A1", "A0", "C13", "B9", "B7"],
"rows": ["B8", "A10", "B1", "A5", "C15", "C14"]
"cols": ["A9", "A8", "B14", "B12", "B11", "B10", "B0", "A7", "A6", "A5", "A3", "A2", "A1", "A0", "C13", "B9", "B7"],
"rows": ["B8", "A10", "B1", "A4", "C15", "C14"]
},
"rgblight": {
"animations": {
@ -28,6 +28,9 @@
"default": {
"animation": "rainbow_mood"
},
"layers": {
"enabled": true,
},
"led_count": 4,
"sleep": true
},