[SOLVED] RGB LED AutoFader LED not turning on at all

Hello, I just wrote this code (based off of Adafruit's Arduino Lesson 7) which is supposed to make an RGB LED go from Red to nothing to Green to nothing to Blue to nothing. There is one problem; the RGB LED does not turn on at all. The wiring is the same for the lesson (Overview | Arduino Lesson 7. Make an RGB LED Fader | Adafruit Learning System), but the entire chunk with the buttons is removed. How do I fix this?

UPDATE: Solved by adding delays.

I just wrote this code

What code would that be ?

Sorry, posted before pasting; forgot. Here’s the code:

// RGB LED Fader (Automated)

int redLEDPin = 11;
int greenLEDPin = 10;
int blueLEDPin = 9;

int red = 0;
int blue = 0;
int green = 0;

int i = 0;

void setup()
{
pinMode(redLEDPin, OUTPUT);
pinMode(greenLEDPin, OUTPUT);
pinMode(blueLEDPin, OUTPUT);
}

void loop()
{
analogWrite(redLEDPin, red);
analogWrite(greenLEDPin, green);
analogWrite(blueLEDPin, blue);

for (i = 0; i < 254; i++)
{
red ++;
if (red > 255) red = 0;
delay(10);
}

for (i = 0; i < 254; i++)
{
red --;
if (red < 0) red = 255;
delay(10);
}

for (i = 0; i < 254; i++)
{
green ++;
if (green > 255) green = 0;
delay(10);
}

for (i = 0; i < 254; i++)
{
green --;
if (green < 0) green = 255;
delay(10);
}

for (i = 0; i < 254; i++)
{
blue ++;
if (blue > 255) blue = 0;
delay(10);
}

for (i = 0; i < 254; i++)
{
blue --;
if (blue < 0) blue = 255;
delay(10);
}

}