I wish to blink all the strip. In the code below it just blink the first LED, how can I fix it?
Code:
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define NUM_LEDS 24
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin();
strip.show();
}
void loop() {
strip.setPixelColor(0, 255, 255, 255);
strip.show();
delay(1000);
strip.setPixelColor(0, 0, 0, 0);
strip.show();
delay(1000);
}