1
00:00:01,400 --> 00:00:09,370
So now let's try the last lady we have what our board which is green and this one is connected to food

2
00:00:10,110 --> 00:00:10,900
over here.

3
00:00:10,940 --> 00:00:13,160
And this December the primary number for it.

4
00:00:13,510 --> 00:00:17,490
So in order to use this we have to enable it.

5
00:00:17,540 --> 00:00:24,270
And then we have to tell the on the microcontroller that this particular pin is an output pane.

6
00:00:24,320 --> 00:00:27,380
So all we have to do is go to our GP.

7
00:00:27,410 --> 00:00:34,020
I admit it subroutine to do this and we're looking for two registers here.

8
00:00:34,020 --> 00:00:38,360
This first one here what we want is to change this.

9
00:00:38,390 --> 00:00:40,730
Like this.

10
00:00:40,810 --> 00:00:41,880
Yeah.

11
00:00:41,920 --> 00:00:47,690
And this becomes an from E like this.

12
00:00:47,710 --> 00:00:48,970
So that's the next value.

13
00:00:49,450 --> 00:00:54,730
And basically what we've enabled are the um the blue green and red.

14
00:00:54,870 --> 00:01:04,390
And the D an overhead digital enable you want to once enable this one that like this.

15
00:01:04,410 --> 00:01:11,790
So this side becomes an all we have to do is change this to an F like this.

16
00:01:11,820 --> 00:01:23,680
So let's try it and see if we can just cry by changing the color to green and let's compile a let's

17
00:01:23,680 --> 00:01:24,220
download

18
00:01:27,000 --> 00:01:30,990
a K or sex my bold.

19
00:01:31,000 --> 00:01:31,690
There we go.

20
00:01:31,900 --> 00:01:33,400
It's work in minus.

21
00:01:33,400 --> 00:01:34,690
Perfect.

22
00:01:34,690 --> 00:01:36,220
Congratulations.

23
00:01:36,220 --> 00:01:42,270
So now we can just you know choose any color we want bar.

24
00:01:42,310 --> 00:01:45,410
We have to type in in order to get this color.

25
00:01:45,460 --> 00:01:52,480
I mean given the resources we have on our board I think it's rather too cumbersome to type.

26
00:01:52,510 --> 00:01:53,560
Just to get a color.

27
00:01:54,130 --> 00:02:01,030
So what we're going to do next is actually to use the switch to turn on another color and then to use

28
00:02:01,030 --> 00:02:07,930
the combination of you know switch one into it to turn on another color or then we could you know we

29
00:02:07,930 --> 00:02:14,710
could switch to it we could add some hot work to our board to turn on another color.

30
00:02:14,710 --> 00:02:20,810
So what we're going to do now first of all would be to enable switch to give us another control.

31
00:02:21,550 --> 00:02:23,580
So see you in the next lesson.
