1
00:00:00,150 --> 00:00:05,880
Before we look to generate the failing effect on an ADT, it's OK bad, what we're going to do is right.

2
00:00:06,510 --> 00:00:12,990
We will start from a lower intensity, OK, then we increase in intensity till we reach to the maximum

3
00:00:12,990 --> 00:00:16,330
intensity and then we are again in density.

4
00:00:16,540 --> 00:00:19,800
So this is what we refer to as a fading effect on an LCD.

5
00:00:20,010 --> 00:00:25,560
OK, so we'll take the help of an BW where we try to change an average power so that LCD brightness

6
00:00:25,560 --> 00:00:26,510
will be back, right?

7
00:00:26,520 --> 00:00:32,280
So from low intensity will be going to at high intensity and from high density will again be going to

8
00:00:32,280 --> 00:00:33,870
a lower intensity, right?

9
00:00:34,170 --> 00:00:39,410
So before doing that, let's first proceed to understand how we vary a duty cycle, right?

10
00:00:39,450 --> 00:00:46,080
So I have just modified an existing code that we release right now here if you want to continuously

11
00:00:46,080 --> 00:00:48,810
generate the newly settled rate.

12
00:00:48,810 --> 00:00:51,000
So we have our data while one over here, right?

13
00:00:51,630 --> 00:00:53,580
And then these are the two patterns.

14
00:00:53,580 --> 00:00:56,220
Is it decided to calibrate, is that right?

15
00:00:56,430 --> 00:01:03,510
First thing that we always do is to disable P.W. because we know that we need to first configure them

16
00:01:03,510 --> 00:01:04,440
before enabling it.

17
00:01:04,470 --> 00:01:04,740
Right.

18
00:01:05,070 --> 00:01:09,330
So I could really say, well, we will be generating a high value rate.

19
00:01:09,330 --> 00:01:14,760
So here, as compared to previous case, we have set our high value, too busy period.

20
00:01:14,760 --> 00:01:17,310
We get consumed because this should be constant.

21
00:01:17,550 --> 00:01:21,410
Only thing that will be changing to vary the duty cycle is the high value rate.

22
00:01:21,420 --> 00:01:26,750
So the initial values zero and we are checking whether high value leads to this value.

23
00:01:26,760 --> 00:01:32,040
OK, once our high value reaches to a period, that basically means we get to 100 percent duty cycle.

24
00:01:32,040 --> 00:01:34,830
That is for all the time I laid eyes on, right?

25
00:01:35,220 --> 00:01:41,100
So we'll just be checking whether high value is equal to the value that we have for fitting, OK, if

26
00:01:41,100 --> 00:01:42,750
that is the case, we again want to.

27
00:01:44,040 --> 00:01:51,030
Start generating four zero, right, so that is the minimum value that we want to set, right?

28
00:01:51,040 --> 00:01:52,100
So here we are.

29
00:01:52,110 --> 00:01:58,140
Getting initialized in high value to be zero is what we're going to do is if I high value is not equal

30
00:01:58,140 --> 00:02:01,620
superior, we are just incrementally higher value with this step, right?

31
00:02:01,620 --> 00:02:03,510
So this is quite big number.

32
00:02:03,750 --> 00:02:06,320
But this is how we are implementing our high value rate.

33
00:02:06,330 --> 00:02:10,950
So we do have a limited step before we reach to the maximum rate.

34
00:02:11,280 --> 00:02:16,200
So once we correctly generate in high value and this is in fact variable rate, so this you could set

35
00:02:16,200 --> 00:02:20,160
according to how fast you go from lower intensity to higher intensity rate.

36
00:02:20,170 --> 00:02:28,380
So here we are, consuming only a few steps to go from zero to the higher value rate, then we are storing

37
00:02:28,380 --> 00:02:31,890
the value that is being generated as a duty cycle.

38
00:02:32,130 --> 00:02:34,770
Once we add the period and high value, we're here, right?

