#include //Neopixel library #define PIXEL_PIN 6 // Digital IO pin connected to the NeoPixels. #define PIXEL_COUNT 5 // Number of pixels Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800); void setup() { // Setup code, to run once: strip.begin(); //Start the strip operation strip.show(); //Initialize all pixels to OFf } void loop() { // Main code, to run repeatedly: strip.setBrightness(50); //Global brightness for the strip for(int i = 0; i < 5; i++){ //Increase in the number of illuminated pixels with this color strip.setPixelColor(i, 252, 102, 3); //Blue position on RGB values strip.show(); //Turn on the pixels delay(1500); //Delay } for(int i = 4; i >= 0; i--){ //Decrease in the number of illuminated pixels with this color strip.setPixelColor(i, 252, 3, 3); //Red position on RGB values strip.show(); //Turn on the pixels delay(1000); //Delay } }