Paso 5: El código
Estás casi allí! Sólo tienes que copiar este código, descargar a arduino, y ya está.#define LED01 13 / dice led está en el # 13
#define LED02 12
#define LED03 11
#define LED04 10
#define LED05 9
#define LED06 8
#define LED07 7
#define LED08 6
#define LED09 5
#define LED10 4
#define LED11 3
void setup()
{
pinMode (LED01, salida); pin digital es salida
pinMode (LED02, salida); pin digital es salida
pinMode (LED03, salida); pin digital es salida
pinMode (LED04, salida); pin digital es salida
pinMode (LED05, salida); pin digital es salida
pinMode (LED06, salida); pin digital es salida
pinMode (LED07, salida); pin digital es salida
pinMode (LED08, salida); pin digital es salida
pinMode (LED09, salida); pin digital es salida
pinMode (LED10, salida); pin digital es salida
pinMode (LED11, salida); pin digital es salida
}
void loop()
{
digitalWrite (LED01, alto); enciende LED
Delay(30);
digitalWrite (LED02, alto); enciende LED
Delay(30);
digitalWrite (LED01, bajo); apaga el LED
Delay(30);
digitalWrite (LED03, alto); enciende LED
Delay(30);
digitalWrite (LED02, bajo);
Delay(30);
digitalWrite (LED04, alto); enciende LED
Delay(30);
digitalWrite (LED03, bajo);
Delay(30);
digitalWrite (LED05, alto); enciende LED
Delay(30);
digitalWrite (LED04, bajo);
Delay(30);
digitalWrite (LED06, alto); enciende LED
Delay(30);
digitalWrite (LED05, LOW);
Delay(30);
digitalWrite (LED07, alto);
Delay(30)
digitalWrite (LED06, LOW);
Delay(30);
digitalWrite (LED08, alto); enciende LED
Delay(30);
digitalWrite (LED07, bajo);
Delay(30);
digitalWrite (LED09, alto); enciende LED
Delay(30);
digitalWrite (LED08, bajo);
Delay(30);
digitalWrite (LED10, alto); enciende LED
Delay(30);
digitalWrite (LED09, LOW);
Delay(30);
digitalWrite (LED11, alto); enciende LED
Delay(30);
digitalWrite (LED10, LOW);
Delay(30);
digitalWrite (LED11, LOW);
Delay(30);
digitalWrite (LED11, alto);
Delay(30);
digitalWrite (LED10, alto);
Delay(30);
digitalWrite (LED11, LOW);
Delay(30);
digitalWrite (LED09, alto);
Delay(30);
digitalWrite (LED10, LOW);
Delay(30);
digitalWrite (LED08, alto);
Delay(30);
digitalWrite (LED09, LOW);
Delay(30);
digitalWrite (LED07, alto);
Delay(30);
digitalWrite (LED08, bajo);
Delay(30);
digitalWrite (LED06, alto);
Delay(30);
digitalWrite (LED07, bajo);
Delay(30);
digitalWrite (LED05, alto);
Delay(30);
digitalWrite (LED06, LOW);
Delay(30);
digitalWrite (LED04, alto);
Delay(30);
digitalWrite (LED05, LOW);
Delay(30);
digitalWrite (LED03, alto);
Delay(30);
digitalWrite (LED04, bajo);
Delay(30);
digitalWrite (LED02, alto);
Delay(30);
digitalWrite (LED03, bajo);
Delay(30);
digitalWrite (LED01, alto);
Delay(30);
digitalWrite (LED02, bajo);
Delay(30);
digitalWrite (LED01, alto);
}