From f4ba17c4a0ee59603c167b04f2d6f6eee8b2cf1b Mon Sep 17 00:00:00 2001
From: Ryan
Date: Fri, 17 Feb 2023 13:14:29 +1100
Subject: Move LED indicator config to data driven (#19800)
---
keyboards/jc65/v32a/config.h | 2 --
keyboards/jc65/v32a/info.json | 3 +++
keyboards/jc65/v32u4/config.h | 3 ---
keyboards/jc65/v32u4/info.json | 4 ++++
4 files changed, 7 insertions(+), 5 deletions(-)
(limited to 'keyboards/jc65')
diff --git a/keyboards/jc65/v32a/config.h b/keyboards/jc65/v32a/config.h
index 01581d1041..586ba437a0 100644
--- a/keyboards/jc65/v32a/config.h
+++ b/keyboards/jc65/v32a/config.h
@@ -25,8 +25,6 @@ along with this program. If not, see .
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define DIODE_DIRECTION COL2ROW
-#define LED_CAPS_LOCK_PIN D1
-
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/jc65/v32a/info.json b/keyboards/jc65/v32a/info.json
index 80c6d6d7b8..b03bb73a6e 100644
--- a/keyboards/jc65/v32a/info.json
+++ b/keyboards/jc65/v32a/info.json
@@ -8,6 +8,9 @@
"pid": "0x5679",
"device_version": "2.0.0"
},
+ "indicators": {
+ "caps_lock": "D1"
+ },
"processor": "atmega32a",
"bootloader": "bootloadhid",
"layouts": {
diff --git a/keyboards/jc65/v32u4/config.h b/keyboards/jc65/v32u4/config.h
index 9801abe7d1..a61742cf39 100644
--- a/keyboards/jc65/v32u4/config.h
+++ b/keyboards/jc65/v32u4/config.h
@@ -26,9 +26,6 @@ along with this program. If not, see .
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3, F4, F5 }
-#define LED_CAPS_LOCK_PIN B2
-#define LED_PIN_ON_STATE 0
-
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/jc65/v32u4/info.json b/keyboards/jc65/v32u4/info.json
index 5a387a5807..76adb227c7 100644
--- a/keyboards/jc65/v32u4/info.json
+++ b/keyboards/jc65/v32u4/info.json
@@ -8,6 +8,10 @@
"pid": "0x6060",
"device_version": "0.0.2"
},
+ "indicators": {
+ "caps_lock": "B2",
+ "on_state": 0
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
--
cgit v1.2.3