aboutsummaryrefslogtreecommitdiff
path: root/keyboards/trnthsn/e8ghtyneo
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/trnthsn/e8ghtyneo')
-rw-r--r--keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c24
-rw-r--r--keyboards/trnthsn/e8ghtyneo/info.json10
2 files changed, 29 insertions, 5 deletions
diff --git a/keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c b/keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c
new file mode 100644
index 0000000000..b1af2c63a8
--- /dev/null
+++ b/keyboards/trnthsn/e8ghtyneo/e8ghtyneo.c
@@ -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
diff --git a/keyboards/trnthsn/e8ghtyneo/info.json b/keyboards/trnthsn/e8ghtyneo/info.json
index fef6259d24..6bd6d5ca66 100644
--- a/keyboards/trnthsn/e8ghtyneo/info.json
+++ b/keyboards/trnthsn/e8ghtyneo/info.json
@@ -5,15 +5,13 @@
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
- "command": false,
- "console": false,
"extrakey": true,
"mousekey": true,
"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": {
@@ -30,6 +28,9 @@
"default": {
"animation": "rainbow_mood"
},
+ "layers": {
+ "enabled": true,
+ },
"led_count": 4,
"sleep": true
},
@@ -40,7 +41,6 @@
"indicators": {
"caps_lock": "B3"
},
- "url": "",
"usb": {
"vid": "0x5453",
"pid": "0x3845",