Multi input at the same time

Hey there. Loving the enhancements to date. One thing I’m curious about. We have 4 inputs on the ESP32. I’m trying to setup a system to run indicators on a car. Using An optocoupler setup I am able to get left and right to trigger. But as soon as both ie. the hazards come on, WLED will pick and choose out of left or right. It won’t trigger both presets. I have also played with multiple presets and extra optocouplers to trigger a seperate input when the hazards are on. To no luck. Is there a way that something extra could be put into the code that if say 2 inputs trigger at the same time a different preset can be triggered. I’m thinking this could give a few extra inputs as such without increasing the 4 physical ones. If I worked it out right an extra virtual 6 presets could be triggered. And on top of all the double press and long hold. That’s quite a few input varieties


You can increase maximum number of buttons using -D WLED_MAX_BUTTONS=X override in PlatformIO build environment.

1 Like

Yeah ok. Thanks for that. I’ll have a look into that soon. But as for the actual problem. It lies with 2 inputs triggered at the same time. But only one preset lighting up

You would have to add that logic yourself.

I’m not really a coding wiz. Would this be in-depth. Or something simple to do.