1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 … (#5255)

* Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 LED drivers

* Rename setting lookup table to lookupLedStripPackingOrder

* Fix call to ws2811UpdateStrip

* Fix unit test

* Use ledStripFormatRGB_e enumeration for RGB packing format

* Fix unit test

* Whoops. Make ledStripFormatRGB_e match lookupLedStripFormatRGB

* Applied review feedback

* Add documentation of ledstrip_grb_rgb
This commit is contained in:
SteveCEvans 2018-03-05 20:39:14 +00:00 committed by Michael Keller
parent 94f06e1e05
commit 0430fcb67d
8 changed files with 77 additions and 13 deletions

View file

@ -77,6 +77,9 @@ typedef enum {
#ifdef USE_OVERCLOCK
TABLE_OVERCLOCK,
#endif
#ifdef USE_LED_STRIP
TABLE_RGB_GRB,
#endif
#ifdef USE_DUAL_GYRO
TABLE_GYRO,
#endif