WEBVTT

00:00.420 --> 00:01.600
In this activity.

00:01.830 --> 00:08.130
Well, actually, we are going to go back to the solution of the activity number eight, so you can

00:08.130 --> 00:09.270
go to the code.

00:09.270 --> 00:13.380
You had four eight eight and we are going to improve that code.

00:14.340 --> 00:22.200
So if you remember in this activity, what we did is to make the link so on Benomar 12 to blink at five

00:22.200 --> 00:29.700
hundred milliseconds by default, and then we can give a new delay directly with cellular communication.

00:29.730 --> 00:36.990
So from the side monitor on the computer, we can give a delay that will replace the previous delay

00:37.080 --> 00:38.920
in the original code.

00:39.270 --> 00:45.000
And here, well, if you could spot the problem, the problem is simply this is we have a delay here.

00:45.000 --> 00:49.730
So basically that means we can't do much more than this.

00:50.370 --> 00:54.240
The delay will block the program for a certain amount of time.

00:54.750 --> 01:00.150
If it's, for example, 4000, then the delay will block the program for false signals and then you

01:00.150 --> 01:02.490
can't do anything else for four seconds.

01:02.820 --> 01:07.370
And also with this, you are not able to change the delay in real time.

01:07.380 --> 01:10.010
You always have to wait for the end of the delay.

01:10.620 --> 01:17.640
So you'll change for this activity is to make the aready blink with the code structure that we have

01:17.640 --> 01:25.500
just seen before, so that when you change the delay here from cell, it changes immediately and also

01:25.500 --> 01:29.360
you will be able to do other actions later on in your program.

01:29.640 --> 01:32.690
So note that you only need to change this part of the program.

01:32.700 --> 01:40.170
OK, this you can actually just leave it like because this part of the program actually doesn't block

01:40.170 --> 01:40.750
the program.

01:40.770 --> 01:46.310
OK, the only problem is because of the delay specific to the functionality.

01:46.620 --> 01:47.030
All right.

01:47.130 --> 01:49.350
Now we see you in the next listen for the solution.
