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

Function writeLed

src/fl/chipsets/p9813.h:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 void writeBoundary() { mSPI.writeWord(0); mSPI.writeWord(0); }
31
32 FASTLED_FORCE_INLINE void writeLed(fl::u8 r, fl::u8 g, fl::u8 b) {
33 FASTLED_REGISTER fl::u8 top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
34 mSPI.writeByte(top); mSPI.writeByte(b); mSPI.writeByte(g); mSPI.writeByte(r);
35 }
36
37public:
38 P9813Controller() FL_NOEXCEPT {}

Callers 3

showPixelsDefaultMethod · 0.85
p9813.hFile · 0.85

Calls 1

writeByteMethod · 0.45

Tested by

no test coverage detected