#include "Adafruit_NeoPixel.h"
#define led_n 25
#define led_p 5
byte pix = 4;
byte k = 2;
Adafruit_NeoPixel strip = Adafruit_NeoPixel(led_n, led_p, NEO_GRB + NEO_KHZ800);
void setup()
{
strip.begin();
strip.show();
}
void loop()
{
strip.setPixelColor(pix, strip.Color(250, 0, 0));
strip.show();
delay(100);
strip.setPixelColor(pix, strip.Color(0, 0, 0));
strip.show();
pix +=5;
if (pix < 25)
{
}
else
{
pix = 0;
pix = pix - k;
k++;
if (k<5){}
else {k = 0;}
}
}