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

◆ writeLed()

template<uint8_t DATA_PIN, uint8_t 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 ( uint8_t r,
uint8_t g,
uint8_t b )
inlineprivate

Definition at line 645 of file chipsets.h.

645 {
646 FASTLED_REGISTER uint8_t top = 0xC0 | ((~b & 0xC0) >> 2) | ((~g & 0xC0) >> 4) | ((~r & 0xC0) >> 6);
647 mSPI.writeByte(top); mSPI.writeByte(b); mSPI.writeByte(g); mSPI.writeByte(r);
648 }
P9813 controller class.
Definition chipsets.h:639

References FASTLED_FORCE_INLINE, FASTLED_REGISTER, and mSPI.

Referenced by showPixels().

+ Here is the caller graph for this function: