NinjaFlight
|
Go to the source code of this file.
Macros | |
#define | WS2811_LED_STRIP_LENGTH 32 |
#define | WS2811_BITS_PER_LED 24 |
#define | WS2811_DELAY_BUFFER_LENGTH 42 |
#define | WS2811_DATA_BUFFER_SIZE (WS2811_BITS_PER_LED * WS2811_LED_STRIP_LENGTH) |
#define | WS2811_DMA_BUFFER_SIZE (WS2811_DATA_BUFFER_SIZE + WS2811_DELAY_BUFFER_LENGTH) |
#define | BIT_COMPARE_1 17 |
#define | BIT_COMPARE_0 9 |
Functions | |
void | ws2811LedStripInit (void) |
void | ws2811LedStripHardwareInit (void) |
void | ws2811LedStripDMAEnable (void) |
void | ws2811UpdateStrip (void) |
void | setLedHsv (int index, const hsvColor_t *color) |
void | getLedHsv (int index, hsvColor_t *color) |
void | scaleLedValue (int index, const uint8_t scalePercent) |
void | setLedValue (int index, const uint8_t value) |
void | setStripColor (const hsvColor_t *color) |
void | setStripColors (const hsvColor_t *colors) |
bool | isWS2811LedStripReady (void) |
Variables | |
uint8_t | ledStripDMABuffer [WS2811_DMA_BUFFER_SIZE] |
volatile uint8_t | ws2811LedDataTransferInProgress |
#define BIT_COMPARE_0 9 |
#define BIT_COMPARE_1 17 |
#define WS2811_BITS_PER_LED 24 |
#define WS2811_DATA_BUFFER_SIZE (WS2811_BITS_PER_LED * WS2811_LED_STRIP_LENGTH) |
#define WS2811_DELAY_BUFFER_LENGTH 42 |
#define WS2811_DMA_BUFFER_SIZE (WS2811_DATA_BUFFER_SIZE + WS2811_DELAY_BUFFER_LENGTH) |
#define WS2811_LED_STRIP_LENGTH 32 |
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 ws2811LedStripDMAEnable | ( | void | ) |
void ws2811LedStripHardwareInit | ( | void | ) |
void ws2811LedStripInit | ( | void | ) |
void ws2811UpdateStrip | ( | void | ) |
uint8_t ledStripDMABuffer[WS2811_DMA_BUFFER_SIZE] |
volatile uint8_t ws2811LedDataTransferInProgress |