1
00:00:01,500 --> 00:00:02,820
Hello, welcome back.

2
00:00:03,810 --> 00:00:11,310
And this lesson, we go in to see how to create tasks from another task and this very first lesson of

3
00:00:11,310 --> 00:00:16,340
task creation, we created all of our tasks in the main function.

4
00:00:16,770 --> 00:00:22,530
This time, we going to create just a single task in the main function and create the other tasks from

5
00:00:22,530 --> 00:00:23,130
that task.

6
00:00:23,520 --> 00:00:27,660
So what I'm going to do is I'm going to make a copy of this current project.

7
00:00:28,770 --> 00:00:31,800
I'll say copy and then I'll paste over here.

8
00:00:34,330 --> 00:00:35,440
According to.

9
00:00:45,330 --> 00:00:47,370
Creating tasks

10
00:00:51,030 --> 00:00:52,050
from other tasks.

11
00:00:54,030 --> 00:00:55,580
OK, that's a mouthful.

12
00:00:58,250 --> 00:00:58,790
OK.

13
00:01:02,050 --> 00:01:05,430
So I'm going to close this and I'm going to open this new one.

14
00:01:13,900 --> 00:01:18,520
So call source may not see that's where we find our main.

15
00:01:20,790 --> 00:01:23,200
OK, so this is the project.

16
00:01:23,580 --> 00:01:27,330
So what I'm going to do is over here, this is our main function.

17
00:01:27,900 --> 00:01:30,830
We created blue led task.

18
00:01:31,350 --> 00:01:35,370
So I'm going to cut this bit here, this bit that created red and green.

19
00:01:35,940 --> 00:01:36,750
I'm going to cut.

20
00:01:37,750 --> 00:01:38,380
From here.

21
00:01:40,070 --> 00:01:42,480
And then I'm going to bring this into blue.

22
00:01:42,500 --> 00:01:51,290
So this the task function for blue lady controller, I'm going to put it in here such that when Blue

23
00:01:51,290 --> 00:01:57,350
led control, our task is called for the first time, it goes ahead to create these other two tasks

24
00:01:57,650 --> 00:02:02,450
before implementing or increment in its profile a variable here.

25
00:02:03,170 --> 00:02:05,780
OK, let's see how that would work.

26
00:02:06,060 --> 00:02:07,100
Or click here to build.

27
00:02:10,200 --> 00:02:12,630
It's appealed successfully or downloaded onto the board.

28
00:02:17,260 --> 00:02:18,490
I'll switch over here.

29
00:02:22,030 --> 00:02:22,860
Click here to run.

30
00:02:24,020 --> 00:02:27,920
You can see it's running the same way, so this is a very short lesson.

31
00:02:27,940 --> 00:02:32,950
We have a number of short lessons that just give us quick ways of doing various things.

32
00:02:33,280 --> 00:02:36,750
And every now and then, we'll pull all together into a finalized project.

33
00:02:36,760 --> 00:02:38,160
So just bear with a process.

34
00:02:38,170 --> 00:02:38,460
Yeah.

35
00:02:38,830 --> 00:02:41,660
So this was the risk for this lesson, and I'll see you in the next lesson.

36
00:02:41,680 --> 00:02:42,420
Have a nice day.
