Hello, I am trying to build a project that uses WS2812 LEDs with my ESP8266 board. However, I have had trouble getting the lights to work properly, and after looking at the hookup guide, it seems like the VIN pin of the ESP8266 may not be providing enough power for my LEDs. Do you think that could explain why my LEDs are not working properly, or do you think this is a different issue?
I have been able to get my lights to light up for a few seconds, but they are not changing color and they tend to go off after a while. I have connected Pin 0 to my data input terminal, VIN pin to my 5V terminal, and the GND pin to the GND terminal of the LED. Here is my code for reference:
#include <Adafruit_NeoPixel.h>
Adafruit_NeoPixel leds = Adafruit_NeoPixel(1, 0, NEO_GRB + NEO_KHZ800);
void setup() {
Serial.begin(115200);
leds.begin();
leds.show();
}
void loop() {
leds.setPixelColor(1, 255, 255, 255);
leds.show();
delay(1000); // Wait for a second
leds.setPixelColor(1, 0, 0, 0);
leds.show();
delay(1000); // Wait for a second
}