Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Loop for repeating a finite amount of time, doing something else, then back on: October 11, 2012, 02:52:03 am
Hi I've come up to a little beginning programming logic question. How can I make my code so that a programmed LED blinks at a certain speed for a certain amount of times (let's say, 2) and then I want to switch to a different speed after, and then back to the beginning successfully creating an ongoing loop? But instead of copy and pasting the blink code to create another blink of the same speed, I'm wondering if I can use a for loop for one entry in a way that repeats that speed a certain amount of times, then going to the other speed once, and then repeating the whole thing.

Hopefully I explained the question well enough. Thanks!
Pages: [1]