summaryrefslogtreecommitdiff
path: root/drivers/arm/ws2812.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/arm/ws2812.c')
-rw-r--r--drivers/arm/ws2812.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/arm/ws2812.c b/drivers/arm/ws2812.c
index b076eff330..fa702fca98 100644
--- a/drivers/arm/ws2812.c
+++ b/drivers/arm/ws2812.c
@@ -84,17 +84,12 @@ void ws2812_setleds(LED_TYPE *ledarray, uint16_t leds) {
sendByte(ledarray[i].g);
sendByte(ledarray[i].r);
sendByte(ledarray[i].b);
+#ifdef RGBW
+ sendByte(ledarray[i].w);
+#endif
}
wait_ns(RES);
chSysUnlock();
}
-
-// Setleds for SK6812RGBW
-void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t leds) {
-// not supported - for now error out if its enabled
-#ifdef RGBW
-# error "RGBW not supported"
-#endif
-}