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

◆ writeLed()

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>
FASTLED_FORCE_INLINE void APA102Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED, GAMMA_CORRECTION_MODE, START_FRAME, END_FRAME >::writeLed ( uint8_t brightness,
uint8_t b0,
uint8_t b1,
uint8_t b2 )
inlineprivate

Definition at line 397 of file chipsets.h.

397 {
398#ifdef FASTLED_SPI_BYTE_ONLY
399 mSPI.writeByte(0xE0 | brightness);
400 mSPI.writeByte(b0);
401 mSPI.writeByte(b1);
402 mSPI.writeByte(b2);
403#else
404 uint16_t b = 0xE000 | (brightness << 8) | (uint16_t)b0;
405 mSPI.writeWord(b);
406 uint16_t w = b1 << 8;
407 w |= b2;
408 mSPI.writeWord(w);
409#endif
410 }
APA102 controller class.
Definition chipsets.h:375

References brightness, FASTLED_FORCE_INLINE, and mSPI.

Referenced by showPixelsDefault(), and showPixelsGammaBitShift().

+ Here is the caller graph for this function: