summaryrefslogtreecommitdiff
path: root/keyboards/xiudi/xd004
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-26 08:37:57 +1100
committerGitHub <noreply@github.com>2023-02-26 08:37:57 +1100
commit314f6c1ddba09851b33e4f3b4bd43bdbc55f9628 (patch)
tree8d0008ee0609b42ffbcbe19e52c3695ea5ab9280 /keyboards/xiudi/xd004
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/xiudi/xd004')
-rw-r--r--keyboards/xiudi/xd004/info.json4
-rw-r--r--keyboards/xiudi/xd004/v1/config.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/keyboards/xiudi/xd004/info.json b/keyboards/xiudi/xd004/info.json
index 175b7873f3..a404780eea 100644
--- a/keyboards/xiudi/xd004/info.json
+++ b/keyboards/xiudi/xd004/info.json
@@ -7,6 +7,10 @@
"pid": "0x0404",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "D5",
+ "levels": 6
+ },
"processor": "atmega16u2",
"bootloader": "atmel-dfu",
"matrix_pins": {
diff --git a/keyboards/xiudi/xd004/v1/config.h b/keyboards/xiudi/xd004/v1/config.h
index 0b4e44336c..1e747adeaf 100644
--- a/keyboards/xiudi/xd004/v1/config.h
+++ b/keyboards/xiudi/xd004/v1/config.h
@@ -23,11 +23,6 @@ where some things are disabled to save space as well.
#pragma once
-/* Backlight Setup */
-// Looks like each backlight LED is connected to a single output, D5 is the one furtherst away from USB port
-#define BACKLIGHT_PIN D5
-#define BACKLIGHT_LEVELS 6
-
/* RGB Underglow
This will not be used, as RGBLIGHT_ENABLE is set to 'no' in rules.mk
We do not have enough space in the flash for this at the moment, maybe