32 #ifndef _PIOS_WS2811_H
33 #define _PIOS_WS2811_H
35 #include <pios_ws2811_cfg.h>
int PIOS_WS2811_get_num_leds(ws2811_dev_t dev)
Find out how many LEDs are configured on an interface.
struct ws2811_dev_s * ws2811_dev_t
int PIOS_WS2811_init(ws2811_dev_t *dev_out, const struct pios_ws2811_cfg *cfg, int max_leds)
Allocate and initialise WS2811 device.
static struct flyingpicmd_cfg_fa cfg
void PIOS_WS2811_set_all(ws2811_dev_t dev, uint8_t r, uint8_t g, uint8_t b)
Sets all LEDs to a color value.
void PIOS_WS2811_set(ws2811_dev_t dev, int idx, uint8_t r, uint8_t g, uint8_t b)
Set a given LED to a color value.
void PIOS_WS2811_dma_interrupt_handler(ws2811_dev_t dev)
Handles a DMA completion interrupt on bit_clear_dma_stream.
void PIOS_WS2811_trigger_update(ws2811_dev_t dev)
Trigger an update of the LED strand.