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?
When the key code for button 3 is decoded/detected a switch/case construct can be triggered for that key; you then can run code for looping something 3 times.
@shileirichards, your topic has been moved to a more suitable location on the forum. Introductory tutorials is for tutorials that you write, not questions