summaryrefslogtreecommitdiff
path: root/keyboards/ktec
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ktec')
-rw-r--r--keyboards/ktec/staryu/backlight_staryu.h2
-rwxr-xr-xkeyboards/ktec/staryu/config.h4
-rw-r--r--keyboards/ktec/staryu/info.json3
3 files changed, 4 insertions, 5 deletions
diff --git a/keyboards/ktec/staryu/backlight_staryu.h b/keyboards/ktec/staryu/backlight_staryu.h
index b90350e28b..34511da5c1 100644
--- a/keyboards/ktec/staryu/backlight_staryu.h
+++ b/keyboards/ktec/staryu/backlight_staryu.h
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Add backwards compatibility for existing keymaps
static inline void backlight_set_value(uint8_t index, uint8_t level) {
- static const uint8_t backlight_pins[BACKLIGHT_LED_COUNT] = BACKLIGHT_PINS;
+ static const uint8_t backlight_pins[] = BACKLIGHT_PINS;
if (level) {
setPinOutput(backlight_pins[index]);
} else {
diff --git a/keyboards/ktec/staryu/config.h b/keyboards/ktec/staryu/config.h
index e8e726364c..1a1b7372e6 100755
--- a/keyboards/ktec/staryu/config.h
+++ b/keyboards/ktec/staryu/config.h
@@ -30,8 +30,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLIGHT_LIMIT_VAL 200
-
-#undef BACKLIGHT_PIN
-#define BACKLIGHT_PINS { C2, C7, D5, D6, B0 }
-#define BACKLIGHT_LED_COUNT 5
#define BACKLIGHT_LEVELS 10
diff --git a/keyboards/ktec/staryu/info.json b/keyboards/ktec/staryu/info.json
index 0463c08ccc..21c4e04dd7 100644
--- a/keyboards/ktec/staryu/info.json
+++ b/keyboards/ktec/staryu/info.json
@@ -8,6 +8,9 @@
"pid": "0x2328",
"device_version": "2.0.5"
},
+ "backlight": {
+ "pins": ["C2", "C7", "D5", "D6", "B0"]
+ },
"bootmagic": {
"matrix": [0, 1]
},