- Examples
- FxGfx2Video.ino.
Definition at line 44 of file FxGfx2Video.ino.
44 {
45
49 for (uint32_t i = 0; i <
NUM_LEDS; ++i) {
51 size_t bytes_written =
memoryStream->writeCRGB(&color, 1);
52 if (bytes_written != 1) {
53 FL_DBG(
"Failed to write frame data, wrote " << bytes_written <<
" bytes");
54 break;
55 }
56 total_bytes_written += bytes_written;
57 }
58 if (total_bytes_written) {
59 FL_DBG(
"Frame written, total bytes: " << total_bytes_written);
60 }
61}
fl::memorybufPtr memoryStream
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
Base definition for an LED controller.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an 8-bit RGB pixel (Red, Green, Blue)
References fl::CRGB::Black, FL_DBG, memoryStream, fl::millis(), NUM_LEDS, fl::CRGB::Red, and toggle.
Referenced by loop().