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/kb_elmo/67mk_e/config.h | 3 ---
keyboards/kb_elmo/67mk_e/info.json | 3 +++
keyboards/kb_elmo/aek2_usb/config.h | 4 ----
keyboards/kb_elmo/aek2_usb/info.json | 5 +++++
keyboards/kb_elmo/noah_avr/config.h | 3 ---
keyboards/kb_elmo/noah_avr/info.json | 3 +++
keyboards/kb_elmo/qez/config.h | 3 ---
keyboards/kb_elmo/qez/info.json | 3 +++
8 files changed, 14 insertions(+), 13 deletions(-)
(limited to 'keyboards/kb_elmo')
diff --git a/keyboards/kb_elmo/67mk_e/config.h b/keyboards/kb_elmo/67mk_e/config.h
index 1da36b7259..34d18546e1 100644
--- a/keyboards/kb_elmo/67mk_e/config.h
+++ b/keyboards/kb_elmo/67mk_e/config.h
@@ -28,6 +28,3 @@ along with this program. If not, see .
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
-
-/* Indicator LEDs */
-#define LED_CAPS_LOCK_PIN B7
diff --git a/keyboards/kb_elmo/67mk_e/info.json b/keyboards/kb_elmo/67mk_e/info.json
index 1035b0ba0b..b1a69ac79b 100644
--- a/keyboards/kb_elmo/67mk_e/info.json
+++ b/keyboards/kb_elmo/67mk_e/info.json
@@ -8,6 +8,9 @@
"pid": "0xD03E",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "B7"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi_blocker", "65_ansi_blocker_split_bs", "65_ansi_blocker_tsangan", "65_iso_blocker", "65_iso_blocker_split_bs"],
diff --git a/keyboards/kb_elmo/aek2_usb/config.h b/keyboards/kb_elmo/aek2_usb/config.h
index 415705b7e8..66de926a80 100644
--- a/keyboards/kb_elmo/aek2_usb/config.h
+++ b/keyboards/kb_elmo/aek2_usb/config.h
@@ -31,10 +31,6 @@ along with this program. If not, see .
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
-#define LED_NUM_LOCK_PIN B2
-#define LED_CAPS_LOCK_PIN B1
-#define LED_SCROLL_LOCK_PIN B0
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/kb_elmo/aek2_usb/info.json b/keyboards/kb_elmo/aek2_usb/info.json
index dfce0e1c7d..457762992b 100644
--- a/keyboards/kb_elmo/aek2_usb/info.json
+++ b/keyboards/kb_elmo/aek2_usb/info.json
@@ -8,6 +8,11 @@
"pid": "0xDB52",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "B1",
+ "num_lock": "B2",
+ "scroll_lock": "B0"
+ },
"processor": "atmega32a",
"bootloader": "usbasploader",
"layouts": {
diff --git a/keyboards/kb_elmo/noah_avr/config.h b/keyboards/kb_elmo/noah_avr/config.h
index 1b97cec600..5d038a9e43 100644
--- a/keyboards/kb_elmo/noah_avr/config.h
+++ b/keyboards/kb_elmo/noah_avr/config.h
@@ -29,9 +29,6 @@ along with this program. If not, see .
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
-/* Caps LED */
-#define LED_CAPS_LOCK_PIN D6
-
/* RGB */
#define RGB_DI_PIN B5
#define RGBLIGHT_EFFECT_BREATHING
diff --git a/keyboards/kb_elmo/noah_avr/info.json b/keyboards/kb_elmo/noah_avr/info.json
index 42c795888a..151eda35b4 100644
--- a/keyboards/kb_elmo/noah_avr/info.json
+++ b/keyboards/kb_elmo/noah_avr/info.json
@@ -8,6 +8,9 @@
"pid": "0x1DB0",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "D6"
+ },
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {
diff --git a/keyboards/kb_elmo/qez/config.h b/keyboards/kb_elmo/qez/config.h
index 9fdc2ad825..df9475ff2d 100644
--- a/keyboards/kb_elmo/qez/config.h
+++ b/keyboards/kb_elmo/qez/config.h
@@ -28,6 +28,3 @@ along with this program. If not, see .
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
-
-/* Indicator LEDs */
-#define LED_CAPS_LOCK_PIN C5
diff --git a/keyboards/kb_elmo/qez/info.json b/keyboards/kb_elmo/qez/info.json
index 54051e89fe..ee52b8311b 100644
--- a/keyboards/kb_elmo/qez/info.json
+++ b/keyboards/kb_elmo/qez/info.json
@@ -8,6 +8,9 @@
"pid": "0x675F",
"device_version": "0.0.1"
},
+ "indicators": {
+ "caps_lock": "C5"
+ },
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"layouts": {
--
cgit v1.2.3