Rocket Beep Bug Hunt! Test your Troubleshooting.

This program will run, but it has an obvious problem. Find it fast or it might drive you crazy!

//Buggy: Beep the speaker on and off once per second void setup(){ pinMode(2,OUTPUT); //Set the speaker as an 'OUTPUT' } void loop(){ tone(2,600); //tone requires the pin # (2 for speaker), and the pitch you want to play delay(1000); //delay the program for 1 second with the speaker playing // noTone(2); //noTone only requires the pin of the speaker delay(1000); //delay the program for 1 second with the speaker off } // (c) 2018 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense
 



Need a hint? Click here.