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

◆ buildNibbleLut()

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

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

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

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

Referenced by init().

+ Here is the caller graph for this function: