Send a '0' bit with correct WS2812 timing T0H (high time for 0-bit) = T1, T0L (low time) = T2+T3
| 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 |