When you start your I.D., you indirectly get a new amnesty program, but you can see here, in fact,
the program is not really empty.
It already contains two functions void setup and void loop.
If you don't know what functions are.
Don't worry, I'm going to cover that a little bit later in the course.
So for any original program you create, this is the minimum code you should have.
If one of those functions is missing, you won't be able to compete in the code, do you, on a board.
And when creating your own program, you will write some code inside each of those functions.
This code will then be executed on the Arab world.
So the first thing you can see is that the functions are empty.
OK, so when you run the program, what will happen?
So first of all, if you put any instruction here at the beginning of your program, this will be executed
and then the void setup function will be executed first.
So whatever code you put between those two curly brackets here will be executed first after it is executed
once and only once.
The code inside the void loop function will be executed in what we can call an infinite loop.
So basically all the code here will be executed and once it is finished, it will be executed again
and again and all of that again.
So first, the code in the void setup executive wants and then the code in the void loop is executed
an infinite number of time until you simply restart the program or you shut down your arduino and inside
the function.
So inside the void set up, for example, the instructions will be executed line by line.
So first line five and then line six, etc..
As you can see, we already have some text here.
But this is not code.
This is just a command.
So we've double slash.
You can actually create some command if output doubles.
I can just create any comment I want.
This is very useful for you to improve the credibility of your program.
OK, so you can put some command to give some indication of what's happening in your code.
OK, in the same folder, void loop function, all the lines will be executed one by one.
And this is also a command line.
So we're going to come back to those functions quite a few times in the schools.
But basically what you would write inside the void setup function is the code to initialize your program,
for example, to initialize valuable, to set up a sensor, to set up a communication.
So everything that you need to set up at the beginning of your program and that you basically need to
set up once and then in the loop function, you rewrite your application code.
So that would be the code that we learn all over again until the admin board is powered off, all restarted.