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/dyz/dyz60/config.h | 2 -- keyboards/dyz/dyz60/info.json | 3 +++ keyboards/dyz/dyz_tkl/config.h | 2 -- keyboards/dyz/dyz_tkl/info.json | 3 +++ keyboards/dyz/selka40/config.h | 4 ---- keyboards/dyz/selka40/info.json | 6 ++++++ keyboards/dyz/synthesis60/config.h | 4 ---- keyboards/dyz/synthesis60/info.json | 5 +++++ 8 files changed, 17 insertions(+), 12 deletions(-) (limited to 'keyboards/dyz') diff --git a/keyboards/dyz/dyz60/config.h b/keyboards/dyz/dyz60/config.h index 184e89d6f5..bd80723d92 100644 --- a/keyboards/dyz/dyz60/config.h +++ b/keyboards/dyz/dyz60/config.h @@ -17,8 +17,6 @@ along with this program. If not, see . #pragma once -#define LED_CAPS_LOCK_PIN F1 - #define TAP_CODE_DELAY 10 // Need this delay for some keys like VOLD/VOLU to work #define ENCODERS_PAD_A { D0 } #define ENCODERS_PAD_B { D1 } diff --git a/keyboards/dyz/dyz60/info.json b/keyboards/dyz/dyz60/info.json index 5f01941441..1f54c23d8e 100644 --- a/keyboards/dyz/dyz60/info.json +++ b/keyboards/dyz/dyz60/info.json @@ -32,6 +32,9 @@ "pid": "0x000A", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "F1" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/dyz/dyz_tkl/config.h b/keyboards/dyz/dyz_tkl/config.h index 06ec4ea5ab..87e057133d 100644 --- a/keyboards/dyz/dyz_tkl/config.h +++ b/keyboards/dyz/dyz_tkl/config.h @@ -17,8 +17,6 @@ along with this program. If not, see . #pragma once -#define LED_CAPS_LOCK_PIN D2 - #define TAP_CODE_DELAY 10 // Need this delay for some keys like VOLD/VOLU to work #define DYNAMIC_KEYMAP_LAYER_COUNT 3 diff --git a/keyboards/dyz/dyz_tkl/info.json b/keyboards/dyz/dyz_tkl/info.json index a3787a80cc..734924d407 100644 --- a/keyboards/dyz/dyz_tkl/info.json +++ b/keyboards/dyz/dyz_tkl/info.json @@ -29,6 +29,9 @@ "pid": "0x000C", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "D2" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "community_layouts": ["tkl_f13_ansi", "tkl_f13_iso"], diff --git a/keyboards/dyz/selka40/config.h b/keyboards/dyz/selka40/config.h index cdb700c75e..d93f882fb0 100644 --- a/keyboards/dyz/selka40/config.h +++ b/keyboards/dyz/selka40/config.h @@ -17,10 +17,6 @@ along with this program. If not, see . #pragma once -#define LED_CAPS_LOCK_PIN B1 -#define LED_NUM_LOCK_PIN B3 -#define LED_SCROLL_LOCK_PIN B2 - #define TAP_CODE_DELAY 10 // Need this delay for some keys like VOLD/VOLU to work #define ENCODERS_PAD_A { D6 } #define ENCODERS_PAD_B { D7 } diff --git a/keyboards/dyz/selka40/info.json b/keyboards/dyz/selka40/info.json index d5efd04811..246473ec3d 100644 --- a/keyboards/dyz/selka40/info.json +++ b/keyboards/dyz/selka40/info.json @@ -32,6 +32,12 @@ "pid": "0x0012", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "B1", + "num_lock": "B3", + "scroll_lock": "B2", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { diff --git a/keyboards/dyz/synthesis60/config.h b/keyboards/dyz/synthesis60/config.h index 9030d42bd1..d70ad316b6 100644 --- a/keyboards/dyz/synthesis60/config.h +++ b/keyboards/dyz/synthesis60/config.h @@ -17,8 +17,4 @@ along with this program. If not, see . #pragma once -#define LED_CAPS_LOCK_PIN D5 -#define LED_NUM_LOCK_PIN C7 -#define LED_PIN_ON_STATE 0 - #define DYNAMIC_KEYMAP_LAYER_COUNT 3 diff --git a/keyboards/dyz/synthesis60/info.json b/keyboards/dyz/synthesis60/info.json index c76fe96f87..a6e7fb0291 100644 --- a/keyboards/dyz/synthesis60/info.json +++ b/keyboards/dyz/synthesis60/info.json @@ -47,6 +47,11 @@ "pid": "0x0017", "device_version": "0.0.1" }, + "indicators": { + "caps_lock": "D5", + "num_lock": "C7", + "on_state": 0 + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layouts": { -- cgit v1.2.3