/* Utilizamos la patilla 3 (PMW) para generar diferentes tonos */
/* Y se puso a llover al sonar el altavoz... */
void setup()
{
int pinOut = 3;
int freq = 110;
int duracion = 1000;
for (int i=0; i<40 ; i++)
{
tone(pinOut, freq*i, duracion);
int pausaEntreNotas = duracion * 1.30;
delay(pausaEntreNotas);
noTone(3);
}
}
void loop()
{
}