In this activity.
Number four, we are going to start from the code actually of the activity number three.
So we have the Python code on the Raspberry Pi here and the Cplusplus code on the Arduino.
So first thing I'm going to just copy this inside a new project okay I'm going to close that okay.
So I have this new project.
And let's remove the logs here.
And let's copy this inside this new file also.
And well I'm just gonna add here Time.sleep 0.0.
And that was missing and that I previously forgot okay.
So now well basically that's going to be the same.
But this program is going to consume less resources okay.
And much less CPU.
So what is your challenge here.
Your challenge is simply to debug what you receive okay.
And what you do on the Arduino with the LCD screen that we have added.
Okay.
If you remember before I told you that it was kind of difficult to debug what's going on in the Arduino,
so what you receive, etc..
Well, what we can do now is when we receive something, we can print that on the LCD.
When we send something, we can also print that on the LCD, for example with a log message send counter
and the counter.
So what you can do here in this activity is first initialize the LCD here.
And then well whenever you receive something or you send something you print that on the LCD.
So you print a nice message and you can play with the cursor okay.
So you can make sure that all the text is on the screen.
And so of course here you are more limited because you only have a screen that is 16 by two.
So you can only put 32 characters max at a time.
Okay, so that's a bit limited, but still you can get good information from what is going on in your
program.
And well, on the Raspberry Pi side, there is nothing to change.
We are just going to use the exact same program.
All right, I will see you in the next video for the solution.