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/ydkb/chili/config.h | 5 ----- keyboards/ydkb/chili/info.json | 6 ++++++ keyboards/ydkb/grape/config.h | 5 ----- keyboards/ydkb/grape/info.json | 6 ++++++ keyboards/ydkb/yd68/config.h | 3 --- keyboards/ydkb/yd68/info.json | 4 ++++ 6 files changed, 16 insertions(+), 13 deletions(-) (limited to 'keyboards/ydkb') diff --git a/keyboards/ydkb/chili/config.h b/keyboards/ydkb/chili/config.h index 7a9e4df13e..3769fdf970 100644 --- a/keyboards/ydkb/chili/config.h +++ b/keyboards/ydkb/chili/config.h @@ -33,11 +33,6 @@ along with this program. If not, see . /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -#define LED_NUM_LOCK_PIN B1 -#define LED_CAPS_LOCK_PIN B2 -#define LED_SCROLL_LOCK_PIN B3 -#define LED_PIN_ON_STATE 0 - #define BACKLIGHT_PIN B7 #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/ydkb/chili/info.json b/keyboards/ydkb/chili/info.json index f565eeeecf..78a64c44ea 100644 --- a/keyboards/ydkb/chili/info.json +++ b/keyboards/ydkb/chili/info.json @@ -8,6 +8,12 @@ "pid": "0x0001", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B2", + "num_lock": "B1", + "scroll_lock": "B3", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/ydkb/grape/config.h b/keyboards/ydkb/grape/config.h index 0309301e2b..9d0ed24301 100644 --- a/keyboards/ydkb/grape/config.h +++ b/keyboards/ydkb/grape/config.h @@ -24,11 +24,6 @@ #define SN74X138_ADDRESS_PINS { D2, D1, D0 } -#define LED_NUM_LOCK_PIN F1 -#define LED_CAPS_LOCK_PIN F0 -#define LED_SCROLL_LOCK_PIN E6 -#define LED_PIN_ON_STATE 0 - #define BACKLIGHT_PIN B7 #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/ydkb/grape/info.json b/keyboards/ydkb/grape/info.json index 0ce6a3cc43..c9dbcb6136 100644 --- a/keyboards/ydkb/grape/info.json +++ b/keyboards/ydkb/grape/info.json @@ -8,6 +8,12 @@ "pid": "0x6772", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F0", + "num_lock": "F1", + "scroll_lock": "E6", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/ydkb/yd68/config.h b/keyboards/ydkb/yd68/config.h index 9bcfa32f44..67c4b5b6bd 100644 --- a/keyboards/ydkb/yd68/config.h +++ b/keyboards/ydkb/yd68/config.h @@ -38,9 +38,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN D4 -#define LED_PIN_ON_STATE 0 - #define RGB_DI_PIN B3 #ifdef RGB_DI_PIN #define RGBLIGHT_EFFECT_BREATHING diff --git a/keyboards/ydkb/yd68/info.json b/keyboards/ydkb/yd68/info.json index 557cefbcb2..d8f1439a3f 100644 --- a/keyboards/ydkb/yd68/info.json +++ b/keyboards/ydkb/yd68/info.json @@ -8,6 +8,10 @@ "pid": "0x6060", "device_version": "0.0.2" }, + "indicators": { + "caps_lock": "D4", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { -- cgit v1.2.3