This is a simple program that will allow you to control a string of ws2812 leds via serial / uart using an esp8266. This could be used to control RGB leds from a PC, or in my case, via the UART port ...
#define LED_TYPE NEO_GRB + NEO_KHZ800 // Loại của LED NeoPixel, ở đây là loại RGB với tần số NEO_KHZ800. Adafruit_NeoPixel strip(NUM_LEDS, LED_PIN, LED_TYPE); // Khởi tạo đối tượng dải đèn NeoPixel // ...