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

◆ writeLed()

template<fl::u8 DATA_PIN, fl::u8 CLOCK_PIN, EOrder RGB_ORDER = RGB, uint32_t SPI_SPEED = DATA_RATE_MHZ(10)>
FASTLED_FORCE_INLINE void P9813Controller< DATA_PIN, CLOCK_PIN, RGB_ORDER, SPI_SPEED >::writeLed ( fl::u8 r,
fl::u8 g,
fl::u8 b )
inlineprivate

Definition at line 671 of file chipsets.h.

671 {
672 FASTLED_REGISTER fl::u8 top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
673 mSPI.writeByte(top); mSPI.writeByte(b); mSPI.writeByte(g); mSPI.writeByte(r);
674 }
P9813 controller class.
Definition chipsets.h:665

References FASTLED_FORCE_INLINE, FASTLED_REGISTER, and mSPI.

Referenced by showPixels().

+ Here is the caller graph for this function: