mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-13 19:31:31 +00:00
[Update] E8ghtyNeo caps indicator (#25009)
This commit is contained in:
parent
a9a2b699cd
commit
0b33318a24
24
keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c
Normal file
24
keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c
Normal 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
|
@ -10,8 +10,8 @@
|
|||||||
"nkro": true
|
"nkro": true
|
||||||
},
|
},
|
||||||
"matrix_pins": {
|
"matrix_pins": {
|
||||||
"cols": ["A9", "A8", "B14", "B12", "B11", "B10", "B0", "A7", "A6", "A4", "A3", "A2", "A1", "A0", "C13", "B9", "B7"],
|
"cols": ["A9", "A8", "B14", "B12", "B11", "B10", "B0", "A7", "A6", "A5", "A3", "A2", "A1", "A0", "C13", "B9", "B7"],
|
||||||
"rows": ["B8", "A10", "B1", "A5", "C15", "C14"]
|
"rows": ["B8", "A10", "B1", "A4", "C15", "C14"]
|
||||||
},
|
},
|
||||||
"rgblight": {
|
"rgblight": {
|
||||||
"animations": {
|
"animations": {
|
||||||
@ -28,6 +28,9 @@
|
|||||||
"default": {
|
"default": {
|
||||||
"animation": "rainbow_mood"
|
"animation": "rainbow_mood"
|
||||||
},
|
},
|
||||||
|
"layers": {
|
||||||
|
"enabled": true,
|
||||||
|
},
|
||||||
"led_count": 4,
|
"led_count": 4,
|
||||||
"sleep": true
|
"sleep": true
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user