WEBVTT

00:00.180 --> 00:06.480
Let's make a very quick recap with the delay function, which you've already used quite a lot, and

00:06.480 --> 00:10.380
also I'm going to introduce to you the delay microsecond function.

00:10.990 --> 00:17.640
So the delay function, you have seen that you can use it with simply writing delay and then no.

00:17.670 --> 00:19.210
So let's say 1000.

00:20.010 --> 00:27.540
So you have one parameter, which is a number of milliseconds when the execution Ritchies, this function

00:27.540 --> 00:30.210
to delay the execution will be stopped.

00:30.480 --> 00:33.750
OK, well, the amount of time you have provided here.

00:34.180 --> 00:44.850
OK, so in this case, one second, because one seven is equal to one thousand milliseconds.

00:45.280 --> 00:53.190
So the minimum value you can use is one millisecond and then you can use any other value you want.

00:53.640 --> 00:59.940
And there is another function which is delay microseconds like this.

01:00.180 --> 01:06.120
They should arrange and delay microseconds is basically the same thing as delay.

01:06.360 --> 01:13.140
But instead of providing a number of milliseconds, you provide a number of microseconds.

01:13.680 --> 01:15.960
If I provide, let's say, 500.

01:17.610 --> 01:29.220
I have half a millisecond, because one measly signal is equal to one thousand microseconds in a microsecond

01:29.220 --> 01:32.170
can be represented by those letters.

01:32.670 --> 01:39.600
So, for example, if I do daily microsecond with one thousand, that is the same as if I do delay,

01:39.630 --> 01:40.860
we've won, OK?

01:41.340 --> 01:49.170
And now if I want to make a delay of one signal, I need to give 1000 milliseconds and I need to give

01:49.200 --> 01:50.560
one million.

01:50.580 --> 01:56.590
So with six zeroes, one million or delay microseconds.

01:57.270 --> 02:02.620
So the delay microseconds can be very useful when you need to wait just a few microseconds.

02:02.640 --> 02:10.140
OK, because the minimum you can wait for delay is one millisecond, which is actually quite a lot in

02:10.140 --> 02:11.060
the computer time.

02:11.920 --> 02:19.050
Let's say, for example, you need to wait for 15 microseconds when you read in a specific sense, for

02:19.050 --> 02:21.990
example, this function will be very useful.

02:22.740 --> 02:23.090
All right.

02:23.100 --> 02:29.940
So to pull the program on how do we know you have two options, the delay and the delay microseconds

02:29.940 --> 02:31.380
functions which delay.

02:31.380 --> 02:34.280
You give milliseconds and we delay microseconds.

02:34.290 --> 02:36.150
Of course, you need microseconds.
