diff options
Diffstat (limited to 'drivers/chibios/ws2812.h')
-rw-r--r-- | drivers/chibios/ws2812.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/chibios/ws2812.h b/drivers/chibios/ws2812.h new file mode 100644 index 000000000..41c22a00b --- /dev/null +++ b/drivers/chibios/ws2812.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include "quantum/color.h" | ||
4 | |||
5 | /* User Interface | ||
6 | * | ||
7 | * Input: | ||
8 | * ledarray: An array of GRB data describing the LED colors | ||
9 | * number_of_leds: The number of LEDs to write | ||
10 | * | ||
11 | * The functions will perform the following actions: | ||
12 | * - Set the data-out pin as output | ||
13 | * - Send out the LED data | ||
14 | * - Wait 50us to reset the LEDs | ||
15 | */ | ||
16 | void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); | ||