MCPcopy Create free account
hub / github.com/FastLED/FastLED / write

Method write

src/fl/system/pins.cpp.hpp:209–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void DigitalMultiWrite8::write(fl::span<const u8> pin_data) const {
210 for (fl::size i = 0; i < pin_data.size(); ++i) {
211 const u8 byte = pin_data[i];
212 const u8 lo_nib = byte & 0x0F;
213 const u8 hi_nib = (byte >> 4) & 0x0F;
214 applyNibble(mSetLo[lo_nib], mClrLo[lo_nib]);
215 applyNibble(mSetHi[hi_nib], mClrHi[hi_nib]);
216 }
217}
218
219bool DigitalMultiWrite8::allSamePort() const {
220 int first_port = -1;

Callers 2

digitalMultiWrite8Function · 0.45
digitalMultiWrite16Function · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected