#include <Adafruit_NeoPixel.h>

#define LED_PIN 9
#define NUM_LEDS 1
#define Test D10

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

void setup() {
  pinMode(Test, OUTPUT);
  digitalWrite(Test, LOW);
  led.begin();
  led.show(); // Turn OFF initially
}

void loop() {
  // Red
  led.setPixelColor(0, led.Color(255, 0, 0));
  digitalWrite(Test, HIGH);
  led.show();
  delay(1000);

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

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

  // Off
  led.setPixelColor(0, led.Color(0, 0, 0));
  digitalWrite(Test, LOW);
  led.show();
  delay(1000);
}