#include <Adafruit_NeoPixel.h> // Add NeoPixel library
// Create new Adafruit_NeoPixel type variable named "strip" with 8 LEDs connected to pin 6
Adafruit_NeoPixel strip(8, 6, NEO_GRB + NEO_KHZ800);
void setup() {
strip.begin(); // Start using NeoPixel
uint32_t color = strip.Color(255, 0, 0); // Create new color with values (red, green, blue)
strip.setBrightness(255); // Set NeoPixel brightness to maximum
for (int i = 0; i <= 3; i++) {
strip.setPixelColor(i, color); // Set color to NeoPixel at index i
}
strip.show(); // Send colors to strip
}
void loop() {
// Do nothing
}