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

◆ buildNibbleLut()

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

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

236 {
237 for (u16 nib = 0; nib < 16; ++nib) {
238 PinList &s = set_lut[nib];
239 PinList &c = clr_lut[nib];
240 s.count = 0;
241 c.count = 0;
242 for (u8 b = 0; b < 4; ++b) {
243 int pin = mPins[bit_offset + b];
244 if (pin < 0) {
245 continue;
246 }
247 if (nib & (1 << b)) {
248 s.pins[s.count++] = pin;
249 } else {
250 c.pins[c.count++] = pin;
251 }
252 }
253 }
254}
unsigned char u8
Definition stdint.h:131

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

Referenced by init().

+ Here is the caller graph for this function: