summaryrefslogtreecommitdiffstats
path: root/keyboards/durgod
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-17 13:14:29 +1100
committerGitHub <noreply@github.com>2023-02-17 13:14:29 +1100
commitf4ba17c4a0ee59603c167b04f2d6f6eee8b2cf1b (patch)
tree11fec680226404eb46d2c61305cf7e848450c4d9 /keyboards/durgod
parentd784f78bd0a034c1d6085379615014fd701536ab (diff)
Move LED indicator config to data driven (#19800)
Diffstat (limited to 'keyboards/durgod')
-rw-r--r--keyboards/durgod/dgk6x/config.h3
-rw-r--r--keyboards/durgod/dgk6x/info.json5
-rw-r--r--keyboards/durgod/k310/base/config.h4
-rw-r--r--keyboards/durgod/k310/base/info.json6
-rw-r--r--keyboards/durgod/k320/base/config.h3
-rw-r--r--keyboards/durgod/k320/base/info.json5
6 files changed, 16 insertions, 10 deletions
diff --git a/keyboards/durgod/dgk6x/config.h b/keyboards/durgod/dgk6x/config.h
index 17364b2af5..98b7bf0dbd 100644
--- a/keyboards/durgod/dgk6x/config.h
+++ b/keyboards/durgod/dgk6x/config.h
@@ -33,11 +33,8 @@
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
/* LED indicator pins */
-#define LED_CAPS_LOCK_PIN C4
#define LED_WIN_LOCK_PIN C5
-#define LED_SCROLL_LOCK_PIN A8
#define LED_MR_LOCK_PIN LED_SCROLL_LOCK_PIN
-#define LED_PIN_ON_STATE 0
#ifdef RGB_MATRIX_ENABLE
// This is a 7-bit address, that gets left-shifted and bit 0
diff --git a/keyboards/durgod/dgk6x/info.json b/keyboards/durgod/dgk6x/info.json
index 25d2b3ba76..64f608fde3 100644
--- a/keyboards/durgod/dgk6x/info.json
+++ b/keyboards/durgod/dgk6x/info.json
@@ -1,4 +1,9 @@
{
+ "indicators": {
+ "caps_lock": "C4",
+ "num_lock": "A8",
+ "on_state": 0
+ },
"processor": "STM32F072", // F070
"bootloader": "stm32-dfu",
"board": "DURGOD_STM32_F070"
diff --git a/keyboards/durgod/k310/base/config.h b/keyboards/durgod/k310/base/config.h
index 0683b05362..f2e84528f0 100644
--- a/keyboards/durgod/k310/base/config.h
+++ b/keyboards/durgod/k310/base/config.h
@@ -38,12 +38,8 @@
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
/* LED indicator pins */
-#define LED_NUM_LOCK_PIN C8
-#define LED_CAPS_LOCK_PIN C9
-#define LED_SCROLL_LOCK_PIN A8
#define LED_WIN_LOCK_PIN A9
#define LED_MR_LOCK_PIN A10
-#define LED_PIN_ON_STATE 0
/* Original hardware "reset" button on pin D2 */
#define HARDWARE_RESET_PIN D2
diff --git a/keyboards/durgod/k310/base/info.json b/keyboards/durgod/k310/base/info.json
index 25d2b3ba76..7e5f9aa8d3 100644
--- a/keyboards/durgod/k310/base/info.json
+++ b/keyboards/durgod/k310/base/info.json
@@ -1,4 +1,10 @@
{
+ "indicators": {
+ "caps_lock": "C9",
+ "num_lock": "C8",
+ "scroll_lock": "A8",
+ "on_state": 0
+ },
"processor": "STM32F072", // F070
"bootloader": "stm32-dfu",
"board": "DURGOD_STM32_F070"
diff --git a/keyboards/durgod/k320/base/config.h b/keyboards/durgod/k320/base/config.h
index 0eabde8232..bd9d34765f 100644
--- a/keyboards/durgod/k320/base/config.h
+++ b/keyboards/durgod/k320/base/config.h
@@ -38,11 +38,8 @@
#define EARLY_INIT_PERFORM_BOOTLOADER_JUMP TRUE
/* LED indicator pins */
-#define LED_CAPS_LOCK_PIN C9
-#define LED_SCROLL_LOCK_PIN A8
#define LED_WIN_LOCK_PIN A9
#define LED_MR_LOCK_PIN A10
-#define LED_PIN_ON_STATE 0
/* Original hardware "reset" button on pin D2 */
#define HARDWARE_RESET_PIN D2
diff --git a/keyboards/durgod/k320/base/info.json b/keyboards/durgod/k320/base/info.json
index 25d2b3ba76..2fe54b1701 100644
--- a/keyboards/durgod/k320/base/info.json
+++ b/keyboards/durgod/k320/base/info.json
@@ -1,4 +1,9 @@
{
+ "indicators": {
+ "caps_lock": "C9",
+ "scroll_lock": "A8",
+ "on_state": 0
+ },
"processor": "STM32F072", // F070
"bootloader": "stm32-dfu",
"board": "DURGOD_STM32_F070"