Paso 6: sirena
Un código aquí está para sirena de policía espero que os guste.
int retardo = 50;
void setup() {}
}
void loop() {}
noTone(11);
tono (6, 440, 200);
Delay(Delay);
digitalWrite (bluePin, HIGH);
Delay(Delay);
digitalWrite (bluePin, LOW);
Delay(Delay);
digitalWrite (bluePin, HIGH);
Delay(Delay);
digitalWrite (bluePin, LOW);
Delay(Delay);
digitalWrite (bluePin, HIGH);
noTone(6);
tono (7, 494, 500);
noTone(7);
tono (11, 523, 300);
}