s#include #define ONBOARD NEOPIXEL 8 #define STRIP_LENGTH 7 #define STRIP_PIN 9 Adafruit_NeoPixel strip = Adafruit_NeoPixel(STRIP_LENGTH, STRIP_PIN, NEO_GRB); void setup() { strip.begin(); strip.setBrightness(30); strip.show(); } void loop() { strip.setPixelColor(1, strip.Color(79,47,79)); strip.setPixelColor(2, strip.Color(0,255,255)); strip.setPixelColor(3, strip.Color(0,255,255)); strip.show(); delay(500); strip.clear(); strip.setPixelColor(4, strip.Color(0,255,0)); strip.setPixelColor(5, strip.Color(79,47,79)); strip.setPixelColor(6, strip.Color(0,255,255)); strip.show(); delay(500); strip.clear(); strip.setPixelColor(1, strip.Color(0,255,0)); strip.setPixelColor(2, strip.Color(0,255,0)); strip.setPixelColor(3, strip.Color(79,47,79)); strip.show(); delay(500); strip.setPixelColor(4, strip.Color(79,47,79)); strip.setPixelColor(5, strip.Color(0,255,255)); strip.setPixelColor(6, strip.Color(0,255,255)); strip.show(); delay(500); strip.clear(); strip.setPixelColor(1, strip.Color(0,255,0)); strip.setPixelColor(2, strip.Color(79,47,79)); strip.setPixelColor(3, strip.Color(0,255,255)); strip.show(); delay(500); strip.clear(); strip.setPixelColor(4, strip.Color(0,255,0)); strip.setPixelColor(5, strip.Color(0,255,0)); strip.setPixelColor(6, strip.Color(79,47,79)); strip.show(); delay(500); }