Paso 3: El código
Ahora que sabes cómo insertar y cargar el código voy a insertar aquí:Por Jonas P. Hyatt
Gracias a Tom Igoe y Dave1324
int ledDelay = 50;
redPin int = 9;
bluePin int = 10;
void setup() {}
pinMode (redPin, salida);
pinMode (bluePin, salida);
}
void loop() {}
digitalWrite (bluePin, LOW);
Delay(ledDelay);
digitalWrite (redPin, HIGH);
Delay(ledDelay);
digitalWrite (redPin, LOW);
Delay(ledDelay);
digitalWrite (redPin, HIGH);
Delay(ledDelay);
digitalWrite (redPin, LOW);
Delay(ledDelay);
digitalWrite (redPin, HIGH);
Delay(ledDelay);
noTone(11);
tono (6, 440, 200);
digitalWrite (redPin, LOW);
Delay(ledDelay);
digitalWrite (bluePin, HIGH);
Delay(ledDelay);
digitalWrite (bluePin, LOW);
Delay(ledDelay);
digitalWrite (bluePin, HIGH);
Delay(ledDelay);
digitalWrite (bluePin, LOW);
Delay(ledDelay);
digitalWrite (bluePin, HIGH);
noTone(6);
tono (7, 494, 500);
noTone(7);
tono (11, 523, 300);
}