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

Method allSamePort

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

Source from the content-addressed store, hash-verified

217}
218
219bool DigitalMultiWrite8::allSamePort() const {
220 int first_port = -1;
221 for (u8 i = 0; i < 8; ++i) {
222 if (mPins[i] < 0) {
223 continue;
224 }
225 int port = fl::pinToPort(mPins[i]);
226 if (first_port < 0) {
227 first_port = port;
228 } else if (port != first_port) {
229 return false;
230 }
231 }
232 return true;
233}
234
235void DigitalMultiWrite8::buildNibbleLut(u8 bit_offset, PinList (&set_lut)[16],
236 PinList (&clr_lut)[16]) {

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 1

pinToPortFunction · 0.85

Tested by

no test coverage detected