FastLED 3.10.6
Loading...
Searching...
No Matches

◆ setColorOrder()

void fl::PixelIterator::setColorOrder ( EOrder order)
inline

Wire colour order, applied here rather than by instantiating a PixelController per order.

Identity by default, so a templated driver wrapping its own PixelController<ORDER> is unaffected: the bytes it gets are the ones that controller already ordered (FastLED#4402).

Definition at line 266 of file pixel_iterator.h.

266 {
267 // Same bit layout as RGB_BYTE(order, i) in pixel_controller.h.
268 for (int i = 0; i < 3; ++i) {
269 mOrder[i] = static_cast<u8>((static_cast<int>(order) >> (3 * (2 - i))) & 0x3);
270 }
271 }
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT, and mOrder.