Task 5: Understanding For Loops

My code isn't working! What do I do?

  • Stay Calm: Don’t panic, coding takes practice.
  • Check for Semicolons: Ensure each line ends with a semicolon (;).
  • Spelling Matters: Carefully check all spellings.
  • For Loops: Double-check the syntax of your loop.
  • Wires and Connections: Ensure components are in correct positions.
  • Pin Numbers: Confirm pin numbers match between code and hardware.
  • Double-Check Connections: Gently wiggle wires to ensure good contact.
  • LED Health: Try swapping out the LED to test if it's functional.

Keep calm and keep debugging — it gets easier with practice!