I am quite new with ESP Easy but I think that is my Programm witch can help me with my smart home projects.
Actually I am working on a project with DMX. The plan is in easy I have 4 Button‘s and if I press a button one of 4 LED Dim slowly (in 1Sec) up to a maximum. So far so good. Actually it is working with 1 Led but it doesn’t dim up very smooth. Probably somebody can give me an Idea how to do it better. (I am using DMX because the next project is a light under my stair every step and with DMX I have enough outputs and I can integrate it in my fuse box).
Thanks for your help and I hope that there not hundreds of the same questions in the forum. I didn’t found further information.
Mathias
Code: Select all
On Switch1#State Do
If [Switch1#State]=1
TimerSet_ms,1,1
Let,1,0
TaskValueSet,6,1,[VAR#1]
Else
TimerSet_ms,1,0
Let,1,0
TaskValueSet,6,1,[VAR#1]
DMX,1,0
EndIf
EndOn
On Rules#Timer=1 Do
If [VAR#1]<255
Let,1,[VAR#1]+10
TaskValueSet,6,1,[VAR#1]
TimerSet_ms,1,1
DMX,1,[VAR#1]
Else
TaskValueSet,6,1,[VAR#1]
TimerSet_ms,1,1
DMX,1,[VAR#1]
EndOn