aboutsummaryrefslogtreecommitdiff
path: root/drivers/arm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/arm')
-rw-r--r--drivers/arm/ws2812.c11
-rw-r--r--drivers/arm/ws2812.h3
2 files changed, 4 insertions, 10 deletions
diff --git a/drivers/arm/ws2812.c b/drivers/arm/ws2812.c
index b076eff33..fa702fca9 100644
--- a/drivers/arm/ws2812.c
+++ b/drivers/arm/ws2812.c
@@ -84,17 +84,12 @@ void ws2812_setleds(LED_TYPE *ledarray, uint16_t leds) {
84 sendByte(ledarray[i].g); 84 sendByte(ledarray[i].g);
85 sendByte(ledarray[i].r); 85 sendByte(ledarray[i].r);
86 sendByte(ledarray[i].b); 86 sendByte(ledarray[i].b);
87#ifdef RGBW
88 sendByte(ledarray[i].w);
89#endif
87 } 90 }
88 91
89 wait_ns(RES); 92 wait_ns(RES);
90 93
91 chSysUnlock(); 94 chSysUnlock();
92} 95}
93
94// Setleds for SK6812RGBW
95void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t leds) {
96// not supported - for now error out if its enabled
97#ifdef RGBW
98# error "RGBW not supported"
99#endif
100}
diff --git a/drivers/arm/ws2812.h b/drivers/arm/ws2812.h
index bf5c9fd0f..41c22a00b 100644
--- a/drivers/arm/ws2812.h
+++ b/drivers/arm/ws2812.h
@@ -11,7 +11,6 @@
11 * The functions will perform the following actions: 11 * The functions will perform the following actions:
12 * - Set the data-out pin as output 12 * - Set the data-out pin as output
13 * - Send out the LED data 13 * - Send out the LED data
14 * - Wait 50s to reset the LEDs 14 * - Wait 50us to reset the LEDs
15 */ 15 */
16void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); 16void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
17void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);