I am working on a project, I got some part of the project working, but I am stuck on something.
Let's say :
A = 73
B = 70
If A is greater than B,
turn pin on
turn it off (So here B = A)
I got the above part working fine, no problems.
My problem is here:
Now, I want B to be 3 less than A or 70, until this true, start all over again.
Nothing will happen if B is 73, or 72, or 71, until B is 70 then the pin will be turned on again.
I tried some for loops, no luck. How can I accomplish this?
Many thanks in advanced.