The Arduino programming is very user-friendly and is a structured language. The Arduino IDE is and open source software. The source code for Java environment is released under the GPL and the C/C++ microcontroller libraries are under the LGPL.
The Program in the Arduino culture is called as a Sketch. Arduino program can be divided in 3 parts: Structure, Values and and Functions. We will explore about the Arduino software program, step by step, and how we can write the program without any syntax or compilation error.
Structure – Software structure consists of two main functions
- Setup( ) function
- Loop( ) function
The setup( ) function is called when a sketch starts. Use it to initialize the variables, pin modes, start using libraries, etc. The setup function will only run once, after each power up or reset of the Arduino board.
the loop( ) function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond.