summaryrefslogtreecommitdiff
path: root/keyboards/dp60
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/dp60')
-rw-r--r--keyboards/dp60/config.h1
-rw-r--r--keyboards/dp60/info.json6
-rw-r--r--keyboards/dp60/keymaps/indicator/led_driver.c6
-rw-r--r--keyboards/dp60/rules.mk1
4 files changed, 9 insertions, 5 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..a0491eabb6 100644
--- a/keyboards/dp60/info.json
+++ b/keyboards/dp60/info.json
@@ -8,6 +8,12 @@
"pid": "0x00BE",
"device_version": "0.0.1"
},
+ "ws2812": {
+ "pin": "D7"
+ },
+ "rgb_matrix": {
+ "driver": "IS31FL3731"
+ },
"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 2a1ac5a385..677eb8af57 100644
--- a/keyboards/dp60/keymaps/indicator/led_driver.c
+++ b/keyboards/dp60/keymaps/indicator/led_driver.c
@@ -14,11 +14,11 @@
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.c"
+#include "ws2812_bitbang.c"
void indicator_write(LED_TYPE *start_led, uint8_t num_leds)
{
diff --git a/keyboards/dp60/rules.mk b/keyboards/dp60/rules.mk
index 491e8e34a7..0aa07f4709 100644
--- a/keyboards/dp60/rules.mk
+++ b/keyboards/dp60/rules.mk
@@ -11,7 +11,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = no # Audio output
RGBLIGHT_ENABLE = no # Use RGB underglow light
RGB_MATRIX_ENABLE = yes
-RGB_MATRIX_DRIVER = IS31FL3731 # Use RGB matrix
CUSTOM_MATRIX = yes
SRC += matrix.c