summaryrefslogtreecommitdiffstats
path: root/keyboards/ydkb
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/ydkb
parentba7546a334ec56e70629652e8552dd493449e9db (diff)
Move backlight config to data driven (#19910)
Diffstat (limited to 'keyboards/ydkb')
-rw-r--r--keyboards/ydkb/chili/config.h3
-rw-r--r--keyboards/ydkb/chili/info.json4
-rw-r--r--keyboards/ydkb/grape/config.h3
-rw-r--r--keyboards/ydkb/grape/info.json4
4 files changed, 8 insertions, 6 deletions
diff --git a/keyboards/ydkb/chili/config.h b/keyboards/ydkb/chili/config.h
index d9a06c2e2c..a3fcde472f 100644
--- a/keyboards/ydkb/chili/config.h
+++ b/keyboards/ydkb/chili/config.h
@@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-
/* Underlight configuration
*/
#define RGB_DI_PIN B3
diff --git a/keyboards/ydkb/chili/info.json b/keyboards/ydkb/chili/info.json
index 78a64c44ea..1ef666e69f 100644
--- a/keyboards/ydkb/chili/info.json
+++ b/keyboards/ydkb/chili/info.json
@@ -8,6 +8,10 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "B7",
+ "breathing": true
+ },
"indicators": {
"caps_lock": "B2",
"num_lock": "B1",
diff --git a/keyboards/ydkb/grape/config.h b/keyboards/ydkb/grape/config.h
index 515ca47546..0b71d91e84 100644
--- a/keyboards/ydkb/grape/config.h
+++ b/keyboards/ydkb/grape/config.h
@@ -24,9 +24,6 @@
#define SN74X138_ADDRESS_PINS { D2, D1, D0 }
-#define BACKLIGHT_PIN B7
-#define BACKLIGHT_BREATHING
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN E6
#define RGBLED_NUM 4
diff --git a/keyboards/ydkb/grape/info.json b/keyboards/ydkb/grape/info.json
index c9dbcb6136..1609ba2721 100644
--- a/keyboards/ydkb/grape/info.json
+++ b/keyboards/ydkb/grape/info.json
@@ -8,6 +8,10 @@
"pid": "0x6772",
"device_version": "0.0.1"
},
+ "backlight": {
+ "pin": "B7",
+ "breathing": true
+ },
"indicators": {
"caps_lock": "F0",
"num_lock": "F1",