summaryrefslogtreecommitdiff
path: root/keyboards/yushakobo/navpad
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-06-14 22:01:13 +1000
committerGitHub <noreply@github.com>2023-06-14 22:01:13 +1000
commit9551a0a38aca3d32e38a123ae2854a8c82b26195 (patch)
treeb246fae82fe993ad7d7aabc51cc2fa408f8517b5 /keyboards/yushakobo/navpad
parent6c4286152f924fc98a6f18e14987f1db6e55ae5e (diff)
Move `RGBLIGHT_LED_MAP` to data driven (#21095)
Diffstat (limited to 'keyboards/yushakobo/navpad')
-rw-r--r--keyboards/yushakobo/navpad/10/rev1/config.h20
-rw-r--r--keyboards/yushakobo/navpad/10/rev1/info.json3
-rw-r--r--keyboards/yushakobo/navpad/10_helix_r/config.h8
-rw-r--r--keyboards/yushakobo/navpad/10_helix_r/info.json1
4 files changed, 4 insertions, 28 deletions
diff --git a/keyboards/yushakobo/navpad/10/rev1/config.h b/keyboards/yushakobo/navpad/10/rev1/config.h
deleted file mode 100644
index d4a4e48d77..0000000000
--- a/keyboards/yushakobo/navpad/10/rev1/config.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-Copyright 2021 yushakobo
-
-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
-
-# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7 }
diff --git a/keyboards/yushakobo/navpad/10/rev1/info.json b/keyboards/yushakobo/navpad/10/rev1/info.json
index bd20c0d0b4..a35dc4d5e9 100644
--- a/keyboards/yushakobo/navpad/10/rev1/info.json
+++ b/keyboards/yushakobo/navpad/10/rev1/info.json
@@ -2,6 +2,9 @@
"usb": {
"device_version": "0.0.1"
},
+ "rgblight": {
+ "led_map": [0, 1, 2, 3, 4, 5, 6, 8, 7]
+ },
"matrix_pins": {
"cols": ["F5", "F6", "B2", "B3", "B1", "F7"],
"rows": ["D4", "C6", "D7", "E6", "B4", "F4"]
diff --git a/keyboards/yushakobo/navpad/10_helix_r/config.h b/keyboards/yushakobo/navpad/10_helix_r/config.h
index fd88d5eab6..19eabd8dcd 100644
--- a/keyboards/yushakobo/navpad/10_helix_r/config.h
+++ b/keyboards/yushakobo/navpad/10_helix_r/config.h
@@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define EE_HANDS
-
-# define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 4, 5, 6, 8, 7, \
- 9, 10, 11, 12, 13, 14, \
- 20, 19, 18, 17, 16, 15, \
- 21, 22, 23, 24, 25, 26, \
- 33, 32, 31, 30, 29, 28, 27, \
- 34, 35, 36, 37, 38, 39, 40 }
-
# define RGBLED_NUM 9+32
# define RGBLIGHT_HUE_STEP 8
# define RGBLIGHT_SAT_STEP 8
diff --git a/keyboards/yushakobo/navpad/10_helix_r/info.json b/keyboards/yushakobo/navpad/10_helix_r/info.json
index 9c51e8ad74..2b14fccf58 100644
--- a/keyboards/yushakobo/navpad/10_helix_r/info.json
+++ b/keyboards/yushakobo/navpad/10_helix_r/info.json
@@ -39,6 +39,7 @@
},
"rgblight": {
"max_brightness": 120,
+ "led_map": [0, 1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14, 20, 19, 18, 17, 16, 15, 21, 22, 23, 24, 25, 26, 33, 32, 31, 30, 29, 28, 27, 34, 35, 36, 37, 38, 39, 40],
"split_count": [9, 32]
},
"processor": "atmega32u4",