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

Function sendBit0

src/platforms/shared/clockless_blocking.h:187–198  ·  view source on GitHub ↗

Send a '0' bit with correct WS2812 timing T0H (high time for 0-bit) = T1, T0L (low time) = T2+T3

Source from the content-addressed store, hash-verified

185 /// Send a '0' bit with correct WS2812 timing
186 /// T0H (high time for 0-bit) = T1, T0L (low time) = T2+T3
187 FASTLED_FORCE_INLINE static void sendBit0()
188 {
189 // Set line HIGH
190 fl::FastPin<DATA_PIN>::hi();
191 // Hold high for T1 nanoseconds (e.g., 250ns for WS2812)
192 fl::delayNanoseconds<T1>();
193
194 // Set line LOW
195 fl::FastPin<DATA_PIN>::lo();
196 // Hold low for T2+T3 nanoseconds (e.g., 1000ns for WS2812)
197 fl::delayNanoseconds<T2 + T3>();
198 }
199};
200
201// Backwards compatibility aliases

Callers 1

sendByteFunction · 0.85

Calls 2

hiFunction · 0.50
loFunction · 0.50

Tested by

no test coverage detected