Hello and welcome to this annual lesson.
As usual, the first thing that we do when we start exploring a new hardware is to blank led or to write
a programming sentence, which is hello, worst case for our hardware, which is SB 32, the example
will be led blinking.
So let's go to the examples menu and the Arduino idea and open up the sketch example or plunk example
now.
As you can see, we have a lot of examples here, you can go to the basics and click blink.
Now, let's close this window.
Let's open up this one now.
As you can see in this lesson on this code, let me zoom.
We have the lid set to default, which is led number 13 on Arduino, so we need to change this number.
As you know, the SB 32 has a built in lid that is connected to its Gilberto's input output.
Number two, it is important to check if Lyd pollution is automatically recognized by IDC.
If not, you must add to called a line like this.
Right.
And.
And right lead letters copied and pasted here and now you have to write to to make sure that the code
will be saved to PIN number two, which is the internal lid pin inside the sport.
Now let's save our code.
Let's leave the name blank.
And let's roll this.
Now, as you can see, it's the very same court that we use and you we have two methods, the voice
setup method and the voice method.
The voice method is basically where you set up things like up in here we have PIN number two, which
is the variable, and we can replace it with number two here.
But since we are using a variable, we can apply the variable name here and here.
We can assign it as input or output since we are dealing with a it's an output.
So we write output and we use Benmore function to make sure that we set number two as output in the
setup loop.
Now the loop function from its name, it will keep repeating itself.
The loop function runs over and over again forever.
Once you stop the program or stop turn off the power, it will stop running.
Now the digital right will write a digital value.
High means one logic or turn on to the spin, which has been number two that has internal.
And then the delay sentence will wait for a second and we will write the same sentence are right.
We will write additional value, which is low or zero or off, and we will wait for another second.
So we will turn on the.
Wait a second.
Turn it off and wait another second now before.
Applauding this court, we need to go and make sure that we have that do it SB 32 different version,
one selected, and we need to make sure that we have the right Gombauld.
After that, we can simply click upload.
It will take some time.
OK, as you can see, you now have an error because this is a system variable, we can't change it with
another name led to.
Let's try it again.
As you can see now, it's writing the code, done uploading.
Now, if you have the board, you can see that there is a blue light blinking on and off.
That's it.
This is how simple it is to turn on or off alland you can use any other pin or connect an external lid
if you have one.
But that's it for this lesson.
As you can see, it's the very same code that we use and Arduino.
So it's really simple.
It's really easy to get started with this board.
You don't have a lot of knowledge, just basic knowledge encoding and an arduino.
And if you don't have a basic knowledge, I already explained each line of code inside this sketch.
If you have any question about anything, please ask in the Q&A board.
Thanks for watching.
This is Usrah from educational engineering team.