0PricingLogin
Arduino & IoT Academy · Lesson

Comments & Clean Sketches

Write notes and structure so code stays readable.

Notes for Humans

Code is read far more often than it is written. Comments are notes you leave so future-you understands the sketch. 📝

The Single-Line Comment

Type two slashes and the rest of that line is a comment. The board ignores it completely when running your code.

// this line is just a note
digitalWrite(13, HIGH);

All lessons in this course

  1. setup() Runs Once
  2. loop() Runs Forever
  3. Comments & Clean Sketches
  4. Compile Errors & How to Read Them
← Back to Arduino & IoT Academy