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/tkc/california/config.h | 2 -- keyboards/tkc/california/info.json | 4 ++++ keyboards/tkc/m0lly/config.h | 4 ---- keyboards/tkc/m0lly/info.json | 5 +++++ keyboards/tkc/tkc1800/config.h | 4 ---- keyboards/tkc/tkc1800/info.json | 5 +++++ keyboards/tkc/tkl_ab87/config.h | 3 --- keyboards/tkc/tkl_ab87/info.json | 4 ++++ 8 files changed, 18 insertions(+), 13 deletions(-) (limited to 'keyboards/tkc') diff --git a/keyboards/tkc/california/config.h b/keyboards/tkc/california/config.h index b471ce3008..864e589c2c 100644 --- a/keyboards/tkc/california/config.h +++ b/keyboards/tkc/california/config.h @@ -45,8 +45,6 @@ along with this program. If not, see . #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 3 #endif -#define LED_NUM_LOCK_PIN F1 -#define LED_CAPS_LOCK_PIN F0 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/tkc/california/info.json b/keyboards/tkc/california/info.json index 7cce73d271..0b50229db8 100644 --- a/keyboards/tkc/california/info.json +++ b/keyboards/tkc/california/info.json @@ -8,6 +8,10 @@ "pid": "0x0009", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F0", + "num_lock": "F1" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/tkc/m0lly/config.h b/keyboards/tkc/m0lly/config.h index 284537b41d..6ac133ad9a 100644 --- a/keyboards/tkc/m0lly/config.h +++ b/keyboards/tkc/m0lly/config.h @@ -38,10 +38,6 @@ along with this program. If not, see . /* COL2ROW, ROW2COL */ #define DIODE_DIRECTION COL2ROW -#define LED_NUM_LOCK_PIN D2 -#define LED_CAPS_LOCK_PIN D3 -#define LED_SCROLL_LOCK_PIN D4 - #define BACKLIGHT_PIN B6 #define BACKLIGHT_LEVELS 3 #define BACKLIGHT_BREATHING diff --git a/keyboards/tkc/m0lly/info.json b/keyboards/tkc/m0lly/info.json index d685fa1eee..c5fa343339 100644 --- a/keyboards/tkc/m0lly/info.json +++ b/keyboards/tkc/m0lly/info.json @@ -8,6 +8,11 @@ "pid": "0x0004", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "D3", + "num_lock": "D2", + "scroll_lock": "D4" + }, "processor": "at90usb1286", "bootloader": "qmk-dfu", "layouts": { diff --git a/keyboards/tkc/tkc1800/config.h b/keyboards/tkc/tkc1800/config.h index 5c93a36227..b914b9da7b 100644 --- a/keyboards/tkc/tkc1800/config.h +++ b/keyboards/tkc/tkc1800/config.h @@ -33,10 +33,6 @@ along with this program. If not, see . /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -#define LED_NUM_LOCK_PIN D2 -#define LED_CAPS_LOCK_PIN D3 -#define LED_SCROLL_LOCK_PIN D4 - #define BACKLIGHT_PIN B6 #define BACKLIGHT_BREATHING #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/tkc/tkc1800/info.json b/keyboards/tkc/tkc1800/info.json index 39d55cc2ce..5e0e31f036 100644 --- a/keyboards/tkc/tkc1800/info.json +++ b/keyboards/tkc/tkc1800/info.json @@ -8,6 +8,11 @@ "pid": "0x0001", "device_version": "0.0.3" }, + "indicators": { + "caps_lock": "D3", + "num_lock": "D2", + "scroll_lock": "D4" + }, "processor": "at90usb1286", "bootloader": "qmk-dfu", "layouts": { diff --git a/keyboards/tkc/tkl_ab87/config.h b/keyboards/tkc/tkl_ab87/config.h index c3a2936694..c7f8f12850 100644 --- a/keyboards/tkc/tkl_ab87/config.h +++ b/keyboards/tkc/tkl_ab87/config.h @@ -65,9 +65,6 @@ along with this program. If not, see . #define RGBLIGHT_EFFECT_TWINKLE #endif -#define LED_SCROLL_LOCK_PIN F0 -#define LED_CAPS_LOCK_PIN F1 - /* 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/tkc/tkl_ab87/info.json b/keyboards/tkc/tkl_ab87/info.json index e14b8c02ec..76f0c3f63e 100644 --- a/keyboards/tkc/tkl_ab87/info.json +++ b/keyboards/tkc/tkl_ab87/info.json @@ -8,6 +8,10 @@ "pid": "0x0007", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F1", + "scroll_lock": "F0" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { -- cgit v1.2.3