So let us now talk a little bit about the idea sketch.
So you would download your Audrina I.D. and whenever you want to write the program, you're going to
find a very distinct section.
One of them is the voice set up and the other one is the void loop.
Well, what's the difference between these two and where should we write our code?
Exactly.
Well, we write them in both, but we use the set up to initialize our code.
So when you have some of the instructions or some of the code that need to be executed at the start
of Adreno, you would put them in the setup.
So let's say you want to define a few IYO is the output because every Io of the original can be configured
for either being an input or an output.
So you do all of that in the setup.
Let's say you want to initialize what is your boundary.
So you have your serial communication.
And as we've talked about that, you, A.R.T. would require that both ends agree on the same transfer
rate, which is the boundary.
This is what you would do here, you would say.
So you'll begin nine thousand six hundred is your budget.
Now, this is what I mean.
And the initialization anything that you would need in order to configure your Adreno, you would put
it in the set up.
And we're going to say tons of example on that as we go and progress.
Now, the void loop is where you may encode guilt.
So let's say on your program or your instructions, conditions, everything would be put in the void
loop and well, let's say you're trying to write in serial.
Let's say you're trying to activate an output or with an input.
Let's say you have some if statements, loops, everything would go in here.
And there is the thing.
The void set up executes only once at the beginning of your Adreno.
So let's say you connected your ordering at your power supply.
The first thing Audrina will do is execute everything in the set up once, only once.
Then it will jump to the void loop and the void loop will execute forever.
So let's say you have five instructions here in the void loop.
This will repeat over and over and over again as long as you're Adreno is followed up.
So this is why it's called void loop.
So if you have some program that requires that it is put in an infinite loop, you don't have to do
that because you're ordering a sketch.
Already has a section for a loop, an infinite loop.
And as I said, we're going to see tons of examples on this.
But I just wanted to give you a brief introduction on the main two functions of your idea sketch.