Replies: 5 comments 8 replies
-
|
If you want any action once every x seconds then I would use the cycleTrigger() function. The SerialDelayOn.ino shows how to use the delayOn() function which stays permantently on when the time is elapsed as long as the input stays true. |
Beta Was this translation helpful? Give feedback.
-
|
oh, great! |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for botheing you, I got how to get out of the cycle |
Beta Was this translation helpful? Give feedback.
-
|
Should your code stop after one pass? |
Beta Was this translation helpful? Give feedback.
-
|
Hello Michael I have a working version of the sketch, but it uses delay() s. But it works. Now I have to rework it, to be able to use WiFi function and some others options, delays are not good )) The problem is that I can't get out of the switch (ucState) cycle. I really cannot understand why 0:20:56.822 -> ============= Started ============== So I tried to make things simple - I just uploaded your sketch
IN my case the LEDS (relays) should not be activated when the bike not in motion. The switch (ucState) should wait.?you know Thank you in advance |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thank for your library, great job
I tried some examples, they were fine
But the one most useful for me wont work
What I did:
I have a Wemos D1 mini esp 8266 board
I just uploaded the sketch SerialDelayOn.ino
And got this:
16:48:46.312 -> Delay-On finished.
16:48:46.312 -> Delay-On finished.
16:48:46.312 -> Delay-On finished.
16:48:46.358 -> Delay-On finished.
16:48:46.358 -> Delay-On finished.
and so on
This should be a line per 5 sec, right?
What can I did wrong?
Thank you
Dmitry
Beta Was this translation helpful? Give feedback.
All reactions