Arduino / Structure of Arduino ProgramArduino program called “sketch”. Arduino programs can be contains 2 sections. They were1. Setup( ) function 2. Loop( ) function Void setup ( ) { } It is initialize the variables, pin modes, start using libraries, etc and the function runs only once after power up or reset the Arduino and is also called as when a sketch starts. Void Loop ( ) { } It is used to control the Arduino board actively. After setup() function starts it is used to loop consecutively for allowing your program to change and respond. |
Home Back