Skip to content

esp-hal-smartled does not support multiple LED's correctly #32

@cmumford

Description

@cmumford

There appears to be an incorrect delay on the GPIO line when writing more than one LED. I am fairly naive about the WS2812B spec, but I believe that there should be no time delay between pin data when writing a string of LED's. I've modified the hello_rgb_async demo, in https://github.com/cmumford/esp-hal-community/tree/bug, to repeatedly write a [RED, GREEN] sequence. There is an approximately 850 usec gap in between the RED and GREEN sequences. Here is a logic probe capture:

Image

I believe this is interpreted as always being for LED index 0, which alternates between RED and GREEN, which shows up as ORANGE.

A capture from a C program, which uses esp-idf, shows no gap at all between these two color sequences.

Image

Note: The application is writing different colors, but still accurately depicts the problem.

I'm not sure if this problem is with this project, or possibly esp-hal-smartled, but felt this is a good place to start.

I am using the Waveshare ESP32-C6-LCD-1.9 development board and have modified the demo app to use GPIO3 for that board.

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