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/percent/canoe/config.h | 2 -- keyboards/percent/canoe/info.json | 3 +++ keyboards/percent/skog/config.h | 3 --- keyboards/percent/skog/info.json | 4 ++++ keyboards/percent/skog_lite/config.h | 3 --- keyboards/percent/skog_lite/info.json | 4 ++++ 6 files changed, 11 insertions(+), 8 deletions(-) (limited to 'keyboards/percent') diff --git a/keyboards/percent/canoe/config.h b/keyboards/percent/canoe/config.h index b91921ebcb..9fc0fd0014 100644 --- a/keyboards/percent/canoe/config.h +++ b/keyboards/percent/canoe/config.h @@ -28,8 +28,6 @@ along with this program. If not, see . #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN D1 - #define BACKLIGHT_PIN D4 #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/percent/canoe/info.json b/keyboards/percent/canoe/info.json index 0c0af65e8c..18d57bce99 100644 --- a/keyboards/percent/canoe/info.json +++ b/keyboards/percent/canoe/info.json @@ -8,6 +8,9 @@ "pid": "0x434E", "device_version": "2.0.0" }, + "indicators": { + "caps_lock": "D1" + }, "processor": "atmega32a", "bootloader": "bootloadhid", "community_layouts": ["65_ansi_blocker", "65_iso_blocker"], diff --git a/keyboards/percent/skog/config.h b/keyboards/percent/skog/config.h index b8abcab227..629e04b94e 100644 --- a/keyboards/percent/skog/config.h +++ b/keyboards/percent/skog/config.h @@ -25,9 +25,6 @@ along with this program. If not, see . #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2 } #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN D1 -#define LED_SCROLL_LOCK_PIN D6 - #define RGBLED_NUM 2 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD diff --git a/keyboards/percent/skog/info.json b/keyboards/percent/skog/info.json index 39a36d4042..5d461b67a4 100644 --- a/keyboards/percent/skog/info.json +++ b/keyboards/percent/skog/info.json @@ -8,6 +8,10 @@ "pid": "0x422D", "device_version": "2.0.0" }, + "indicators": { + "caps_lock": "D1", + "scroll_lock": "D6" + }, "processor": "atmega32a", "bootloader": "bootloadhid", "layouts": { diff --git a/keyboards/percent/skog_lite/config.h b/keyboards/percent/skog_lite/config.h index 7e74ab9fcc..74217b74e5 100644 --- a/keyboards/percent/skog_lite/config.h +++ b/keyboards/percent/skog_lite/config.h @@ -29,9 +29,6 @@ along with this program. If not, see . #define DIODE_DIRECTION COL2ROW -#define LED_CAPS_LOCK_PIN D1 -#define LED_SCROLL_LOCK_PIN D6 - #define BACKLIGHT_PIN D4 #define BACKLIGHT_LEVELS 3 diff --git a/keyboards/percent/skog_lite/info.json b/keyboards/percent/skog_lite/info.json index f405a83974..8b126296e6 100644 --- a/keyboards/percent/skog_lite/info.json +++ b/keyboards/percent/skog_lite/info.json @@ -8,6 +8,10 @@ "pid": "0x422D", "device_version": "2.0.0" }, + "indicators": { + "caps_lock": "D1", + "scroll_lock": "D6" + }, "processor": "atmega32a", "bootloader": "bootloadhid", "community_layouts": ["tkl_ansi"], -- cgit v1.2.3