From 47966dc2a65c88ac90fcd64d12243d72f3f6753b Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 6 Apr 2023 18:00:54 +1000 Subject: Migrate `rgblight.pin` and `RGB_DI_PIN` to `ws2812.pin` (#20303) --- keyboards/dp60/config.h | 1 - keyboards/dp60/info.json | 3 +++ keyboards/dp60/keymaps/indicator/led_driver.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'keyboards/dp60') diff --git a/keyboards/dp60/config.h b/keyboards/dp60/config.h index 16df72781b..b1518cb5fb 100644 --- a/keyboards/dp60/config.h +++ b/keyboards/dp60/config.h @@ -34,7 +34,6 @@ //rgb light setting #define RGBLED_NUM 18 -#define RGB_DI_PIN D7 #define RGBLIGHT_EFFECT_BREATHING #define RGBLIGHT_EFFECT_RAINBOW_MOOD #define RGBLIGHT_EFFECT_RAINBOW_SWIRL diff --git a/keyboards/dp60/info.json b/keyboards/dp60/info.json index 605c66bb0d..78d7a5abb6 100644 --- a/keyboards/dp60/info.json +++ b/keyboards/dp60/info.json @@ -8,6 +8,9 @@ "pid": "0x00BE", "device_version": "0.0.1" }, + "ws2812": { + "pin": "D7" + }, "processor": "atmega32u4", "bootloader": "atmel-dfu", "layout_aliases": { diff --git a/keyboards/dp60/keymaps/indicator/led_driver.c b/keyboards/dp60/keymaps/indicator/led_driver.c index f4a2dcc47c..677eb8af57 100644 --- a/keyboards/dp60/keymaps/indicator/led_driver.c +++ b/keyboards/dp60/keymaps/indicator/led_driver.c @@ -14,8 +14,8 @@ along with this program. If not, see . */ -#undef RGB_DI_PIN -#define RGB_DI_PIN RGB_INDICATOR_PIN +#undef WS2812_DI_PIN +#define WS2812_DI_PIN RGB_INDICATOR_PIN #define ws2812_setleds indicator_setleds #define ws2812_setleds_pin indicator_setleds_pin #include "ws2812_bitbang.c" -- cgit v1.2.3