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

◆ buildNibbleLut()

void fl::DigitalMultiWrite16::buildNibbleLut ( u8 bit_offset,
PinList(&) set_lut[16],
PinList(&) clr_lut[16] )
private

Definition at line 354 of file pins.cpp.hpp.

356 {
357 for (u16 nib = 0; nib < 16; ++nib) {
358 PinList &s = set_lut[nib];
359 PinList &c = clr_lut[nib];
360 s.count = 0;
361 c.count = 0;
362 for (u8 b = 0; b < 4; ++b) {
363 int pin = mPins[bit_offset + b];
364 if (pin < 0) {
365 continue;
366 }
367 if (nib & (1 << b)) {
368 s.pins[s.count++] = pin;
369 } else {
370 c.pins[c.count++] = pin;
371 }
372 }
373 }
374}
unsigned char u8
Definition stdint.h:131

References fl::DigitalMultiWrite16::PinList::count, mPins, and fl::DigitalMultiWrite16::PinList::pins.

Referenced by init().

+ Here is the caller graph for this function: