Turn on all the Pixel LED at once

void loop() {
  Pattern1(255, 0, 0);
}

void Pattern1(int a , int b , int c) {
  for (int i = 0 ; i < 300; i++) {
    strip.setPixelColor(i, a, b, c); 
    strip.show();
    //delay(0);
  }
}

I have Pixel LED strip which have 300 Pixel LEDs, I want turn on all the LEDs at once ( Example RED color ) , So I used above program but it turn on the LED one after another and it takes around 4 second turn on all the LEDs, please advice to turn on all the LEDs at once

Thanks in advanced

see

search for fill

documented as

strip.fill(color, first, count);

Move show outside of the for loop

2 Likes

Grate help it is working
Thanks again and again

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.