FastLED 3.10.8
Loading...
Searching...
No Matches

◆ encodeSK9822()

FL_NO_INLINE void fl::Channel::encodeSK9822 ( Channel & channel,
PixelIterator & pixels,
bool managed,
fl::vector_psram< u8 > & output )
staticprivate

Definition at line 725 of file channel.cpp.hpp.

727 {
728 const SpiChipset chipset = spiChipsetFor(channel);
729 if (tryEncodeManagedSpi(channel, pixels, managed, output, chipset)) {
730 return;
731 }
732 pixels.writeSK9822(&output, chipset == SpiChipset::SK9822HD);
733}
void writeSK9822(CONTAINER_UIN8_T *out, bool hd_gamma=false) FL_NO_EXCEPT
Encode pixels in SK9822 format (zero allocation)
FL_NO_INLINE bool tryEncodeManagedSpi(Channel &channel, PixelIterator &pixels, bool managed, fl::vector_psram< u8 > &output, SpiChipset chipset) FL_NO_EXCEPT
Shared color-managed SPI override check.
SpiChipset spiChipsetFor(const Channel &channel) FL_NO_EXCEPT
SpiChipset
LED chipsets with SPI interface (clocked protocols) Modern type-safe enum class - prefer this for new...
@ SK9822HD
SK9822 LED chipset with 5-bit gamma correction.

References Channel(), fl::FL_NO_EXCEPT, and fl::SK9822HD.

+ Here is the call graph for this function: