I have 4 LEDs and my project is that I want 2 Red LEDs to flash constantly for 10 times then the other 2 Green LEDs to flash for 5 times only. I tried using the for loop but it doesn't seem to give me the solution. What should I do?
I tried using the for loop but it doesn't seem to give me the solution.
What does happen? When asking for help it is useful to post "what you expect to happen" and "what does happen."
Hint. The way you have created your code, the for() loops are pointless. You do the same thing 10 (or 5) times in a row and then pause. If you removed the for() loops, you would probably get the same results.