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

◆ pinMap()

void fl::pinMap ( fl::span< PinInfo > pins)

Resolve port IDs for an array of PinInfo in-place.

For each entry, sets port = pinToPort(pin). Skips entries where pin < 0.

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

390 {
391 for (fl::size i = 0; i < pins.size(); ++i) {
392 if (pins[i].pin >= 0) {
393 pins[i].port = pinToPort(pins[i].pin);
394 }
395 }
396}
int pins[]
Definition Spi.ino:11
int pinToPort(int pin) FL_NO_EXCEPT
Map a runtime pin number to an integer port ID using FastPin<N>::port().
Definition pins.cpp.hpp:151

References FL_NO_EXCEPT, pins, and pinToPort().

+ Here is the call graph for this function: