I just got an arduino starter kit the other day and have worked through the basic exercises in the booklet provided. I thought I might try and write my own sketch today but have encountered a few dramas.
I've got my breadboard wired up with 4 LEDs (Red, Green, Red, Green) each hooked up to pins 13, 12, 11, and 10 respectively.
What I am trying to do is have the two pins with green LEDs light up for .25s and then shut off, immediately after which the red LEDs will turn on, and this will be in a loop.
Here is my sketch:
/*
Turn on pins 10 and 12 (Green LEDs), then off.
Turn on pins 11 and 13 (Red LEDs), then off.
*/
int redLed = 11, 13; // Red LEDs
int greenLed = 10, 12; // Green LEDs
int del = 250; //Delay of 0.25s between pin sets changing
Every member here will say this is the right time to eschew delay() and embrace Blink Without Delay. Before delay() gets too permanently burned into your mind, it really will stand you in good stead for the future to look past it.
Apart from that linked example, there a number of places you could go and look: try the first two posts of this thread, and if you like video, have a look at this.