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

◆ __Pixels() [1/2]

void fl::Pixels::__Pixels ( int * sizes,
int num_strips,
leddirection direction,
Pixels * pib )
inline

Definition at line 188 of file ___pixeltypes.h.

189 {
190 int size = 0;
191 for (int i = 0; i < num_strips; i++) {
192 size += sizes[i];
193 pib->_sizes[i] = sizes[i];
194 }
195
196 pib->_num_strips = num_strips;
197
198 ledpointer = (Pixel *)calloc(size, sizeof(Pixel));
199 if (ledpointer == NULL) {
200 pib->_size = 0;
201 } else {
202 pib->_size = size;
203 }
204 pib->_direction = direction;
205 }
Pixel * ledpointer

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

+ Here is the call graph for this function: