So, I have looked all over this forum, and haven't found an answer for this problem.
I need to:
Make traffic lights, to do their thing 3 TIMES, and then to just blink forever.
So, I need them to switch between red-yellow-green just three times, and then to do a loop of all of them just blinking.
I can make a loop, but IDK how to make the LED's do something JUST THREE TIMES, and then to make them go to a loop. (I've checked the reference, didn't see a command for that :/)
I've tried a lot of things, but it just won't work.
Maybe I can use the "goto" command, to transfer between the traffic lights and the blinking?
I tried, but it didn't work out very well...
But, my biggest question is: how do I make the program do something just 3 times?
Please, give a detailed answer, I'm a beginner, and I need this info.
I can make a loop, but IDK how to make the LED's do something JUST THREE TIMES
You can count, can't you? You count the number of times you have done something. When that count gets high enough, you do something else. No rocket surgery involved, which is a good thing as rocket surgeons charge an arm and a leg.
When you have done your thing a certain number of times make a variable true.
When your variable is true make a decision to stop doing the first thing then start doing the next thing.
Eat some food, eat some more eat some more.
Are you full?
Stop eating.
Rest some, rest some more, rest some more . . . . .
HOW? HOW?
I have started using the arduino 3 DAYS AGO, where do I put the programme? A loop?
Sorry for being annoying, but I really dont' know, and I need help...