Hi there,
I try to get my user modded WLED on an ESP32 Dev Kit working.
I wrote a one button control usermod, that basically just changes the bri.
My problem is the boot sequence of the wled as I cut off power completely by a mosfet.
The usermod.cpp does nothing during startup.
For the startup sequence I use three presets and a playlist that combines them.
ALLOFF
{"on":true,"bri":1,"transition":0,"mainseg":0,"seg":[{"id":0,"start":0,"stop":5,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":1,"cct":127,"set":0,"col":[[255,255,255,255],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":5,"stop":10,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":1,"cct":127,"set":0,"col":[[255,255,255,255],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}
DIMM1
{"on":true,"bri":130,"transition":10,"mainseg":0,"seg":[{"id":0,"start":0,"stop":5,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[203,219,255,0],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}
DIMM2
{"on":true,"bri":130,"transition":10,"mainseg":0,"seg":[{"id":1,"start":5,"stop":10,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[203,219,255,0],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}
Playlist
{"playlist":{"ps":[4,2,3],"dur":[2,12,22],"transition":[0,10,10],"repeat":1,"end":0,"r":false},"on":true}
In LED Preferences:
Thats the current status.
When I power up the ESP the LEDs wont light up. I know that the usermod is working as I have programmed a status LED thats blinking.
When I push the button what sets the bri to 125, the animation of the playlist starts and everything is working fine.
Befor (I tested a few things with the playlist and LED settings) I got it to work so that the animation would start automatically on bootup, but with an initial flash (all leds to 255) of the leds before the dimming began (from 0 to 125)…
I cant figure out what configuration in the presets/playlist or LED preferences is wrong.
Can somewone give me a hint?
Marcel