Definition at line 18 of file codec_processor.cpp.
18 {
19 FL_WARN(
"Starting format " << codecName);
20
21 fl::u32 start_time = millis();
22
23
24 codecFunc();
25
26 fl::u32 diff_time = millis() - start_time;
27
28 FL_WARN(
"Format took " << diff_time <<
"ms to process " << codecName);
29
30
32 message << "Format: " << codecName << "\n";
34
35
37
38 message << "First 4 pixels: ";
39 for (
int i = 0; i < 4 && i <
numLeds; i++) {
40 message <<
"RGB(" << (int)
leds[i].r <<
"," << (
int)
leds[i].g <<
"," << (int)
leds[i].b <<
") ";
41 }
42 message << "\n";
43 } else {
44
45 for (
int i = 0; i <
numLeds; i++) {
46 message <<
"LED " << i <<
": " <<
leds[i] <<
"\n";
47 }
48 }
51}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
void show(fl::u8 scale)
Update all our controllers with the current led colors, using the passed in brightness.
const char * c_str() const FL_NOEXCEPT
string str() const FL_NOEXCEPT
References fl::basic_string::c_str(), FastLED, FL_WARN, ledHeight, leds, ledWidth, numLeds, and fl::sstream::str().
Referenced by loop().