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/sawnsprojects/amber80/solder/config.h | 4 ---- keyboards/sawnsprojects/amber80/solder/info.json | 5 +++++ keyboards/sawnsprojects/krush/krush60/solder/config.h | 3 --- keyboards/sawnsprojects/krush/krush60/solder/info.json | 4 ++++ keyboards/sawnsprojects/krush/krush65/hotswap/config.h | 3 --- keyboards/sawnsprojects/krush/krush65/hotswap/info.json | 4 ++++ keyboards/sawnsprojects/krush/krush65/solder/config.h | 6 ------ keyboards/sawnsprojects/krush/krush65/solder/info.json | 4 ++++ keyboards/sawnsprojects/vcl65/solder/config.h | 7 ------- keyboards/sawnsprojects/vcl65/solder/info.json | 4 ++++ 10 files changed, 21 insertions(+), 23 deletions(-) (limited to 'keyboards/sawnsprojects') diff --git a/keyboards/sawnsprojects/amber80/solder/config.h b/keyboards/sawnsprojects/amber80/solder/config.h index 0e26624079..9f4e397b2a 100644 --- a/keyboards/sawnsprojects/amber80/solder/config.h +++ b/keyboards/sawnsprojects/amber80/solder/config.h @@ -21,10 +21,6 @@ #define MATRIX_ROWS 12 #define MATRIX_COLS 9 -/* Indicator */ -#define LED_CAPS_LOCK_PIN F5 -#define LED_SCROLL_LOCK_PIN B0 -#define LED_PIN_ON_STATE 0 /* * Keyboard Matrix Assignments * diff --git a/keyboards/sawnsprojects/amber80/solder/info.json b/keyboards/sawnsprojects/amber80/solder/info.json index dabfc538f8..1e9870fa90 100644 --- a/keyboards/sawnsprojects/amber80/solder/info.json +++ b/keyboards/sawnsprojects/amber80/solder/info.json @@ -8,6 +8,11 @@ "pid": "0xA801", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F5", + "scroll_lock": "B0", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/sawnsprojects/krush/krush60/solder/config.h b/keyboards/sawnsprojects/krush/krush60/solder/config.h index be5df82e9b..84a53e5615 100644 --- a/keyboards/sawnsprojects/krush/krush60/solder/config.h +++ b/keyboards/sawnsprojects/krush/krush60/solder/config.h @@ -26,9 +26,6 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -/* Caps Lock */ -#define LED_CAPS_LOCK_PIN F0 -#define LED_PIN_ON_STATE 0 #define RGB_DI_PIN F1 #ifdef RGB_DI_PIN diff --git a/keyboards/sawnsprojects/krush/krush60/solder/info.json b/keyboards/sawnsprojects/krush/krush60/solder/info.json index 36ff901d04..a54172480d 100644 --- a/keyboards/sawnsprojects/krush/krush60/solder/info.json +++ b/keyboards/sawnsprojects/krush/krush60/solder/info.json @@ -8,6 +8,10 @@ "pid": "0x6B32", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F0", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layout_aliases": { diff --git a/keyboards/sawnsprojects/krush/krush65/hotswap/config.h b/keyboards/sawnsprojects/krush/krush65/hotswap/config.h index 3f102ba5e7..5ed50a5bcd 100644 --- a/keyboards/sawnsprojects/krush/krush65/hotswap/config.h +++ b/keyboards/sawnsprojects/krush/krush65/hotswap/config.h @@ -26,9 +26,6 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -/* Caps Lock */ -#define LED_CAPS_LOCK_PIN B0 -#define LED_PIN_ON_STATE 0 /* Encoders */ diff --git a/keyboards/sawnsprojects/krush/krush65/hotswap/info.json b/keyboards/sawnsprojects/krush/krush65/hotswap/info.json index 1e60b0743b..43faca4437 100644 --- a/keyboards/sawnsprojects/krush/krush65/hotswap/info.json +++ b/keyboards/sawnsprojects/krush/krush65/hotswap/info.json @@ -8,6 +8,10 @@ "pid": "0x5B31", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B0", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/sawnsprojects/krush/krush65/solder/config.h b/keyboards/sawnsprojects/krush/krush65/solder/config.h index 7519de6544..d5c0877c68 100644 --- a/keyboards/sawnsprojects/krush/krush65/solder/config.h +++ b/keyboards/sawnsprojects/krush/krush65/solder/config.h @@ -24,14 +24,8 @@ #define MATRIX_ROW_PINS { B1, B2, D1, D2, D4, D6, F6, F7, F5, F4 } #define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D5, D3 } -/* indicator */ -// #define LED_CAPS_LOCK_PIN F0 - /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -/* Caps Lock */ -#define LED_CAPS_LOCK_PIN F0 -#define LED_PIN_ON_STATE 0 /* rotary */ #define ENCODERS_PAD_A { D0 } diff --git a/keyboards/sawnsprojects/krush/krush65/solder/info.json b/keyboards/sawnsprojects/krush/krush65/solder/info.json index cabe517724..a0661b715a 100644 --- a/keyboards/sawnsprojects/krush/krush65/solder/info.json +++ b/keyboards/sawnsprojects/krush/krush65/solder/info.json @@ -8,6 +8,10 @@ "pid": "0x6B31", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F0", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layout_aliases": { diff --git a/keyboards/sawnsprojects/vcl65/solder/config.h b/keyboards/sawnsprojects/vcl65/solder/config.h index 2477e07f76..14770d6942 100644 --- a/keyboards/sawnsprojects/vcl65/solder/config.h +++ b/keyboards/sawnsprojects/vcl65/solder/config.h @@ -24,15 +24,8 @@ #define MATRIX_ROW_PINS { F6, F7, F0, F4, B1 } #define MATRIX_COL_PINS { B2, B5, F5, C7, B4, C6, D7, D6, D4, D5, D3, D2, B6, D1, D0 } -/* indicator */ -// #define LED_CAPS_LOCK_PIN F0 - /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -/* Caps Lock */ -#define LED_CAPS_LOCK_PIN F1 -#define LED_PIN_ON_STATE 0 -/* rotary */ #define RGB_DI_PIN B7 #ifdef RGB_DI_PIN diff --git a/keyboards/sawnsprojects/vcl65/solder/info.json b/keyboards/sawnsprojects/vcl65/solder/info.json index aa5c326c7d..1b0c638ecc 100644 --- a/keyboards/sawnsprojects/vcl65/solder/info.json +++ b/keyboards/sawnsprojects/vcl65/solder/info.json @@ -8,6 +8,10 @@ "pid": "0x1727", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F1", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { -- cgit v1.2.3