10 Points

The code below generates a siren noise rather than a solid buzzing noise.  See if you can insert it in the proper place to change the way your alarm sounds.

 

void siren() {
int i = 200; // The starting pitch
while(i < 800) {
i++;
tone(buzzerPin, i); // Emit the noise
delay(5);
}
delay(100); // A short break in between each whoop
}

void nosiren(){
noTone(buzzerPin);
}

When you are done, submit a screenshot or other copy of your code to receive your quest badge.

Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.
We do not share your personal details with anyone.