This is an old revision of the document!
Arduino IDE is a software that allows to write Arduino code. Each file with Arduino code is called a sketch. The Arduino programming language is similar to the C++ language. In order for the Arduino IDE to compile the written code without errors, it is important to follow the pre-defined syntax.
“#define” is a component that allows to give a name to a constant value at the very beginning of the program.
#define constant 4
In this example the value 4 is assigned to the constant.
Note that at the end of this expression semicolon (;) is not necessary and between the name and the value, the sign of equality ( should not be added!
“#include” is a component that allows to include libraries from the outside of the program. Just like the #define, #include is not terminated with the semicolon at the end of the line!
#include <Servo.h>
In this example the library called “Servo.h” that manages servomotors has been added to the sketch.
There are two ways to write comments in the sketch so that the written text is not compiled as a part of the running code.
//Comment is written here"