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

◆ getStrip() [2/2]

Pixels fl::Pixels::getStrip ( int num_strip,
leddirection direction )
inline

Definition at line 253 of file ___pixeltypes.h.

253 {
254 if (_num_strips == 0 or _num_strips < num_strip) {
255
256 int d[0];
257 return Pixels(d, 1, direction);
258 } else {
259 uint32_t off = 0;
260 for (int i = 0; i < num_strip % _num_strips; i++) {
261 off += _sizes[i];
262 }
263
264 return Pixels(_sizes[num_strip], ledpointer + off, direction);
265 }
266 }
Pixel * ledpointer
int _sizes[16]

References Pixels(), _num_strips, _sizes, and ledpointer.

Referenced by getStrip().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: