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

◆ showPixelsDefault()

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 >::showPixelsDefault ( PixelController< RGB_ORDER > & pixels)
inlineprivate

Definition at line 486 of file chipsets.h.

486 {
487 mSPI.select();
491 while (pixels.has(1)) {
492 uint8_t c0, c1, c2;
493 pixels.loadAndScaleRGB(&c0, &c1, &c2);
495 pixels.stepDithering();
496 pixels.advanceData();
497 }
499
500 mSPI.waitFully();
501 mSPI.release();
502 }
static void getGlobalBrightnessAndScalingFactors(PixelController< RGB_ORDER > &pixels, uint8_t *out_s0, uint8_t *out_s1, uint8_t *out_s2, uint8_t *out_brightness)
Definition chipsets.h:443
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(), endBoundary(), getGlobalBrightnessAndScalingFactors(), PixelController< RGB_ORDER, LANES, MASK >::has(), PixelController< RGB_ORDER, LANES, MASK >::loadAndScaleRGB(), 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: