NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <platform.h>
#include "build_config.h"
#include "common/color.h"
#include "common/colorconversion.h"
#include "drivers/dma.h"
#include "drivers/light_ws2811strip.h"
Functions | |
void | setLedHsv (int index, const hsvColor_t *color) |
void | getLedHsv (int index, hsvColor_t *color) |
void | setLedValue (int index, const uint8_t value) |
void | scaleLedValue (int index, const uint8_t scalePercent) |
void | setStripColor (const hsvColor_t *color) |
void | setStripColors (const hsvColor_t *colors) |
void | ws2811LedStripInit (void) |
bool | isWS2811LedStripReady (void) |
void | fastUpdateLEDDMABuffer (uint8_t **buffer, rgbColor24bpp_t color) |
void | ws2811UpdateStrip (void) |
Variables | |
uint8_t | ledStripDMABuffer [WS2811_DMA_BUFFER_SIZE] |
volatile uint8_t | ws2811LedDataTransferInProgress = 0 |
void fastUpdateLEDDMABuffer | ( | uint8_t ** | buffer, |
rgbColor24bpp_t | color | ||
) |
void getLedHsv | ( | int | index, |
hsvColor_t * | color | ||
) |
bool isWS2811LedStripReady | ( | void | ) |
void scaleLedValue | ( | int | index, |
const uint8_t | scalePercent | ||
) |
void setLedHsv | ( | int | index, |
const hsvColor_t * | color | ||
) |
void setLedValue | ( | int | index, |
const uint8_t | value | ||
) |
void setStripColor | ( | const hsvColor_t * | color | ) |
void setStripColors | ( | const hsvColor_t * | colors | ) |
void ws2811LedStripInit | ( | void | ) |
void ws2811UpdateStrip | ( | void | ) |
uint8_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE] |
volatile uint8_t ws2811LedDataTransferInProgress = 0 |