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/kopibeng/mnk65/config.h | 2 -- keyboards/kopibeng/mnk65/info.json | 3 +++ keyboards/kopibeng/mnk65_stm32/config.h | 2 -- keyboards/kopibeng/mnk65_stm32/info.json | 3 +++ keyboards/kopibeng/mnk88/config.h | 3 --- keyboards/kopibeng/mnk88/info.json | 4 ++++ keyboards/kopibeng/typ65/config.h | 1 - keyboards/kopibeng/typ65/info.json | 3 +++ keyboards/kopibeng/xt60/config.h | 2 -- keyboards/kopibeng/xt60/info.json | 3 +++ keyboards/kopibeng/xt60_singa/config.h | 2 -- keyboards/kopibeng/xt60_singa/info.json | 3 +++ keyboards/kopibeng/xt8x/config.h | 2 -- keyboards/kopibeng/xt8x/info.json | 4 ++++ 14 files changed, 23 insertions(+), 14 deletions(-) (limited to 'keyboards/kopibeng') diff --git a/keyboards/kopibeng/mnk65/config.h b/keyboards/kopibeng/mnk65/config.h index fce9cee122..be3be08c1d 100644 --- a/keyboards/kopibeng/mnk65/config.h +++ b/keyboards/kopibeng/mnk65/config.h @@ -35,8 +35,6 @@ #define MATRIX_ROW_PINS { B3, D0, F6, F4, F1 } #define MATRIX_COL_PINS { B7, F7, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, F5 } -#define LED_CAPS_LOCK_PIN F0 - /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/kopibeng/mnk65/info.json b/keyboards/kopibeng/mnk65/info.json index df261b8951..173537922b 100644 --- a/keyboards/kopibeng/mnk65/info.json +++ b/keyboards/kopibeng/mnk65/info.json @@ -8,6 +8,9 @@ "pid": "0x0651", "device_version": "1.0.0" }, + "indicators": { + "caps_lock": "F0" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/kopibeng/mnk65_stm32/config.h b/keyboards/kopibeng/mnk65_stm32/config.h index 2fbf5a9e69..d4c42e57ee 100644 --- a/keyboards/kopibeng/mnk65_stm32/config.h +++ b/keyboards/kopibeng/mnk65_stm32/config.h @@ -35,8 +35,6 @@ #define MATRIX_ROW_PINS { A10, B9, A1, B11, A3 } #define MATRIX_COL_PINS { A9, B8, F0, C15, C14, C13, B10, B2, B1, B0, A7, A6, A5, A4, A2 } -#define LED_CAPS_LOCK_PIN A8 - /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/kopibeng/mnk65_stm32/info.json b/keyboards/kopibeng/mnk65_stm32/info.json index 77ace62e36..9959b7f3dd 100644 --- a/keyboards/kopibeng/mnk65_stm32/info.json +++ b/keyboards/kopibeng/mnk65_stm32/info.json @@ -8,6 +8,9 @@ "pid": "0x0652", "device_version": "1.0.0" }, + "indicators": { + "caps_lock": "A8" + }, "processor": "STM32F072", "bootloader": "stm32-dfu", "layouts": { diff --git a/keyboards/kopibeng/mnk88/config.h b/keyboards/kopibeng/mnk88/config.h index 0641928a52..bcb24b3c10 100644 --- a/keyboards/kopibeng/mnk88/config.h +++ b/keyboards/kopibeng/mnk88/config.h @@ -37,9 +37,6 @@ /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN B3 -#define LED_SCROLL_LOCK_PIN A15 - #define RGB_DI_PIN A10 #ifdef RGB_DI_PIN #define RGBLED_NUM 20 diff --git a/keyboards/kopibeng/mnk88/info.json b/keyboards/kopibeng/mnk88/info.json index d8cc599891..813767a89a 100644 --- a/keyboards/kopibeng/mnk88/info.json +++ b/keyboards/kopibeng/mnk88/info.json @@ -8,6 +8,10 @@ "pid": "0x8800", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B3", + "scroll_lock": "A15" + }, "processor": "STM32F072", "bootloader": "stm32-dfu", "community_layouts": ["tkl_f13_ansi", "tkl_f13_ansi_tsangan", "tkl_f13_iso", "tkl_f13_iso_tsangan"], diff --git a/keyboards/kopibeng/typ65/config.h b/keyboards/kopibeng/typ65/config.h index e9eac78bf1..082a56caac 100644 --- a/keyboards/kopibeng/typ65/config.h +++ b/keyboards/kopibeng/typ65/config.h @@ -34,7 +34,6 @@ #define MATRIX_ROW_PINS { D0, D1, D2, F6, B0 } #define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F5, F4, F1, F0, E6 } -#define LED_CAPS_LOCK_PIN B1 #define INDICATOR_0 B2 #define INDICATOR_1 B7 #define INDICATOR_2 B3 diff --git a/keyboards/kopibeng/typ65/info.json b/keyboards/kopibeng/typ65/info.json index c70704af27..258acfee65 100644 --- a/keyboards/kopibeng/typ65/info.json +++ b/keyboards/kopibeng/typ65/info.json @@ -8,6 +8,9 @@ "pid": "0x065E", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B1" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layout_aliases": { diff --git a/keyboards/kopibeng/xt60/config.h b/keyboards/kopibeng/xt60/config.h index 605808ea03..dde02894c2 100644 --- a/keyboards/kopibeng/xt60/config.h +++ b/keyboards/kopibeng/xt60/config.h @@ -34,8 +34,6 @@ #define MATRIX_ROW_PINS { F7, F4, D0, B3, B7 } #define MATRIX_COL_PINS { C7, F5, F1, F0, C6, B6, B5, B4, D7, D6, D5, D3, D2, D1 } -#define LED_CAPS_LOCK_PIN D4 - /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/kopibeng/xt60/info.json b/keyboards/kopibeng/xt60/info.json index 7334cf1276..62da3ebf2f 100644 --- a/keyboards/kopibeng/xt60/info.json +++ b/keyboards/kopibeng/xt60/info.json @@ -8,6 +8,9 @@ "pid": "0x0600", "device_version": "0.0.2" }, + "indicators": { + "caps_lock": "D4" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/kopibeng/xt60_singa/config.h b/keyboards/kopibeng/xt60_singa/config.h index 605808ea03..dde02894c2 100644 --- a/keyboards/kopibeng/xt60_singa/config.h +++ b/keyboards/kopibeng/xt60_singa/config.h @@ -34,8 +34,6 @@ #define MATRIX_ROW_PINS { F7, F4, D0, B3, B7 } #define MATRIX_COL_PINS { C7, F5, F1, F0, C6, B6, B5, B4, D7, D6, D5, D3, D2, D1 } -#define LED_CAPS_LOCK_PIN D4 - /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/kopibeng/xt60_singa/info.json b/keyboards/kopibeng/xt60_singa/info.json index 9d46fe49da..9b156ebbf5 100644 --- a/keyboards/kopibeng/xt60_singa/info.json +++ b/keyboards/kopibeng/xt60_singa/info.json @@ -8,6 +8,9 @@ "pid": "0x0601", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "D4" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/kopibeng/xt8x/config.h b/keyboards/kopibeng/xt8x/config.h index 34aec8f8ca..50a0ac9833 100644 --- a/keyboards/kopibeng/xt8x/config.h +++ b/keyboards/kopibeng/xt8x/config.h @@ -37,8 +37,6 @@ /* COL2ROW, ROW2COL*/ #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN B3 -#define LED_SCROLL_LOCK_PIN A15 #define INDICATOR_PIN_0 B13 #define RGB_DI_PIN A10 diff --git a/keyboards/kopibeng/xt8x/info.json b/keyboards/kopibeng/xt8x/info.json index efda8a48ef..61c8edb509 100644 --- a/keyboards/kopibeng/xt8x/info.json +++ b/keyboards/kopibeng/xt8x/info.json @@ -8,6 +8,10 @@ "pid": "0x8788", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B3", + "scroll_lock": "A15" + }, "processor": "STM32F072", "bootloader": "stm32-dfu", "layouts": { -- cgit v1.2.3