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

◆ portValueToId() [3/6]

template<typename T>
int fl::anonymous_namespace{pins.cpp.hpp}::portValueToId ( T * ptr)

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

135 {
136 if (!ptr) return -1;
137 static T* seen[8] = {};
138 static int n = 0;
139 for (int i = 0; i < n; ++i) {
140 if (seen[i] == ptr) return i;
141 }
142 if (n < 8) {
143 seen[n] = ptr;
144 return n++;
145 }
146 return -1;
147}

References portValueToId().

+ Here is the call graph for this function: