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
- setup() Runs Once
- loop() Runs Forever
- Comments & Clean Sketches
- Compile Errors & How to Read Them