WEBVTT

00:00.210 --> 00:06.300
In this new activity, you are going to practice with the potential to not create a new project here,

00:06.870 --> 00:15.300
and your challenge for this activity is to actually set the brightness of the energy intensity directly

00:15.300 --> 00:16.260
from the potential.

00:17.100 --> 00:23.550
So as you can see in the video, when I turn the put on to zero, the added will fade out.

00:23.550 --> 00:29.220
And when I turn put on Shmita to the max value, the entity which they are in.

00:29.670 --> 00:34.850
And thus with this, you have a complete control of the brightness or the intensity of your energy.

00:35.400 --> 00:41.670
To do that, you would need here, of course, to set up put on Twitter and to set up the energy so

00:41.670 --> 00:47.880
the pins for those components and in the loop function, you are going to use both the great function

00:47.880 --> 00:52.200
to reach value from the Shamila and the analog great function.

00:52.380 --> 00:55.240
OK, to send a bit of a win for the editing.

00:55.470 --> 01:01.680
And this is possible because the energy we have is currently connected to PIN number 11, which has

01:01.950 --> 01:03.570
been able to win functionality.

01:03.780 --> 01:12.180
So one thing you would need to pay attention to is that the analog read function will give you a value

01:12.180 --> 01:16.530
between zero and one thousand twenty three.

01:17.530 --> 01:26.590
And for the analogue right function, hey, you actually need to provide a value between zero and two

01:26.590 --> 01:27.830
hundred fifty five.

01:28.000 --> 01:31.230
So the range is different.

01:31.930 --> 01:36.280
So you need to scale down this to this.

01:36.280 --> 01:42.010
And actually, as you can see here, one thousand twenty three is about full time.

01:42.400 --> 01:43.940
Two hundred and fifty five.

01:44.290 --> 01:50.800
So what you would need to do is when you read the value from that, but I'm sure you would need to divide

01:50.800 --> 01:55.320
it a value by four in order to send it to the end with analog.

01:55.330 --> 01:55.660
Right.

01:55.960 --> 01:56.370
All right.

01:56.380 --> 01:57.950
I don't give any more information.

01:57.970 --> 02:02.620
Now it's your turn to practice and I would see you in the next listen for this solution.
