FastLED 3.10.8
Loading...
Searching...
No Matches

◆ buildNibbleLut()

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

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

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

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

Referenced by init().

+ Here is the caller graph for this function: