Speaker Ascend to Charge : Part Three 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 int C = 523; int E = 0; int G = 784; int A = 880; //C,E,G,A,E,G int note = 150; //how long each note plays void setup(){ pinMode(10,OUTPUT); //Set the Speaker as an OUTPUT } void loop(){ tone(10,C); delay(note); tone(10,E); delay(note); tone(10,G); delay(note); tone(10,A); delay(note*2); //This note is held for twice the value of the variable tone(10,E); delay(note); tone(10,G); delay(note*4); //Hold the end note for four times the value of the variable. noTone(10); delay(5000); //wait 5 seconds before replaying the song } // (c) 2018 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense
 



Need a hint? Click here.