Neopixel
By Bgpiper#include <Adafruit_NeoPixel.h>
#define fr 0
#define fg 0
#define fb 0
int vx=0;
unsigned long cm=0;
unsigned long pm=0;
unsigned long im=0;
Adafruit_NeoPixel
Adafruit_NeoPixel fan(8,2);
void setup()
{
Serial.begin;
fan.begin();
fan.show();
}
void loop()
{
fan.setPixelColor(vx-1,0,0,0);
if(vx>=8){
vx=0;
}
fan.setPixelColor(vx,0,0,200);
vx=vx+1;
fan.show();
fan.show();
delay(100);
}