Skip to content

Wrong number of LEDs on ws2812b #711

Closed

Description

@joaovalentee

Hey guys I have a quick question. I recently bought a ws2812b strip. I firstly tested it with an Arduino and everything worked fine but I really wanted to control it with an ESP32. The problems appeared when I tried the ESP32.
My strip has 300 leds but I want to control only 90. But when I define the NUM_LEDS 90 somehow more than 90 leds turn on. Can’t understand why.
Thanks.

Activity

  1. RococoN8R commented on Jan 1, 2019

    @RococoN8R
  2. joaovalentee commented on Jan 2, 2019

    @joaovalentee
    Author

    I just used the DemoReelESP32 example to test it but I'm still having the same problem. The only thing I changed was the number of LEDs and by testing it again I realised that it's happening like the strip is duplicating the process. When I define the NUM_LEDS 90 at the same time as it considers the first led the number 1, also considers the 91 led the number 1! And applies the code to 90 leds afeter those 2 at the same time.

  3. added a commit that references this issue on Jan 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions