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

◆ getButtonName()

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

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

25 {
26 if (button_name) {
27 return string(button_name);
28 }
29 int count = fl::Singleton<PirNameCounter>::instance().value++;
30 if (count == 0) {
31 return string("PIR");
32 }
33 sstream s;
34 s << "PirLowLevel " << fl::Singleton<PirNameCounter>::instance().value++;
35 return s.str();
36}
static T & instance() FL_NO_EXCEPT
Definition singleton.h:41

References fl::FL_NO_EXCEPT, getButtonName(), fl::Singleton< T, N >::instance(), and fl::sstream::str().

Referenced by getButtonName().

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