39
00:02:34,770 --> 00:02:40,500
So first step is we disable our VW, then we proceed for generation of and hydrogen.

40
00:02:40,800 --> 00:02:41,940
This is our second step.

41
00:02:42,240 --> 00:02:46,260
Third step is to add the high value and put it in a P.W. configuration.

42
00:02:46,290 --> 00:02:47,790
This will retain duty, right?

43
00:02:48,120 --> 00:02:50,460
So once we correctly configure repeatable.

44
00:02:50,640 --> 00:02:53,100
The next step is to enable a repeat of that, right?

45
00:02:53,190 --> 00:02:59,850
And here we are, also branding the value of duty cycle and then we are waiting for the timer went to

46
00:02:59,850 --> 00:03:00,620
expire, right?

47
00:03:00,620 --> 00:03:03,750
So once timer unexpired, we complete our full cycle.

48
00:03:04,050 --> 00:03:09,700
Then we proceed for generation of a new value for our high value variable rate.

49
00:03:09,780 --> 00:03:14,250
So we will be waiting till the timer expired and then we again go back over here, right?

50
00:03:14,250 --> 00:03:21,740
So where we disable them, generate the new high value, configuring appropriate and enabling our energy?

51
00:03:21,810 --> 00:03:22,110
Right.

52
00:03:22,230 --> 00:03:25,890
So let me just go ahead and try to build our project.

53
00:03:26,370 --> 00:03:26,730
OK.

54
00:03:27,000 --> 00:03:30,630
So once I if I lose ready, we will just be going.

55
00:03:30,880 --> 00:03:33,510
And this is a configuration that we are really right.

56
00:03:33,750 --> 00:03:37,520
So right click on the configuration and just click on Relaunch, right?

57
00:03:37,530 --> 00:03:40,050
So this will automatically relaunch our debug session.

58
00:03:40,500 --> 00:03:43,230
And here if you analyze the latest.

59
00:03:43,950 --> 00:03:44,310
Right.

60
00:03:44,400 --> 00:03:48,540
So we are already connected to Comm six with about eight nine six zero zero.

61
00:03:48,630 --> 00:03:53,150
Right now, we are ready to perform or hold resumption, right?

62
00:03:53,170 --> 00:03:57,930
So here you could see timer and it is successful and then the duty cycle is ready, right?

63
00:03:58,840 --> 00:04:08,620
So you could see four, nine, 14, 19, 24, 50, 55, 60, 65, 70, 75, 80.

64
00:04:09,810 --> 00:04:14,370
90 and then hundreds, they and as soon as we reached 100, we.

65
00:04:15,380 --> 00:04:19,340
Start again from four, nine, 14, 19, so on and so forth.

66
00:04:19,550 --> 00:04:26,480
So what this will do is we are going from a lower value to higher value to will be getting the changes

67
00:04:26,480 --> 00:04:28,670
in intensity that here.

68
00:04:28,670 --> 00:04:34,070
In fact, in this code, we are again going back to the lower value end and increasing rate, so this

69
00:04:34,070 --> 00:04:37,350
won't be generating the feeding effect.

70
00:04:37,370 --> 00:04:39,640
Instead, we'll be getting sort of like me a break.

71
00:04:39,650 --> 00:04:43,250
But for a fading effect, we want to have a triangular like view.

72
00:04:43,700 --> 00:04:48,660
So that will be understanding in the next do write how we generate a triangular light vehicle.

73
00:04:48,770 --> 00:04:55,750
That basically means we go from zero two and then 400 hundred, we will be going to zero.

74
00:04:55,940 --> 00:04:59,080
So you should not be thrown for that.

75
00:04:59,180 --> 00:05:07,250
It should be eight to 95, then 98 and into one right and then then only will be able to get the feeding

76
00:05:07,250 --> 00:05:07,490
effect.

77
00:05:07,730 --> 00:05:11,450
So they just modified the score so that we able to generate the feeding effect.
