All right, and now let's see how to write your fellows program and also debug your program directly
with the simulation.
So the online simulation, we think, OK, and make sure that you have watched the previous listens,
because here I'm going to go a little bit more quickly.
I'm not going to explain everything again.
So I'm doing OK here on your dashboard.
You can go on circuits and then you already have your test checkers here.
You can create a new one.
OK, and I'm going to name it.
First program.
So I'm going to add the undeniable of all such horrible but the horrible like here, and we don't need
any other components right now.
So that's good to see the code blocks, which is text, I assure, continue.
And actually, when you start with an empty program on Tinka, well, the program is not empty.
This is already the blink example.
So this is what we have written for the first program.
OK, so first we initialize the PIN 13 to output and then we were on the editing with digital right
high on interring.
We wait for one signal, we pull off the energy and we wait for another one signal and then the loop
will continue to be executed.
As you can see here, we have comments.
So you don't necessarily need to put a comment on a new line.
As soon as you put double slash, the rest of the line would be connected.
So now all we need to do is to start the simulation.
So let's click on Start Simulation and you can see here.
So I'm going to zoom in a little bit.
The energy here is blinking at one hand.
So everyone singing that simulation and will.
As you can see, it's not that hard to make it walk, and if you understood this program previously,
then it should be quite easy at this point.
And let's just shake what happens if, for example, we forget that semicolon here.
Let's start simulation and you can see we have the expected semicolon before delay, so.
We can add the semicolon and then it would work, so basically we have almost the same error code and
for the original i.e..
All right.
And now let's check how to use the same money to debug your program, because, yes, you can still
debug your program even with the simulation.
So here I'm going to just use that program that we have created here.
So I'm going to copy paste this right here.
So first we initialize the cell communication.
We say a billion, we print Hello, Alvino, and then we print something in the loop every five hundred
milliseconds.
So this is a program we have just made and explained everything in a previous lesson.
Let's start the simulation.
OK, so not how to see what's happening, you can go on the same monitor here on the bottom and you
can see we have Helena know and then in the loop.
Well, actually.
There is something that happened here with this text.
So now it's working well, how do I know in the loop?
So if you want to restart your program, well here you simply stop the simulation and start the simulation
again.
And here you can see we have the reset button.
What happens if I click on the reset button?
And as you can see, hello, I don't know, so when I click on this reset button while the program is
running on the simulation, this will also restart the program so you can interact with what's happening
in secret directly during the simulation.
All right, so you have seen how to make a very simple program to bring in L.A. we dissimulation, how
to use the cellular communication we decided we need to operate here and how to restart your own program.
OK, on the simulation, you can stop and start simulation or you can also click on this reset button.
All right.
And for the following of discourse, I will not always show the results on Dinko Card, OK?
Or maybe just at the end of a specific lesson, because as you could see, this is the same thing whether
we use the Tinker Cat Interface, this is the same thing.
So if you are using the simulation first, watch the listen using the ID and you can just write it instead
of in the 80s.
And now you know how to start the simulation.
You know how to use the same monitor, how to restart your program, etc..