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

◆ getButtonName()

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

Definition at line 14 of file pir.cpp.

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

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: