WEBVTT

00:00.180 --> 00:06.300
In this activity, you're going to practice with the demands of the button and also the time functionalities

00:06.570 --> 00:08.790
to make multiple actions run in parallel.

00:09.030 --> 00:15.420
So this activity should clear any confusion and you will see the nuances of how we use the time functionalities

00:15.810 --> 00:20.340
to demonstrate the button, all to execute an action with a delay.

00:20.640 --> 00:23.910
So your challenge is to execute two actions at the same time.

00:23.920 --> 00:29.130
The first one is to check the state of the button when the button is priced.

00:31.920 --> 00:36.660
And when I'm press, I mean only when it goes from low to high.

00:36.770 --> 00:39.000
OK, not all the time that it's priced.

00:39.000 --> 00:42.680
Just when the state changes from low to high.

00:42.990 --> 00:48.060
That case you are going to toggle energy two and three.

00:51.190 --> 00:59.230
So that's the end on PIN number 11 and PIN number 10 and to toggle the end, it is what you are going

00:59.230 --> 01:11.990
to do is just up on and it's to pull of 83, OK, and then the opposite power of 82 and 83.

01:12.370 --> 01:14.680
So you only power on one at a time.

01:15.250 --> 01:21.910
So whenever you press the button, you change energy to an energy three and a second action is to make

01:22.090 --> 01:28.640
the one blink every let's see once again.

01:28.660 --> 01:30.140
So one thousand millisecond.

01:30.340 --> 01:35.890
OK, and this is completely different from this action is completely different from this action.

01:35.920 --> 01:38.740
OK, we just make the energy one blink.

01:38.740 --> 01:43.320
And then you also check the state of the button to toggle energy to an energy three.

01:43.630 --> 01:48.670
And of course, here you will not use any delay function.

01:48.970 --> 01:54.140
You will use the time functionality to do everything without blocking the program.

01:54.670 --> 01:55.090
All right.

01:55.090 --> 01:56.440
And I will see you in the next.

01:56.490 --> 01:57.910
Listen for the solution.
