Why doesn't my sketch start when I'm powering the board with external power?

I have my sketch loaded, but the program doesn't want to seem to start. Please help!

Do you have the power turned on? Give us some clues. Are there any LEDs lit?

What have you done previously?


Yes. Power is on. Lights are on. Just nothing happens. When I press Reset, the red light flickers like it is going to do something but nothing happens.

Supply the code you are running.


It's the standard library LED fade code:


 This example shows how to fade an LED on pin 9
 using the analogWrite() function.


int led = 9;           // the pin that the LED is attached to
int brightness = 0;    // how bright the LED is
int fadeAmount = 5;    // how many points to fade the LED by

// the setup routine runs once when you press reset:
void setup() {
  // declare pin 9 to be an output:
  pinMode(led, OUTPUT);

// the loop routine runs over and over again forever:
void loop() {
  // set the brightness of pin 9:
  analogWrite(led, brightness);

There appears to be a lot of code missing.

Where is the loop that changes to brightness level? Supply the COMPLETE code.