FastLED 3.9.15
Loading...
Searching...
No Matches

◆ wrap_8bit()

uint8_t wrap_8bit ( int i)

Definition at line 68 of file Apa102HD.ino.

68 {
69 // Module % operator here wraps a large "i" so that it is
70 // always in [0, 255] range when returned. For example, if
71 // "i" is 256, then this will return 0. If "i" is 257
72 // then this will return 1. No matter how big the "i" is, the
73 // output range will always be [0, 255]
74 return i % 256;
75}