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

◆ getButtonName()

string fl::anonymous_namespace{pir.cpp.hpp}::getButtonName ( const char * button_name)

Definition at line 17 of file pir.cpp.hpp.

17 {
18 if (button_name) {
19 return string(button_name);
20 }
21 int count = g_counter++;
22 if (count == 0) {
23 return string("PIR");
24 }
25 sstream s;
26 s << "PirLowLevel " << g_counter++;
27 return s.str();
28}

References g_counter, getButtonName(), and fl::sstream::str().

Referenced by getButtonName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: