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

◆ end_transfer()

void fl::third_party::ezWS2812::end_transfer ( )
inline

Complete LED data transfer Sends reset signal to latch data into LEDs.

Definition at line 146 of file ezWS2812.h.

146 {
147 // Force MOSI low long enough to guarantee WS2812 reset/latch.
148 // Sending zero bytes ensures low even if the last data bit was high.
149 for (uint8_t i = 0; i < kResetBytes; i++) {
150 spi_->transfer(kResetByte);
151 }
153 }
static constexpr uint8_t kResetBytes
Definition ezWS2812.h:66
static constexpr uint8_t kResetByte
Definition ezWS2812.h:65
static constexpr uint16_t kResetTimeUs
Definition ezWS2812.h:64
unsigned char uint8_t
Definition coder.h:209
void delayMicroseconds(u32 us)
Delay for a given number of microseconds.

References fl::delayMicroseconds(), kResetByte, kResetBytes, kResetTimeUs, and spi_.

+ Here is the call graph for this function: