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

◆ writeHeader()

template<int DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, fl::u32 SPI_SPEED = DATA_RATE_MHZ(16)>
void SM16716Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::writeHeader ( )
inlineprivate

Definition at line 29 of file sm16716.h.

29 {
30 // Write out 50 zeros to the spi line (6 blocks of 8 followed by two single bit writes)
31 mSPI.select();
32 mSPI.template writeBit<0>(0);
33 mSPI.writeByte(0);
34 mSPI.writeByte(0);
35 mSPI.writeByte(0);
36 mSPI.template writeBit<0>(0);
37 mSPI.writeByte(0);
38 mSPI.writeByte(0);
39 mSPI.writeByte(0);
40 // Note: endTransaction() may not be strictly necessary for SM16716
41 // since we're just streaming bytes. However, it's kept here for consistency
42 // with other SPI-based controllers and as defensive programming.
43 mSPI.endTransaction();
44 }
SM16716 controller class.
Definition sm16716.h:25

References mSPI.

Referenced by showPixels().

+ Here is the caller graph for this function: