Étape 6: sirène
Un CODE Voici pour la sirène de police j’espère vous plaira.
retard d’int = 50 ;
void setup() {}
}
void loop() {}
noTone(11) ;
ton (6, 440, 200) ;
Delay(Delay) ;
digitalWrite (bluePin, HIGH) ;
Delay(Delay) ;
digitalWrite (bluePin, faible) ;
Delay(Delay) ;
digitalWrite (bluePin, HIGH) ;
Delay(Delay) ;
digitalWrite (bluePin, faible) ;
Delay(Delay) ;
digitalWrite (bluePin, HIGH) ;
noTone(6) ;
ton (7, 494, 500) ;
noTone(7) ;
ton (11, 523, 300) ;
}