WEBVTT

00:00.180 --> 00:08.630
This is the solution to the premiers and first activity where you need to combine Linc Energy and save

00:08.640 --> 00:09.640
money, for example.

00:10.290 --> 00:15.330
So if you don't understand everything right now, it's not really a problem.

00:15.570 --> 00:18.860
Just continue and everything would make more sense.

00:19.140 --> 00:20.690
The following sections.

00:20.700 --> 00:27.440
OK, one other important thing is that you can understand a little bit how things are working and then

00:27.450 --> 00:29.840
will dive into much more details later.

00:30.540 --> 00:36.690
And to be able to finish this activity first, make sure that you could correctly execute all of the

00:36.690 --> 00:38.940
programs from the previous lessons.

00:39.240 --> 00:39.660
All right.

00:39.660 --> 00:41.130
And now let's start with the activity.

00:41.490 --> 00:47.430
So I'm going to remove that comment in lines that we don't need anymore.

00:48.090 --> 00:54.070
And so we need to blink an entity and also to use the same communication.

00:54.720 --> 00:57.030
So what I'm going to do is to use PIN.

00:58.400 --> 01:09.800
Mode with so 13 and output to initialize the energy, so to initiate the pin for the energy and then

01:09.800 --> 01:15.120
say all that, begin with nine thousand six hundred.

01:15.950 --> 01:19.550
So there is not really any other specific.

01:20.530 --> 01:28.360
And for that program here, both institutions are different and don't need each other to work.

01:28.960 --> 01:33.160
But what I'm going to do is to put first initialized the cellular communication.

01:33.520 --> 01:33.930
All right.

01:33.940 --> 01:36.730
Everything is set up now in the loop.

01:36.740 --> 01:44.680
What we can do is to make the blink so digital, right, that in a.

01:46.930 --> 01:54.400
And then we wait for so we need to operate on for two seconds, so I'm going to wait for two thousand

01:55.030 --> 02:02.140
milliseconds and then digital, right, 13 we load.

02:03.620 --> 02:09.450
And another delay of one cigarette this time, so 1000 milliseconds.

02:10.430 --> 02:17.270
So with this, we should be able to see the energy bolt on for two seconds and then pulled off for one

02:17.270 --> 02:17.730
cigarette.

02:18.200 --> 02:22.460
And we also want to print something when we pull on the editing.

02:22.700 --> 02:30.760
So let's see here we can but say Algate print L.N. with energy on.

02:31.580 --> 02:36.290
And again, don't forget the SEMICON OK at the end of every instruction.

02:37.350 --> 02:44.490
So we print energy and we pour on the energy, then we wait for two seconds and then we can print.

02:47.530 --> 02:48.820
Any day of.

02:50.560 --> 02:54.970
Before we pull out of the enemy and then we wait for one thing.

02:55.690 --> 03:00.310
All right, so that is the complete code for this activity, not where I'm going to do this.

03:00.310 --> 03:01.530
I'm going to verify.

03:02.170 --> 03:06.940
So let's name it activity one safe.

03:09.290 --> 03:16.260
You can see them campaigning great, so it's working now, let's make sure in all that we have, you

03:16.280 --> 03:22.910
know, and the correct so the correct board and the correct spot we can upload to program.

03:23.550 --> 03:25.860
I'm going to show up and say I'll monitor.

03:28.300 --> 03:37.390
So you can see the energy blink on and off, and when we turned on the science monitor, also Prince

03:37.430 --> 03:44.100
Endian and when the energy turns of the sand, little Prince Ali of.

03:45.300 --> 03:48.430
All right, that's the end of this first activity.

03:48.900 --> 03:54.900
Make sure that you are comfortable with what happened in this section before you continue.

03:55.110 --> 03:58.920
And now let's see how to build your First Circuit.
