ESP8266-Websockets-LED
ESP8266-Websockets-LED copied to clipboard
Changing colors from color picker affects only the first LED.
Hello, I am using ESP8266 WEMOS D1 MINI PRO , that is controlling 17 LED WS2812B. I had a problem when i try to pick any color from color picker. The problem is that color change only applies to the first LED, and even then, the color is not the one i choose. If i try to pick another color, sometimes all the leds are refreshed. The problem is present in effects, but its not noticeable.
The solution was to put two LEDS.show(); and two FastLED.show(); one after another both in ESP8266-LED.ino and effects.ino.
EXAMPLE:
for (int i = 0; i < LED_COUNT; i++) {
leds[i].setRGB(r,g,b);
}
LEDS.show();
LEDS.show(); // THAT ONE IS NEEDED FOR THE PROPER WORK