// Copyright 2007, Sandeep Gangadharan // For more free scripts go to http://www.sivamdesign.com/scripts/

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. 

Blink Project Hookup: 1 LED in pin 13. Remember the shorter leg of the LED is ground


/* * Buggy Blink. * When this code is bug-free, you should have a blinking LED. * Find and fix the 3 bugs in this program. */ void setup() { pinMode(13, OUTPUT); // pin 13 - change value if you have LED on diff pin } void loop() { digitalWrite(13, HIGH) // set pin 13 to high voltage - 5V, turning LED on delay[1000); // wait 1000 milliseconds, or one second. digitalWRITE(13, LOW); // set pin 13 to low voltage, or zero. LED off. delay(1000); } // (c) 2017 Let's Start Coding. License: www.letsstartcoding.com/bsdlicense

Looking for answers? Click here to see them.