FastLED 3.9.15
Loading...
Searching...
No Matches
convert.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/stdint.h"
4
5#include "fl/int.h"
6// Conversion from FastLED timings to the type found in datasheets.
7inline void convert_fastled_timings_to_timedeltas(fl::u16 T1, fl::u16 T2,
8 fl::u16 T3, fl::u16 *T0H,
9 fl::u16 *T0L, fl::u16 *T1H,
10 fl::u16 *T1L) {
11 *T0H = T1;
12 *T0L = T2 + T3;
13 *T1H = T1 + T2;
14 *T1L = T3;
15}
void convert_fastled_timings_to_timedeltas(fl::u16 T1, fl::u16 T2, fl::u16 T3, fl::u16 *T0H, fl::u16 *T0L, fl::u16 *T1H, fl::u16 *T1L)
Definition convert.h:7