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

◆ color_to_spi()

void fl::third_party::ezWS2812::color_to_spi ( uint8_t color,
uint8_t * buffer ) const
inlineprivate

Convert color byte to SPI bit pattern.

Definition at line 81 of file ezWS2812.h.

81 {
82 for (int i = 7; i >= 0; i--) {
83 buffer[7-i] = (color & (1 << i)) ? one() : zero();
84 }
85 }
uint8_t one() const
Convert color bit to SPI signal for '1' bit.
Definition ezWS2812.h:70
uint8_t zero() const
Convert color bit to SPI signal for '0' bit.
Definition ezWS2812.h:76

References one(), and zero().

Referenced by set_pixel().

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