Bug Hunt! Test your Troubleshooting.

You may have already run into some errors in modifying or writing your own code. Don't worry, studies have shown that almost half of all code 'compiles' result in an error! 

The code below has some errors sprinkled in it. Before you run the code, read through it and look for the errors, called bugs. Can you find them? Try to fix each one and then see if the code runs. 

//Buggy: Blink both of the laser blasters on Rocket void setup(){ pinMode(7,OUTPUT); //Set blaster 7 as an 'OUTPUT' pinMode(8,OUTPUT); //Set blaster 8 as an 'OUTPUT' } void loop(){ digitalWrite(7,HIGH); // turn on the #7 LED digitalWrite(8,LOW); // turn on the #8 LED delay(1000); //delay the program for 1 second with the LEDs on digitalWrite(7,LOW); // turn off the #7 LED digitalWrite(8,HIGH); // turn off the #8 LED delay(1000); //delay the program for 1 second with the LEDs off } // (c) 2018 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense
 



Need a hint? Click here.