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

◆ writeLed()

template<fl::u8 DATA_PIN, fl::u8 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 ( fl::u8 brightness,
fl::u8 b0,
fl::u8 b1,
fl::u8 b2 )
inlineprivate

Definition at line 421 of file chipsets.h.

421 {
422#ifdef FASTLED_SPI_BYTE_ONLY
423 mSPI.writeByte(0xE0 | brightness);
424 mSPI.writeByte(b0);
425 mSPI.writeByte(b1);
426 mSPI.writeByte(b2);
427#else
428 fl::u16 b = 0xE000 | (brightness << 8) | (fl::u16)b0;
429 mSPI.writeWord(b);
430 fl::u16 w = b1 << 8;
431 w |= b2;
432 mSPI.writeWord(w);
433#endif
434 }
APA102 controller class.
Definition chipsets.h:399

References brightness(), FASTLED_FORCE_INLINE, and mSPI.

Referenced by showPixelsDefault(), and showPixelsGammaBitShift().

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