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

◆ getButtonName()

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

Definition at line 13 of file pir.cpp.

13 {
14 if (button_name) {
15 return Str(button_name);
16 }
17 int count = g_counter++;
18 if (count == 0) {
19 return Str("PIR");
20 }
21 StrStream s;
22 s << "Pir " << g_counter++;
23 return s.str();
24}
Definition str.h:368

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

Referenced by getButtonName().

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