CuVoodoo STM32F1 firmware template
|
library to drive a WS2812B LED chain (API) More...
Go to the source code of this file.
Macros | |
#define | LED_WS2812B_LEDS 48 |
number of LEDs on the WS2812B strip | |
Functions | |
void | led_ws2812b_setup (void) |
setup WS2812B LED driver | |
void | led_ws2812b_set_rgb (uint16_t led, uint8_t red, uint8_t green, uint8_t blue) |
set color of a single LED More... | |
bool | led_ws2812b_transmit (void) |
transmit color values to WS2812B LEDs More... | |
library to drive a WS2812B LED chain (API)
Definition in file led_ws2812b.h.
void led_ws2812b_set_rgb | ( | uint16_t | led, |
uint8_t | red, | ||
uint8_t | green, | ||
uint8_t | blue | ||
) |
set color of a single LED
[in] | led | the LED number to set the color |
[in] | red | the red color value to set on the LED |
[in] | green | the green color value to set on the LED |
[in] | blue | the blue color value to set on the LED |
Definition at line 65 of file led_ws2812b.c.
bool led_ws2812b_transmit | ( | void | ) |
transmit color values to WS2812B LEDs
Definition at line 91 of file led_ws2812b.c.