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

Method endBoundary

src/fl/chipsets/apa102.h:46–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 mSPI.writeWord(START_FRAME & 0xFFFF);
45 }
46 void endBoundary(int nLeds) {
47 int nDWords = (nLeds/32);
48 const fl::u8 b0 = fl::u8(END_FRAME >> 24 & 0x000000ff);
49 const fl::u8 b1 = fl::u8(END_FRAME >> 16 & 0x000000ff);
50 const fl::u8 b2 = fl::u8(END_FRAME >> 8 & 0x000000ff);
51 const fl::u8 b3 = fl::u8(END_FRAME >> 0 & 0x000000ff);
52 do {
53 mSPI.writeByte(b0);
54 mSPI.writeByte(b1);
55 mSPI.writeByte(b2);
56 mSPI.writeByte(b3);
57 } while(nDWords--);
58 }
59
60 FASTLED_FORCE_INLINE void writeLed(fl::u8 brightness, fl::u8 b0, fl::u8 b1, fl::u8 b2) {
61#ifdef FASTLED_SPI_BYTE_ONLY

Callers

nothing calls this directly

Calls 1

writeByteMethod · 0.45

Tested by

no test coverage detected