Simple LOOP

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
angelo-filippi
New user
Posts: 7
Joined: 17 Jan 2019, 23:34

Simple LOOP

#1 Post by angelo-filippi » 20 Aug 2019, 11:19

hi all! :)

I'm really happy with this software. I have a problem with the loop.
I would like to make this function loop through until the next input.
How can I do ?

Any help is highly appreciated

Thank you!

on server#cmdmqtt=5 do
gpio,15,1
timerSet,1,1
timerSet,2,2
timerSet,3,3
endon
on Rules#Timer=1 do
gpio,15,0
endon
on Rules#Timer=2 do
gpio,15,1
endon
on Rules#Timer=3 do
gpio,15,0
endon

angelo-filippi
New user
Posts: 7
Joined: 17 Jan 2019, 23:34

Re: Simple LOOP

#2 Post by angelo-filippi » 20 Aug 2019, 12:40

I found this solution...
is this the best way?

On server#cmdmqtt=5 do
timerSet,1,2
endon
On Rules#Timer=1 do
timerSet,1,2
Pulse,15,1,1000
endon

Thank you!

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Simple LOOP

#3 Post by TD-er » 20 Aug 2019, 17:52

It will not stop flashing, since the timer to send out a pulse is still setting its own timer.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 123 guests