26void fill(
CRGB color) {
27 for (
int i = 0; i < NUM_LEDS; i++) {
32void blink(
CRGB color,
int times) {
33 for (
int i = 0; i < times; i++) {
45 blink(
CRGB(8,0,0), 1);
46 blink(
CRGB(0,8,0), 2);
47 blink(
CRGB(0,0,8), 3);
54 uint32_t start = millis();
57 uint32_t diff = millis() - start;
59 Serial.print(
"Time to fill and show for non blocking (ms): ");
69 diff = millis() - start;
70 Serial.print(
"Time to fill and show for 2nd blocking (ms): ");
CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
void show(uint8_t scale)
Update all our controllers with the current led colors, using the passed in brightness.
static CLEDController & addLeds(CLEDController *pLed, struct CRGB *data, int nLedsOrOffset, int nLedsIfOffset=0)
Add a CLEDController instance to the world.
Representation of an RGB pixel (Red, Green, Blue)