FastLED 3.10.6
Loading...
Searching...
No Matches

◆ sendWord()

template<int DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, fl::u32 SPI_SPEED = DATA_RATE_MHZ(1)>
void MY9221Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::sendWord ( fl::u16 data)
inlineprivate

Shift out one 16-bit word MSB-first, one clock edge per bit.

Definition at line 67 of file my9221.h.

67 {
68 for (int i = 0; i < 16; ++i) {
69 writeBit((data & 0x8000) ? 1 : 0);
70 data = static_cast<fl::u16>(data << 1);
71 }
72 }
FASTLED_FORCE_INLINE void writeBit(fl::u8 bit)
Definition my9221.h:56
MY9221 controller class.
Definition my9221.h:46

References writeBit().

Referenced by sendLed(), and showPixels().

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