When working through the challenges, sometimes things may go wrong. If your program doesn't perform the functions you intended it to, go back and compare your sample code, pseudocode or flowchart with the Arduino code you have written. Then work through the following checklist:
- Check the spelling of your variables and keywords as well as the capitalisation and spacing
- Make sure there is a semi-colon at the end of each line (but not at the end of an if, else or void line)
- Ensure all code inside each void, if, else or for loop is contained between an open and close curly bracket
- Make sure all lines are in the correct order
- Check that you've used the right pin numbers