can i flash different LED program on the arduino uno at the same time

Hi

I just need some help. I have a two LED on a bread board one LED is connected to pin 7 and the other to pin 4. I need pin 7 to run a delay 4000 and pin 4 to run a delay of 1000. can i program the arduino to do this or is it just one at a time.

thanks.

Yes, easily. You just won't use the delay() function for that. Instead you'll use the millis() function.

Take a look at this tutorial: http://arduino.cc/en/Tutorial/BlinkWithoutDelay

You'll adapt it to control 2 LEDs, however, and have 2 time control variables.

In fact, Nick Gammon has done a sketch that does just that:

thanks thats the one :slight_smile: