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

◆ PrintPins< 0 >()

template<>
void PrintPins< 0 > ( )

Definition at line 172 of file Pintest.h.

172 {
173 RwReg *systemThinksPortIs = portOutputRegister(digitalPinToPort(0));
174 RwReg systemThinksMaskIs = digitalPinToBitMask(0);
175
176 int maskBit = 0;
177 while(systemThinksMaskIs > 1) { systemThinksMaskIs >>= 1; maskBit++; }
178
179 const char *pinport = GetPinPort((void*)systemThinksPortIs);
180 if (pinport) {
181 Serial.print("__FL_DEFPIN("); Serial.print(0);
182 Serial.print(","); Serial.print(maskBit);
183 Serial.print(","); Serial.print(pinport);
184 Serial.print("); ");
185 pcount++;
186 if(pcount == 4) { pcount = 0; Serial.println(""); }
187 }
188}
const char * GetPinPort(void *ptr)
Definition Pintest.h:143
static uint8_t pcount
Definition Pintest.h:147

References GetPinPort(), and pcount.

+ Here is the call graph for this function: