summaryrefslogtreecommitdiff
path: root/keyboards/dp60
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-06 18:00:54 +1000
committerGitHub <noreply@github.com>2023-04-06 18:00:54 +1000
commit47966dc2a65c88ac90fcd64d12243d72f3f6753b (patch)
treed2f54974c74f66bf11565a64381ea8834f49d481 /keyboards/dp60
parent71c22a12db58c71952a12df6bbe445f6f9a4e858 (diff)
Migrate `rgblight.pin` and `RGB_DI_PIN` to `ws2812.pin` (#20303)
Diffstat (limited to 'keyboards/dp60')
-rw-r--r--keyboards/dp60/config.h1
-rw-r--r--keyboards/dp60/info.json3
-rw-r--r--keyboards/dp60/keymaps/indicator/led_driver.c4
3 files changed, 5 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
*/
-#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"