Character problem

Hi guys,

I have a problem with the LCM1 602 IIC V1 20x4 I2C lcd.

The problem is as following: When I upload my code in the Arduino Uno, the LCD works and does what it should do.

But when the conditions for my code input change, the characters on my LCD will change,but not all characters will change.

Some old characters will stay on the lcd screen. How can I solve this problem ?

Here’s my code:
(see attachment)

Test_MET_LCD.ino (10.2 KB)

Some old characters will stay on the lcd screen. How can I solve this problem ?

They will stay there until you overwrite them with something else.

Pad out your shorter messages with spaces so all of the messages are the same length.

Don

This sort of problem arises when you do not cover or erase old letters. If you replace

"YES" with
"no" you will get
"noS"

if you use
"no " instead, you will get
"no"

Figures are fixed similarly, using leading blanks.

Check the please read on how to post code.