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

◆ endBoundary()

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 >::endBoundary ( int nLeds)
inlineprivate

Definition at line 381 of file chipsets.h.

381 {
382 int nDWords = (nLeds/32);
383 const uint8_t b0 = uint8_t(END_FRAME >> 24 & 0x000000ff);
384 const uint8_t b1 = uint8_t(END_FRAME >> 16 & 0x000000ff);
385 const uint8_t b2 = uint8_t(END_FRAME >> 8 & 0x000000ff);
386 const uint8_t b3 = uint8_t(END_FRAME >> 0 & 0x000000ff);
387 do {
388 mSPI.writeByte(b0);
389 mSPI.writeByte(b1);
390 mSPI.writeByte(b2);
391 mSPI.writeByte(b3);
392 } while(nDWords--);
393 }
APA102 controller class.
Definition chipsets.h:373

References mSPI.

Referenced by showPixelsDefault(), and showPixelsGammaBitShift().

+ Here is the caller graph for this function: