Again, there is no code error. There is a lack of motivation to learn independently.
LarryD
September 7, 2021, 5:10pm
22
Here is a great example for you.
This sketch introduces the concepts of:
macros
structure
enumeration
BWD (Blink Without Delay timing) technique
timers
State Machine
The purpose of this example is to integrate the above concepts into a sketch to see how they can be used to simplify coding and make that coding more efficient.
An important feature is you can control your Timers.
Under program control, Timers can be running, restarted and disabled.
When it comes to the ‘State Machine’, you can see how the sketch’s current st…
And:
Newcomers to Arduino, soon discover the usefulness of using the Blink Without Delay (BWD) technique for timing events.
As most old timers realize, adding a Flag to this technique can prevent subtle and often unanticipated problems.
For those newcomers who do not know what and why a Flag should be used, hopefully this discussion will shed some light on the topic.
In the code segment below, we are looking for a time interval to expire.
When we want to start event timing with BWD, we make ledOn…
alto777
September 7, 2021, 5:11pm
24
No duh!
Just in case: interrupts are not the solution to this puzzle.
Just pay someone to write this simple program for you, or learn how to use the things we pointing you at.
a7
t_tuku
September 7, 2021, 5:11pm
25
If there is lack of motivation then I would have not come to programme these code that i have written myself.
Then go read the documents and links...
alto777
September 7, 2021, 5:16pm
29
I suspect that one by one, your wish will be granted. When you find you have time on your hands and no one to talk to, put in the work and learn about what it is you are up to.
I hereby shut my mouth.
a7
LarryD
September 7, 2021, 5:18pm
30
You just lost another person who was trying to help you.
I hereby shut my mouth.
t_tuku
September 7, 2021, 5:26pm
32
I didnot tell you. Just reading your post which u post in Jan2018 with example.. Excellent
@t_tuku is enjoying a short break from the forum due to the nature of some of his/her replies