Skip to content

Changing colors from color picker affects only the first LED. #11

@DDoykov

Description

@DDoykov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions