In this activity, you are going to practice with the EPROM memory, but also with multitasking, a
program with an entity, a potential monitor and reading data from the cellular communications.
So quite a lot of things together.
But what is your challenge here?
Your challenge will be to make an.
Fade in and fade out from the value you read from the potential.
So that's actually something you already did before.
So you are going to read the value from the bottom, which is an analog value from Narrabeen, and you're
going to put this value with the analog right function in an eddy.
So that's the on in then, OK, because you can only use between 10 and 11.
So choose whatever you want.
All right.
So that's the first thing.
But then you're going to add a cap for the intensity of the 80.
OK, so you are going to set a maximum of max intensity.
And this maximum, you are going to get it from the sale, so which means that you're going to open
the sale mannitol and send some data and this will be the new max intensity.
So, for example, you said the max intensity to one hundred fifty, which means that in the analog
right function, you are only going to be able to send data from zero to one hundred fifty.
And this is where we are going to use it from memory.
You are going to save the max intensity.
To people, so when you restart the program, you don't start with the default one instead of default
one is two hundred fifty five, which is the maximum.
But when you start the program, you are going to read from the apron, get the previous max intensity
and set it as default.
So whatever value you choose from, the sale will be kept for the next program execution.
Again, one very important thing here is you are going to use one address on the one hand restaurant
from memory.
Pay attention to how and where you write on the April memory, OK, because if you write a program that
is not behaving correctly and then you write too quickly into it from memory, the worst.
So the worst that can happen is that you destroy an address of your memory.
If you do that, you still have one thousand twenty three addresses.
Well, that's fine.
That is part of the learning experience, but that's also fine if you don't destroy any address.
So if you have any doubt watched the beginning of the solution, first, what we're going to do is the
solution.
Just the first thing is to use the cellular read.
And instead of writing to the from memory, I'm simply going to print what we have right.
Just to make sure that we don't print too often, only when we have read something that is valid.
And then once this is working, I'm going to remove the sale print and instead write to the AP from
memory.
All right.
So you have enough information to get started.
I will see you in the next.
Listen for the solution.