Speaker Ascend to Charge : Part One Bug Hunt! Test your Troubleshooting.

This code will run on Code Speaker, but it’s missing something important. Find it and fix it in this bug hunt.

/*'Ascend to Charge', a popular song during baseball games C,E,G,A,E,G are the notes in order */ void setup(){ pinMode(10,OUTPUT); //Set the Speaker as an OUTPUT } void loop(){ tone(10,523); //C delay(150); //Play the note for 150 milliseconds tone(10,659); //E delay(150); tone(10,784); //G delay(150); tone(10,880); //A delay(300); //double delay on this note tone(10,659); //E delay(150); tone(10,784); //G delay(600); //quadruple delay on the last note delay(2000); //wait 2 seconds before replaying the song } // (c) 2018 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense

Need a hint? Click here.