In this new activity, you are going to practice with the infrared remote controller and actually you
are going to mix that functionality with the LCD display screen and with the different LCD that you
have on your circuit.
So once again, we are going to create a multi functionality application.
So what will you need to do here?
So you will need to map some buttons of your infrared remote controller.
We need to map the button zero, one, two, three, and then the button func stop.
Or does the button stop?
OK, that's the buttons we are going to use.
So one, two, three, four, five buttons.
And no one's to get the mapping from those numbers.
You are going to associate a different action for each number.
So if you press on zero, what you're going to do is clear all editors.
Or just power of all entities.
OK, so you're going to use the three entities if you press one, you are going to toggle energy on
12 that to having to call any one.
So a little girl, I mean that if you press the button, then you are going to put her on the egg and
if you press the button again, you are going to pour out of the edit.
So you are going to need to keep the status for the eight as.
OK, then to you are going to toggle 82 until 11.
And when you press the three, you are going to get any three on been there.
So one, two or three to toggle the LG one, two or three and then zero to pull off all the entities.
Then once you are going to do also is to set up the LCD display screen.
And whenever you do an action, you are going also to print something on the screen.
So whenever you do something on the first line and see the first line, you are going to print just
the number you receive.
So print the the value add to the data, the command.
That's your receipt.
And on the second line.
You are going to print.
The text for the action used to, for example, forgive eligible, OK, just as an example to and two
to three poll of all trades and one additional nothing that you going to do is if you press on the button,
think or stop, you are going to clear, Nancy.
So if you press that button you don't interact with the edit is you just clear whatever is on the LCD
screen.
All right.
So make sure you go step by step.
For example, first, you can set up the infrared remote control to map the numbers.
Do the switch case are effective structure to go through all of the commands and then toggle the entities
accordingly and after that, to use the entity to inform the user of what you have done?
So step by step and also what I'm going to do is for the elves that is on the code, I'm going to use
arrays and functions.
So I'm going to put the three entities inside the ring so then I can set all the modes for just one
function.
I can pull off all it is and I can use the index also one, two or three.
I can use the index on the array to toggle the editing.
All right.
And I will see you in the next lesson from the solution.