MCPcopy Create free account
hub / github.com/FastLED/FastLED / writeHeader

Method writeHeader

src/fl/chipsets/sm16716.h:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 SPI mSPI;
28
29 void writeHeader() {
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 }
45
46public:
47 SM16716Controller() FL_NOEXCEPT {}

Callers

nothing calls this directly

Calls 3

selectMethod · 0.45
writeByteMethod · 0.45
endTransactionMethod · 0.45

Tested by

no test coverage detected