Skip to content

Can't save more than 4 outputs #4603

Closed
Closed

Description

@marcone

What happened?

I'm using a Wemos D1 Mini, ESP8266. According to the knowledge base WLED supports "Up to 3 LED outputs per ESP8266 instance", but I found I can actually define 4 (they're all PWM, so perhaps the limit of 3 applies to some other type?).
However, I cannot define more than 4. When I add a 5th output it lets me set its type, GPIO and other attributes, but it doesn't save it. There's no error message or any other indicator as to why it isn't saving it, it just doesn't.

At first I thought it might be because the number of PWM outputs is limited. The technical reference isn't entirely clear on the matter, alternately talking about 4, 5, 8 and 16 PWM channels being supported. Even when I define the 5th one as a simple on/off non-PWM output though, wled still doesn't save it.
Basically, I can specify 4 outputs using any of the 5 available GPIOs (4, 5, 12, 13 and 14), but I can't use all 5.

To Reproduce Bug

Add 4 "PWM White" outputs, choosing 4 GPIOs from (4, 5, 12, 13, 14).
Click the "Save" button, then click "LED Preferences" again. You should see the 4 previously defined outputs.
Add a 5th output using the remaining GPIO.
Click the "Save" button.
Click "LED Preferences" again and note that the 5th output was not saved.

Expected Behavior

Either it should save the 5th output, or tell me why it didn't.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0 (build 2412100)

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. blazoncek commented on Mar 20, 2025

    @blazoncek
    Contributor

    Technically not a bug as the maximum number of (non virtual) buses is (intentionally) limited to 4 on ESP8266.
    It would be sensible to increase that number to 5 to accommodate 5 individual PWM outputs.

  2. marcone commented on Mar 20, 2025

    @marcone
    ContributorAuthor

    Technically not a bug

    It's still a UI bug. The UI lets me specify 6 LED outputs (the '+' disappears after adding 6 outputs), but only saves 4.

  3. blazoncek commented on Mar 20, 2025

    @blazoncek
    Contributor

    It will allow you to specify up to 36 outputs.

  4. marcone commented on Mar 20, 2025

    @marcone
    ContributorAuthor

    How? After I add the 6th output, the '+' button to add more outputs no longer appears.
    I.e. after the 5th one I can still add one more by using the '+' button:

    Image

    but after the 6th one there's no more '+' button:

    Image

  5. blazoncek commented on Mar 20, 2025

    @blazoncek
    Contributor

    Sorry. In 0.16

  6. blazoncek commented on Mar 22, 2025

    @blazoncek
    Contributor

    @marcone please test this.
    Select appropriate environment and use artefacts from there.

  7. blazoncek commented on Mar 22, 2025

    @blazoncek
    Contributor

    @PaoloTK you are also invited to check if it breaks any of your environments.

  8. marcone commented on Mar 22, 2025

    @marcone
    ContributorAuthor

    That lets me save 5 LED outputs now, but the 5th one doesn't actually work.

  9. blazoncek commented on Mar 22, 2025

    @blazoncek
    Contributor

    @marcone workings of PWM output is beyond this change.
    As for it @DedeHai or @willmmiles may know more why 5th PWM output wouldn't work on ESP8266. In any case IMO that would be of very low priority to fix.

  10. marcone commented on Mar 22, 2025

    @marcone
    ContributorAuthor

    The 5th output also doesn't work if I make it on/off instead of PWM.

  11. PaoloTK commented on Mar 24, 2025

    @PaoloTK
    Contributor

    The 5th output also doesn't work if I make it on/off instead of PWM.

    You might want to compile with WLED_DEBUG flag and post the output when you hit save in the LED settings page.

    I'm unable to test myself due to not having esp8266 devices (all our environments are esp32 based) but I can probably guide you through the process of finding the issue since I went through it for esp32 to fix 10+ outputs.

  12. marcone commented on Mar 26, 2025

    @marcone
    ContributorAuthor

    For what it's worth, I compiled main branch WLED with WLED_MAX_BUSSES=5, and that both lets me save 5 outputs, and all 5 of them work.
    When I have time I'll try @blazoncek's unified-blend branch and see why that 5th output wasn't working for me there.

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