Last Updated: 20/07/2021

Lesson 1 - Commenting code

Lessons >> Basics >> Lesson 1 - Commenting code

Lesson Contents

The basics of an Arduino sketch
Single Line comments
Block comments
Code saving file structure
Basics of code versioning

Example 1: Commentsv1.ino


Click to Download code:Commentsv1.ino

Example from the last sketch showing block header and inline comments.

 
/* Comments
     15/07/2021
     This version starts to explain how to set up comments on our code



    pin 8 relay blue wire
    pin 13 led



*/

void setup() {

  //Start Serial communication at 9600
  Serial.begin(9600);
  //Print hello to the serial monitor
  Serial.println("Hello");

}

void loop() {
  // put your main code here, to run repeatedly:

}

Additional Resource Links

Don't forget to use the Reference in you Arduino IDE and look at the block comments and single line comments for more help on this lesson.

Comments


This site has been designed to be child friendly, this means that comments cannot be added to videos or directly to the site.
To add a comment or ask a question please email the address in this image: and use Lesson 1 - Commenting code as a reference.