#include <Adafruit_NeoPixel.h>

#define PIN 6 // D6 on Arduino Nano
#define NUM_LEDS 16 // Number of LEDs in Neopixel Ring

Adafruit_NeoPixel strip(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800);

void setup() {
  strip.begin();
  strip.show(); // Initialize all pixels to "off"
}

void loop() {
  // Set all pixels to a random color
  for(int i=0; i<NUM_LEDS; i++) {
    strip.setPixelColor(i, random(256), random(256), random(256));
  }
  
  // Show the updated colors on the strip
  strip.show();

  // Pause for a moment before updating the colors again
  delay(100);
}