WEBVTT

00:00.180 --> 00:06.900
In this activity, you are going to practice with the EPROM memory, but also with multitasking, a

00:06.900 --> 00:12.790
program with an entity, a potential monitor and reading data from the cellular communications.

00:12.790 --> 00:14.900
So quite a lot of things together.

00:15.420 --> 00:16.720
But what is your challenge here?

00:16.740 --> 00:19.290
Your challenge will be to make an.

00:21.190 --> 00:27.310
Fade in and fade out from the value you read from the potential.

00:29.600 --> 00:32.400
So that's actually something you already did before.

00:33.140 --> 00:39.560
So you are going to read the value from the bottom, which is an analog value from Narrabeen, and you're

00:39.560 --> 00:43.840
going to put this value with the analog right function in an eddy.

00:44.060 --> 00:52.790
So that's the on in then, OK, because you can only use between 10 and 11.

00:52.790 --> 00:54.080
So choose whatever you want.

00:54.350 --> 00:55.370
All right.

00:55.900 --> 00:57.860
So that's the first thing.

00:58.520 --> 01:03.840
But then you're going to add a cap for the intensity of the 80.

01:03.930 --> 01:08.270
OK, so you are going to set a maximum of max intensity.

01:09.600 --> 01:15.870
And this maximum, you are going to get it from the sale, so which means that you're going to open

01:15.870 --> 01:21.340
the sale mannitol and send some data and this will be the new max intensity.

01:21.630 --> 01:27.930
So, for example, you said the max intensity to one hundred fifty, which means that in the analog

01:27.960 --> 01:33.990
right function, you are only going to be able to send data from zero to one hundred fifty.

01:34.290 --> 01:37.160
And this is where we are going to use it from memory.

01:37.500 --> 01:40.680
You are going to save the max intensity.

01:41.660 --> 01:48.350
To people, so when you restart the program, you don't start with the default one instead of default

01:48.370 --> 01:51.670
one is two hundred fifty five, which is the maximum.

01:52.190 --> 01:58.760
But when you start the program, you are going to read from the apron, get the previous max intensity

01:59.090 --> 02:00.770
and set it as default.

02:01.340 --> 02:07.670
So whatever value you choose from, the sale will be kept for the next program execution.

02:08.120 --> 02:13.460
Again, one very important thing here is you are going to use one address on the one hand restaurant

02:13.540 --> 02:14.320
from memory.

02:14.840 --> 02:22.940
Pay attention to how and where you write on the April memory, OK, because if you write a program that

02:22.940 --> 02:27.860
is not behaving correctly and then you write too quickly into it from memory, the worst.

02:27.870 --> 02:32.690
So the worst that can happen is that you destroy an address of your memory.

02:33.230 --> 02:36.500
If you do that, you still have one thousand twenty three addresses.

02:36.980 --> 02:37.610
Well, that's fine.

02:37.740 --> 02:43.560
That is part of the learning experience, but that's also fine if you don't destroy any address.

02:43.910 --> 02:49.040
So if you have any doubt watched the beginning of the solution, first, what we're going to do is the

02:49.040 --> 02:49.610
solution.

02:49.790 --> 02:53.960
Just the first thing is to use the cellular read.

02:54.290 --> 02:59.530
And instead of writing to the from memory, I'm simply going to print what we have right.

02:59.780 --> 03:06.070
Just to make sure that we don't print too often, only when we have read something that is valid.

03:06.470 --> 03:12.420
And then once this is working, I'm going to remove the sale print and instead write to the AP from

03:12.440 --> 03:12.830
memory.

03:13.520 --> 03:13.910
All right.

03:13.920 --> 03:16.250
So you have enough information to get started.

03:16.460 --> 03:17.630
I will see you in the next.

03:17.680 --> 03:19.070
Listen for the solution.
