Finally, it's time to upload this code and start testing.
Now we are going to verify it and upload it at the same time.
That's a personal monitor as well.
OK, but we cannot actually open a monitor until we are done uploading.
Because we are actually flashing using cereal.
OK.
So you'll monitor, you're trying to connect first we connect to Wi-Fi.
Here we go.
WI fi connected and it is connected now let us go to our interface.
Here, we're going to go to the drop down menu.
And Choose Dashboard and choose this little icon if I click on off.
OK, we are turning up using the iPhone and you are turning on your day off, OK, we can fix that.
That's not an issue.
Now that this happening of.
We are turning on.
We are turning off.
We are joining on that's a great you're going to see that every time we receive a message.
We're going to see its bailout.
Let's say let me clear this out, but if I press off.
I'm going to get it for tonight if I press on.
I'm getting a 50.
Now, this of.
It's turning on when you press off and it's turning off when you press on, why is that?
Well, are we receiving the right messages?
Let us check.
I'm going to clear the output, I'm going to press off first then.
So this is off and on.
As you can see, office 49.
That's correct, and on is 50.
That's correct.
Let's go check the sketch.
While the sketch for 49 suspects low, which is correct, and 54.
The reason is this lady works the opposite way.
So when you give it a low, it's going to turn on.
When you give it the high, it's going to turn off.
This is this is called an active low activation.
Active low means it activates at low.
This is why I could just reverse these.
In order to get the right result.
I'm showing you this so that if you try to compare this sketch and see that it's working the opposite
way, you don't really say, OK, why it's not working.
And you spent hours trying to figure it out.
It's very simple.
Internal light is on another MCU or active low meaning that high means low.
It means that when you give it a five volt that's going to turn off.
When you give it a five volts is going to turn off.
When you give it a zero volts is going to turn on.
And that's makes perfect sense because actually in electronics, when you talk about transistors, a
transistor, when you give it, the high voltage is going to activate.
So usually all of these these are connected to transistors.
So when you give it a high volume, it's going to turn off.
When you give it a zero volt, it's going to turn off.
That's the logic behind it.
Now, let's check what's going to happen after we have fixed this.
So, Firebrace, of.
And if focus on its own office of.
That's amazing, even though it's a very simple application.
It took us a lot of time just to explain the concept, to explain the background behind this.
I mean, it's it's really important to understand the super basics in order to build a bigger and larger
application.
Now now, you know, all of this information, you can create a really large application just by these
small information I have provided you.
All right.
So that was a very light introduction about this topic.
I hope that you have enjoyed that goes to the next lecture.