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

Method write2Bytes

src/fl/chipsets/apa102.h:75–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 FASTLED_FORCE_INLINE void write2Bytes(fl::u8 b1, fl::u8 b2) {
76#ifdef FASTLED_SPI_BYTE_ONLY
77 mSPI.writeByte(b1);
78 mSPI.writeByte(b2);
79#else
80 mSPI.writeWord(fl::u16(b1) << 8 | b2);
81#endif
82 }
83
84public:
85 APA102Controller() FL_NOEXCEPT {}

Callers

nothing calls this directly

Calls 2

writeByteMethod · 0.45
writeWordMethod · 0.45

Tested by

no test coverage detected