FastLED 3.9.15
Loading...
Searching...
No Matches

◆ showPixelsGammaBitShift()

template<uint8_t DATA_PIN, uint8_t CLOCK_PIN, EOrder RGB_ORDER = RGB, uint32_t SPI_SPEED = DATA_RATE_MHZ(6), fl::FiveBitGammaCorrectionMode GAMMA_CORRECTION_MODE = fl::kFiveBitGammaCorrectionMode_Null, uint32_t START_FRAME = 0x00000000, uint32_t END_FRAME = 0xFF000000>
void APA102Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED, GAMMA_CORRECTION_MODE, START_FRAME, END_FRAME >::showPixelsGammaBitShift ( PixelController< RGB_ORDER > & pixels)
inlineprivate

Definition at line 504 of file chipsets.h.

504 {
505 mSPI.select();
507 while (pixels.has(1)) {
508 // Load raw uncorrected r,g,b values.
509 uint8_t brightness, c0, c1, c2; // c0-c2 is the RGB data re-ordered for pixel
510 pixels.loadAndScale_APA102_HD(&c0, &c1, &c2, &brightness);
512 pixels.stepDithering();
513 pixels.advanceData();
514 }
516 mSPI.waitFully();
517 mSPI.release();
518 }
FASTLED_FORCE_INLINE void writeLed(uint8_t brightness, uint8_t b0, uint8_t b1, uint8_t b2)
Definition chipsets.h:395
void startBoundary()
Definition chipsets.h:377
void endBoundary(int nLeds)
Definition chipsets.h:381
APA102 controller class.
Definition chipsets.h:373
virtual int size()
How many LEDs does this controller manage?

References PixelController< RGB_ORDER, LANES, MASK >::advanceData(), brightness, endBoundary(), PixelController< RGB_ORDER, LANES, MASK >::has(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScale_APA102_HD(), mSPI, PixelController< RGB_ORDER, LANES, MASK >::size(), startBoundary(), PixelController< RGB_ORDER, LANES, MASK >::stepDithering(), and writeLed().

Referenced by showPixels().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: