ok, so…
WLED Kosen 15
I am trying to interface a 4CH opto-coupler into my config to interface with a brake signal from a vehicle.
I have a specific playlist that SHOULD run at start up.
I have a SWITCH input on a gpio pin (pin 32 w/10k pulldown)
I have verified the default startup preset in LED preferences is correct. The SWITCH is configured to activate the BRAKE playlist, then switch to an ongoing playlist (fire2012 with an audio reactive ripple peak).
So, I have some presets configured into playlist. they are as follows:
**Stage 1 (Segment 1 Fire2012) Preset
**Stage 2 (Segment 1+2 Fire2012) Preset
**Stage 3 (Segments 1-3 Fire2012) Preset
**(PLAYLIST) **50/50 (Playlist [10] Runs all three segments alternating between ripple-peak and fire2012)
**(PLAYLIST) STAGED-START (Playlist [16] runs fire2012 effect beginning with only STAGE-1, then STAGE2, then STAGE3. It terminates by rolling back into 50/50 [19] repeating).
**BRAKE-ALERT (Blink effect in solid red) Preset
**BRAKE (Breathe effect in red) Preset
**(PLAYLIST) BRAKE-SEQ (Runs BRAKE-ALERT [19] for 4s then terminates into BRAKE)
Switch is configured to Pin32, set up with "Short On->Off [19] Long Off->On [10]
I have a 10k pulldown resistor in parallel, and “disable internal pulldown” enabled/checked
Desired operation is as follows:
On START/POWER-ON
STAGED-START [16]
When Brake is activated, BRAKE-SEQ [19]
On release of BRAKE-SEQ revert to 50/50 PLAYLIST [10]
What actually happens:
On START/POWER-ON
Button-State overides STAGED-START [16] and calls the LONG (Off->On), in this case [10] from the BUTTON ACTIONS.
STAGED-START never displays.
When Brake is activated BRAKE-SEQ is called correctly.
It seems the button feature in “TIME SETTINGS” is taking precedence over the default preset on power-up
When the SWITCH is deactivated/disabled, STAGED-START begins normal, though no brake function obviously.
What do I need to search for, or configure to prevent the button LONG setting from overriding the default start playlist?
I have tried reading into macros, usermods, delays, etc. I can not seem to pin down a solution.
The only thing that I have found to restore the default playlist if disabling the switch.