1
00:00:03,470 --> 00:00:12,050
So now how about we test the other colors on the port a bit just with a little bit of addition we could

2
00:00:12,050 --> 00:00:16,160
just toggle between red blue and green.

3
00:00:16,160 --> 00:00:22,340
So this just out these colors here is the clear blue and then green the

4
00:00:27,100 --> 00:00:28,640
who is.

5
00:00:28,930 --> 00:00:32,230
And I'll give you the binary number.

6
00:00:32,840 --> 00:00:36,570
Basically this is one two three four.

7
00:00:36,650 --> 00:00:39,690
This is 0 1 0 0.

8
00:00:39,950 --> 00:00:40,700
This is blue.

9
00:00:40,760 --> 00:00:52,510
And then Mr. Clay Green Green is 8 Kikuyu 0 x 2 8.

10
00:00:52,530 --> 00:01:00,470
What this stands for is one two three four one two as you show.

11
00:01:00,780 --> 00:01:06,660
This is PSU P F 1 p.m. to 3 okay.

12
00:01:06,680 --> 00:01:09,090
Say okay just to try.

13
00:01:09,320 --> 00:01:11,820
This just change this hair switch on.

14
00:01:12,030 --> 00:01:19,830
Let's move blue in that and see what happens before we start adding our controller to it.

15
00:01:20,100 --> 00:01:23,710
Let's just put this forward switch too.

16
00:01:24,040 --> 00:01:31,680
So as we know before we try it out we have to tell it direction registered to give us the pin for blue

17
00:01:32,100 --> 00:01:39,580
and then tilted digital enabled register to enable the blue pin and we come here.

18
00:01:39,900 --> 00:01:43,610
Remember blue is connected to at sea.

19
00:01:43,790 --> 00:01:45,810
We declared it up here.

20
00:01:45,870 --> 00:01:48,150
It's connected to P. F..

21
00:01:48,410 --> 00:01:51,240
It's connected to similar 1 to P F F2

22
00:01:54,290 --> 00:01:54,810
show.

23
00:01:54,810 --> 00:02:03,930
We have to add P F to here us there 0 1 2 and hexadecimal.

24
00:02:03,940 --> 00:02:06,070
Funny is this.

25
00:02:06,120 --> 00:02:12,570
This is on say a C.

26
00:02:12,690 --> 00:02:13,990
Show this on E.

27
00:02:14,070 --> 00:02:18,960
In hexadecimal code 2 1 1 1 2 becomes on E.

28
00:02:18,990 --> 00:02:28,060
So without this her and without direction register it becomes the same direction register.

29
00:02:28,070 --> 00:02:31,580
We have to enable the M P to us.

30
00:02:31,580 --> 00:02:34,550
Well so far we have this and this.

31
00:02:34,650 --> 00:02:44,120
You have to enable the p 2 so in order to enable the pin for the painful blue what we want to get should

32
00:02:44,120 --> 00:02:46,720
look like this in binaries currently.

33
00:02:46,760 --> 00:02:48,630
It's like this.

34
00:02:48,890 --> 00:02:51,140
You want to test the current form.

35
00:02:51,140 --> 00:02:57,470
This is super x 0 2 in binary but what we want is to enable this like this.

36
00:02:57,500 --> 00:03:00,740
So this number in binary is 6.

37
00:03:01,190 --> 00:03:04,190
So we just have to change this to 6 like this.

38
00:03:04,240 --> 00:03:12,260
So we've set this to an output pin and then we've enabled it so when we come here to switch on subroutine

39
00:03:12,290 --> 00:03:17,960
and we say when we press give us blue it should work.

40
00:03:19,490 --> 00:03:21,020
That's declared and cups.

41
00:03:22,240 --> 00:03:22,720
Okay.

42
00:03:22,720 --> 00:03:23,260
Sorry.

43
00:03:23,270 --> 00:03:27,810
This binary number actually gives us 7.

44
00:03:27,950 --> 00:03:35,240
It's rather confusing when the 0 1 the series out the other side it's an E so it should work.

45
00:03:38,660 --> 00:03:42,140
Let's see this reset.

46
00:03:42,440 --> 00:03:44,360
And then there we go.

47
00:03:44,360 --> 00:03:45,970
The blue light is on.

48
00:03:45,980 --> 00:03:47,960
This is amazing.

49
00:03:47,960 --> 00:03:54,440
So the next step would do would be to test whether we can just enable and to set a direction register

50
00:03:54,440 --> 00:03:57,680
for the queen LCD and then see what works.

51
00:03:57,680 --> 00:04:03,560
After that we'll add the second switch on the board so that we can control different colors with the

52
00:04:03,560 --> 00:04:06,140
two switches and even mix up Collis.

53
00:04:06,560 --> 00:04:09,320
So let's see in the next lesson.
