From 36ce81df592ca8e9f9fed498e513437aa1cae54f Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 26 Mar 2023 18:22:12 +1100 Subject: Move `WS2812_DRIVER` to data driven (#20248) --- keyboards/ymdk/bface/info.json | 3 +++ keyboards/ymdk/bface/rules.mk | 1 - keyboards/ymdk/np21/info.json | 3 +++ keyboards/ymdk/np21/rules.mk | 1 - keyboards/ymdk/sp64/info.json | 3 +++ keyboards/ymdk/sp64/rules.mk | 3 --- keyboards/ymdk/ymd75/rev1/info.json | 3 +++ keyboards/ymdk/ymd75/rev1/rules.mk | 1 - keyboards/ymdk/ymd75/rev2/info.json | 3 +++ keyboards/ymdk/ymd75/rev2/rules.mk | 1 - keyboards/ymdk/ymd96/info.json | 3 +++ keyboards/ymdk/ymd96/rules.mk | 1 - 12 files changed, 18 insertions(+), 8 deletions(-) (limited to 'keyboards/ymdk') diff --git a/keyboards/ymdk/bface/info.json b/keyboards/ymdk/bface/info.json index 4cd6356298..41e056a96a 100644 --- a/keyboards/ymdk/bface/info.json +++ b/keyboards/ymdk/bface/info.json @@ -17,6 +17,9 @@ "pin": "D4", "levels": 6 }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "caps_lock": "D1" }, diff --git a/keyboards/ymdk/bface/rules.mk b/keyboards/ymdk/bface/rules.mk index 03a618b76d..166b3d3ec8 100644 --- a/keyboards/ymdk/bface/rules.mk +++ b/keyboards/ymdk/bface/rules.mk @@ -8,4 +8,3 @@ CONSOLE_ENABLE = no COMMAND_ENABLE = yes BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes -WS2812_DRIVER = i2c diff --git a/keyboards/ymdk/np21/info.json b/keyboards/ymdk/np21/info.json index 2a191a4a24..7f2ddf4680 100644 --- a/keyboards/ymdk/np21/info.json +++ b/keyboards/ymdk/np21/info.json @@ -17,6 +17,9 @@ "levels": 12, "breathing": true }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "num_lock": "D0" }, diff --git a/keyboards/ymdk/np21/rules.mk b/keyboards/ymdk/np21/rules.mk index 674983a7ab..e9c8472d0b 100644 --- a/keyboards/ymdk/np21/rules.mk +++ b/keyboards/ymdk/np21/rules.mk @@ -8,4 +8,3 @@ CONSOLE_ENABLE = no # Console for debug COMMAND_ENABLE = yes # Commands for debug and configuration BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -WS2812_DRIVER = i2c diff --git a/keyboards/ymdk/sp64/info.json b/keyboards/ymdk/sp64/info.json index 66cbbe56e5..46f533b14d 100644 --- a/keyboards/ymdk/sp64/info.json +++ b/keyboards/ymdk/sp64/info.json @@ -13,6 +13,9 @@ "num_lock": "D0", "scroll_lock": "D6" }, + "ws2812": { + "driver": "i2c" + }, "processor": "atmega32a", "bootloader": "bootloadhid", "layouts": { diff --git a/keyboards/ymdk/sp64/rules.mk b/keyboards/ymdk/sp64/rules.mk index 6cef95fd45..df9380f361 100644 --- a/keyboards/ymdk/sp64/rules.mk +++ b/keyboards/ymdk/sp64/rules.mk @@ -13,8 +13,5 @@ AUDIO_SUPPORTED = no RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow CUSTOM_MATRIX = yes -# Needed for underglow -WS2812_DRIVER = i2c - SRC += matrix.c QUANTUM_LIB_SRC += i2c_master.c diff --git a/keyboards/ymdk/ymd75/rev1/info.json b/keyboards/ymdk/ymd75/rev1/info.json index e1c728c19d..8462a87b4b 100644 --- a/keyboards/ymdk/ymd75/rev1/info.json +++ b/keyboards/ymdk/ymd75/rev1/info.json @@ -11,6 +11,9 @@ "pin": "D4", "levels": 12 }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "caps_lock": "D1" }, diff --git a/keyboards/ymdk/ymd75/rev1/rules.mk b/keyboards/ymdk/ymd75/rev1/rules.mk index 17cd0cd890..d9e34145c4 100644 --- a/keyboards/ymdk/ymd75/rev1/rules.mk +++ b/keyboards/ymdk/ymd75/rev1/rules.mk @@ -8,7 +8,6 @@ CONSOLE_ENABLE = no COMMAND_ENABLE = yes BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes -WS2812_DRIVER = i2c NKRO_ENABLE = no # Enable N-Key Rollover KEY_LOCK_ENABLE = yes diff --git a/keyboards/ymdk/ymd75/rev2/info.json b/keyboards/ymdk/ymd75/rev2/info.json index 8d71880689..25d3adc54b 100644 --- a/keyboards/ymdk/ymd75/rev2/info.json +++ b/keyboards/ymdk/ymd75/rev2/info.json @@ -11,6 +11,9 @@ "pin": "D4", "levels": 12 }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "caps_lock": "D1" }, diff --git a/keyboards/ymdk/ymd75/rev2/rules.mk b/keyboards/ymdk/ymd75/rev2/rules.mk index 17cd0cd890..d9e34145c4 100644 --- a/keyboards/ymdk/ymd75/rev2/rules.mk +++ b/keyboards/ymdk/ymd75/rev2/rules.mk @@ -8,7 +8,6 @@ CONSOLE_ENABLE = no COMMAND_ENABLE = yes BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes -WS2812_DRIVER = i2c NKRO_ENABLE = no # Enable N-Key Rollover KEY_LOCK_ENABLE = yes diff --git a/keyboards/ymdk/ymd96/info.json b/keyboards/ymdk/ymd96/info.json index f48314cfa5..d090c54c49 100644 --- a/keyboards/ymdk/ymd96/info.json +++ b/keyboards/ymdk/ymd96/info.json @@ -18,6 +18,9 @@ "levels": 12, "breathing": true }, + "ws2812": { + "driver": "i2c" + }, "indicators": { "caps_lock": "D1", "num_lock": "D0", diff --git a/keyboards/ymdk/ymd96/rules.mk b/keyboards/ymdk/ymd96/rules.mk index 4eaf6aa919..17b4d5b251 100644 --- a/keyboards/ymdk/ymd96/rules.mk +++ b/keyboards/ymdk/ymd96/rules.mk @@ -10,6 +10,5 @@ COMMAND_ENABLE = no BACKLIGHT_ENABLE = yes RGBLIGHT_ENABLE = yes -WS2812_DRIVER = i2c KEY_LOCK_ENABLE = yes -- cgit v1.2.3