Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't save more than 4 outputs #4603

Open
1 task done
marcone opened this issue Mar 19, 2025 · 12 comments
Open
1 task done

Can't save more than 4 outputs #4603

marcone opened this issue Mar 19, 2025 · 12 comments

Comments

@marcone
Copy link
Contributor

marcone commented Mar 19, 2025

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
@marcone marcone added the bug label Mar 19, 2025
@blazoncek blazoncek removed the bug label Mar 20, 2025
@blazoncek
Copy link
Collaborator

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.

@marcone
Copy link
Contributor Author

marcone commented Mar 20, 2025

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.

@blazoncek
Copy link
Collaborator

It will allow you to specify up to 36 outputs.

@marcone
Copy link
Contributor Author

marcone commented Mar 20, 2025

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

@blazoncek
Copy link
Collaborator

Sorry. In 0.16

@blazoncek
Copy link
Collaborator

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

@blazoncek
Copy link
Collaborator

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

@marcone
Copy link
Contributor Author

marcone commented Mar 22, 2025

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

@blazoncek
Copy link
Collaborator

@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.

@marcone
Copy link
Contributor Author

marcone commented Mar 22, 2025

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

@PaoloTK
Copy link
Contributor

PaoloTK commented Mar 24, 2025

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.

@marcone
Copy link
Contributor Author

marcone commented Mar 26, 2025

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants