WS2812控制LED灯程序库 #include "FastLED.h" // be sure to install and include the FastLED lib #include #define NUM_LEDS 30 #define LED_PIN 5 WS2812FX ws2812fx = WS2812FX(NUM_LEDS, LED_PIN, NEO_GRB + NEO_KHZ800); // declare global parameters used by Fire2012 bool gReverseDirection