FastLED
3.10.8
Loading...
Searching...
No Matches
◆
wrap_8bit()
uint8_t wrap_8bit
(
int
i
)
Definition at line
34
of file
Apa102.ino
.
34
{
35
// Modulo % operator here wraps a large "i" so that it is
36
// always in [0, 255] range when returned. For example, if
37
// "i" is 256, then this will return 0. If "i" is 257,
38
// then this will return 1. No matter how big the "i" is, the
39
// output range will always be [0, 255]
40
return
i % 256;
41
}
dox
dox
fastled
examples
Apa102
Apa102.ino
Generated on Thu Oct 22 2026 05:45:56 for FastLED by
1.13.2