WEBVTT

00:00.180 --> 00:05.850
In this activity, you're going to practice with the functionality that you have seen before, just

00:05.850 --> 00:12.590
before with the LCD display screen, and you're also going to combine that with the cell communication.

00:12.870 --> 00:17.850
So your goal here is to get some text I'm going to write here.

00:18.270 --> 00:23.250
So read a stream from Sale.

00:23.430 --> 00:26.600
OK, so you will use say, all right, OK.

00:26.760 --> 00:32.330
And you will open the same monitor and send a string directly from your computer to the area.

00:32.790 --> 00:39.420
So you read this and then what you do is you print on the LCD display screen.

00:39.960 --> 00:47.300
And what you are going to do is that you're going to alternate between line zero and line one.

00:47.970 --> 00:52.420
So can be also the first and the second line of the display screen.

00:52.710 --> 00:58.620
So the first text, you'll receive your print on the first line, then the second text you print on

00:58.620 --> 01:04.410
the second line, and then the third text, you are going to print it on the first line.

01:04.420 --> 01:07.390
So you're going to just replace the first text.

01:07.410 --> 01:15.120
OK, so every time you update a new line and one thing you need also to pay attention to is that, well,

01:15.130 --> 01:21.020
the LCD display screen has a maximum width of 16 characters.

01:21.330 --> 01:27.330
So for the purpose of this activity, you are going to also validate user input.

01:28.860 --> 01:34.510
And make sure that this is lower or equal than 16 characters.

01:35.250 --> 01:39.110
So if this is lower than 16 characters, you just print the text.

01:39.120 --> 01:42.930
If this is great, you can print some error message.

01:42.930 --> 01:49.620
For example, text is too long and to get the actual lengths, OK, for the string you are going to

01:49.620 --> 01:49.840
read.

01:50.250 --> 01:51.120
You can do so.

01:51.270 --> 01:58.890
Let's say you have a string called Estie or you can do Estado at length and this will return the length

01:59.040 --> 01:59.820
of the string.

02:00.810 --> 02:05.970
All right, so you have everything you need to know to get started, and I will see you in the next

02:05.970 --> 02:07.560
to listen for the solution.
