#include <Arduino.h>

#define LED_COUNT 1 // LED 数量
#define LED_PIN 15     // 数据引脚
#define LED_TYPE NEO_GRB + NEO_KHZ800; // WS2812B, GBR, 800kHz

#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel strip(LED_COUNT, LED_PIN, LED_TYPE);

void colorWipe(uint32_t color, int wait);

void setup() {
    strip.begin();
    strip.show();
}

void loop() {
  colorWipe(0x00ff00, 100);
}

void colorWipe(uint32_t color, int wait) {
  for (int i = 0; i < strip.numPixels(); i++) {
    strip.setPixelColor(i, color);
    strip.show();
    delay(wait);
  }
}