Hi I am very new to Arduino. How do I number my for loops with an IR Remote?
Ex. I Press 3 on IR Remote and the code loops 3 times.
The code consists of two dc motors, servo motor, and a LED light so I think a switch case will be a lot of copy and paste and compiling. Or can I condense the code somehow and turn it into a function that I can repeat?