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 395 of file chipsets.h.

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

References brightness, FASTLED_FORCE_INLINE, and mSPI.

Referenced by showPixelsDefault(), and showPixelsGammaBitShift().

+ Here is the caller graph for this function: