BrakeLight Blink 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 an error sprinkled in it. It won’t run, but see if you can find and fix the error to make it work!

/* * Blink the tail light on and off once per second */ void setup() { pinMode(7,OUTPUT); //set your tail light LED as an OUTPUT } void loop() { digitalWrite(7,HIGH); /Send power to pin 7 delay(1000); /wait 1000 milliseconds (1 second) with the tail light on digitalWrite(7,LOW); //Turn off the power to pin 7 delay(1000); //wait 1000 milliseconds with the tail light off } // (c) 2022 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense
 



Need a hint? Click here.