FastLED 3.9.12
Loading...
Searching...
No Matches
convert.h
1#pragma once
2
3#include <stdint.h>
4
5// Conversion from FastLED timings to the type found in datasheets.
6inline void convert_fastled_timings_to_timedeltas(
7 uint16_t T1, uint16_t T2, uint16_t T3,
8 uint16_t* T0H, uint16_t* T0L, uint16_t* T1H, uint16_t* T1L) {
9 *T0H = T1;
10 *T0L = T2 + T3;
11 *T1H = T1 + T2;
12 *T1L = T3;
13}