FastLED
3.9.15
Loading...
Searching...
No Matches
◆
wrap_8bit()
uint8_t wrap_8bit
(
int
i
)
Definition at line
41
of file
HD107.ino
.
41
{
42
// Module % operator here wraps a large "i" so that it is
43
// always in [0, 255] range when returned. For example, if
44
// "i" is 256, then this will return 0. If "i" is 257
45
// then this will return 1. No matter how big the "i" is, the
46
// output range will always be [0, 255]
47
return
i % 256;
48
}
examples
HD107
HD107.ino
Generated on Fri Apr 18 2025 03:39:31 for FastLED by
1.13.2