FastLED 3.10.6
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 702 of file channel.cpp.hpp.

704 {
705 const SpiChipset chipset = spiChipsetFor(channel);
706 if (tryEncodeManagedSpi(channel, pixels, managed, output, chipset)) {
707 return;
708 }
709 pixels.writeSK9822(&output, chipset == SpiChipset::SK9822HD);
710}
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: