summaryrefslogtreecommitdiff
path: root/keyboards/abatskeyboardclub
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-01-02 03:05:08 +0000
committerGitHub <noreply@github.com>2024-01-02 03:05:08 +0000
commit60f0132bd56bdd6b3eda5ca6088e45be7a4a20bc (patch)
tree586a1474044b1349d540c711d3bf510b86640b0a /keyboards/abatskeyboardclub
parent0a6913b68274c03302b09466a79b99efffd35e59 (diff)
Migrate RGB Matrix config to info.json - A (#22798)
Diffstat (limited to 'keyboards/abatskeyboardclub')
-rw-r--r--keyboards/abatskeyboardclub/nayeon/config.h21
-rw-r--r--keyboards/abatskeyboardclub/nayeon/info.json9
-rw-r--r--keyboards/abatskeyboardclub/nayeon/nayeon.c18
-rw-r--r--keyboards/abatskeyboardclub/nayeon/rules.mk3
4 files changed, 11 insertions, 40 deletions
diff --git a/keyboards/abatskeyboardclub/nayeon/config.h b/keyboards/abatskeyboardclub/nayeon/config.h
deleted file mode 100644
index f225f555f9..0000000000
--- a/keyboards/abatskeyboardclub/nayeon/config.h
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-Copyright 2022 Ramon Imbao
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#pragma once
-
-/* RGB Matrix setup */
-#define RGB_MATRIX_LED_COUNT 2
diff --git a/keyboards/abatskeyboardclub/nayeon/info.json b/keyboards/abatskeyboardclub/nayeon/info.json
index 7a3b650ff1..a3fac207f4 100644
--- a/keyboards/abatskeyboardclub/nayeon/info.json
+++ b/keyboards/abatskeyboardclub/nayeon/info.json
@@ -13,7 +13,8 @@
"extrakey": true,
"console": false,
"command": false,
- "nkro": false
+ "nkro": false,
+ "rgb_matrix": true
},
"usb": {
"vid": "0xABA7",
@@ -25,7 +26,11 @@
"driver": "vendor"
},
"rgb_matrix": {
- "driver": "ws2812"
+ "driver": "ws2812",
+ "layout": [
+ {"matrix": [3, 0], "x": 5, "y": 40, "flags": 8},
+ {"matrix": [0, 15], "x": 211, "y": 0, "flags": 8}
+ ]
},
"processor": "RP2040",
"bootloader": "rp2040",
diff --git a/keyboards/abatskeyboardclub/nayeon/nayeon.c b/keyboards/abatskeyboardclub/nayeon/nayeon.c
index 504df12999..0c559046e9 100644
--- a/keyboards/abatskeyboardclub/nayeon/nayeon.c
+++ b/keyboards/abatskeyboardclub/nayeon/nayeon.c
@@ -16,21 +16,7 @@
#include "quantum.h"
-led_config_t g_led_config = {{
- // Key Matrix to LED Index
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, 1, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { 0, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED },
- { NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED, NO_LED }
-}, {
- // LED Index to Physical Position
- { 5, 40 }, { 211, 0 }
-}, {
- // LED Index to Flag
- LED_FLAG_INDICATOR, LED_FLAG_INDICATOR
-}};
+#ifdef RGB_MATRIX_ENABLE
bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
if (!rgb_matrix_indicators_advanced_user(led_min, led_max)) {
@@ -45,3 +31,5 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
return true;
}
+
+#endif
diff --git a/keyboards/abatskeyboardclub/nayeon/rules.mk b/keyboards/abatskeyboardclub/nayeon/rules.mk
index e458f33f3c..6e7633bfe0 100644
--- a/keyboards/abatskeyboardclub/nayeon/rules.mk
+++ b/keyboards/abatskeyboardclub/nayeon/rules.mk
@@ -1,2 +1 @@
-# RGB Matrix
-RGB_MATRIX_ENABLE = yes
+# This file intentionally left blank