Before we look to generate the failing effect on an ADT, it's OK bad, what we're going to do is right.
We will start from a lower intensity, OK, then we increase in intensity till we reach to the maximum
intensity and then we are again in density.
So this is what we refer to as a fading effect on an LCD.
OK, so we'll take the help of an BW where we try to change an average power so that LCD brightness
will be back, right?
So from low intensity will be going to at high intensity and from high density will again be going to
a lower intensity, right?
So before doing that, let's first proceed to understand how we vary a duty cycle, right?
So I have just modified an existing code that we release right now here if you want to continuously
generate the newly settled rate.
So we have our data while one over here, right?
And then these are the two patterns.
Is it decided to calibrate, is that right?
First thing that we always do is to disable P.W. because we know that we need to first configure them
before enabling it.
Right.
So I could really say, well, we will be generating a high value rate.
So here, as compared to previous case, we have set our high value, too busy period.
We get consumed because this should be constant.
Only thing that will be changing to vary the duty cycle is the high value rate.
So the initial values zero and we are checking whether high value leads to this value.
OK, once our high value reaches to a period, that basically means we get to 100 percent duty cycle.
That is for all the time I laid eyes on, right?
So we'll just be checking whether high value is equal to the value that we have for fitting, OK, if
that is the case, we again want to.
Start generating four zero, right, so that is the minimum value that we want to set, right?
So here we are.
Getting initialized in high value to be zero is what we're going to do is if I high value is not equal
superior, we are just incrementally higher value with this step, right?
So this is quite big number.
But this is how we are implementing our high value rate.
So we do have a limited step before we reach to the maximum rate.
So once we correctly generate in high value and this is in fact variable rate, so this you could set
according to how fast you go from lower intensity to higher intensity rate.
So here we are, consuming only a few steps to go from zero to the higher value rate, then we are storing
the value that is being generated as a duty cycle.
Once we add the period and high value, we're here, right?
So first step is we disable our VW, then we proceed for generation of and hydrogen.
This is our second step.
Third step is to add the high value and put it in a P.W. configuration.
This will retain duty, right?
So once we correctly configure repeatable.
The next step is to enable a repeat of that, right?
And here we are, also branding the value of duty cycle and then we are waiting for the timer went to
expire, right?
So once timer unexpired, we complete our full cycle.
Then we proceed for generation of a new value for our high value variable rate.
So we will be waiting till the timer expired and then we again go back over here, right?
So where we disable them, generate the new high value, configuring appropriate and enabling our energy?
Right.
So let me just go ahead and try to build our project.
OK.
So once I if I lose ready, we will just be going.
And this is a configuration that we are really right.
So right click on the configuration and just click on Relaunch, right?
So this will automatically relaunch our debug session.
And here if you analyze the latest.
Right.
So we are already connected to Comm six with about eight nine six zero zero.
Right now, we are ready to perform or hold resumption, right?
So here you could see timer and it is successful and then the duty cycle is ready, right?
So you could see four, nine, 14, 19, 24, 50, 55, 60, 65, 70, 75, 80.
90 and then hundreds, they and as soon as we reached 100, we.
Start again from four, nine, 14, 19, so on and so forth.
So what this will do is we are going from a lower value to higher value to will be getting the changes
in intensity that here.
In fact, in this code, we are again going back to the lower value end and increasing rate, so this
won't be generating the feeding effect.
Instead, we'll be getting sort of like me a break.
But for a fading effect, we want to have a triangular like view.
So that will be understanding in the next do write how we generate a triangular light vehicle.
That basically means we go from zero two and then 400 hundred, we will be going to zero.
So you should not be thrown for that.
It should be eight to 95, then 98 and into one right and then then only will be able to get the feeding
effect.
So they just modified the score so that we able to generate the feeding effect.