#include <Adafruit_NeoPixel.h>

#define LED_PIN    8      // Change to your NeoPixel data pin
#define NUM_LEDS   1       // Number of NeoPixels

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

void setup() {
  strip.begin();
  strip.setBrightness(50); // 0-255
  strip.show();            // Turn all LEDs off
}

void loop() {
  // Red
  strip.setPixelColor(0, strip.Color(255, 0, 0));
  strip.show();
  delay(1000);

  // Green
  strip.setPixelColor(0, strip.Color(0, 255, 0));
  strip.show();
  delay(1000);

  // Blue
  strip.setPixelColor(0, strip.Color(0, 0, 255));
  strip.show();
  delay(1000);

  // Off
  strip.clear();
  strip.show();
  delay(1000);
}